I don't think I'm very close, but I can see on the right side that (tanx+cotx)^2 would be equal to tan^2x+2tanxcotx+cot^2 and I'm assuming the 2 coefficient is where the 2 in the - 2 is coming from if that makes sense. Although now that I think about that doesn't really make sense at all.
I've also tried setting it up like (sin^2x)/(cos^2x) + (cos^2x)/(sin^2x) and then getting a common denominator but I'm not sure where to go from there.
I also tried setting it up (1-sec^2x)+(1-csc^2) but I again couldn't think of anywhere to go from there and have a feeling that's not part of the solution.
Thanks for any help...