Question Statement
Q9. Evaluate ∫x2exdx
Background and Explanation
This problem requires integration by parts, a technique derived from the product rule for differentiation. When integrating a product of a polynomial and an exponential function, we apply integration by parts repeatedly—reducing the power of the polynomial each time until we obtain a simple exponential integral.
Solution
Let
I=∫x2exdx
Applying integration by parts (treating x2 as the first function and ex as the second function):
=x2∫exdx−∫(∫exdx)×dxd(x2)dx=x2⋅ex−∫ex⋅2xdx=x2⋅ex−2∫xexdx
Again applying integration by parts to evaluate ∫xexdx (treating x as the first function and ex as the second):
=x2ex−2[x∫exdx−∫(∫exdx)×dxd(x)dx]=x2ex−2[x⋅ex−∫ex⋅1dx]=x2ex−2xex+2∫exdx=x2ex−2x⋅ex+2ex+c=ex(x2−2x+2)+c
- Integration by parts: ∫uvdx=u∫vdx−∫(∫vdx)dxdudx (or equivalently ∫udv=uv−∫vdu)
- Power rule: dxd(xn)=nxn−1
- Exponential integral: ∫exdx=ex+C
Summary of Steps
- Set up the integral I=∫x2exdx and apply integration by parts with u=x2 and dv=exdx.
- Compute to obtain x2ex−2∫xexdx.
- Apply integration by parts again to the remaining integral with u=x and dv=exdx.
- Evaluate to get xex−ex and substitute back into the expression from step 2.
- Simplify to x2ex−2xex+2ex+c.
- Factor out ex to obtain the final answer ex(x2−2x+2)+c.