I started learning calculus. I am in the derivatives stage.

I am following the book “Calculus Demystified”. However I don’t understand the result of the derivative of [ e^x^2].

( ^ means raised to the power )

In my calculation I did this:

If (f ◦ g)(x) = e^x^2 and f(s) = s^2

Considering that ((f ◦ g)(x))’ =[ df/ds(g(x))].d/dx(f(x))

then ((f ◦ g)(x))’ = 2(e^x) . (e^x) = 2e^2x


But the book says that the resulting derivative is 2x.e^x^2.

If the book is correct, could someone explain how this derivative was calculated ?