Inverse Cosine in LaTeX (\cos^{-1})
- LaTeX command
\cos^{-1}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Inverse cosine in superscript notation, the same function as arccos.
Physics and engineering often write \cos^{-1} for angles, for instance the angle between two vectors computed from their normalized dot product. It is not the reciprocal 1/\cos x, which is \sec x; the superscript -1 here means function inverse. The output range is [0, \pi], so \cos^{-1}(-1) = \pi. Pure mathematics papers usually choose \arccos to avoid the ambiguity. If your text mixes \cos^2 x for squares and \cos^{-1} x for inverses, mention the convention once so readers are not left guessing.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Inverse Cosine: $\cos^{-1}$
\[ \cos^{-1}(-1) = \pi \]
\end{document}Related symbols
- Inverse Tangent
\tan^{-1} - Inverse Sine
\sin^{-1} - Hyperbolic Sine
\sinh - Arccosecant
\text{arccsc} - Hyperbolic Cosine
\cosh - Arcsecant
\text{arcsec}
Frequently asked questions
- How do I write Inverse Cosine in LaTeX?
- Type \cos^{-1} in math mode, for example $\cos^{-1}(-1) = \pi$. It works in plain LaTeX without loading any package.
- Which package do I need for \cos^{-1}?
- None. \cos^{-1} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \cos^{-1} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\cos^{-1}$ in running text.
Math poweredAI로 LaTeX 작성
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기