Find ∫x2exdx.
Solution We use the integration by parts formula with u=x2anddv=exdx
Then du=2xdxandv=∫exdx=ex
475
and ∫x2exdx=x2ex−2∫xexdx
The integral on the right is simpler than the original integral. To find it, we use integration by parts a second time. (Refer to Example 1.)
∫xexdx=xex−ex
Then ∫x2exdx=x2ex−2(xex−ex)+C=ex(x2−2x+2)+C