To get from , use and then recall DeMoivre's Theorem: . This will involve a handful of manipulations to get to the result.
Finally, the last result is achieved by taking the imaginary part of each complex term (which is why everything is in terms of sine in the end).
I hope this kinda gives you an idea of how to do this. I hope this makes sense!!