Integration by parts · Exercise-INTEGRATION-BY-PARTS-005
Step-by-step solved exercise: Integrals
Compute \(\displaystyle\int x^{2} e^{x}\,dx\).
Integration by parts · Exercise-INTEGRATION-BY-PARTS-005
Compute \(\displaystyle\int x^{2} e^{x}\,dx\).
Take \(\displaystyle u=x^{2}\) and \(\displaystyle dv=e^{x}\,dx\).
Compute \(\displaystyle du=2x\,dx\) and \(\displaystyle v=e^{x}\).
First application of the formula: the degree drops to \(\displaystyle x\).
Apply by parts again to \(\displaystyle \int x\,e^{x}\,dx\), which gives \(\displaystyle (x-1)e^{x}\) (as in the case of \(\displaystyle x\,e^{x}\)).
Substitute and simplify to get the final result.
Comment: Check: the derivative of \(\displaystyle (x^{2}-2x+2)e^{x}\) is \(\displaystyle x^{2}e^{x}\).
\(\displaystyle \left(x^{2} - 2 x + 2\right) e^{x} + C\)