The function is .
Differentiate on each side with respect to .
.
Quotient rule of derivatives: .
Derivative of the sine function: .
Derivative of cosine function: .
Trigonometric identity : .