The function is .
Differentiate on each side with respect to .
Product rule of derives: .
Derivative of sine function: .
Derivative of cosine function: .
.