Hyperbolic Cosine in LaTeX (\cosh)
- LaTeX command
\cosh- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Hyperbolic cosine, (e^x + e^{-x})/2, as an upright named operator.
A hanging chain takes the shape of a catenary, y = a\cosh(x/a), the textbook application. The function is even, always at least 1, and satisfies \cosh^2 x - \sinh^2 x = 1 and \cosh(ix) = \cos x. In special relativity, the Lorentz factor equals the hyperbolic cosine of the rapidity. Like other operators, \cosh adds a thin space before a single-symbol argument, so \cosh x is fine without parentheses. Its inverse has no predefined command; use \operatorname{arcosh} or \cosh^{-1}.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Hyperbolic Cosine: $\cosh$
\[ y = a \cosh\left(\frac{x}{a}\right) \]
\end{document}Related symbols
- Hyperbolic Tangent
\tanh - Hyperbolic Sine
\sinh - Inverse Hyperbolic Sine
\text{arcsinh} - Inverse Tangent
\tan^{-1} - Pi
\pi - Inverse Cosine
\cos^{-1}
Frequently asked questions
- How do I write Hyperbolic Cosine in LaTeX?
- Type \cosh in math mode, for example $y = a \cosh\left(\frac{x}{a}\right)$. It works in plain LaTeX without loading any package.
- Which package do I need for \cosh?
- None. \cosh is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \cosh in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\cosh$ in running text.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث