Integration by Substitution and by Parts
Learning Objectives
- Derive substitution from the chain rule and parts from the product rule, and state the hypotheses each one needs.
- Evaluate definite integrals by substitution, converting the limits to the new variable and never returning to the old one.
- Recognize an invalid substitution (a change of variable that is undefined or non-continuous inside the interval) and a dropped absolute value after a square root.
- Choose and for integration by parts, and handle repeated and cyclic applications.
- Use to bound a sum of logarithms, the calculus behind .
Context & Motivation
the-fundamental-theorem-of-calculus reduced a definite integral to finding an antiderivative, but gave no method for finding one. Differentiation has a rule for every composition and product; integration has no rule of the same completeness. What it has instead are two techniques that each run a differentiation rule backwards. Substitution undoes the chain rule and integration by parts undoes the product rule. Between them they handle most integrals met in practice.
The techniques also matter where no closed-form integral is the goal. Bounding , the heart of the lower bound for comparison sorting, gives sharp bounds via , a natural job for parts.
Core Theory
Substitution: the chain rule backwards
If , the chain rule gives . Reading that right to left:
The shorthand is , , turning the integral into . The method works when the integrand contains an inner function together with (a constant multiple of) its derivative.
Theorem (definite form). Let have a continuous derivative on and let be continuous on an interval containing . Then
The proof is Part 2 of the FTC on both sides: each equals . Three consequences. The new limits are and , not and . They may come out reversed () or equal. And does not have to be one-to-one or monotone. Once the limits are converted, the answer is computed entirely in ; substituting back to is unnecessary, and mixing the two is the classic error.
Substitution in the other direction
Trigonometric substitution writes and uses with , . The hypotheses are now strict: continuous on and staying inside the domain of on the whole way from to . Two things go wrong in practice. First, , which equals only where , so the range chosen for must be stated. Second, may be undefined at some point between the endpoints (Example 4).
Integration by parts: the product rule backwards
From , integrating gives
The definite form needs and to have continuous derivatives on . The point is to trade for an easier . Pick to be the factor that gets simpler on differentiation (, , a polynomial) and the factor whose antiderivative is easy (, , , a power). The mnemonic LIATE (logarithmic, inverse trig, algebraic, trig, exponential, in order of preference for ) encodes this; it is a heuristic, not a theorem. Three patterns recur: a polynomial times or needs one application per degree; a lone or uses ; and returns to itself after two applications, so it is solved for algebraically.
Worked Examples
Example 1: a standard substitution
. Let , so and . When , ; when , .
Symbolic evaluation and quadrature both give . The is safe because on the whole path.
Example 2: the limits are the whole job
with : the limits become and , giving . Applying the old limits to the new antiderivative gives , which has the wrong sign as well as the wrong size. A case where is not monotone: with has limits and , so the integral is . This is correct: is positive on and the mirror-image negative on . Compare , where the same runs from to and the sign never changes.
Example 3: a trigonometric substitution
is a quarter of the unit disk. Let , , and runs from to . On that range , so :
Matching the area of a quarter circle is a built-in check. The simplification holds only where . Over it breaks: , while . That range would also be wrong for this substitution, since rises to and returns to instead of tracing once.
Example 4: a substitution that is not allowed
. Try : , and , so the integrand becomes , with limits to . The result would be , a negative number for a positive integrand. The map is undefined at , which lies inside , so the hypotheses fail. On the same substitution is valid.
Example 5: parts, three ways
: , , so .
: , , so . This gives the antiderivative .
: two applications give . Each pass lowers the power of by one.
All three match symbolic and numerical evaluation.
Example 6: a cyclic integral
Let . With , : . Applying parts again with the same roles (): . Therefore , so . On the value is , confirmed numerically. Swapping the roles on the second pass would undo the first and return .
Example 7: bounding
Since is increasing, each term satisfies . Summing and using :
| n | lower bound | ln(n!) | upper bound |
|---|---|---|---|
| 10 | 14.026 | 15.104 | 15.991 |
| 100 | 361.52 | 363.74 | 365.74 |
| 1000 | 5908.76 | 5912.13 | 5915.28 |
So . A comparison sort must tell possible orderings apart using yes/no answers, so it needs at least comparisons in the worst case, which is .
Common Misconceptions & Pitfalls
- Keeping the old limits after substituting. The limits belong to the variable. After they are and (Example 2).
- Mixing variables. An integral with both and in the integrand is not finished. Express the whole integrand in one variable, or the change of variable has not happened.
- Substituting across a singularity. or on an interval containing a point where the map blows up is invalid (Example 4). Check that the map is defined and continuous along the whole path.
- Dropping the absolute value. . State the range of the angle in a trig substitution.
- Expecting an antiderivative to exist in closed form. Every continuous function has one (the accumulation function), but and have none among elementary functions, and no technique here will produce one.
- Parts that go in circles. If the new integral is harder, swap the roles. In cyclic problems keep the same roles on both passes.
- Constants differ. is by and by . Both are right: they differ by the constant .
Summary
Substitution is the chain rule run backwards: when is continuous on and is continuous on the range of , and the converted limits are part of the answer. In the other direction (trigonometric substitution) the map must also be defined and continuous across the interval, and a square root forces an absolute value unless the sign is known. Integration by parts is the product rule run backwards: for continuously differentiable . Choose to simplify when differentiated, repeat for polynomial factors, use for lone and , and solve algebraically when the integral reappears. The antiderivative of also bounds , giving the lower bound for comparison sorting. The next lesson, applications-area-volume-and-average-value, puts these tools to work on geometry.