Euler's Formula in LaTeX (e^{i\theta} = \cos\theta + i\sin\theta)

eiθ=cos⁡θ+isin⁡θ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.

eiπ+1=0e^{i\pi} + 1 = 0
\documentclass{article}
\begin{document}
Euler's Formula: $e^{i\theta} = \cos\theta + i\sin\theta$

\[ e^{i\pi} + 1 = 0 \]
\end{document}

Related symbols

All Complex Numbers →

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.
Math poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers