We can derive multiple angle identities for trigonometric functions fairly easily using complex analysis and the binomial theorem.
For , we can integrate fairly trivially for , with the latter involving some manipulation using trigonometric identities. For , we can do it term-by-term using integration by parts, but this is computationally intensive for large and frankly dull as shit. Instead, we turn to De Moivre’s theorem and the binomial theorem.
From De Moivre’s theorem, we have:
So our central problem examines and for .
The steps
Let , and say we want to integrate . We expand using the binomial theorem, since our identity above with subtraction has an output with . Expanding and grouping some terms together, we get:
Then explicitly using the identity above, we rewrite our expansion:
So we just derived a multiple angle formula for fairly quickly, which is in an easier form to integrate. How neat!
The inverse
The reverse holds true too! For some multiple angle input of or , we can expand and set it equal to . The real and imaginary parts respectively make up some equivalent identity.