Arctangent in LaTeX (\arctan)
- LaTeX command
\arctan- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Arctangent, giving the angle in (-pi/2, pi/2) whose tangent is x.
\arctan x appears in \int \frac{dx}{1+x^2} = \arctan x + C and in Machin's formula \frac{\pi}{4} = 4\arctan\frac{1}{5} - \arctan\frac{1}{239}. For the polar angle of a point (x, y) in all four quadrants, programmers use atan2; in papers, write \operatorname{atan2}(y, x) or the complex argument \arg(x + iy). \tan^{-1} x is an accepted synonym, more common in engineering. The series \arctan x = x - x^3/3 + x^5/5 - \cdots converges for |x| \le 1 and gives the Leibniz series at x = 1.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Arctangent: $\arctan$
\[ \int \frac{dx}{1 + x^2} = \arctan x + C \]
\end{document}Related symbols
- Arccotangent
\text{arccot} - Arccosine
\arccos - Arcsecant
\text{arcsec} - Arcsine
\arcsin - Arccosecant
\text{arccsc} - Cosecant
\csc
Frequently asked questions
- How do I write Arctangent in LaTeX?
- Type \arctan in math mode, for example $\int \frac{dx}{1 + x^2} = \arctan x + C$. It works in plain LaTeX without loading any package.
- Which package do I need for \arctan?
- None. \arctan is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \arctan in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\arctan$ in running text.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث