x^2 * e^x
y = (x^2)(e^x) - 2x(e^x) + 2(e^x)
=> y = (e^x)(x^2 - 2x + 2) .................................we need the product rule for this, hope you remember it
=> y' = (e^x)(x^2 - 2x + 2) + (e^x)(2x - 2) ...........now simplify
=> y' = (e^x)(x^2 - 2x + 2 + 2x - 2)
=> y' = (e^x)(x^2)