Integration by Substitution
Suppose you must compute . No elementary antiderivative jumps out at you from the standard rules. Yet setting collapses the problem to something trivial. Why is this maneuver valid? It involves renaming a variable and swapping for according to some formal ratio. Is it actually valid, or just a symbolic trick that happens to give the right answer? The question matters because substitution is the single most-used integration technique. Its justification is not a new axiom. Instead, it is a direct consequence of two theorems you already know: the Chain Rule and the Fundamental Theorem of Calculus. The big picture is this: differentiation and integration are inverse operations. Any true statement about derivatives of composite functions should translate through the Fundamental Theorem. It becomes a true statement about integrals of composite functions. The chain rule says . Read backwards through the Fundamental Theorem, this identity is the substitution formula. No separate axiom is needed, nor formal manipulation of "infinitesimals" to justify it rigorously. Such manipulation is, however, a superb mnemonic. This article states the change-of-variables formula precisely, with every hypothesis explicit. These include continuity of the integrand and continuous differentiability of the substitution function. We prove it directly from the chain rule and the two Fundamental Theorems. We then examine what happens when the hypotheses are weakened. A very common student error is applying substitution to a non-monotonic or non-differentiable change of variables. This happens without checking the fine print. By the end you will be able to state the theorem correctly. This includes the delicate re-labeling of the limits of integration. You will also prove it from scratch and recognize when it fails. Finally, you will see its role as a bridge toward more general integration theories. This includes the eventual passage to Improper Integrals, where the substitution itself may become unbounded.
- Substitution is not a new axiom: it is the chain rule pushed through the Fundamental Theorem of Calculus.
- The formula requires and continuous on the range of .
- Limits of integration transform via itself — and replace and , and no monotonicity of is needed for this exact form.
- The proof constructs an antiderivative of via the First FTC, composes it with , differentiates via the chain rule, and reads off both sides via the Second FTC.
- Dropping continuity of or continuity of on the relevant interval can break the identity outright.
- Key idea: substitution converts a hard integral into an easier one by recognizing an integrand as the derivative of a composite function.
Where this lives today
Substitution is the working engine behind evaluating integrals in every quantitative science: computing arc length and surface area in geometry relies on substitutions that absorb a square-root Jacobian factor; changing to polar, cylindrical, or spherical coordinates in multivariable calculus is the multivariate generalization of this same chain-rule argument, packaged as the Jacobian determinant in the Change of Variables Theorem. In probability and statistics, the transformation-of-random-variables formula for densities — — is exactly the substitution theorem read as a statement about probability densities. In physics, substitution underlies dimensional analysis and non-dimensionalization of differential equations, where rescaling a variable ( for some length scale ) simplifies an equation's structure. In numerical analysis and scientific computing, substitution is used to map a difficult integration domain (e.g., an infinite or singular interval) to a well-behaved finite domain before applying quadrature rules — a technique that becomes essential once one studies Improper Integrals, where the substitution itself is allowed to send an endpoint to infinity or to a singularity of the integrand. In cryptography and coding theory, generating functions and combinatorial identities are frequently manipulated via substitution in formal power series, a discrete cousin of the same idea.
:::quiz[In Example 2, why was it valid to use the general theorem despite not being monotonic on ?]
- Because is bounded, monotonicity is automatically implied
- Because the theorem's proof never assumed monotonicity of — only and continuous ✓
- Because happens to be positive throughout
- Non-monotonic substitutions require a separate, unproven extension of the theorem
:::faq[What if is continuous on but not on a whole interval containing it?] The hypothesis is stated with an interval containing precisely so that Step 2 of the proof — defining — makes sense for a fixed basepoint and all between and any point of . If is itself already an interval (which happens automatically since is continuous on the connected set , and continuous images of connected sets are connected), you may simply take itself; the extra room in is a convenience, not a real strengthening, as long as is a nondegenerate interval or a point.
Ask the tutor: How does this substitution formula generalize when the interval becomes unbounded, as in improper integrals?
Let be a closed bounded interval and let be continuously differentiable (i.e. , meaning exists on — one-sided at the endpoints — and is continuous on ). Let be an interval containing , and let be continuous on . Then the function is continuous, hence Riemann integrable, on , and the substitution formula holds:
Here the integral on the right is interpreted with the usual convention when , so no assumption that is monotonic or injective is needed for the formula as stated.
Intuition
The chain rule tells you how the derivative of a composite function decomposes: if is an antiderivative of , then
This says that , which looks like a complicated composite expression, is secretly the derivative of the simpler function . The Fundamental Theorem of Calculus converts "knowing a derivative" into "knowing a definite integral": integrating a derivative over just evaluates the antiderivative at the endpoints. Apply that on both sides of the identity above, and the substitution formula falls out — no independent postulate about being "" is needed; that notation is simply a mnemonic encoding the chain rule. Geometrically, think of as a reparametrization of the -axis into a -axis. As sweeps from to , the point sweeps from to , possibly backtracking if is not monotonic. The formula says the signed accumulation of as traces this path, weighted by how fast moves (), exactly equals the net signed area . Backtracking is automatically accounted for by the sign of , which is why no monotonicity hypothesis is required for the exact identity — although monotonicity is exactly what you need if you want to reduce it further to a statement about unsigned areas under a graph.
Let with , let , let be an interval with , and let be continuous. Then
Step 1: The integrand on the left is continuous, hence integrable. Since is continuous on (as it is differentiable there) and is continuous on , the composite is continuous on by the standard theorem that a continuous function of a continuous function is continuous. The function is continuous on by hypothesis. Hence is a product of two continuous functions on , so it is continuous, and therefore Riemann integrable on (every continuous function on a closed bounded interval is Riemann integrable). This confirms the left-hand side is well-defined.
Step 2: Construct an antiderivative of using the First Fundamental Theorem of Calculus. Fix any point . Since is continuous on the interval , define
By the First Fundamental Theorem of Calculus (applicable because is continuous on , hence continuous at every point of and Riemann integrable on every closed subinterval of ), is differentiable on and
Step 3: Differentiate the composite using the Chain Rule. Since is differentiable on with , and is differentiable on , the Chain Rule applies to the composite , giving, for every ,
using Step 2 to replace by . In particular is differentiable on and its derivative equals precisely the integrand appearing on the left-hand side of the theorem, which we already showed (Step 1) is continuous — consistent with being continuous, since it is a product/composite of continuous functions.
Step 4: Apply the Second Fundamental Theorem of Calculus to . The function is differentiable on with continuous derivative (Step 3), hence in particular is Riemann integrable on . By the Second Fundamental Theorem of Calculus,
Combining with Step 3, the left side of this equation is exactly . Hence
Step 5: Apply the Second Fundamental Theorem of Calculus to itself. Since is continuous on (Step 2) and , apply the Second Fundamental Theorem of Calculus to on the interval with endpoints and (whichever order they occur in — the theorem applies to restricted to , and the signed-integral convention handles the case ):
Step 6: Combine. Substituting the result of Step 5 into gives
which is exactly the claimed identity.
∎In addition to the hypotheses of the theorem, suppose is strictly monotonic on (so is a bijection from onto the closed interval with endpoints ), and suppose is continuous. Then, writing , ,
provided is differentiable on the relevant interval (which holds automatically if is continuous and nonvanishing on , by the Inverse Function Theorem).
Apply the theorem with ... more directly: set , so on the interval with endpoints (by the Inverse Function Theorem, since there forces , a continuous function). Apply the main theorem to the composite integrated over the interval with endpoints and , using the substitution , i.e. . This gives
using , since . This is the claimed identity read left to right.
∎Worked examples
Example 1 (asymmetric algebraic substitution). Compute
Let . Then with , and is continuous and strictly increasing on (since there), with and . Write the integrand to expose :
Here is continuous on , so all hypotheses of the theorem hold (, continuous on an interval containing ). By the theorem,
Compute the right side directly via the Second FTC, using the antiderivative of on :
Therefore
Numerically , , so , matching a numerical estimate of the original integral. Note was strictly monotonic here, but this was not needed to invoke the theorem — it only makes the geometric picture (a genuine reparametrization without backtracking) especially clean.
Example 2 (non-monotonic substitution, testing the exact-formula robustness). Compute
Notice changes sign on since : on and on . So the substitution is not monotonic on — increases from up to at , then decreases down to . This is exactly the situation the general theorem (not the monotonic corollary) is built to handle. Let . Then (indeed ), with , continuous everywhere. Let , continuous on all of , in particular on (since always). The integrand is
so all hypotheses of the theorem hold with no monotonicity assumption needed. By the theorem,
since and . Using the antiderivative of (Second FTC):
Numerically, , so , , giving
The key point: even though retraces part of twice as ranges over (once increasing, once decreasing), the formula required only and as endpoints — the "backtracked" portion of the path exactly cancels in the signed integral, which is precisely what the Second FTC computation on the composite captures automatically. A naive attempt to instead compute this by splitting into "area swept forward" plus "area swept backward" as unsigned regions would give a different, wrong number; the theorem's signed bookkeeping is what makes the one-line computation valid despite non-monotonicity.
The theorem requires — not merely that exists, but that is continuous. Here is an example showing the formula can fail, or rather cannot even be shown to hold by this argument, if exists but is discontinuous and the composite integrand fails to be Riemann integrable outright — exhibiting concretely why the hypothesis matters rather than being a technical convenience. Let and define
Then is differentiable everywhere on : for ,
and at , using the definition of the derivative directly,
(squeeze theorem, since ). So exists everywhere on . But is not continuous at : as , the term oscillates with unbounded amplitude (choosing makes , giving ), so is not even bounded near , let alone continuous — in fact fails to be Riemann integrable on any interval containing , since an unbounded function is never Riemann integrable. Now take (constant, trivially continuous everywhere), so the left side of the would-be formula is . But is unbounded on , hence not Riemann integrable on at all — the left-hand side of the substitution formula does not even exist as a Riemann integral. The proof of the theorem breaks down exactly at Step 1, where continuity of was used to guarantee that is Riemann integrable; without it, there is no integral to equate to the right-hand side . This shows continuous differentiability of is not a cosmetic hypothesis: it is precisely what guarantees the left-hand side of the formula is a well-posed Riemann integral in the first place.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| not injective on | Formula still holds exactly as stated (Example 2); only the "area under a graph" interpretation breaks, not the algebraic identity. |
| exists but discontinuous, unbounded | Left-hand integral may fail to exist as a Riemann integral (see counterexample). |
| continuous only on a proper subset of | Composite may be undefined or discontinuous; hypothesis " continuous on " is essential. |
| constant | Both sides equal ; a valid but degenerate case, consistent with the theorem. |
| Improper integrals, unbounded near an endpoint | Theorem as stated does not directly apply; requires a limiting argument — this is the natural bridge to Improper Integrals. |
| Using but forgetting to change limits from -values to -values | The single most common student error — see warning below. |
The mathematician behind it
Origins · 1 minIsaac Newton and Gottfried Wilhelm Leibniz and how this was discovered
The substitution technique is inseparable from the birth of calculus itself. Leibniz's notation , , treating differentials as manipulable quantities, made substitution look like simple algebra — "cancel the 's" — and this notation is still exactly how the technique is taught today, even though its rigorous justification (via the chain rule and the Fundamental Theorem, as given above) was only fully clarified once the concept of limit and the Riemann integral were placed on rigorous footing in the 19th century by mathematicians such as Cauchy and Riemann. Newton's approach, via fluxions and inverse tangent problems, arrived at equivalent results through a different but contemporaneous route. Neither Newton nor Leibniz had a rigorous definition of the integral as a limit of Riemann sums; the modern proof presented here — building an antiderivative via the definite integral, differentiating it via the chain rule — reflects the 19th-century rigorization of ideas both men used fluently but justified only heuristically.
Why do we need to be continuous, not just to exist?
Continuity of guarantees that the composite is a continuous function of (a product of the continuous functions and ), and continuous functions on closed bounded intervals are automatically Riemann integrable. If merely exists but is discontinuous — worse, unbounded, as in the counterexample with — the product can fail to be Riemann integrable altogether, so the left-hand side of the formula may not even be defined. Continuity of is the cleanest sufficient condition ensuring the whole argument, which routes through the Second FTC applied to , goes through without gaps.
Does the substitution formula require to be monotonic or invertible?
No. The theorem as proved here holds for any , monotonic or not, invertible or not — Example 2 demonstrates this with on an interval where it is not monotonic. Monotonicity becomes relevant only if you want to reinterpret the formula geometrically as relating unsigned areas, or if you want to "solve for " and rewrite the integral entirely in terms of using , as in the corollary — that step genuinely needs to be a bijection (locally, at least) so that is a well-defined, differentiable function.
How does this relate to "u-substitution" as taught with indefinite integrals?
The indefinite-integral version states that if , then , so an antiderivative of is . This is exactly Step 3 of the proof above (the chain rule computation), stripped of the definite-integral bookkeeping. The definite-integral version proved here is the same fact, packaged with the Second FTC to directly produce a number rather than a family of antiderivatives, and with the added bonus of correctly transforming the limits of integration so you never need to substitute back to the original variable.
Can substitution be used when the integral is improper, e.g., over an infinite interval?
Not directly by the theorem as stated, which requires closed and bounded and . For improper integrals — where the interval is unbounded or the integrand is unbounded near an endpoint — one applies the finite-interval substitution theorem on or similar truncated intervals, and then takes a limit as or as the truncation point tends to infinity, provided that limit exists. This limiting extension is exactly the technique developed when studying Improper Integrals, and it must be justified separately in each case — the naive application of the bounded-interval formula to unbounded limits is not automatically valid.
Is there a version of this theorem for multiple integrals?
Yes — the multivariable analogue is the Change of Variables Theorem for multiple integrals, which replaces the single derivative with the absolute value of the Jacobian determinant of the transformation, . The one-variable theorem proved here is the case, though the higher-dimensional proof requires more machinery (measure-theoretic arguments or a careful covering/partition argument) since the one-dimensional proof's direct route through a single antiderivative and the chain rule does not immediately generalize.