Substitution reverses the chain rule. Integration by parts reverses the product rule. It is the tool for integrals of products where substitution fails, such as ∫ x eˣ dx, ∫ x sin x dx and ∫ ln x dx. In this lesson you will derive the formula, learn the LIATE rule for choosing which part to differentiate, use the tabular method for repeated parts, and handle the “loop” integrals like ∫ eˣ sin x dx that return to where they started.
In this lesson you will learn
- The formula ∫ u dv = uv − ∫ v du and where it comes from
- The LIATE rule for choosing u
- How to integrate ln x and inverse trig functions
- The tabular method for x²eˣ, x³ sin x and similar
- Solving loop integrals such as ∫ eˣ sin x dx
You should know the product rule, u-substitution and the standard integrals.
The Formula
Product rule: (uv)′ = u′v + uv′
Integrate: uv = ∫ u′v dx + ∫ uv′ dx
Rearrange: ∫ u v′ dx = uv − ∫ v u′ dx
Short form: ∫ u dv = uv − ∫ v du
The idea: you split the integrand into two parts. One part, u, gets differentiated (it should get simpler). The other part, dv, gets integrated (it must be something you can integrate). If the new integral ∫ v du is easier than the old one, you have won.
First Examples
∫ x eˣ dx
u = x du = dx
dv = eˣ dx v = eˣ
= x eˣ − ∫ eˣ dx = x eˣ − eˣ + C = eˣ(x − 1) + C
∫ x cos x dx
u = x du = dx
dv = cos x dx v = sin x
= x sin x − ∫ sin x dx = x sin x + cos x + C
Check the first answer by differentiating: (eˣ(x − 1))′ = eˣ(x − 1) + eˣ = x eˣ ✓.
Choosing u: the LIATE Rule
Choose u as the function that comes first in this list:
| Letter | Type | Examples |
|---|---|---|
| L | Logarithmic | ln x |
| I | Inverse trig | tan⁻¹x, sin⁻¹x |
| A | Algebraic (powers) | x, x², √x |
| T | Trigonometric | sin x, cos x |
| E | Exponential | eˣ, 2ˣ |
Functions early in the list get simpler when differentiated (ln x → 1/x, x² → 2x). Functions late in the list are easy to integrate. It is a guide, not a law, but it works for almost every exam question.
Integrating ln x
There seems to be no product, but you can always write ln x as ln x · 1.
∫ ln x dx
u = ln x du = (1/x) dx
dv = 1 dx v = x
= x ln x − ∫ x · (1/x) dx = x ln x − x + C
The same trick works for ∫ tan⁻¹x dx:
= x tan⁻¹x − ∫ x/(1 + x²) dx = x tan⁻¹x − ½ ln(1 + x²) + C
Repeated Parts: the Tabular Method
For ∫ x² eˣ dx, parts must be used twice. A table keeps the work tidy: differentiate u down to zero in one column, integrate dv in the other, then multiply diagonally with alternating signs + − + −.
Sign D (differentiate) I (integrate)
+ x² eˣ
− 2x eˣ
+ 2 eˣ
0 eˣ
∫ x² eˣ dx = x²eˣ − 2x eˣ + 2eˣ + C = eˣ(x² − 2x + 2) + C
Loop Integrals
Sometimes parts twice brings back the original integral. Then treat it as an unknown and solve an equation.
I = ∫ eˣ sin x dx
Parts (u = sin x): I = eˣ sin x − ∫ eˣ cos x dx
Parts again (u = cos x): ∫ eˣ cos x dx = eˣ cos x + ∫ eˣ sin x dx = eˣ cos x + I
So I = eˣ sin x − eˣ cos x − I
2I = eˣ(sin x − cos x)
I = ½ eˣ(sin x − cos x) + C
Keep the same type of function as u both times (here, the trig function). Switching halfway undoes the first step.
Definite Integrals by Parts
∫ₐᵇ u dv = [uv]ₐᵇ − ∫ₐᵇ v du
∫₀¹ x eˣ dx = [x eˣ]₀¹ − ∫₀¹ eˣ dx = e − (e − 1) = 1
Common Mistakes
- Choosing u badly, so the new integral is harder (for example u = eˣ in ∫ x eˣ dx).
- Sign errors in the minus before ∫ v du, especially in repeated parts.
- Forgetting the boundary term [uv] in definite integrals.
- Switching the choice of u halfway through a loop integral.
Practice Exercises
Exercise 1. Find ∫ x sin x dx.
Show answer
u = x, v = −cos x: −x cos x + sin x + C.
Exercise 2. Find ∫ x ln x dx.
Show answer
u = ln x, v = x²/2: (x²/2) ln x − ∫ x/2 dx = (x²/2) ln x − x²/4 + C.
Exercise 3. Evaluate ∫₁^e ln x dx.
Show answer
[x ln x − x]₁^e = (e − e) − (0 − 1) = 1.
Frequently Asked Questions
What is the formula for integration by parts?
The integral of u dv equals uv minus the integral of v du. It comes from integrating the product rule. Choose u to be the part that becomes simpler when differentiated and dv to be a part you can integrate.
What does LIATE stand for?
LIATE stands for Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential. When choosing u in integration by parts, pick the function type that appears first in this list. For example, in the integral of x times e to the x, choose u = x.
Summary
- ∫ u dv = uv − ∫ v du reverses the product rule.
- Choose u by LIATE; dv must be integrable.
- ∫ ln x dx = x ln x − x + C, using dv = dx.
- The tabular method handles polynomial × eˣ or trig quickly.
- Loop integrals are solved by treating the integral as an unknown.
Next: Trigonometric Integrals.
