y = ex is the inverse of y = ln x, so eln x = x and ln ex = x (using the property of inverse functions: f(f -1(x)) = x and f -1(f(x)) = x.
g'(x) = 1
f '(g(x))
=
1
f '(ex)
=
1
1/ex
= ex
So ex is its own derivative (natural, again)
y' = x2ex
+ ex(2x) (product rule)
= x2ex
+ 2xex
or
xex(x2 + 2)