Solución

2cscx(csc2x+cot2x)2\csc x\left( {{{\csc }^2}x + {{\cot }^2}x} \right)