A37 of 29
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A3 · Lesson 7 · Euler's formula

The exponential that goes around in a circle

The exponential function ex grows: it's the curve of compound interest and of runaway growth. Feed it an imaginary number, ejθ, and it does something that looks unrelated: it goes around in a circle, forever, never growing at all. Here's how you can watch that happen, one term at a time.

Play

  • The arrows add up the series for ejθ term by term, tip to tail: 1, then jθ, then (jθ)2/2!, and so on. N is how many terms after the first are included.
  • Raise N one step at a time and watch where the chain ends. The dot is the point at angle θ on the circle of radius 1.
  • Change θ. However large you make it (up to half a turn), does the chain still end on the circle?

Predict

Each term in the chain turns a quarter turn from the one before, and they get shorter. Where does the chain end once there are many terms?

Name it

ejθ=cos⁡θ+jsin⁡θ

The exponential has a power series, an infinite sum that converges for every x:

ex=1+x+x22!+x33!+x44!+⋯

(A6 shows where it comes from.) Put x=jθ and use the cycle of powers of j, which go 1,j,−1,−j,1,…:

ejθ=1+jθ−θ22!−jθ33!+θ44!+⋯

The real terms, 1−θ2/2!+θ4/4!−⋯, are the series for cos⁡θ, and the imaginary ones, θ−θ3/3!+⋯, are the series for sin⁡θ. So

ejθ=cos⁡θ+jsin⁡θ

with θ in radians. This is Euler's formula. It packs everything from the last three lessons into one expression:

  • ejθ is the arrow of length 1 at angle θ, so r∠θ=rejθ. That's the third form of a complex number, and the one the mathematics uses.
  • Exponents add when you multiply, ejαejβ=ej(α+β), which is why angles add when you multiply complex numbers. The angle-sum identities from A2 are its real and imaginary parts.
  • Special values follow directly: ejπ/2=j, ejπ=−1, ej2π=1.
  • Reading it backward gives cosine and sine as exponentials:
cos⁡θ=ejθ+e−jθ2sin⁡θ=ejθ−e−jθ2j

A cosine is two arrows turning in opposite directions, whose imaginary parts cancel. You'll meet that picture again in signals: it's why a real sinusoid has two lines in its spectrum, at +f and −f.

In the next lesson the angle grows with time, θ=ωt, and ejωt is an arrow turning at a steady rate: a sinusoid.

Worked example

Evaluate ejπ/3.

Show the solution
  1. Apply Euler's formula. ejπ/3=cos⁡π3+jsin⁡π3=0.5+0.866j
  2. Check the length. It's the point at 60° on the unit circle, and its length is 0.25+0.75=1 as every ejθ must be.

Answer ejπ/3=0.5+0.866j.

Worked example

Write 5ej2.5 in rectangular form.

Show the solution
  1. Real part. 5cos⁡2.5=5×(−0.801)=−4.006
  2. Imaginary part. 5sin⁡2.5=5×0.598=2.992
  3. Check the quadrant. 2.5 rad is 143.2°, in the second quadrant, so a negative real part and a positive imaginary part is right. Keep the calculator in radians for this.

Answer 5ej2.5=−4.006+2.992j.

Worked example

Use Euler's formula to find cos⁡75° and sin⁡75° from the 45° and 30° values.

Show the solution
  1. Split the angle. ej75°=ej45°ej30°=(0.7071+j0.7071)×(0.8660+j0.5)
  2. Real part. 0.7071×0.8660−0.7071×0.5=0.2588
  3. Imaginary part. 0.7071×0.5+0.7071×0.8660=0.9659
  4. Why it works. Multiplying exponentials adds their angles, so the angle-sum formulas come for free.

Answer cos⁡75°=0.2588 and sin⁡75°=0.9659.

Check

What is the real part of ej1.2, with the angle in radians?

Check

What is the magnitude of 4ej0.4?

Check

What is ejπ?

Check

Write cos⁡x using exponentials.

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

ej0.56×ej0.43 is an arrow of length 1. What is its angle, in radians?

Check

Let z=3ej0.5, with the angle in radians.

(a)

What is its real part?

(b)

What is its imaginary part?

(c)

What is the real part of z2?

Check

Derive cosine and sine from ejx and e−jx.

Step 1

Add ejx=cos⁡x+jsin⁡x and e−jx=cos⁡x−jsin⁡x.

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

In your own words, why does ejθ land on the circle of radius 1?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.