Question Statement
Q17. Evaluate the integral:
∫x2sinxdx
Background and Explanation
Integration by parts is the reverse application of the product rule for differentiation, used when integrating products of functions—particularly when one function is algebraic (like a polynomial) and the other is trigonometric. When the algebraic function has a power greater than 1, we must apply integration by parts repeatedly, reducing the power each time until the remaining integral becomes straightforward.
Solution
Let I=∫x2sinxdx.
Step 1: First application of integration by parts
Following the LIATE rule (Logarithmic, Inverse, Algebraic, Trigonometric, Exponential), we choose the algebraic function as u to differentiate it (which reduces its power):
- Let u=x2, so dxdu=2x or du=2xdx
- Let dv=sinxdx, so v=∫sinxdx=−cosx
Applying the integration by parts formula ∫udv=uv−∫vdu:
I=x2(−cosx)−∫(−cosx)(2x)dx=−x2cosx+2∫xcosxdx
Step 2: Second application of integration by parts
The remaining integral ∫xcosxdx still requires integration by parts. Again, we choose the algebraic part as u:
- Let u=x, so du=dx
- Let dv=cosxdx, so v=∫cosxdx=sinx
Applying the formula again:
∫xcosxdx=xsinx−∫sinxdx=xsinx−(−cosx)=xsinx+cosx
Step 3: Substitute back and simplify
Substituting this result back into our expression for I:
I=−x2cosx+2(xsinx+cosx)+C=−x2cosx+2xsinx+2cosx+C
Where C is the constant of integration.
- Integration by parts formula: ∫udv=uv−∫vdu
- LIATE priority rule: For choosing u (priority order: Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential)
- Basic trigonometric integrals:
- ∫sinxdx=−cosx+C
- ∫cosxdx=sinx+C
- Power rule for differentiation: dxd(xn)=nxn−1
Summary of Steps
- Identify the method: Recognize this as a product of polynomial (x2) and trigonometric (sinx) functions requiring integration by parts.
- First IBP: Set u=x2 and dv=sinxdx to reduce the polynomial degree, yielding −x2cosx+2∫xcosxdx.
- Second IBP: Apply integration by parts again to ∫xcosxdx with u=x and dv=cosxdx.
- Evaluate the simpler integral: Compute ∫sinxdx=−cosx from the second application.
- Combine results: Substitute back to get −x2cosx+2(xsinx+cosx)+C.
- Final simplification: Expand and arrange terms to obtain −x2cosx+2xsinx+2cosx+C.