Apply the product rule:
; to find :
The derivative of a constant times a function is the constant times the derivative of the function.
The derivative of sine is cosine:
So, the result is:
; to find :
Apply the power rule: goes to
The result is:
Now simplify:
The answer is:
2 2 sin(x)*E + x*cos(x)*e
2 (2*cos(x) - x*sin(x))*e
2 -(3*sin(x) + x*cos(x))*e