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 複素数 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得