Arctangent in LaTeX (\arctan)

arctan⁡\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.

∫dx1+x2=arctan⁡x+C\int \frac{dx}{1 + x^2} = \arctan x + C
\documentclass{article}
\begin{document}
Arctangent: $\arctan$

\[ \int \frac{dx}{1 + x^2} = \arctan x + C \]
\end{document}

Related symbols

All Trigonometri →

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan