| Integration by parts | |
|---|---|
| Definite |
Lesson
The theory — Integration by Parts
Integration by parts is the product rule integrated. From (uv)′ = u′v + uv′ it follows that ∫u dv = uv − ∫v du, where du = u′(x) dx and dv = v′(x) dx. It exchanges one integral for another, and helps when ∫v du is easier: u should become simpler when differentiated, and dv must be something you can integrate.
What each symbol means
u- the factor that is differentiated
dv- the rest of the integrand with dx, which is integrated to give v
Where the formula comes from
- Where the formula comes from. Integrate both sides of (uv)′ = u′v + uv′ to get uv = ∫v du + ∫u dv, and move ∫v du to the other side.
- Several rounds. Each round adds a boundary term, with alternating signs: ∫f dx = B1 − B2 + B3 − … ± ∫gK dx, where gK is the integral left after K rounds. That is the running equation the ladder prints. When gK is a multiple λ of f, the equation contains ∫f dx on both sides and can be solved unless the two cancel.
Problems solved in full
-
One round 3 steps
Find ∫x e2x dx.
-
The x gets simpler when differentiated, so it is u; e2x integrates easily, so it is dv:
-
One round of uv − ∫v du:
-
The integral left is in the table:
Answer
e2x(x/2 − 1/4) + C. Forgetting the second ½, the one that comes from integrating e2x again, gives −1/2 where −1/4 belongs.
-
-
A power times a sine 3 steps
Find ∫x sin 2x dx.
Show solution
-
u = x again; dv = sin 2x dx integrates to −½ cos 2x:
-
One round, with the sign of v carried through:
-
The integral left is in the table:
Answer
−(x/2) cos 2x + (1/4) sin 2x + C. The minus in v = −½ cos 2x is where the sign goes wrong; the tool calls the answer with every sign flipped exactly that, a wrong sign.
-
-
Two rounds 3 steps
Find ∫x² cos x dx.
Show solution
-
Round one, u = x²: the power drops to 1.
-
Round two, on ∫x sin x, u = x: the power drops to 0.
-
Put the two rounds together:
Answer
x² sin x + 2x cos x − 2 sin x + C. Each round lowers the power of x by one, so x² needs two rounds and xⁿ needs n. Keep the brackets until the end: the sign of the last term is where the slips happen.
-
-
ln x is u, whatever it is multiplied by 3 steps
Find ∫x² ln x dx for x > 0.
Show solution
-
ln x has no simple antiderivative to use as v, so it must be u; dv = x² dx:
-
One round. The x³ and the 1/x combine into a power:
-
The integral left is a power:
Answer
(x³/3) ln x − x³/9 + C. LIATE puts the logarithm before the algebraic factor for the reason in the first step: differentiating ln x turns it into the power 1/x, which the x³ from v then absorbs.
-
-
∫arctan x, which ends in a substitution 3 steps
Find ∫arctan x dx.
Show solution
-
As with ln x, write it as 1·arctan x, with u = arctan x and dv = 1·dx:
-
One round:
-
The integral left is a substitution, w = 1 + x², dw = 2x dx:
Answer
x arctan x − ½ ln(1 + x²) + C. No bars on the logarithm, because 1 + x² is never negative.
-
-
A cyclic integral with two different rates 3 steps
Find ∫e2x sin x dx.
Show solution
-
Call it I. Round one with u = sin x, dv = e2x dx:
-
Round two on ∫e2x cos x dx, again with the trigonometric factor as u:
-
The integral is back, a quarter of it. Solve for I:
Answer
e2x(2 sin x − cos x)/5 + C. The 5 is 2² + 1², which is how the two rates enter: for eax sin bx the divisor is a² + b². Keep u trigonometric in both rounds; switching to u = e2x in the second undoes the first, as the Undo preset shows for eˣ sin x.
-
-
A definite integral, boundary term evaluated 2 steps
Evaluate ∫0π x sin x dx.
Show solution
-
u = x, dv = sin x dx, v = −cos x. The boundary term is evaluated between the limits too:
-
Both parts at the limits:
Answer
π. The boundary term gives all of it, π, and the integral left gives 0, because sin π = sin 0 = 0.
-
-
A recurrence that is exact, and arithmetic that is not 4 steps
One round of parts on In = ∫01 xⁿeˣ dx, with u = xⁿ, gives In = e − n·In−1. Use it to find I4. Then run it ten times from I0 = e − 1 rounded to 1.7183, and see what I10 comes out as. Press The power falls: the page finds I2 = 0.7183 in two rounds.
Show solution
-
One round with u = xⁿ and dv = eˣ dx, between 0 and 1:
-
Two more rounds from the page's I2:
-
Now forward from the rounded start. Nine rounds in, the integral of a positive function has come out negative:
-
The start was off by 1.8172×10⁻⁵, and every round multiplies the error by n, ten rounds by 10!:
Answer
I4 = 9e − 24 ≈ 0.4645, and I10 is really 0.2280. The recurrence is exact; run forwards, it multiplies a rounding error by n!. Run it backwards, In−1 = (e − In)/n, and the error is divided by n each step instead: starting from the crude guess I20 = 0 gives I10 = 0.2280 to four decimals. The page stops after three rounds.
-
Learning path
Techniques of integration
References (2)
- The formula from the product rule (Theorem 3.1, ∫u dv = uv − ∫v du), the LIATE order (“Logarithmic Functions, Inverse Trigonometric Functions, Algebraic Functions, Trigonometric Functions, and Exponential Functions”) with the reason given for it, the reduction formula ∫xⁿeˣ dx = xⁿeˣ − n∫xⁿ⁻¹eˣ dx (exercise 48), and the device of taking the constant function 1 as the second factor (Example 3.5): G. Strang and E. Herman, Calculus Volume 2, OpenStax (2016), section 3.1, “Integration by Parts”.
- Two of the page's cases worked as a teacher works them: ∫ln x dx, where u = 1 with dv = ln x dx “would need to know the answer ahead of time” (Example 6), and ∫e^θ cos θ dθ, where two rounds give “the same integral on both sides … with a minus sign in front of it”, so the integral is added to both sides and the equation divided by 2 (Example 8): P. Dawkins, “Integration by Parts”, Paul's Online Notes, Calculus II, Lamar University (page last modified 31 July 2026).