To solve this integral you should use the integration by parts formula, which is uv - integral of vu'. First let x^2 be u, therefore u'(the differential of x^2) = 2x, v' = e^x and therefore v (integral of e^x ) = e^x. Then put each of these values into the formula to get x^2e^x - (Integral of 2xe^x ). You then have to use the formula once again, setting u=2x , u' =2 , v' = e^x ,v= e^x, Substitue into formula to get, x^2e^x - (2xe^x - Integral of 2e^x) Which then simplifies to: x^2e^x -2xe^x -2e^x +C (not forgetting the constant of integration.