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)dxAlternative notation, using u and v: ∫udv=uv−∫vduKey pattern: the formula has
g (not
g′) on the right side, and it switches from
f to
f′ inside the remaining integral.
Derivation from the Product Rule
Integration by parts comes straight from the product rule for derivatives.
Product rule:
dxd[f(x)⋅g(x)]=f′(x)g(x)+f(x)g′(x)Solve for f(x)g′(x): f(x)g′(x)=dxd[f(x)⋅g(x)]−f′(x)g(x)Integrate both sides:
∫f(x)g′(x)dx=∫dxd[f(x)⋅g(x)]dx−∫f′(x)g(x)dx∫f(x)g′(x)dx=f(x)g(x)−∫f′(x)g(x)dxThat’s the integration by parts formula.
Choosing f and g′ (or u and dv)
Critical decision: you have to figure out which part of the integrand is
f and which is
g′.
Strategy for Choosing f
Choose
f to be the function that
gets simpler when you differentiate it.
- Polynomials like x, x2, x4, which differentiate down to smaller powers
- Logarithms like lnx, which differentiates to x1
- Inverse trig like tan−1x, which differentiates to something algebraic
Strategy for Choosing g′
Choose
g′ to be the function that’s
easy to integrate.
- Exponential functions like ex
- Trig functions like sinx and cosx
LIATE Rule (Priority Order)
When in doubt, choose
f using this priority (first on the list is the best choice for
f):
- Logarithmic functions
- Inverse trig functions
- Algebraic functions (polynomials)
- Trigonometric functions
- Exponential functions
Example 1: Basic Integration by Parts
Evaluate
∫xsin(x)dx.
Step 1: Identify
f and
g′.
Which one gets simpler when differentiated?
- The derivative of x is 1, which is simpler
- The derivative of sinx is cosx, which isn’t simpler
So choose
f(x)=x and
g′(x)=sinx.
Step 2: Find
f′ and
g.
f(x)=x⇒f′(x)=1g′(x)=sinx⇒g(x)=−cosxStep 3: Apply the formula.
∫f⋅g′dx=f⋅g−∫f′⋅gdx∫xsin(x)dx=x⋅(−cosx)−∫1⋅(−cosx)dx=−xcosx−∫(−cosx)dx=−xcosx+∫cosxdxStep 4: Integrate what’s left.
=−xcosx+sinx+CVerification tip: take the derivative of your answer to check.
dxd[−xcosx+sinx]=−cosx+xsinx+cosx=xsinx✓
Example 2: A Definite Integral
Evaluate
∫1exlnxdx.
For a definite integral, evaluate the
f⋅g part at the limits too:
∫abf(x)⋅g′(x)dx=[f(x)⋅g(x)]ab−∫abf′(x)⋅g(x)dxStep 1: Identify
f and
g′. By LIATE, the logarithm comes first, so
f(x)=lnx and
g′(x)=x.
f(x)=lnx⇒f′(x)=x1g′(x)=x⇒g(x)=2x2Step 2: Apply the formula.
∫1exlnxdx=[2x2lnx]1e−∫1ex1⋅2x2dx=[2x2lnx]1e−∫1e2xdxStep 3: Evaluate. Remember
lne=1 and
ln1=0.
=(2e2⋅1−21⋅0)−[4x2]1e=2e2−(4e2−41)=4e2+1≈2.097Why not f=x? Then
g′=lnx, and you’d have to integrate
lnx 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 sinx, cosx, or ex
Example: ∫x4sin(x)dx
Step 1: Set up the table.
Column 1 (differentiate f): keep differentiating until you reach 0.
x44x312x224x240Column 2 (integrate g′): integrate the same number of times.
sinx−cosx−sinxcosxsinx−cosxStep 2: Draw diagonal arrows from each term in Column 1 to the term one row below in Column 2.
- x4→−cosx
- 4x3→−sinx
- 12x2→cosx
- 24x→sinx
- 24→−cosx
Step 3: Assign alternating signs, starting with
(+).
(+)(−)(+)(−)(+)x4→−cosx4x3→−sinx12x2→cosx24x→sinx24→−cosxStep 4: Multiply along the arrows and combine with the signs.
∫x4sinxdx=(+)(x4)(−cosx)+(−)(4x3)(−sinx)+(+)(12x2)(cosx)+(−)(24x)(sinx)+(+)(24)(−cosx)+C=−x4cosx+4x3sinx+12x2cosx−24xsinx−24cosx+CWhy 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:
−x4cosx+4x3sinx+∫(…)dxIf 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′⋅gdx
- Choose f to be the function that gets simpler when differentiated (polynomials, lnx, inverse trig)
- Choose g′ to be the function that’s easy to integrate (ex, sinx, cosx)
- LIATE rule: logarithmic, then inverse trig, then algebraic, then trig, then exponential
- Don’t just go left to right. Pick f and 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: (+),(−),(+),(−),… 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