Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Define additional math operators to be typeset in roman

If I want to use the function sin in LaTeX, I write $\sin x$ or $\sin(x+1)$. If I want to use the function arctanh, I can't use $\arctanh x$:

! Undefined control sequence.
<argument> ...\ (\cos x)' &= -\sin x \\ (\arctanh 
                                                  x)' &= \frac {1}{\sqrt {1 ...
l.74 \end{align*}

? 
! Emergency stop.

What should I use instead for arctanh?

I thought of $\text{arctanh} x$, but this doesn't leave a space after arctanh. Additionally, it seems to be semantically incorrect, as arctanh is not "only" text.

share|improve this question

marked as duplicate by egreg, Torbjørn T., Garbage Collector, Marco Daniel, cgnieder Sep 16 '12 at 10:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
You could also use \atanh{x} of the physymb package. It gives tanh^-1. –  Harold Cavendish Sep 16 '12 at 9:55
2  
arctanh is semantically wrong. The right word is artanh, where "ar" is the abbreviation for area and not for arc. –  Luigi Sep 16 '12 at 11:25

1 Answer 1

up vote 8 down vote accepted

\text is not well suited for this, use

\usepackage{amsmath}
\DeclareMathOperator\arctanh{arctanh}

then \arctanh behaves like \tan and friends

share|improve this answer
3  
typo: MathOperator not MahOperator –  David Carlisle Sep 16 '12 at 10:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.