I have to following problem:

Given that:

The problem is that i do not see the step between:

and:

I tried rewriting to cosine functions but that only got me deeper in to trouble leaving me with cot functions and i don't think that is what i want to get here.

I hope some one could me help me out, thanks in advance