x e *cos(x)
d / x \ --\e *cos(x)/ dx
Apply the product rule:
; to find :
The derivative of is itself.
; to find :
The derivative of cosine is negative sine:
The result is:
Now simplify:
The answer is:
x x cos(x)*e - e *sin(x)
x -2*(cos(x) + sin(x))*e