The function is .
Differentiate on each side with respect to .
Derivative of sine function: . \ \
Derivative of co-tangent function: . \ \
.