Euler's Formula in LaTeX (e^{i\theta} = \cos\theta + i\sin\theta)
- LaTeX command
e^{i\theta} = \cos\theta + i\sin\theta- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Euler's formula, linking the complex exponential to cosine and sine; it puts e^{iθ} on the unit circle.
Setting \theta = \pi gives Euler's identity e^{i\pi} + 1 = 0, and solving the formula for cosine yields \cos\theta = (e^{i\theta} + e^{-i\theta})/2. Note how \cos and \sin are operator commands: they print upright and add a thin space before \theta, while writing cos would give three italic letters. No parentheses are needed for a single symbol argument like \theta, but use them for compound arguments, \sin(2\theta). In engineering contexts the same identity is written with j in place of i.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Euler's Formula: $e^{i\theta} = \cos\theta + i\sin\theta$
\[ e^{i\pi} + 1 = 0 \]
\end{document}Related symbols
- Complex Exponential
e^{z} - Polar Form
r e^{i\theta} - Complex Logarithm
\log z - Principal Argument
\text{Arg}(z) - Complex Power
z^w - Argument
\arg(z)
Frequently asked questions
- How do I write Euler's Formula in LaTeX?
- Type e^{i\theta} = \cos\theta + i\sin\theta in math mode, for example $e^{i\pi} + 1 = 0$. It works in plain LaTeX without loading any package.
- Which package do I need for e^{i\theta} = \cos\theta + i\sin\theta?
- None. e^{i\theta} = \cos\theta + i\sin\theta is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use e^{i\theta} = \cos\theta + i\sin\theta in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $e^{i\theta} = \cos\theta + i\sin\theta$ in running text.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI
- Hasilkan diagram TikZ yang indah menggunakan AI
- Unggah gambar dan konversi ke LaTeX dengan mulus
- Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian