\
The function is
.
Differentiate on each side with respect to
.

Derivative of the cosecant function
.

Differentiate on each side with respect to
.
Product rule of derivatives:
.
.
Derivative of the cotangent function
. \ \

\

Substitute
in the above function.

.
\
.