Dove's LibraryDove's Library

6.11 Integrating Using Integration by Parts (BC ONLY)

Introduction

Note: this is a BC Calculus topic only. It isn’t on the AB exam.
Integration by parts is the reverse of the product rule for derivatives. You use it when the integrand is a product of two functions that doesn’t fit any u-substitution pattern.

The Integration by Parts Formula

∫f(x)⋅g′(x) dx=f(x)⋅g(x)−∫f′(x)⋅g(x) dx\boxed{\int f(x) \cdot g'(x) \, dx = f(x) \cdot g(x) - \int f'(x) \cdot g(x) \, dx}
Alternative notation, using uu and vv:
∫u dv=uv−∫v du\boxed{\int u \, dv = uv - \int v \, du}
Key pattern: the formula has gg (not g′g') on the right side, and it switches from ff to f′f' inside the remaining integral.

Derivation from the Product Rule

Integration by parts comes straight from the product rule for derivatives.
Product rule:
ddx[f(x)⋅g(x)]=f′(x)g(x)+f(x)g′(x)\frac{d}{dx}[f(x) \cdot g(x)] = f'(x)g(x) + f(x)g'(x)
Solve for f(x)g′(x)f(x)g'(x):
f(x)g′(x)=ddx[f(x)⋅g(x)]−f′(x)g(x)f(x)g'(x) = \frac{d}{dx}[f(x) \cdot g(x)] - f'(x)g(x)
Integrate both sides:
∫f(x)g′(x) dx=∫ddx[f(x)⋅g(x)] dx−∫f′(x)g(x) dx\int f(x)g'(x) \, dx = \int \frac{d}{dx}[f(x) \cdot g(x)] \, dx - \int f'(x)g(x) \, dx∫f(x)g′(x) dx=f(x)g(x)−∫f′(x)g(x) dx\int f(x)g'(x) \, dx = f(x)g(x) - \int f'(x)g(x) \, dx
That’s the integration by parts formula.

Choosing ff and g′g' (or uu and dvdv)

Critical decision: you have to figure out which part of the integrand is ff and which is g′g'.

Strategy for Choosing ff

Choose ff to be the function that gets simpler when you differentiate it.
Good choices for ff:
  • Polynomials like xx, x2x^2, x4x^4, which differentiate down to smaller powers
  • Logarithms like ln⁡x\ln x, which differentiates to 1x\frac{1}{x}
  • Inverse trig like tan⁡−1x\tan^{-1}x, which differentiates to something algebraic

Strategy for Choosing g′g'

Choose g′g' to be the function that’s easy to integrate.
Good choices for g′g':
  • Exponential functions like exe^x
  • Trig functions like sin⁡x\sin x and cos⁡x\cos x
  • Simple powers

LIATE Rule (Priority Order)

When in doubt, choose ff using this priority (first on the list is the best choice for ff):
  1. Logarithmic functions
  1. Inverse trig functions
  1. Algebraic functions (polynomials)
  1. Trigonometric functions
  1. Exponential functions

Example 1: Basic Integration by Parts

Evaluate ∫xsin⁡(x) dx\int x \sin(x) \, dx.
Step 1: Identify ff and g′g'.
Which one gets simpler when differentiated?
  • The derivative of xx is 11, which is simpler
  • The derivative of sin⁡x\sin x is cos⁡x\cos x, which isn’t simpler
So choose f(x)=xf(x) = x and g′(x)=sin⁡xg'(x) = \sin x.
Step 2: Find f′f' and gg.
f(x)=x⇒f′(x)=1f(x) = x \quad \Rightarrow \quad f'(x) = 1g′(x)=sin⁡x⇒g(x)=−cos⁡xg'(x) = \sin x \quad \Rightarrow \quad g(x) = -\cos x
Step 3: Apply the formula.
∫f⋅g′ dx=f⋅g−∫f′⋅g dx\int f \cdot g' \, dx = f \cdot g - \int f' \cdot g \, dx∫xsin⁡(x) dx=x⋅(−cos⁡x)−∫1⋅(−cos⁡x) dx\int x \sin(x) \, dx = x \cdot (-\cos x) - \int 1 \cdot (-\cos x) \, dx=−xcos⁡x−∫(−cos⁡x) dx=−xcos⁡x+∫cos⁡x dx= -x\cos x - \int (-\cos x) \, dx = -x\cos x + \int \cos x \, dx
Step 4: Integrate what’s left.
=−xcos⁡x+sin⁡x+C= -x\cos x + \sin x + C
Verification tip: take the derivative of your answer to check.
ddx[−xcos⁡x+sin⁡x]=−cos⁡x+xsin⁡x+cos⁡x=xsin⁡x✓\frac{d}{dx}[-x\cos x + \sin x] = -\cos x + x\sin x + \cos x = x\sin x \quad \checkmark

Example 2: A Definite Integral

Evaluate ∫1exln⁡x dx\int_1^e x\ln x \, dx.
For a definite integral, evaluate the f⋅gf \cdot g part at the limits too:
∫abf(x)⋅g′(x) dx=[f(x)⋅g(x)]ab−∫abf′(x)⋅g(x) dx\boxed{\int_a^b f(x) \cdot g'(x) \, dx = \Big[f(x) \cdot g(x)\Big]_a^b - \int_a^b f'(x) \cdot g(x) \, dx}
Step 1: Identify ff and g′g'. By LIATE, the logarithm comes first, so f(x)=ln⁡xf(x) = \ln x and g′(x)=xg'(x) = x.
f(x)=ln⁡x⇒f′(x)=1xf(x) = \ln x \quad \Rightarrow \quad f'(x) = \frac{1}{x}g′(x)=x⇒g(x)=x22g'(x) = x \quad \Rightarrow \quad g(x) = \frac{x^2}{2}
Step 2: Apply the formula.
∫1exln⁡x dx=[x22ln⁡x]1e−∫1e1x⋅x22 dx=[x22ln⁡x]1e−∫1ex2 dx\int_1^e x\ln x \, dx = \left[\frac{x^2}{2}\ln x\right]_1^e - \int_1^e \frac{1}{x} \cdot \frac{x^2}{2} \, dx = \left[\frac{x^2}{2}\ln x\right]_1^e - \int_1^e \frac{x}{2} \, dx
Step 3: Evaluate. Remember ln⁡e=1\ln e = 1 and ln⁡1=0\ln 1 = 0.
=(e22⋅1−12⋅0)−[x24]1e=e22−(e24−14)=e2+14≈2.097= \left(\frac{e^2}{2} \cdot 1 - \frac{1}{2} \cdot 0\right) - \left[\frac{x^2}{4}\right]_1^e = \frac{e^2}{2} - \left(\frac{e^2}{4} - \frac{1}{4}\right) = \frac{e^2 + 1}{4} \approx 2.097
Why not f=xf = x? Then g′=ln⁡xg' = \ln x, and you’d have to integrate ln⁡x\ln x before you could even start, which takes integration by parts all over again.

Tabular Integration (Repeated Integration by Parts)

When one function has to be differentiated several times before it hits zero, tabular integration is a shortcut.

When to Use It

Use it when:
  • One part is a polynomial (so it can be differentiated down to zero)
  • The other part is easy to integrate over and over, like sin⁡x\sin x, cos⁡x\cos x, or exe^x

Example: ∫x4sin⁡(x) dx\int x^4 \sin(x) \, dx

Step 1: Set up the table.
Column 1 (differentiate ff): keep differentiating until you reach 0.
x44x312x224x240\begin{array}{c} x^4 \\ 4x^3 \\ 12x^2 \\ 24x \\ 24 \\ 0 \end{array}
Column 2 (integrate g′g'): integrate the same number of times.
sin⁡x−cos⁡x−sin⁡xcos⁡xsin⁡x−cos⁡x\begin{array}{c} \sin x \\ -\cos x \\ -\sin x \\ \cos x \\ \sin x \\ -\cos x \end{array}
Step 2: Draw diagonal arrows from each term in Column 1 to the term one row below in Column 2.
  • x4→−cos⁡xx^4 \rightarrow -\cos x
  • 4x3→−sin⁡x4x^3 \rightarrow -\sin x
  • 12x2→cos⁡x12x^2 \rightarrow \cos x
  • 24x→sin⁡x24x \rightarrow \sin x
  • 24→−cos⁡x24 \rightarrow -\cos x
Step 3: Assign alternating signs, starting with (+)(+).
(+)x4→−cos⁡x(−)4x3→−sin⁡x(+)12x2→cos⁡x(−)24x→sin⁡x(+)24→−cos⁡x\begin{array}{cc} (+) & x^4 \rightarrow -\cos x \\ (-) & 4x^3 \rightarrow -\sin x \\ (+) & 12x^2 \rightarrow \cos x \\ (-) & 24x \rightarrow \sin x \\ (+) & 24 \rightarrow -\cos x \end{array}
Step 4: Multiply along the arrows and combine with the signs.
∫x4sin⁡x dx=(+)(x4)(−cos⁡x)+(−)(4x3)(−sin⁡x)+(+)(12x2)(cos⁡x)\int x^4\sin x \, dx = (+)(x^4)(-\cos x) + (-)(4x^3)(-\sin x) + (+)(12x^2)(\cos x)+(−)(24x)(sin⁡x)+(+)(24)(−cos⁡x)+C+ (-)(24x)(\sin x) + (+)(24)(-\cos x) + C=−x4cos⁡x+4x3sin⁡x+12x2cos⁡x−24xsin⁡x−24cos⁡x+C= -x^4\cos x + 4x^3\sin x + 12x^2\cos x - 24x\sin x - 24\cos x + C
Why this works: it’s exactly what you’d get from doing integration by parts four times in a row, just organized efficiently.

Note on Multiple Choice

On AP exams, the answer choices sometimes include an intermediate step with a remaining integral in it:
−x4cos⁡x+4x3sin⁡x+∫(…) dx-x^4\cos x + 4x^3\sin x + \int (\ldots) \, dx
If you spot that pattern in the choices, don’t automatically finish every step. You might save yourself some time.

Key Takeaways

  • Formula: ∫f⋅g′ dx=f⋅g−∫f′⋅g dx\int f \cdot g' \, dx = f \cdot g - \int f' \cdot g \, dx
  • Choose ff to be the function that gets simpler when differentiated (polynomials, ln⁡x\ln x, inverse trig)
  • Choose g′g' to be the function that’s easy to integrate (exe^x, sin⁡x\sin x, cos⁡x\cos x)
  • LIATE rule: logarithmic, then inverse trig, then algebraic, then trig, then exponential
  • Don’t just go left to right. Pick ff and g′g' strategically
  • It comes from the product rule. Integration by parts reverses it
  • You may need multiple applications. Sometimes the leftover integral needs parts again
  • Tabular integration is an efficient shortcut when one part differentiates down to zero
  • Tabular signs alternate: (+),(−),(+),(−),…(+), (-), (+), (-), \ldots starting with (+)(+)
  • Check your work by differentiating your answer to see if you get the original integrand
  • BC only. Not tested on the AB exam

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.