Integration by Parts (IBP): The Ultimate Guide with Practice Problems

IBP is the reverse of the product rule for integration.

Core Theorem
udv=uvvdu\int u \, dv = uv - \int v \, du

Practice Exercises


Example 01Medium
Evaluate xexdx\int x e^x \, dx.
NEED A HINT?
Use LIATE: xx is Algebraic (choose as uu), exe^x is Exponential (choose as dvdv).
SHOW DETAILED EXPLANATION

Step 1: Assign uu and dvdv

u=x,dv=exdxu = x, dv = e^x dx.

Step 2: Find dudu and vv

du=dx,v=exdu = dx, v = e^x.

Step 3: Apply Formula

xexexdx=xexex+Cxe^x - \int e^x \, dx = xe^x - e^x + C.
Example 02Easy
Evaluate lnxdx\int \ln x \, dx.
NEED A HINT?
Treat lnx\ln x as lnx1\ln x \cdot 1. Use LIATE: lnx\ln x is Logarithmic (choose as uu).
SHOW DETAILED EXPLANATION

Step 1: Assign uu and dvdv

u=lnx,dv=dxu = \ln x, dv = dx.

Step 2: Find dudu and vv

du=1xdx,v=xdu = \frac{1}{x} dx, v = x.

Step 3: Apply Formula

xlnxx1xdx=xlnxx+Cx \ln x - \int x \cdot \frac{1}{x} \, dx = x \ln x - x + C.
Example 03Hard
Evaluate x2cosxdx\int x^2 \cos x \, dx.
NEED A HINT?
You will need to apply IBP twice (or use the Tabular Method). Choose u=x2u = x^2 to reduce its degree.
SHOW DETAILED EXPLANATION

Step 1: First IBP

Let u=x2,dv=cosxdx    du=2xdx,v=sinxu = x^2, dv = \cos x dx \implies du = 2x dx, v = \sin x. Result: x2sinx2xsinxdxx^2 \sin x - \int 2x \sin x \, dx.

Step 2: Second IBP

For 2xsinxdx\int 2x \sin x \, dx, let u=2x,dv=sinxdx    du=2dx,v=cosxu = 2x, dv = \sin x dx \implies du = 2 dx, v = -\cos x.

Step 3: Final Consolidation

x2sinx(2xcosx+2sinx)=x2sinx+2xcosx2sinx+Cx^2 \sin x - (-2x \cos x + 2 \sin x) = x^2 \sin x + 2x \cos x - 2 \sin x + C.
Common Pitfalls
  • Wrong 'u' SelectionChoosing uu based on what looks 'easy' rather than LIATE can lead to an even more complex integral. For xlnxdx\int x \ln x \, dx, picking u=xu=x makes it harder; always prioritize Logarithms as uu.
  • Nested Sign ErrorsWhen performing multiple steps of IBP, it's very easy to lose track of the negative signs from the formula vdu\int v \, du, especially when vv itself contains a negative sign (like cosx-\cos x).
  • The +C Missing LinkIBP is an indefinite integration technique. Forgetting to add the constant of integration (+C+C) after the final step is a common point deduction in exams.
Gary Chang

Gary Chang

Calculus Educator

5+ Years of Calculus Teaching Experience | AP Calculus Specialist. Dedicated to helping students master calculus through step-by-step logic and clear visualizations.

Recommended Learning Path

Want a Structured Way to Score a 5 in ap calculus ab?

Don not learn in fragments. Follow our proven 30-day roadmap that connects every concept from Limits to Integrals.

Start Your 30-Day Journey →

Join thousands of students mastering AP Calculus with us.