Integration by Substitution

Suppose you must compute ∫01x1−x2 dx\int_0^1 x\sqrt{1-x^2}\,dx. No elementary antiderivative jumps out at you from the standard rules. Yet setting u=1−x2u = 1-x^2 collapses the problem to something trivial. Why is this maneuver valid? It involves renaming a variable and swapping dxdx for dudu 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 (F∘g)′(x)=F′(g(x))g′(x)(F\circ g)'(x) = F'(g(x))g'(x). 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.

Key takeaways
  • Substitution is not a new axiom: it is the chain rule pushed through the Fundamental Theorem of Calculus.
  • The formula ∫abf(g(x))g′(x) dx=∫g(a)g(b)f(u) du\int_a^b f(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du requires g∈C1[a,b]g\in C^1[a,b] and ff continuous on the range of gg.
  • Limits of integration transform via gg itself — g(a)g(a) and g(b)g(b) replace aa and bb, and no monotonicity of gg is needed for this exact form.
  • The proof constructs an antiderivative of ff via the First FTC, composes it with gg, differentiates via the chain rule, and reads off both sides via the Second FTC.
  • Dropping continuity of g′g' or continuity of ff 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 — fY(y)=fX(g−1(y)) ∣(g−1)′(y)∣f_Y(y) = f_X(g^{-1}(y))\,|(g^{-1})'(y)| — 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 (u=x/Lu = x/L for some length scale LL) 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 sin⁡x\sin x not being monotonic on [0,3][0,3]?]

  • Because sin⁡x\sin x is bounded, monotonicity is automatically implied
  • Because the theorem's proof never assumed monotonicity of gg — only g∈C1g\in C^1 and ff continuous ✓
  • Because cos⁡x\cos x happens to be positive throughout [0,3][0,3]
  • Non-monotonic substitutions require a separate, unproven extension of the theorem

:::faq[What if ff is continuous on g([a,b])g([a,b]) but not on a whole interval containing it?] The hypothesis is stated with JJ an interval containing g([a,b])g([a,b]) precisely so that Step 2 of the proof — defining F(u)=∫cuf(t) dtF(u) = \int_c^u f(t)\,dt — makes sense for a fixed basepoint cc and all uu between cc and any point of g([a,b])g([a,b]). If g([a,b])g([a,b]) is itself already an interval (which happens automatically since gg is continuous on the connected set [a,b][a,b], and continuous images of connected sets are connected), you may simply take J=g([a,b])J = g([a,b]) itself; the extra room in JJ is a convenience, not a real strengthening, as long as g([a,b])g([a,b]) is a nondegenerate interval or a point.

Ask the tutor: How does this substitution formula generalize when the interval [a,b][a,b] becomes unbounded, as in improper integrals?

DefinitionChange of variables for the Riemann integral

Let [a,b]⊂R[a,b]\subset\mathbb{R} be a closed bounded interval and let g:[a,b]→Rg:[a,b]\to\mathbb{R} be continuously differentiable (i.e. g∈C1[a,b]g\in C^1[a,b], meaning g′g' exists on [a,b][a,b] — one-sided at the endpoints — and g′g' is continuous on [a,b][a,b]). Let J⊂RJ\subset \mathbb{R} be an interval containing g([a,b])g([a,b]), and let f:J→Rf:J\to\mathbb{R} be continuous on JJ. Then the function x↦f(g(x))g′(x)x\mapsto f(g(x))g'(x) is continuous, hence Riemann integrable, on [a,b][a,b], and the substitution formula holds:

∫abf(g(x)) g′(x) dx  =  ∫g(a)g(b)f(u) du.\int_a^b f(g(x))\,g'(x)\,dx \;=\; \int_{g(a)}^{g(b)} f(u)\,du.

Here the integral on the right is interpreted with the usual convention ∫pq=−∫qp\int_{p}^{q} = -\int_q^p when p>qp>q, so no assumption that gg 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 FF is an antiderivative of ff, then

