Because you're given the formula above, divide by (because it's different to 0, we can do it)
Now, it would be great if it could be simplified.
You can notice that it looks like a lot de Moivre's formula :
So we're gonna make a transform... According to the unit circle (or to your lesson) :
Now we can apply de Moivre's formula :