# How do you differentiate f(x)=e^(x^3-x^2-4)  using the chain rule?

I found: $y = \left(3 {x}^{2} - 2 x\right) {e}^{{x}^{3} - {x}^{2} - 4}$
First you derive $e$ alone as it is and then multiply by the derivative of the exponent (in red):
$y = {e}^{{x}^{3} - {x}^{2} - 4} \cdot \left[\textcolor{red}{3 {x}^{2} - 2 x}\right]$