Find the derivative of y =x^2 e^x

use the product rule y' = u'v + uv'

y' = (2x)(e^x) + (x^2)(e^x) = e^x (x^2+2x)