Simplifying the LHS of tanA−cotA=1−2cos2AcosAsinA.
tanA−cotA=sinAcosA−cosAsinA
=sin2A−cos2AsinAcosA
=1−cos2A−cos2AsinAcosA
=1−2cos2AsinAcosA
=RHS