Consider the LHS of the expression.
⇒(cscθ−cotθ)2
⇒(1sinθ−cosθsinθ)2
⇒(1−cosθsinθ)2
⇒(1−cosθ)2sin2θ
⇒(1−cosθ)21−cos2θ
⇒(1−cosθ)(1−cosθ)(1+cosθ)(1−cosθ)
⇒1−cosθ1+cosθ=RHS