Perform the subtraction and use the fundamental identities to simplify.
cotx-(csc^2x)/(cotx)
cotx-(csc^2x)/(cotx)