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

A6 · Lesson 43 · Euler's formula from series

Why Euler's formula is true

In A3 you watched the series for ejθ spiral onto the unit circle and took Euler's formula on trust. With Taylor series in hand you can now prove it in three lines, and then prove it a second, completely different way. Two independent proofs of the same surprising fact are worth having: this formula carries all of AC circuit analysis.

Play

  • The yellow and blue curves are cos⁡θ and sin⁡θ. The dashed curves are the real and imaginary parts of the series for ejθ, added up to the power N.
  • Raise N. Which terms of the series build the cosine, and which build the sine?
  • With N=12, how far out in θ do the dashed curves still match?

Predict

In the series ∑(jθ)n/n!, the term with n=4 is (jθ)4/4!. Is it real or imaginary, and what sign?

Name it

Proof 1: from the series

Put x=jθ into ex=∑xn/n! and sort the terms by the powers of j:

ejθ=(1−θ22!+θ44!−⋯)+j(θ−θ33!+θ55!−⋯)=cos⁡θ+jsin⁡θ

Rearranging the terms of an infinite series is allowed here because the series converges absolutely: the sum of the sizes of its terms, ∑|θ|n/n!=e|θ|, is finite.

Proof 2: from derivatives

Let g(θ)=cos⁡θ+jsin⁡θ. Its derivative is

g′(θ)=−sin⁡θ+jcos⁡θ=j(cos⁡θ+jsin⁡θ)=jg(θ)

and g(0)=1. The function ejθ has exactly the same two properties: derivative j times itself, and value 1 at 0. A differential equation like g′=jg with a given starting value has only one solution (A8 shows why), so the two functions are the same.

What follows

  • De Moivre's formula: (cos⁡θ+jsin⁡θ)n=ejnθ=cos⁡nθ+jsin⁡nθ. Expanding the left side gives multiple-angle formulas for free: the real part of (cos⁡θ+jsin⁡θ)2 is cos2⁡θ−sin2⁡θ=cos⁡2θ.
  • Cosine and sine as exponentials: cos⁡θ=ejθ+e−jθ2 and sin⁡θ=ejθ−e−jθ2j.
  • Hyperbolic functions are the same formulas without the j: cosh⁡x=ex+e−x2 and sinh⁡x=ex−e−x2. They describe a hanging cable, and they turn up in transmission-line formulas (C10).

Worked example

Add the real terms of the series for ejπ/3 up to the fourth power, and compare with cos⁡60°.

Show the solution
  1. Add the real terms. With θ=π/3=1.047198: 1−θ22+θ424=1−0.548311+0.050108=0.501796
  2. Compare. cos⁡60°=0.5, so three real terms are already within 0.002.

Answer the real terms add to 0.501796, within 0.002 of cos⁡60°=0.5.

Worked example

Use Euler's formula to show that cos2⁡θ=12(1+cos⁡2θ).

Show the solution
  1. Write cosine with exponentials. cos⁡θ=ejθ+e−jθ2
  2. Square it. cos2⁡θ=e2jθ+2+e−2jθ4=2+2cos⁡2θ4=12(1+cos⁡2θ)
  3. See why it works. Squaring exponentials only adds exponents, which is why Euler's formula turns trigonometric identities into algebra.

Answer cos2⁡θ=12(1+cos⁡2θ), as claimed.

Worked example

What is jj?

Show the solution
  1. Write j as an exponential. j=ejπ/2
  2. Raise it to the power j. jj=(ejπ/2)j=ej2π/2=e−π/2=0.2079 a real number.
  3. Note the other values. Since j is also ej(π/2+2πk), jj has other values too, e−π/2−2πk; 0.2079 is the principal one.

Answer jj=e−π/2=0.2079, a real number (the principal value).

Check

In the series for ejθ, the term (jθ)7/7! equals cθ7/7! times either 1 or j. What is the real coefficient c if the term is real, or 0 if it's imaginary?

Check

Add the real terms of the series for ej1 up to the fourth power.

Check

Using de Moivre, cos⁡3x is the real part of (cos⁡x+jsin⁡x)3. Expand it and write cos⁡3x in terms of cos⁡x and sin⁡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°.

Check

Proof 2 shows g(θ)=cos⁡θ+jsin⁡θ satisfies g′=jg with g(0)=1. Why does that make g=ejθ?

Check

Use Euler's formula with θ = 1 rad.

(a)

What is Reejθ?

(b)

What is Re(ejθ)2?

Check

Get the double-angle formulas from Euler's formula.

Step 1

Expand (cos⁡θ+jsin⁡θ)2. What is its real part?

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

Explain in a few sentences why the series for ejθ splits into the cosine series and the sine series.

Practice

Keep practicing

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