Complex Exponential in LaTeX (e^{z})
- LaTeX command
e^{z}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Exponential function evaluated at a complex number z = x + iy, equal to eˣ(cos y + i sin y).
The complex exponential is entire, never zero, and periodic with period 2\pi i, which is why its inverse, the logarithm, is multivalued. With short exponents e^{z} is fine; for something like e^{-(x - \mu)^2/2\sigma^2} the superscript becomes tiny, and \exp\left( -\frac{(x-\mu)^2}{2\sigma^2} \right) reads better. \exp is a predefined operator. Always brace multi-token exponents. Some publishers ask for upright \mathrm{e} as the constant, which keeps it distinct from a variable e. Its derivative is itself, which makes it the building block of linear ODE solutions.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Complex Exponential: $e^{z}$
\[ e^{z + 2\pi i} = e^{z}, \quad |e^{z}| = e^{\Re z} \]
\end{document}Related symbols
- Complex Logarithm
\log z - Euler's Formula
e^{i\theta} = \cos\theta + i\sin\theta - Complex Power
z^w - Polar Form
r e^{i\theta} - Unit Circle
|z| = 1 - Principal Argument
\text{Arg}(z)
Frequently asked questions
- How do I write Complex Exponential in LaTeX?
- Type e^{z} in math mode, for example $e^{z + 2\pi i} = e^{z}, \quad |e^{z}| = e^{\Re z}$. It works in plain LaTeX without loading any package.
- Which package do I need for e^{z}?
- None. e^{z} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use e^{z} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $e^{z}$ in running text.