derivatives f(x)=x(e^x -1)-1/2 x^2 The derivative is f'(x)=e^x -1+xe^x-x=(e^x-1)(x+1) And what about the derivative with e?

derivatives f(x)=x(e^x -1)-1/2 x^2 The derivative is f'(x)=e^x -1+xe^x-x=(e^x-1)(x+1) And what about the derivative with e?

f(x)=x(e^x -1)-1/2 x^2=xe^x -x-1/2 x^2
f'(x)=x'e^x-x(e^x)'-1-x=e^x-xe^x-1-x
Xe ^ x is a compound function derivative, according to the formula (AB) '= a'B + ab', the derivative of e ^ x is itself, 1 / 2 x ^ 2 and X derivative use (x ^ n) '= NX ^ (n-1)