Skip to main content

Euler's Formula: From Complex Numbers to Rotating Waves

· 6 min read

A cosine tracks the horizontal position of a point going around a circle. A sine tracks its vertical position. Euler's formula puts both coordinates in one complex number. That's why a single exponential can describe a steady rotation and why a minus sign in its exponent reverses the direction.

One number, two coordinates​

A complex number z=x+iyz=x+iy represents the point (x,y)(x,y) in the complex plane: xx is the horizontal coordinate, yy is the vertical coordinate, and i2=−1i^2=-1. On a circle of radius 1 centered at zero, the point at an angle θ\theta measured counterclockwise from the positive horizontal axis has coordinates (cos⁡θ,sin⁡θ)(\cos\theta,\sin\theta).

Euler's formula says that this same point can be written as an exponential:

eiθ=cos⁡θ+isin⁡θ.e^{i\theta}=\cos\theta+i\sin\theta.

The angle is measured in radians, so half a turn is π\pi and a full turn is 2π2\pi. At θ=0\theta=0 the point is 11 on the right. After a quarter turn it's ii at the top; after a half turn it's −1-1 on the left. That last case gives the familiar identity eiπ+1=0e^{i\pi}+1=0.

The exponential notation is useful because multiplying exponentials adds their exponents: eiαeiθ=ei(α+θ)e^{i\alpha}e^{i\theta}=e^{i(\alpha+\theta)}. On the circle, multiplying by eiαe^{i\alpha} simply adds α\alpha to the angle. For example, multiplying by i=eiπ/2i=e^{i\pi/2} makes a quarter turn counterclockwise.

Derive the formula from power series

1. Substitute iθi\theta into the exponential series. The Taylor series for eze^z about zero is

ez=∑n=0∞znn!=1+z+z22!+z33!+⋯ .e^z=\sum_{n=0}^{\infty}\frac{z^n}{n!} =1+z+\frac{z^2}{2!}+\frac{z^3}{3!}+\cdots.

The index nn runs through the nonnegative integers, and n!n! is the factorial (for example, 3!=3⋅2⋅13!=3\cdot2\cdot1). The same series defines the exponential for complex zz, so we can put z=iθz=i\theta:

eiθ=1+iθ+(iθ)22!+(iθ)33!+⋯=1+iθ−θ22!−iθ33!+⋯ .\begin{aligned} e^{i\theta} &= 1+i\theta+\frac{(i\theta)^2}{2!}+\frac{(i\theta)^3}{3!}+\cdots\\ &= 1+i\theta-\frac{\theta^2}{2!}-i\frac{\theta^3}{3!}+\cdots. \end{aligned}

2. Group the even and odd powers. Since i2=−1i^2=-1, every extra pair of factors of ii flips the sign. An even power gives i2m=(−1)mi^{2m}=(-1)^m; an odd power leaves one extra ii, so i2m+1=i(−1)mi^{2m+1}=i(-1)^m. The series converges absolutely, so grouping the terms this way leaves its sum unchanged:

eiθ=(1−θ22!+θ44!−⋯ )+i(θ−θ33!+θ55!−⋯ ).\begin{aligned} e^{i\theta} &=\left(1-\frac{\theta^2}{2!}+\frac{\theta^4}{4!}-\cdots\right)\\ &\quad+i\left(\theta-\frac{\theta^3}{3!}+\frac{\theta^5}{5!}-\cdots\right). \end{aligned}

3. Build the cosine and sine series and compare. For either function g=cos⁡g=\cos or g=sin⁡g=\sin, the Taylor expansion about zero starts with the function value at zero. The next term uses the first derivative at zero, the term after that uses the second derivative, and so on:

g(θ)=g(0)+g′(0)θ+g′′(0)2!θ2+g′′′(0)3!θ3+⋯ .g(\theta)=g(0)+g'(0)\theta+\frac{g''(0)}{2!}\theta^2 +\frac{g'''(0)}{3!}\theta^3+\cdots.

