12

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.

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

1 Answer 1

30

\text is not well suited for this, use

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

then \arctanh behaves like \tan and friends

1
  • 5
    typo: MathOperator not MahOperator Commented Sep 16, 2012 at 10:06

Not the answer you're looking for? Browse other questions tagged .