You can put this solution on YOUR website! ,after applying de Moivre's and direct expansion.
= .
Now equate the imaginary parts of the first complex quantity and the last complex quantity.
==>
==>
==> , or .
As an added bonus, what would happen if you equated the real parts of the first complex quantity and the last complex quantity? Try it out yourself.