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.
Math poweredAI로 LaTeX 작성
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기