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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث