We saw in the last section that:
(cosq+isinq)n=(cosnq+isinnq)
Alternatively, we could say that:
(cosnq+isinnq)=(cosq+isinq)n
Now if we write c for cosq and s for sinq, for the sake of brevity, we can expand that right-hand side using the binomial theorem (see MathHelp notebook on Series if you're not familiar with that).
For example, suppose n=3. The right-hand side becomes:
(c+is)3=c3+3c2is+3c(is)2 +(is)3.
This simplifies to:
(c+is)3=c3+3isc2-3cs2- is3
Now here's the point of doing all that, we can now compare the real and imaginary parts of the original equation. Here's what I mean. Here's the original equation again (with n=3), but with this new version of the right-hand side:
(cos3q+isin3q)=c3+3isc2-3cs2- is3.
The real part of the left-hand side must be equal to the real part of the right-hand side and similarly for the imaginary parts, so:
cos3q=c3-3cs2
and
sin3q=3sc2-s3.
What we have done is find a quick way to expand cos3q and sin3q in terms of powers of cosq and sinq.
This works for larger powers too. Here's another example, what is the expansion of cos(5q) in powers of cosq and sinq?
You have a go and then check your answer.