On the left, replacing everything with sine and cosine, gives:

Getting common denominators in both the numerator and the denominator:

Remember that dividing by a fraction is the same as multiplying by the reciprocal:

.

The should cancel, as does a single and voila!