Differentiate cosine once to get −sin⁡θ-\sin\theta, and again to get −cos⁡θ-\cos\theta. At zero these are 00 and −1-1, so the linear term vanishes and the quadratic term is −θ2/2!-\theta^2/2!. For sine, the first derivative is cos⁡θ\cos\theta, which is 11 at zero, so the linear term is θ\theta. The second derivative is −sin⁡θ-\sin\theta, which is 00 at zero, so there's no quadratic term. Here are the values that go into the first six terms:

Derivative order012345cos⁡, at 010−1010sin⁡, at 0010−101\begin{array}{c|rrrrrr} \text{Derivative order} & 0 & 1 & 2 & 3 & 4 & 5\\ \hline \cos,\ \text{at }0 & 1 & 0 & -1 & 0 & 1 & 0\\ \sin,\ \text{at }0 & 0 & 1 & 0 & -1 & 0 & 1 \end{array}

Order 00 means the function itself. After four differentiations we get the original function back, so the pattern continues. Multiplying each entry by θn/n!\theta^n/n! for its column nn gives

cos⁡θ=1−θ22!+θ44!−⋯ ,sin⁡θ=θ−θ33!+θ55!−⋯ .\begin{aligned} \cos\theta &= 1-\frac{\theta^2}{2!}+\frac{\theta^4}{4!}-\cdots,\\ \sin\theta &= \theta-\frac{\theta^3}{3!}+\frac{\theta^5}{5!}-\cdots. \end{aligned}

These series give the exact function values for every real θ\theta. All derivatives of cosine and sine have absolute value at most 11, so the Taylor remainder after degree NN has absolute value at most ∣θ∣N+1/(N+1)!|\theta|^{N+1}/(N+1)!, which tends to zero.

Now compare with step 2: the even-power series is cos⁡θ\cos\theta, and the odd-power series after factoring out ii is sin⁡θ\sin\theta. Thus eiθ=cos⁡θ+isin⁡θe^{i\theta}=\cos\theta+i\sin\theta.

Let the angle change with time​

Set θ=2πft\theta=2\pi ft, where ff is measured in hertz and tt in seconds. The factor 2π2\pi converts turns to radians. At f=1 Hzf=1\,\mathrm{Hz}, e2πifte^{2\pi i ft} moves once around the circle counterclockwise every second. At f=−1 Hzf=-1\,\mathrm{Hz}, it makes one turn per second clockwise instead. The sign of ff sets the direction; ∣f∣|f| gives the number of turns per second.

At a given time, eiθe^{i\theta} and e−iθe^{-i\theta} are reflections across the horizontal axis. They have the same horizontal coordinate and opposite vertical coordinates. Average them and the vertical coordinates cancel:

eiθ+e−iθ2=(cos⁡θ+isin⁡θ)+(cos⁡θ−isin⁡θ)2=cos⁡θ.\begin{aligned} \frac{e^{i\theta}+e^{-i\theta}}{2} &=\frac{(\cos\theta+i\sin\theta)+(\cos\theta-i\sin\theta)}{2}\\ &=\cos\theta. \end{aligned}

Substitute θ=2πft\theta=2\pi ft with f>0f>0 to write a cosine of amplitude 1 as

cos⁡(2πft)=12e2πift+12e−2πift.\cos(2\pi ft)=\frac{1}{2}e^{2\pi i ft}+\frac{1}{2}e^{-2\pi i ft}.

Picture two points that both start at 11 and make ff turns per second. The +f+f point goes counterclockwise; the −f-f point goes clockwise. At every instant, their vertical coordinates cancel when added, but their horizontal coordinates are identical, so adding them doubles the horizontal coordinate. Multiplying each term by 12\tfrac12 restores the original amplitude: at t=0t=0, the two terms contribute 12+12=1\tfrac12+\tfrac12=1.

The complex Fourier series lists these as two terms because it keeps track of each direction separately. Together they describe one real tone at frequency ff.

Deriving the negative-angle form​

Replace θ\theta by −θ-\theta in Euler's formula. On the unit circle, negating the angle reflects the point across the horizontal axis: cosine stays the same, while sine changes sign.

e−iθ=cos⁡(−θ)+isin⁡(−θ)=cos⁡θ−isin⁡θ.\begin{aligned} e^{-i\theta} &=\cos(-\theta)+i\sin(-\theta)\\ &=\cos\theta-i\sin\theta. \end{aligned}