Yesterday I made a test of complex variables, and this contained a question (in which I could not solve) that asked to use the de Moivre formulas to deduce the following trigonometric identities:
$$\sin 2\theta=2\sin\theta\cos\theta\\\cos 2\theta=\cos^2{\theta}-\sin^2\theta$$How could I have them resolved?
Recall that $e^{ix} = \cos(x) + i \sin(x)$. Replacing $x$ by $2x$, we get $$e^{2ix} = \cos(2x) + i \sin(2x) \tag{$\star$}$$ We also have $$e^{2ix} = (e^{ix})^2 = (\cos(x) + i \sin(x))^2 = \cos^2(x) - \sin^2(x) + i (2\sin(x) \cos(x)) \tag{$\dagger$}$$ Comparing the real and imaginary parts of $\star$ and $\dagger$, we get what you want.