ddx F(g(x))=F′(g(x)) g′(x)=f(g(x)) g′(x).\frac{d}{dx}\,F(g(x)) = F'(g(x))\,g'(x) = f(g(x))\,g'(x).

This says that f(g(x))g′(x)f(g(x))g'(x), which looks like a complicated composite expression, is secretly the derivative of the simpler function F∘gF\circ g. The Fundamental Theorem of Calculus converts "knowing a derivative" into "knowing a definite integral": integrating a derivative over [a,b][a,b] 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 dudu being "g′(x) dxg'(x)\,dx" is needed; that notation is simply a mnemonic encoding the chain rule. Geometrically, think of gg as a reparametrization of the xx-axis into a uu-axis. As xx sweeps from aa to bb, the point u=g(x)u=g(x) sweeps from g(a)g(a) to g(b)g(b), possibly backtracking if gg is not monotonic. The formula says the signed accumulation of f(u)f(u) as uu traces this path, weighted by how fast uu moves (g′(x)g'(x)), exactly equals the net signed area ∫g(a)g(b)f\int_{g(a)}^{g(b)} f. Backtracking is automatically accounted for by the sign of g′(x)g'(x), 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.

Figure
Reparametrizing the x-axis into the u-axis via u=g(x)u=g(x)
a b x-axis u = g(x) g(a) g(b) g(x) u-axis
TheoremSubstitution / change-of-variables formula

Let a,b∈Ra,b\in\mathbb{R} with a≤ba\le b, let g∈C1[a,b]g\in C^1[a,b], let JJ be an interval with g([a,b])⊂Jg([a,b])\subset J, and let f:J→Rf:J\to\mathbb{R} be continuous. Then

∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(u) du.\int_a^b f\bigl(g(x)\bigr)\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du.
Proof

