Hi, I'm having a little trouble of finding the derivative of something like this:

y=e^{-2x + (x^2)}

So I'm a bit confused.

Like my teacher shows me the derivatove of 4e^{sinx}= 4e^{sinx}* cosx

There, I tried the same method, doing y' = e^{2x + (x^2)}* e^{-2x + 2x }Though... in the back of the book, it had 2(x-1)e^{-2x + (x^2) }

I searched up this up, and found that there are rules like this?

But after that... I end up with 2 'e'

I'm not really sure right now.

Can someone explain?

Thanks