{tan^2x+cotx divided by tanx-cotx} is equal to {1 divided by sin^2x-cos^2x}

this is not an identity, I tested it for 30 degrees and the LS was not equal to the RS

However, it did work for

(tanx + cotx)/(tanx - cotx) = 1/(sin^2x - cos^2x)

confirm please