In short
Euler's formula states that e^{i\theta} = \cos\theta + i\sin\theta. It connects the exponential function to trigonometry through complex numbers. It can be derived by comparing the Taylor series of e^x, \cos x, and \sin x. Setting \theta = \pi gives e^{i\pi} + 1 = 0, which links five fundamental constants in a single equation.
Here is a question that sounds impossible. Take the number e \approx 2.718, the base of natural logarithms. Raise it to a power. But make the power imaginary — not a real number, but i times a real number, where i = \sqrt{-1}.
What is e^{i \cdot \pi/2}?
You know what e^2 means: e \times e. You know what e^{1/2} means: \sqrt{e}. But e^{i\pi/2}? What does it mean to multiply e by itself "i\pi/2 times"? That question does not even make grammatical sense.
And yet the answer is i. Exactly i. Not approximately, not in some limit — exactly. The number e, raised to the power i\pi/2, equals i.
The equation that explains this, and a great deal more, is Euler's formula:
It says that raising e to an imaginary power produces a complex number whose real part is \cos\theta and whose imaginary part is \sin\theta. The exponential function and the trigonometric functions — which seem like completely unrelated ideas — turn out to be the same thing, viewed through the lens of complex numbers.
What the formula is saying geometrically
Think of the complex plane. Every complex number z = a + bi corresponds to a point (a, b) on this plane. The number \cos\theta + i\sin\theta has real part \cos\theta and imaginary part \sin\theta.
Where does that point sit? Its distance from the origin is
So it lies on the unit circle — the circle of radius 1 centred at the origin. And the angle this point makes with the positive real axis is exactly \theta (that is the definition of cosine and sine as coordinates on the unit circle).
Euler's formula is telling you: e^{i\theta} is the point on the unit circle at angle \theta.
As \theta increases from 0 to 2\pi, the point e^{i\theta} walks around the entire unit circle, counterclockwise, at a steady pace. At \theta = 0, it sits at 1. At \theta = \pi/2, it sits at i. At \theta = \pi, it sits at -1. At \theta = 3\pi/2, it sits at -i. And at \theta = 2\pi, it is back at 1.
This is remarkable. The exponential function e^x, which on the real line shoots off to infinity as x grows, becomes — on the imaginary axis — circular motion. Growth turns into rotation. That single transformation is the deepest thing about Euler's formula.
The derivation: three series that conspire
The proof of Euler's formula starts with three infinite series you may have already seen. Each one is a Taylor series — a way to write a function as an infinite sum of powers of x.
The exponential series
This series converges for every real number x, and it is the definition of e^x in the sense that everything else — the growth curve, the compound interest, the "its own derivative" property — follows from this series.
The cosine series
Only even powers of x, with alternating signs.
The sine series
Only odd powers of x, with alternating signs.
These three series were known well before anyone thought to connect them. The sine and cosine series were discovered by Madhava of Sangamagrama in the 14th century — three hundred years before they appeared in European mathematics.
Now substitute x = i\theta
Replace x with i\theta in the exponential series and see what happens.
Compute each power of i\theta:
- (i\theta)^1 = i\theta
- (i\theta)^2 = i^2\theta^2 = -\theta^2
- (i\theta)^3 = i^3\theta^3 = -i\theta^3
- (i\theta)^4 = i^4\theta^4 = \theta^4
- (i\theta)^5 = i^5\theta^5 = i\theta^5
The powers of i cycle: i, -1, -i, 1, i, -1, -i, 1, \ldots Every four steps, the pattern repeats. Substituting:
Now separate the real terms (those without i) from the imaginary terms (those with i):
The real part is exactly the cosine series. The imaginary part is exactly the sine series. Therefore:
That is Euler's formula, derived from nothing more than substituting i\theta into the exponential series and sorting real from imaginary.
Why this proof works
The proof rests on one bold move: taking the exponential series, which is defined for real numbers, and plugging in a complex number i\theta. Is that allowed?
Yes — because the exponential series converges absolutely for every complex number, not just real ones. Absolute convergence means you can rearrange the terms freely without changing the sum. So splitting the series into real and imaginary parts is legitimate, and the result is valid.
This kind of reasoning — extending a real function to complex inputs by keeping its series definition — is the central technique of complex analysis. Euler's formula is the first and most important result you get from it.
Applications to trigonometry
Euler's formula turns trigonometric identities into algebra. Once you know that e^{i\theta} = \cos\theta + i\sin\theta, you can derive identities that would take pages of trigonometric manipulation in a few lines.
Expressing \cos\theta and \sin\theta in terms of exponentials
Since e^{i\theta} = \cos\theta + i\sin\theta and e^{-i\theta} = \cos\theta - i\sin\theta (replace \theta with -\theta and use the even/odd properties of cosine and sine), you can solve for \cos\theta and \sin\theta:
These are remarkable. They express trigonometric functions — periodic, oscillating, geometric — as combinations of exponentials. The two worlds are completely interchangeable.
Deriving the compound-angle formulas
The compound-angle formula \cos(\alpha + \beta) + i\sin(\alpha + \beta) = ? becomes trivial with Euler's formula.
The left side is \cos(\alpha+\beta) + i\sin(\alpha+\beta). The right side is:
Expand the product:
Comparing real and imaginary parts:
Both compound-angle formulas, derived in two lines. No geometric constructions, no auxiliary triangles. Just multiplication of exponentials.
Deriving product-to-sum formulas
Euler's formula makes product-to-sum identities — often memorised by brute force — into obvious algebra. Consider \cos\alpha\cos\beta. Write each cosine in exponential form:
Expand the four terms:
Group the pairs:
That is the product-to-sum formula for \cos\alpha\cos\beta, derived mechanically. The identities for \sin\alpha\sin\beta and \sin\alpha\cos\beta fall out from the same approach. Euler's formula reduces memorisation to computation.
The connection to De Moivre's theorem
De Moivre's theorem states that
With Euler's formula, this becomes transparent. The left side is (e^{i\theta})^n = e^{in\theta}. The right side is e^{in\theta} written out. They are the same thing. De Moivre's theorem is a corollary of Euler's formula — it falls out immediately from the law of exponents applied to complex exponentials.
And since De Moivre's theorem holds for all integers n (including negative integers, which give reciprocals), Euler's formula gives you De Moivre's theorem for free, without induction.
Finding nth roots of unity
De Moivre's theorem, powered by Euler's formula, also gives the nth roots of unity — the n complex numbers z such that z^n = 1. If z^n = 1 = e^{i \cdot 2k\pi} for any integer k, then z = e^{i \cdot 2k\pi/n}. Taking k = 0, 1, 2, \ldots, n-1 gives n distinct roots:
These roots are equally spaced around the unit circle, like the vertices of a regular n-gon. For n = 4: the four points are 1, i, -1, -i — the four compass points of the complex plane.
Worked examples
Example 1: Evaluate $e^{i\pi/3}$ and verify on the unit circle
Step 1. Apply Euler's formula with \theta = \pi/3:
Why: direct substitution into e^{i\theta} = \cos\theta + i\sin\theta.
Step 2. Evaluate the trig functions. \cos(\pi/3) = 1/2 and \sin(\pi/3) = \sqrt{3}/2. So:
Why: these are standard values from the 30-60-90 triangle. \pi/3 radians is 60°.
Step 3. Verify the modulus. |e^{i\pi/3}| = \sqrt{(1/2)^2 + (\sqrt{3}/2)^2} = \sqrt{1/4 + 3/4} = \sqrt{1} = 1.
Why: every point e^{i\theta} should have modulus 1 — it lives on the unit circle.
Step 4. Verify the argument. \arg(e^{i\pi/3}) = \tan^{-1}\!\frac{\sqrt{3}/2}{1/2} = \tan^{-1}\sqrt{3} = \pi/3.
Why: the argument should equal \theta, confirming that the point is at angle \pi/3 on the unit circle.
Result: e^{i\pi/3} = \frac{1}{2} + \frac{\sqrt{3}}{2}\,i, a point on the unit circle at 60°.
The picture confirms what the algebra says: e^{i\pi/3} is a point on the unit circle at 60°, with coordinates that match the cosine and sine of that angle exactly.
Example 2: Use Euler's formula to derive $\cos^2\theta = \frac{1 + \cos 2\theta}{2}$
Step 1. Write \cos\theta using the exponential form:
Why: this is the exponential representation of cosine, derived earlier from Euler's formula and its conjugate.
Step 2. Square both sides:
Why: expand using (a+b)^2 = a^2 + 2ab + b^2. The cross term e^{i\theta} \cdot e^{-i\theta} = e^0 = 1.
Step 3. Simplify. The middle term is 2 \cdot 1 = 2. The remaining terms combine:
Why: e^{2i\theta} + e^{-2i\theta} = 2\cos 2\theta, using the exponential form of cosine with angle 2\theta.
Result: \cos^2\theta = \dfrac{1 + \cos 2\theta}{2}.
This is the power of Euler's formula as a tool: an identity that takes several steps to prove by trigonometric manipulation becomes a short algebraic expansion when you work with exponentials. The technique generalises — you can derive \cos^3\theta, \sin^4\theta, or any power of a trig function the same way.
The most beautiful equation
Set \theta = \pi in Euler's formula:
Rearranging:
This is sometimes called the most beautiful equation in mathematics. It connects five constants — e, i, \pi, 1, and 0 — from five different areas of mathematics (analysis, complex numbers, geometry, arithmetic, and the additive identity), using three operations (exponentiation, multiplication, addition), and nothing else. Each constant entered mathematics for its own reason; none was designed to relate to the others. And yet they lock together in a single, clean identity.
The equation e^{i\pi} = -1 also has a geometric meaning. It says: start at 1 on the unit circle. Rotate by angle \pi — half a full turn. You land at -1. Euler's formula gives this simple rotation a compact name.
There are other special values worth verifying by hand:
| \theta | e^{i\theta} | Verification |
|---|---|---|
| 0 | \cos 0 + i\sin 0 = 1 | The starting point: e^0 = 1 ✓ |
| \pi/2 | \cos\frac{\pi}{2} + i\sin\frac{\pi}{2} = i | A quarter turn lands at i |
| \pi | \cos\pi + i\sin\pi = -1 | A half turn lands at -1 |
| 3\pi/2 | \cos\frac{3\pi}{2} + i\sin\frac{3\pi}{2} = -i | Three-quarter turn lands at -i |
| 2\pi | \cos 2\pi + i\sin 2\pi = 1 | Full circle: back to the start |
Each row is a checkpoint. Together they trace the four compass points of the unit circle, confirming that e^{i\theta} rotates at a uniform pace.
Common confusions
-
"e^{i\theta} is a very large number because e^x grows fast." On the real line, yes — e^{10} is about 22{,}026. But e^{i\theta} has modulus 1 for every value of \theta. The exponential function changes character completely when the exponent is purely imaginary: growth becomes rotation.
-
"The proof only works for small \theta." The Taylor series for e^x, \cos x, and \sin x all converge for every value of x (real or complex). The proof works for all \theta, not just small ones.
-
"e^{i\theta} is just a shorthand notation." It is not shorthand — it is the actual value of the exponential function at i\theta. The exponential function extends from the real numbers to the complex numbers, and e^{i\theta} is a genuine evaluation of that function. The formula is a theorem, not a definition.
-
"Setting \theta = 2\pi gives e^{2\pi i} = 1, so 2\pi i = 0." The error is assuming that e^z = 1 implies z = 0. On the real line, that is true — e^x = 1 only when x = 0. But on the complex plane, the exponential function is periodic with period 2\pi i: e^{z + 2\pi i} = e^z for all z. So e^z = 1 whenever z is any integer multiple of 2\pi i. The complex exponential is not one-to-one.
Going deeper
If you came here to understand what Euler's formula says and where it comes from, you have it — you can stop here. The rest of this section is for readers who want to see the formula's wider consequences and the connection to differential equations.
Why e^{i\theta} must satisfy |e^{i\theta}| = 1
There is a slick argument that does not use series at all. Consider the function f(\theta) = e^{i\theta} \cdot e^{-i\theta}. By the law of exponents, f(\theta) = e^{i\theta - i\theta} = e^0 = 1 for all \theta. But e^{-i\theta} = \overline{e^{i\theta}} (the complex conjugate), so f(\theta) = e^{i\theta} \cdot \overline{e^{i\theta}} = |e^{i\theta}|^2. Therefore |e^{i\theta}|^2 = 1, which means |e^{i\theta}| = 1. The point e^{i\theta} must lie on the unit circle, for every \theta, without needing to know what its coordinates are.
The differential equation viewpoint
Consider the function z(\theta) = e^{i\theta}. Taking its derivative with respect to \theta:
So z(\theta) = e^{i\theta} satisfies the differential equation z' = iz with initial condition z(0) = 1. This equation says: at every moment, the velocity of z is perpendicular to z itself (because multiplying by i rotates a complex number by 90°). A particle whose velocity is always perpendicular to its position vector moves in a circle. This gives you another proof that e^{i\theta} traces the unit circle — one that explains why exponentials produce circles, not just that they do.
The polar form of complex numbers
Euler's formula gives the cleanest way to write a complex number in polar form. Any complex number z with modulus r and argument \theta can be written as:
Multiplying two such numbers: z_1 z_2 = r_1 e^{i\theta_1} \cdot r_2 e^{i\theta_2} = r_1 r_2 \, e^{i(\theta_1 + \theta_2)}. The moduli multiply and the arguments add — the fundamental rule of multiplication in polar form — which is now obvious from the laws of exponents. More on this in the article on polar form.
The general complex exponential
What about e^{a+bi} where a is non-zero? Separate the real and imaginary parts of the exponent:
So e^a controls the magnitude (the radial distance from the origin) and e^{bi} controls the angle. The general complex exponential is a spiral: as a grows, the point moves away from the origin; as b grows, it rotates. A pure imaginary exponent (a = 0) produces pure rotation on the unit circle — that is Euler's formula. A pure real exponent (b = 0) produces pure growth along the positive real axis — that is the usual exponential. The general case combines both.
Connections to Fourier analysis
Every periodic function can be decomposed into a sum of e^{in\theta} terms — this is a Fourier series. Euler's formula is the reason Fourier analysis works: it provides the basis functions (e^{in\theta}) that span the space of periodic functions. If you continue into higher mathematics, you will find Euler's formula sitting at the foundation of signal processing, quantum mechanics, and the theory of differential equations. It is not an isolated identity — it is a cornerstone.
Madhava and the series foundation
The Taylor series for \sin x and \cos x that power the derivation above were discovered by Madhava of Sangamagrama in the 14th century, as part of the Kerala school of astronomy and mathematics. The series for \sin x appears in the Yuktibhasa (c. 1530), which gives a rigorous derivation using what we would now call Riemann sums. The exponential series e^x = \sum x^n/n! arrived later in the European tradition. Euler's formula connects two streams of mathematical discovery — the Indian series tradition and the European theory of complex numbers — into one equation.
Where this leads next
- Complex Numbers — Introduction — the basics of i, the complex plane, and arithmetic with complex numbers.
- De Moivre's Theorem — the nth power identity that Euler's formula generalises and simplifies.
- Polar Form of Complex Numbers — writing complex numbers as re^{i\theta}, the natural language for multiplication and division.
- Exponential Functions — the real-valued exponential e^x and its properties, which Euler's formula extends to the complex plane.
- Compound Angles — the addition formulas for sine and cosine, which fall out of Euler's formula as a two-line corollary.