Put all the terms with on one side and all the terms with on the other. Then factor out and from their respective sides, so you get something like:

Now assuming and , divide everything by , and you'll need to remember a very well known trig identity here to complete the final step.