Argument in LaTeX (\arg(z))
- LaTeX command
\arg(z)- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Argument of z: the angle from the positive real axis to z, defined up to multiples of 2π.
\arg is a built-in operator name, so it prints upright and sets correct spacing; typing arg without the backslash gives italic letters. Because the angle is multivalued, \arg z is often treated as a set \{\theta + 2\pi k\}, and \arg(zw) = \arg z + \arg w holds only modulo 2\pi. For the single-valued principal value people write \operatorname{Arg} z with a capital letter. Do not confuse \arg with argmax-style operators, which return a minimizing input and need their own declaration.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Argument: $\arg(z)$
\[ \arg(1 + i) = \frac{\pi}{4} + 2\pi k, \; k \in \mathbb{Z} \]
\end{document}Related symbols
- Principal Argument
\text{Arg}(z) - Modulus
|z| - Polar Form
r e^{i\theta} - Complex Conjugate (Star)
z^* - Euler's Formula
e^{i\theta} = \cos\theta + i\sin\theta - Complex Conjugate
\bar{z}
Frequently asked questions
- How do I write Argument in LaTeX?
- Type \arg(z) in math mode, for example $\arg(1 + i) = \frac{\pi}{4} + 2\pi k, \; k \in \mathbb{Z}$. It works in plain LaTeX without loading any package.
- Which package do I need for \arg(z)?
- None. \arg(z) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \arg(z) in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\arg(z)$ in running text.