| Indefinite | |
|---|---|
| Definite: the limits move with u |
Lesson
The theory — Integration by Substitution
Integration by substitution is the chain rule read backwards. If an integrand has the form g(u(x))·u′(x) and G is an antiderivative of g, then G(u(x)) is an antiderivative of the integrand, because its derivative is G′(u(x))·u′(x). For a definite integral the limits move with the variable: ∫ab g(u(x)) u′(x) dx = ∫u(a)u(b) g(u) du.
What each symbol means
u- the inside function, which becomes the new variable
du- u′(x) dx, the factor that must already stand in the integrand, up to a constant
Where the formula comes from
- Why the slices match. Over one slice [xi, xi+1] the area under g(u(x))·u′(x) is G(u(xi+1)) − G(u(xi)), because G(u(x)) is an antiderivative, and that is also the area under g from u(xi) to u(xi+1), whichever way round those two numbers are. Add the slices and the inner terms cancel in pairs, leaving G(u(b)) − G(u(a)).
- Assumes
- The x-side area is computed numerically, by Simpson's rule refined wherever the curve bends sharply, and the u-side from G, so the two agreeing is a check rather than an identity. They agree to four decimal places at every setting the controls allow.
Problems solved in full
-
A linear inside 3 steps
Find ∫(3x − 2)⁵ dx.
-
The inside is linear. Call it u; its derivative is the constant 3, so dx is du/3:
-
Integrate the power of u:
-
Put x back:
Answer
(3x − 2)⁶/18 + C. Forgetting the 3 gives (3x − 2)⁶/6. Open the problem in the tool and type that, and the verdict reports a derivative three times the integrand.
-
-
The derivative is already there 3 steps
Find ∫x(x² + 1)⁴ dx.
Show solution
-
The x beside the bracket is half of the bracket’s derivative, 2x:
-
So the whole integral is a power of u:
-
Back to x:
Answer
(x² + 1)⁵/10 + C. The x is what makes this work. Without it, ∫(x² + 1)⁴ dx has no du to use, and the way through is to expand the bracket.
-
-
The top is the derivative of the bottom 3 steps
Find ∫(2x + 1)/(x² + x + 3) dx.
Show solution
-
The numerator is exactly the derivative of the denominator:
-
So the integral is ∫du/u:
-
The bars can go, because the denominator is never negative:
Answer
ln(x² + x + 3) + C. Look for this in every fraction: ∫f′/f dx = ln|f| + C. Had the top been x + ½, the answer would be half of this.
-
-
∫tan x 3 steps
Find ∫tan x dx.
Show solution
-
Write tan x as a fraction. Its top is the derivative of its bottom, apart from the sign:
-
So the integral is minus ∫du/u:
-
Put x back. The two forms are one answer, because −ln a = ln(1/a):
Answer
−ln|cos x| + C, also written ln|sec x| + C. The minus sign is the part that goes missing: ln|cos x| differentiates to −tan x, and the tool calls that a wrong sign.
-
-
u = ln x 3 steps
Find ∫(ln x)²/x dx for x > 0.
Show solution
-
The 1/x is the derivative of ln x, so it is the du:
-
What is left is a power of u:
-
Back to x:
Answer
(ln x)³/3 + C. Every integrand of the shape g(ln x)/x falls the same way.
-
-
When x has to be written in u 4 steps
Find ∫x√(x + 1) dx.
Show solution
-
Take u = x + 1, so du = dx. The x in front is not part of du, so write it in u:
-
Multiply out, so that every term is a power of u:
-
Integrate each power:
-
Put x back:
Answer
(2/5)(x + 1)5/2 − (2/3)(x + 1)3/2 + C. Integrating x and √(x + 1) separately and multiplying the results is the slip to avoid: the integral of a product is not the product of the integrals.
-
-
Move the limits with the variable 3 steps
Evaluate ∫01 2x(x² + 1)³ dx.
Show solution
-
The 2x is du for u = x² + 1:
-
Move the limits with the variable:
-
Integrate between the new limits:
Answer
15/4 = 3.75. Keeping the old limits, 0 to 1, gives 1/4. The other safe route is to put x back first and use the old limits; mixing u with the old limits is the error.
-
-
How far out does the area reach 5? 4 steps
The curve x/(1 + x²) falls towards 0 as x grows. How far from 0 must b be for the area from 0 to b to reach 5, and how high is the curve there? Press A slow logarithm: from 0 to 3 the area is 1.1513.
Show solution
-
With u = 1 + x², du = 2x dx, so x dx = du/2 and the area is half a logarithm:
-
At b = 3 that is ½ ln 10, the page's figure. Set it equal to 5:
-
There the curve stands only
-
Doubling the area to 10 needs
Answer
b ≈ 148.4, where the curve is 0.0067 high. The area never stops growing, but for large b it grows like ln b, so each further unit of area multiplies b by about e ≈ 2.72. The page's slider stops at b = 5.
-
Learning path
Techniques of integration
References (2)
- The rule in both forms: Theorem 5.7 (∫f[g(x)]g′(x) dx = ∫f(u) du = F(g(x)) + C) and Theorem 5.8 (∫ₐᵇ f(g(x))g′(x) dx = ∫ from g(a) to g(b) of f(u) du, “using substitution to evaluate a definite integral requires a change to the limits of integration”). Theorem 5.8 asks that g′ be continuous on [a, b] and f continuous over the range of u = g(x), and nothing about g being one-to-one: G. Strang and E. Herman, Calculus Volume 1, OpenStax (2016), section 5.5, “Substitution”.
- Why no substitution, and no other method, can integrate e^(−x²): Liouville's theorem, and its criterion that f(x)·e^(g(x)) has an elementary antiderivative exactly when R′ + g′R = f has a rational solution R (Theorem 4.4; Example 4.6 proves e^(−x²) has none). For x·e^(−x²), R = −½ works: B. Conrad, “Impossibility theorems for elementary integration”, lecture notes, Stanford University (author's copy).