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