The function is .
Apply derivative on each side with respect to .
Quotient rule of derivatives: .
Derivative of sine function : .
Derivative of cosine function : .
Pythagorean identity : .
.