Differentiate term by term:
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:
The derivative of a constant times a function is the constant times the derivative of the function.
Apply the power rule: goes to
So, the result is:
The result is:
The answer is:
sin(x) -2 + cos(x)*e
/ 2 \ sin(x) \cos (x) - sin(x)/*e