Apply the product rule:
; to find :
Let .
The derivative of is itself.
Then, apply the chain rule. Multiply by :
The derivative of sine is cosine:
The result of the chain rule is:
; to find :
The derivative of sine is cosine:
The result is:
Now simplify:
The answer is:
/ 2 / 2 \ \ sin(x) \-sin(x) + 2*cos (x) - \- cos (x) + sin(x)/*sin(x)/*e
/ 2 / 2 \ \ sin(x) -\1 - 3*cos (x) + 6*sin(x) + \1 - cos (x) + 3*sin(x)/*sin(x)/*cos(x)*e