The function is .
Apply derivative on each side with respect to .
.
Derivative of cosecant function : .
Derivative of sine function : .