Step 1: The integrand on the left is continuous, hence integrable. Since gg is continuous on [a,b][a,b] (as it is differentiable there) and ff is continuous on J⊃g([a,b])J\supset g([a,b]), the composite f∘gf\circ g is continuous on [a,b][a,b] by the standard theorem that a continuous function of a continuous function is continuous. The function g′g' is continuous on [a,b][a,b] by hypothesis. Hence x↦f(g(x))g′(x)x\mapsto f(g(x))g'(x) is a product of two continuous functions on [a,b][a,b], so it is continuous, and therefore Riemann integrable on [a,b][a,b] (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 ff using the First Fundamental Theorem of Calculus. Fix any point c∈Jc \in J. Since ff is continuous on the interval JJ, define

F(u):=∫cuf(t) dt,u∈J.F(u) := \int_c^u f(t)\,dt, \qquad u \in J.

By the First Fundamental Theorem of Calculus (applicable because ff is continuous on JJ, hence continuous at every point of JJ and Riemann integrable on every closed subinterval of JJ), FF is differentiable on JJ and

F′(u)=f(u)for every u∈J.F'(u) = f(u) \quad \text{for every } u \in J.

Step 3: Differentiate the composite F∘gF\circ g using the Chain Rule. Since gg is differentiable on [a,b][a,b] with g([a,b])⊂Jg([a,b])\subset J, and FF is differentiable on JJ, the Chain Rule applies to the composite F∘g:[a,b]→RF\circ g:[a,b]\to\mathbb{R}, giving, for every x∈[a,b]x\in[a,b],

(F∘g)′(x)=F′(g(x))⋅g′(x)=f(g(x)) g′(x),(F\circ g)'(x) = F'(g(x))\cdot g'(x) = f(g(x))\, g'(x),

using Step 2 to replace F′(g(x))F'(g(x)) by f(g(x))f(g(x)). In particular F∘gF\circ g is differentiable on [a,b][a,b] 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 (F∘g)′(F\circ g)' being continuous, since it is a product/composite of continuous functions.

Step 4: Apply the Second Fundamental Theorem of Calculus to F∘gF \circ g. The function F∘gF\circ g is differentiable on [a,b][a,b] with continuous derivative f(g(x))g′(x)f(g(x))g'(x) (Step 3), hence in particular (F∘g)′(F\circ g)' is Riemann integrable on [a,b][a,b]. By the Second Fundamental Theorem of Calculus,

∫ab(F∘g)′(x) dx=(F∘g)(b)−(F∘g)(a)=F(g(b))−F(g(a)).\int_a^b (F\circ g)'(x)\,dx = (F\circ g)(b) - (F\circ g)(a) = F(g(b)) - F(g(a)).

Combining with Step 3, the left side of this equation is exactly ∫abf(g(x))g′(x) dx\int_a^b f(g(x))g'(x)\,dx. Hence

∫abf(g(x)) g′(x) dx=F(g(b))−F(g(a)).(∗)\int_a^b f(g(x))\,g'(x)\,dx = F(g(b)) - F(g(a)). \tag{$\ast$}

Step 5: Apply the Second Fundamental Theorem of Calculus to FF itself. Since F′=fF' = f is continuous on JJ (Step 2) and g(a),g(b)∈Jg(a), g(b) \in J, apply the Second Fundamental Theorem of Calculus to FF on the interval with endpoints g(a)g(a) and g(b)g(b) (whichever order they occur in — the theorem applies to FF restricted to [min⁡(g(a),g(b)),max⁡(g(a),g(b))]⊂J[\min(g(a),g(b)), \max(g(a),g(b))]\subset J, and the signed-integral convention handles the case g(a)>g(b)g(a) > g(b)):

F(g(b))−F(g(a))=∫g(a)g(b)f(u) du.F(g(b)) - F(g(a)) = \int_{g(a)}^{g(b)} f(u)\,du.

Step 6: Combine. Substituting the result of Step 5 into (∗)(\ast) gives

∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(u) du,\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du,

which is exactly the claimed identity. ■\blacksquare

∎
CorollarySubstitution with a monotonic bijection — the "solve for xx" form

In addition to the hypotheses of the theorem, suppose gg is strictly monotonic on [a,b][a,b] (so gg is a bijection from [a,b][a,b] onto the closed interval with endpoints g(a),g(b)g(a), g(b)), and suppose h:J→Rh:J\to\mathbb{R} is continuous. Then, writing u=g(x)u = g(x), x=g−1(u)x = g^{-1}(u),

∫abh(x) dx=∫g(a)g(b)h(g−1(u)) (g−1)′(u) du,\int_a^b h(x)\,dx = \int_{g(a)}^{g(b)} h\bigl(g^{-1}(u)\bigr) \, (g^{-1})'(u)\, du,

provided g−1g^{-1} is differentiable on the relevant interval (which holds automatically if g′g' is continuous and nonvanishing on [a,b][a,b], by the Inverse Function Theorem).

Proof

Apply the theorem with f=h∘g−1⋅f = h\circ g^{-1}\cdot ... more directly: set φ=g−1\varphi = g^{-1}, so φ∈C1\varphi \in C^1 on the interval with endpoints g(a),g(b)g(a), g(b) (by the Inverse Function Theorem, since g′≠0g'\neq 0 there forces φ′(u)=1/g′(φ(u))\varphi'(u) = 1/g'(\varphi(u)), a continuous function). Apply the main theorem to the composite h(φ(u))φ′(u)h(\varphi(u))\varphi'(u) integrated over the interval with endpoints g(a)g(a) and g(b)g(b), using the substitution x=φ(u)x = \varphi(u), i.e. u=g(x)u = g(x). This gives

∫g(a)g(b)h(φ(u))φ′(u) du=∫φ(g(a))φ(g(b))h(x) dx=∫abh(x) dx,\int_{g(a)}^{g(b)} h(\varphi(u))\varphi'(u)\,du = \int_{\varphi(g(a))}^{\varphi(g(b))} h(x)\,dx = \int_a^b h(x)\,dx,

using φ(g(a))=a\varphi(g(a)) = a, φ(g(b))=b\varphi(g(b)) = b since φ=g−1\varphi = g^{-1}. This is the claimed identity read left to right. ■\blacksquare

∎

Worked examples

Example 1 (asymmetric algebraic substitution). Compute

I=∫12x2x2+5 dx.I = \int_1^2 \frac{x}{\sqrt{2x^2+5}}\,dx.

Let g(x)=2x2+5g(x) = 2x^2+5. Then g∈C1[1,2]g\in C^1[1,2] with g′(x)=4xg'(x) = 4x, and gg is continuous and strictly increasing on [1,2][1,2] (since g′(x)=4x>0g'(x) = 4x>0 there), with g(1)=7g(1) = 7 and g(2)=13g(2) = 13. Write the integrand to expose g′(x)=4xg'(x) = 4x:

x2x2+5=14⋅4x2x2+5=14 f(g(x)) g′(x),where f(u)=1u.\frac{x}{\sqrt{2x^2+5}} = \frac{1}{4}\cdot\frac{4x}{\sqrt{2x^2+5}} = \frac14\, f(g(x))\, g'(x), \quad \text{where } f(u) = \frac{1}{\sqrt u}.

Here ff is continuous on J=[7,13]⊂(0,∞)J = [7,13]\subset (0,\infty), so all hypotheses of the theorem hold (g∈C1[1,2]g \in C^1[1,2], ff continuous on an interval containing g([1,2])=[7,13]g([1,2]) = [7,13]). By the theorem,

∫12f(g(x))g′(x) dx=∫g(1)g(2)f(u) du=∫713u−1/2 du.\int_1^2 f(g(x))g'(x)\,dx = \int_{g(1)}^{g(2)} f(u)\,du = \int_7^{13} u^{-1/2}\,du.

Compute the right side directly via the Second FTC, using the antiderivative 2u1/22u^{1/2} of u−1/2u^{-1/2} on (0,∞)(0,\infty):

∫713u−1/2 du=[2u]713=213−27.\int_7^{13} u^{-1/2}\,du = \Bigl[2\sqrt u\Bigr]_7^{13} = 2\sqrt{13} - 2\sqrt 7.

Therefore

I=14(213−27)=13−72.I = \frac14\left(2\sqrt{13}-2\sqrt7\right) = \frac{\sqrt{13}-\sqrt7}{2}.

Numerically 13≈3.6056\sqrt{13}\approx 3.6056, 7≈2.6458\sqrt7\approx 2.6458, so I≈0.95982≈0.4799I \approx \tfrac{0.9598}{2}\approx 0.4799, matching a numerical estimate of the original integral. Note gg 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

I=∫03sin⁡(x)cos⁡(x) esin⁡2x dx.I = \int_0^{3} \sin(x)\cos(x)\,e^{\sin^2 x}\,dx.

Notice cos⁡x\cos x changes sign on [0,3][0,3] since 3>π/2≈1.57083 > \pi/2 \approx 1.5708: cos⁡x>0\cos x > 0 on [0,π/2)[0,\pi/2) and cos⁡x<0\cos x<0 on (π/2,3](\pi/2, 3]. So the substitution u=sin⁡xu = \sin x is not monotonic on [0,3][0,3] — sin⁡x\sin x increases from 00 up to 11 at x=π/2x=\pi/2, then decreases down to sin⁡3≈0.1411\sin 3 \approx 0.1411. This is exactly the situation the general theorem (not the monotonic corollary) is built to handle. Let g(x)=sin⁡xg(x) = \sin x. Then g∈C1[0,3]g \in C^1[0,3] (indeed g∈C∞g\in C^\infty), with g′(x)=cos⁡xg'(x) = \cos x, continuous everywhere. Let f(u)=u eu2f(u) = u\,e^{u^2}, continuous on all of R\mathbb R, in particular on J=[−1,1]⊃g([0,3])J = [-1,1] \supset g([0,3]) (since ∣sin⁡x∣≤1|\sin x|\le 1 always). The integrand is

sin⁡xcos⁡x esin⁡2x=f(g(x)) g′(x),\sin x \cos x\, e^{\sin^2 x} = f(g(x))\,g'(x),

so all hypotheses of the theorem hold with no monotonicity assumption needed. By the theorem,

I=∫03f(g(x))g′(x) dx=∫g(0)g(3)f(u) du=∫0sin⁡3u eu2 du,I = \int_0^3 f(g(x))g'(x)\,dx = \int_{g(0)}^{g(3)} f(u)\,du = \int_{0}^{\sin 3} u\,e^{u^2}\,du,

since g(0)=sin⁡0=0g(0) = \sin 0 = 0 and g(3)=sin⁡3g(3) = \sin 3. Using the antiderivative 12eu2\tfrac12 e^{u^2} of ueu2u e^{u^2} (Second FTC):

I=[12eu2]0sin⁡3=12(esin⁡23−1).I = \left[\frac12 e^{u^2}\right]_0^{\sin 3} = \frac12\left(e^{\sin^2 3} - 1\right).

Numerically, sin⁡3≈0.14112\sin 3 \approx 0.14112, so sin⁡23≈0.019915\sin^2 3 \approx 0.019915, esin⁡23≈1.02012e^{\sin^2 3}\approx 1.02012, giving

I≈1.02012−12≈0.01006.I \approx \frac{1.02012 - 1}{2} \approx 0.01006.

The key point: even though u=sin⁡xu=\sin x retraces part of [0,1][0, 1] twice as xx ranges over [0,3][0,3] (once increasing, once decreasing), the formula required only g(0)g(0) and g(3)g(3) 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 F∘gF\circ g 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.

CounterexampleWhy continuity of g′g' (or of ff) cannot be dropped

The theorem requires g∈C1[a,b]g\in C^1[a,b] — not merely that g′g' exists, but that g′g' is continuous. Here is an example showing the formula can fail, or rather cannot even be shown to hold by this argument, if g′g' 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 [a,b]=[−1,1][a,b] = [-1,1] and define

g(x)={x2sin⁡(1/x2)x≠00x=0.g(x) = \begin{cases} x^2\sin(1/x^2) & x \neq 0 \\ 0 & x=0.\end{cases}

Then gg is differentiable everywhere on [−1,1][-1,1]: for x≠0x\neq0,

g′(x)=2xsin⁡(1/x2)−2xcos⁡(1/x2),g'(x) = 2x\sin(1/x^2) - \frac{2}{x}\cos(1/x^2),

and at x=0x=0, using the definition of the derivative directly,

g′(0)=lim⁡x→0x2sin⁡(1/x2)−0x=lim⁡x→0xsin⁡(1/x2)=0g'(0) = \lim_{x\to 0} \frac{x^2\sin(1/x^2) - 0}{x} = \lim_{x\to0} x\sin(1/x^2) = 0

(squeeze theorem, since ∣xsin⁡(1/x2)∣≤∣x∣→0|x\sin(1/x^2)|\le |x|\to 0). So g′g' exists everywhere on [−1,1][-1,1]. But g′g' is not continuous at 00: as x→0+x\to 0^+, the term −2xcos⁡(1/x2)-\tfrac{2}{x}\cos(1/x^2) oscillates with unbounded amplitude (choosing xn=1/2πn→0x_n = 1/\sqrt{2\pi n}\to 0 makes cos⁡(1/xn2)=1\cos(1/x_n^2)=1, giving g′(xn)=−22πn→−∞g'(x_n) = -2\sqrt{2\pi n}\to -\infty), so g′g' is not even bounded near 00, let alone continuous — in fact g′g' fails to be Riemann integrable on any interval containing 00, since an unbounded function is never Riemann integrable. Now take f(u)=1f(u) = 1 (constant, trivially continuous everywhere), so the left side of the would-be formula is ∫−111⋅g′(x) dx\int_{-1}^1 1\cdot g'(x)\,dx. But g′g' is unbounded on [−1,1][-1,1], hence not Riemann integrable on [−1,1][-1,1] 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 g′g' was used to guarantee that f(g(x))g′(x)f(g(x))g'(x) is Riemann integrable; without it, there is no integral to equate to the right-hand side g(1)−g(−1)=0g(1) - g(-1) = 0. This shows continuous differentiability of gg 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

SituationWhat happens
gg not injective on [a,b][a,b]Formula still holds exactly as stated (Example 2); only the "area under a graph" interpretation breaks, not the algebraic identity.
g′g' exists but discontinuous, unboundedLeft-hand integral may fail to exist as a Riemann integral (see counterexample).
ff continuous only on a proper subset of g([a,b])g([a,b])Composite f∘gf\circ g may be undefined or discontinuous; hypothesis "ff continuous on J⊃g([a,b])J \supset g([a,b])" is essential.
gg constantBoth sides equal 00; a valid but degenerate case, consistent with the theorem.
Improper integrals, gg unbounded near an endpointTheorem as stated does not directly apply; requires a limiting argument — this is the natural bridge to Improper Integrals.
Using u=g(x)u = g(x) but forgetting to change limits from xx-values to uu-valuesThe 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
IN
Isaac Newton and Gottfried Wilhelm Leibniz
1642–1727 (Newton), 1646–1716 (Leibniz) · Foundations of calculus, 17th century Europe

The substitution technique is inseparable from the birth of calculus itself. Leibniz's notation dxdx, dudu, treating differentials as manipulable quantities, made substitution look like simple algebra — "cancel the dxdx'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.

History
- 1670s: Newton develops the method of fluxions, implicitly using substitution-like reasoning to reverse differentiation.
- 1684: Leibniz publishes his differential calculus, introducing the dxdx notation that makes substitution look like algebraic cancellation.
- 1823: Cauchy gives the first rigorous definition of the definite integral as a limit of sums, enabling a rigorous statement of the Fundamental Theorem.
- 1854: Riemann's Habilitationsschrift formalizes the modern Riemann integral, the setting in which the substitution theorem above is proved.
- Late 1800s: Rigorous real analysis (Weierstrass, Dedekind) supplies the ε\varepsilon–δ\delta machinery underlying the chain-rule proof used here.
Why do we need g′g' to be continuous, not just to exist?

Continuity of g′g' guarantees that the composite f(g(x))g′(x)f(g(x))g'(x) is a continuous function of xx (a product of the continuous functions f∘gf\circ g and g′g'), and continuous functions on closed bounded intervals are automatically Riemann integrable. If g′g' merely exists but is discontinuous — worse, unbounded, as in the counterexample with g(x)=x2sin⁡(1/x2)g(x)=x^2\sin(1/x^2) — the product f(g(x))g′(x)f(g(x))g'(x) can fail to be Riemann integrable altogether, so the left-hand side of the formula may not even be defined. Continuity of g′g' is the cleanest sufficient condition ensuring the whole argument, which routes through the Second FTC applied to F∘gF\circ g, goes through without gaps.

Does the substitution formula require gg to be monotonic or invertible?

No. The theorem as proved here holds for any g∈C1[a,b]g\in C^1[a,b], monotonic or not, invertible or not — Example 2 demonstrates this with g(x)=sin⁡xg(x)=\sin x 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 xx" and rewrite the integral entirely in terms of uu using g−1g^{-1}, as in the corollary — that step genuinely needs gg to be a bijection (locally, at least) so that g−1g^{-1} 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 F′=fF' = f, then ddxF(g(x))=f(g(x))g′(x)\dfrac{d}{dx}F(g(x)) = f(g(x))g'(x), so an antiderivative of f(g(x))g′(x)f(g(x))g'(x) is F(g(x))F(g(x)). 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 [a,b][a,b] closed and bounded and g∈C1[a,b]g\in C^1[a,b]. For improper integrals — where the interval is unbounded or the integrand is unbounded near an endpoint — one applies the finite-interval substitution theorem on [a,b−ε][a, b-\varepsilon] or similar truncated intervals, and then takes a limit as ε→0\varepsilon \to 0 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 g′(x)g'(x) with the absolute value of the Jacobian determinant of the transformation, ∣det⁡Dg(x)∣|\det Dg(\mathbf x)|. The one-variable theorem proved here is the n=1n=1 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.

Where this leads