Check out the attached image below for the steps on how to do this derivation.
------------
Some notes:
For line 2, I used the identity
For line 7, I applied the reciprocal to both sides.
For line 8, I used the identity
For line 9, I used the identty which is a rearrangement of
For lines 1 through 6, I'm isolating tan^2, so that I can later transform that into cot^2, which leads to csc^2. All of this is done through the identities mentioned above.