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 삼각함수 →

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 poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기