The function is .
Rewrite the expression.
.
Apply derivative on each side with respect to .
Product rule of derivatives : .
Derivative of cosine function : .