The function is .
Apply derivative on each side with respect to .
Constant multiple rule of derivatives: .
The derivative of cosine function:.
.