Academy
Formulas/maths/M3 De Moivre/Expanding cos nθ and sin nθ

Expanding cos nθ and sin nθ

Expand the RHS using the binomial theorem, then separate real and imaginary parts. Real part gives cos nθ as a polynomial in cos θ; imaginary part gives sin nθ. For example, cos 3θ = 4cos³θ − 3cos θ and sin 3θ = 3sin θ − 4sin³θ both fall out of (cis θ)³.
Derivation

De Moivre's theorem turns the problem of expanding cosnθ\cos n\theta and sinnθ\sin n\theta into a binomial expansion. The powers of ii separate the real and imaginary parts automatically.

The Method

By De Moivre's theorem:

cosnθ+isinnθ=(cosθ+isinθ)n\cos n\theta + i\sin n\theta = (\cos\theta + i\sin\theta)^n

Expand the right side using the binomial theorem, use the cycle i2=1i^2=-1, i3=ii^3=-i, i4=1i^4=1, then separate real and imaginary parts.

Case n=3n = 3

(cosθ+isinθ)3=cos3θ+3cos2θ(isinθ)+3cosθ(isinθ)2+(isinθ)3(\cos\theta + i\sin\theta)^3 = \cos^3\theta + 3\cos^2\theta(i\sin\theta) + 3\cos\theta(i\sin\theta)^2 + (i\sin\theta)^3 =cos3θ+3icos2θsinθ3cosθsin2θisin3θ= \cos^3\theta + 3i\cos^2\theta\sin\theta - 3\cos\theta\sin^2\theta - i\sin^3\theta

Real part:

cos3θ=cos3θ3cosθsin2θ=cos3θ3cosθ(1cos2θ)\cos 3\theta = \cos^3\theta - 3\cos\theta\sin^2\theta = \cos^3\theta - 3\cos\theta(1-\cos^2\theta) cos3θ=4cos3θ3cosθ\boxed{\cos 3\theta = 4\cos^3\theta - 3\cos\theta}

Imaginary part:

sin3θ=3cos2θsinθsin3θ=3(1sin2θ)sinθsin3θ\sin 3\theta = 3\cos^2\theta\sin\theta - \sin^3\theta = 3(1-\sin^2\theta)\sin\theta - \sin^3\theta sin3θ=3sinθ4sin3θ\boxed{\sin 3\theta = 3\sin\theta - 4\sin^3\theta}

Case n=4n = 4

(cosθ+isinθ)4=cos4θ+4icos3θsinθ6cos2θsin2θ4icosθsin3θ+sin4θ(\cos\theta + i\sin\theta)^4 = \cos^4\theta + 4i\cos^3\theta\sin\theta - 6\cos^2\theta\sin^2\theta - 4i\cos\theta\sin^3\theta + \sin^4\theta

Real part:

cos4θ=cos4θ6cos2θsin2θ+sin4θ\cos 4\theta = \cos^4\theta - 6\cos^2\theta\sin^2\theta + \sin^4\theta

Using sin2θ=1cos2θ\sin^2\theta = 1 - \cos^2\theta:

=cos4θ6cos2θ(1cos2θ)+(1cos2θ)2=8cos4θ8cos2θ+1= \cos^4\theta - 6\cos^2\theta(1-\cos^2\theta) + (1-\cos^2\theta)^2 = 8\cos^4\theta - 8\cos^2\theta + 1

Imaginary part:

sin4θ=4cos3θsinθ4cosθsin3θ=4sinθcosθ(cos2θsin2θ)=2sin2θcos2θ\sin 4\theta = 4\cos^3\theta\sin\theta - 4\cos\theta\sin^3\theta = 4\sin\theta\cos\theta(\cos^2\theta - \sin^2\theta) = 2\sin 2\theta\cos 2\theta

(Consistent with sin4θ=sin2(2θ)=2sin2θcos2θ\sin 4\theta = \sin 2(2\theta) = 2\sin 2\theta\cos 2\theta.) \checkmark

The General Pattern

For general nn, the binomial expansion of (cosθ+isinθ)n(\cos\theta + i\sin\theta)^n gives:

  • cosnθ\cos n\theta = sum of even-powered terms (i0=1i^0=1, i2=1i^2=-1, i4=1i^4=1, ...) — a polynomial in cosθ\cos\theta of degree nn
  • sinnθ\sin n\theta = sum of odd-powered terms (i1=ii^1=i, i3=ii^3=-i, ...) — always has a sinθ\sin\theta factor, multiplied by a polynomial in cosθ\cos\theta of degree n1n-1

This gives the Chebyshev-type expansions: cosnθ\cos n\theta as a degree-nn polynomial in cosθ\cos\theta, which is the foundation of Chebyshev polynomials Tn(cosθ)=cosnθT_n(\cos\theta) = \cos n\theta.