maths2u
Tier
⌕ Search ⌘K
Theorem

The substitution rule for integrals

T-138Home MU-102Threads change
Statement

Let \( \alpha, \beta \in \mathbb{R} \), let \( \varphi : [\alpha,\beta] \to \mathbb{R} \) be continuously differentiable, and let \( I \subseteq \mathbb{R} \) be an interval with \( \varphi([\alpha,\beta]) \subseteq I \) on which \( f : I \to \mathbb{R} \) is continuous. Then \( s \mapsto f(\varphi(s))\,\varphi'(s) \) is continuous on \( [\alpha,\beta] \), \( f \) is Riemann integrable between \( \varphi(\alpha) \) and \( \varphi(\beta) \), and \[ \int_{\alpha}^{\beta} f\bigl(\varphi(s)\bigr)\,\varphi'(s)\,\mathrm{d}s \;=\; \int_{\varphi(\alpha)}^{\varphi(\beta)} f(x)\,\mathrm{d}x. \] Neither injectivity nor monotonicity of \( \varphi \) is required: the two limits carry the orientation, and the oriented convention \( \int_p^q = -\int_q^p \) is in force. If \( \varphi \) is in addition strictly monotone, with \( \varphi(\alpha) = a \) and \( \varphi(\beta) = b \), the identity read from right to left evaluates \( \int_a^b f \) by inverse substitution, and it may then be restated in unsigned form as \( \int_{\varphi([\alpha,\beta])} f(x)\,\mathrm{d}x = \int_{\alpha}^{\beta} f(\varphi(s))\,\lvert \varphi'(s)\rvert\,\mathrm{d}s \).

Why it matters

Substitution is the chain rule read backwards, and with integration by parts it is one of only two general-purpose techniques for evaluating integrals in closed form. Every named method downstream of it — trigonometric substitution, the Weierstrass half-angle substitution \( t = \tan(s/2) \), hyperbolic substitution, partial-fraction shifts, separation of variables in a first-order ordinary differential equation, the \( u = g(x) \) step in every table of integrals — is this one theorem applied with a particular \( \varphi \). It is also what makes Leibniz's differential notation earn its keep: the mnemonic “put \( x = \varphi(s) \), then \( \mathrm{d}x = \varphi'(s)\,\mathrm{d}s \)” is not a formal manipulation of infinitesimals but a licensed abbreviation of the identity above.

Structurally the rule says that the integral is natural with respect to reparametrisation: it does not depend on how a path is traversed, only on where it starts, where it ends, and how the integrand is transported. That is why the same statement reappears, with the derivative replaced by a Jacobian determinant, as the change-of-variables theorem in \( \mathbb{R}^n \); with the derivative replaced by a Radon–Nikodym density, as the transformation law for probability densities; and with no correction factor at all, as the abstract image-measure formula \( \int g\,\mathrm{d}(\varphi_{*}\mu) = \int (g\circ\varphi)\,\mathrm{d}\mu \). One-dimensional substitution is the smallest case of a very large theorem.

Hypotheses
\( \varphi \) is continuously differentiable on \( [\alpha,\beta] \).Differentiability supplies \( \varphi' \) for the chain rule; continuity of \( \varphi' \) makes the integrand \( (f\circ\varphi)\varphi' \) continuous, hence Riemann integrable, so the left-hand side exists. Drop it and the identity can fail outright: the Cantor–Lebesgue function \( c : [0,1] \to [0,1] \) is continuous and nondecreasing with \( c(0)=0 \), \( c(1)=1 \), and \( c'(s)=0 \) at every \( s \) outside a set of measure zero. With \( f \equiv 1 \) the right-hand side is \( \int_0^1 \mathrm{d}x = 1 \), while the left-hand side is \( \int_0^1 c'(s)\,\mathrm{d}s = 0 \).
\( f \) is continuous on an interval \( I \) containing the whole image \( \varphi([\alpha,\beta]) \), not merely on the interval spanned by \( \varphi(\alpha) \) and \( \varphi(\beta) \).A non-monotone \( \varphi \) may leave the interval between its endpoint values. Take \( \varphi(s) = 8s^2 - 7s + 1 \) on \( [0,1] \), so \( \varphi(0) = 1 \) and \( \varphi(1) = 2 \), but \( \varphi \) vanishes at \( s = (7 \pm \sqrt{17})/16 \approx 0.180 \) and \( \approx 0.695 \) and dips to \( \varphi(1/2) = -1/2 \). For \( f(x) = 1/x \), continuous on \( [1,2] \), the right-hand side is \( \ln 2 \), yet \( f(\varphi(s))\varphi'(s) \) is not even defined at two interior points and is unbounded near them. The left-hand side does not exist.
The two sides are oriented integrals.The convention \( \int_p^q f = -\int_q^p f \) is what allows \( \varphi(\beta) \lt \varphi(\alpha) \) and what makes the statement true without monotonicity. Interpreting \( \int_{\varphi(\alpha)}^{\varphi(\beta)} \) as an integral over a set rather than along a direction breaks the theorem: for \( \varphi(s) = s^2 \) on \( [-1,1] \) and \( f \equiv 1 \), both sides are \( 0 \), while the area of \( \varphi([-1,1]) = [0,1] \) is \( 1 \).
Continuity of \( f \) is used to manufacture an antiderivative, and cannot simply be weakened to Riemann integrability.The proof runs through Part I of the fundamental theorem of calculus, which needs continuity of \( f \) at every point of \( I \) to give \( F' = f \) on all of \( I \). If \( f \) is merely Riemann integrable, \( f\circ\varphi \) need not be Riemann integrable at all: let \( K \subseteq [0,1] \) be a fat Cantor set (closed, empty interior, positive measure), let \( \varphi \in C^{\infty} \) be non-negative with zero set exactly \( K \), and let \( f = \mathbf{1}_{(0,\infty)} \), which is integrable on \( [0,1] \) with a single discontinuity. Then \( f\circ\varphi = 1 - \mathbf{1}_{K} \) is discontinuous at every point of \( K \), a set of positive measure, so Lebesgue's criterion denies it. The theorem does survive for merely integrable \( f \) when \( \varphi \) is monotone, but by a Riemann-sum argument, not this one.
Injectivity of \( \varphi \) is required only for the unsigned form and for inverse substitution.The oriented identity holds for every \( C^1 \) map \( \varphi \). To go the other way — to start from \( \int_a^b f \) and introduce a substitution \( x = \varphi(s) \) — one needs \( \varphi \) to be a bijection of \( [\alpha,\beta] \) onto \( [a,b] \), because the limits \( \alpha = \varphi^{-1}(a) \), \( \beta = \varphi^{-1}(b) \) must be well defined. Without it, \( \varphi(s) = \sin s \) on \( [0, 2\pi] \) offers three preimages of \( 0 \) and no canonical choice.
Proof

The whole content is: build an antiderivative for \( f \), compose it with \( \varphi \), and evaluate both sides by the fundamental theorem of calculus. Steps 1–3 set up the objects, Steps 4–7 give the identity, Steps 8–9 record the monotone variants.

1
\[ \varphi([\alpha,\beta]) \subseteq I \ \text{ is a compact interval;}\qquad \exists\, c \in I. \]
\( [\alpha,\beta] \) is compact and connected and \( \varphi \) is continuous, so its image is a compact interval, and by hypothesis it lies inside \( I \). Fix any base point \( c \in I \); the choice will not matter. A
2
\[ F : I \to \mathbb{R}, \qquad F(x) \;=\; \int_{c}^{x} f(t)\,\mathrm{d}t , \qquad F'(x) = f(x) \quad \forall\, x \in I. \]
\( f \) is continuous on \( I \), hence Riemann integrable on every compact subinterval, so \( F \) is defined; Part I of the fundamental theorem of calculus, applied at each \( x \in I \), gives \( F \in C^1(I) \) with \( F' = f \) everywhere on \( I \) (one-sided at an endpoint of \( I \), if \( I \) has one). This is the only place continuity of \( f \) is spent on all of \( I \) — Step 5 uses it again, but only along the image — and that is why the image condition of Step 1 matters. B
3
\[ G \;=\; F \circ \varphi \;:\; [\alpha,\beta] \to \mathbb{R} \quad \text{is well defined.} \]
Composition is legal precisely because \( \varphi \) maps into \( I = \operatorname{dom} F \) (Step 1). If \( \varphi \) strayed outside \( I \) — the failure exhibited by \( \varphi(s) = 8s^2-7s+1 \) with \( f(x)=1/x \) — there would be no \( G \) to differentiate. A
4
\[ G'(s) \;=\; F'\bigl(\varphi(s)\bigr)\,\varphi'(s) \;=\; f\bigl(\varphi(s)\bigr)\,\varphi'(s) \qquad \forall\, s \in [\alpha,\beta]. \]
The chain rule: \( \varphi \) is differentiable at \( s \) and \( F \) is differentiable at \( \varphi(s) \in I \) by Step 2, so the composite is differentiable with the product of the derivatives; then substitute \( F' = f \). This single line is the entire mechanism of the theorem — everything else is bookkeeping. B
5
\[ s \;\longmapsto\; f\bigl(\varphi(s)\bigr)\,\varphi'(s) \ \text{ is continuous on } [\alpha,\beta], \ \text{ hence } \ (f\circ\varphi)\,\varphi' \in \mathcal{R}[\alpha,\beta]. \]
\( f \) and \( \varphi \) are continuous, so \( f \circ \varphi \) is continuous; \( \varphi' \) is continuous because \( \varphi \in C^1 \); a product of continuous functions on a compact interval is continuous, and continuous functions on \( [\alpha,\beta] \) are Riemann integrable. So the left-hand side of the claim exists. A
6
\[ \int_{\alpha}^{\beta} f\bigl(\varphi(s)\bigr)\,\varphi'(s)\,\mathrm{d}s \;=\; \int_{\alpha}^{\beta} G'(s)\,\mathrm{d}s \;=\; G(\beta) - G(\alpha) \;=\; F\bigl(\varphi(\beta)\bigr) - F\bigl(\varphi(\alpha)\bigr). \]
Part II of the fundamental theorem of calculus applied to \( G \) on \( [\alpha,\beta] \): \( G \) is continuous on the closed interval and differentiable at every interior point with \( G' = (f\circ\varphi)\varphi' \) (Step 4), and that derivative is Riemann integrable (Step 5) — the two hypotheses of Part II, both checked, not assumed. B
7
\[ F\bigl(\varphi(\beta)\bigr) - F\bigl(\varphi(\alpha)\bigr) \;=\; \int_{\varphi(\alpha)}^{\varphi(\beta)} f(x)\,\mathrm{d}x, \qquad\therefore\quad \int_{\alpha}^{\beta} f(\varphi(s))\,\varphi'(s)\,\mathrm{d}s \;=\; \int_{\varphi(\alpha)}^{\varphi(\beta)} f(x)\,\mathrm{d}x. \]
Part II again, now for \( f \) on the compact interval with endpoints \( \varphi(\alpha) \) and \( \varphi(\beta) \), using the antiderivative \( F \) of Step 2. If \( \varphi(\beta) \lt \varphi(\alpha) \), read the equality through the orientation convention \( \int_p^q = -\int_q^p \), under which \( F(q) - F(p) = \int_p^q f \) holds for either order; if \( \varphi(\beta) = \varphi(\alpha) \) both sides are \( 0 \). Chaining with Step 6 proves the theorem. A
8
\[ \varphi \ \text{strictly increasing},\ \varphi(\alpha)=a,\ \varphi(\beta)=b \ \Longrightarrow\ \int_{a}^{b} f(x)\,\mathrm{d}x \;=\; \int_{\varphi^{-1}(a)}^{\varphi^{-1}(b)} f\bigl(\varphi(s)\bigr)\,\varphi'(s)\,\mathrm{d}s. \]
Inverse substitution: read Step 7 right to left. Strict monotonicity makes \( \varphi : [\alpha,\beta] \to [a,b] \) a bijection, so \( \alpha = \varphi^{-1}(a) \) and \( \beta = \varphi^{-1}(b) \) are the unique admissible limits; \( \varphi([\alpha,\beta]) = [a,b] \), so the image condition is automatic. Note that \( \varphi^{-1} \) need not be differentiable for this direction — only \( \varphi \) is differentiated — so \( \varphi'(s) = 0 \) at isolated points is harmless here, though it costs the inverse function theorem. C
9
\[ \varphi \ \text{injective} \ \Longrightarrow\ \int_{\varphi([\alpha,\beta])} f(x)\,\mathrm{d}x \;=\; \int_{\alpha}^{\beta} f\bigl(\varphi(s)\bigr)\,\bigl\lvert \varphi'(s) \bigr\rvert\,\mathrm{d}s. \]
Unsigned form. A continuous injective map on an interval is strictly monotone — if it took the same value twice it would not be injective, and if it rose and then fell the intermediate value theorem would produce exactly that — so \( \varphi \) is strictly increasing or strictly decreasing, hence \( \varphi' \ge 0 \) throughout or \( \varphi' \le 0 \) throughout, and \( \lvert\varphi'\rvert = \pm\varphi' \) with a single global sign. If \( \varphi \) increases, Step 7 already gives it; if \( \varphi \) decreases, \( \varphi([\alpha,\beta]) = [\varphi(\beta),\varphi(\alpha)] \) and the two sign flips — one from reversing the limits, one from \( \lvert\varphi'\rvert = -\varphi' \) — cancel. Injectivity is exactly what stops a point of the image being counted twice; it is the one-dimensional shadow of the injectivity hypothesis in the Jacobian theorem. C
Result
\[ \int_{\alpha}^{\beta} f\bigl(\varphi(s)\bigr)\,\varphi'(s)\,\mathrm{d}s \;=\; \int_{\varphi(\alpha)}^{\varphi(\beta)} f(x)\,\mathrm{d}x \qquad\bigl(\varphi \in C^1[\alpha,\beta],\ f \in C(I),\ \varphi([\alpha,\beta]) \subseteq I\bigr) \]

Reading. Transporting the integrand along \( x = \varphi(s) \) and the measure along \( \mathrm{d}x = \varphi'(s)\,\mathrm{d}s \) leaves the oriented integral unchanged; only the endpoints move, from \( \alpha,\beta \) to \( \varphi(\alpha),\varphi(\beta) \). Equivalently, in indefinite form, if \( F' = f \) on \( I \) then \( \int f(\varphi(s))\varphi'(s)\,\mathrm{d}s = F(\varphi(s)) + C \).

Scope. Riemann integration of a continuous \( f \) over compact intervals of \( \mathbb{R} \), with \( \varphi \) of class \( C^1 \) and no injectivity assumed. For merely Riemann integrable \( f \) the statement needs \( \varphi \) monotone and a different proof; for improper or infinite-range integrals it must be applied on compact exhaustions and the limit taken; for \( n \gt 1 \) it becomes the change-of-variables theorem with \( \lvert\varphi'\rvert \) replaced by \( \lvert\det D\varphi\rvert \) and injectivity promoted to a hypothesis.

Corollaries & converses
  • Indefinite form. If \( F' = f \) on \( I \) then \( \int f(\varphi(s))\,\varphi'(s)\,\mathrm{d}s = F(\varphi(s)) + C \). This is Step 4 alone; the definite statement is that plus the fundamental theorem.
  • Logarithmic derivative. Taking \( f(x) = 1/x \) and \( \varphi = g \) with \( g \) nowhere zero on \( [\alpha,\beta] \): \( \int_{\alpha}^{\beta} \dfrac{g'(s)}{g(s)}\,\mathrm{d}s = \ln\lvert g(\beta)\rvert - \ln\lvert g(\alpha)\rvert \). The “nowhere zero” is the image condition of Step 1, not a technicality.
  • Translation and dilation. \( \varphi(s) = s + h \) gives \( \int_{\alpha}^{\beta} f(s+h)\,\mathrm{d}s = \int_{\alpha+h}^{\beta+h} f \); \( \varphi(s) = \lambda s \) with \( \lambda \neq 0 \) gives \( \int_{\alpha}^{\beta} f(\lambda s)\,\mathrm{d}s = \lambda^{-1}\int_{\lambda\alpha}^{\lambda\beta} f \). Translation invariance of Lebesgue measure is this corollary in disguise.
  • Reflection. \( \varphi(s) = a + b - s \) gives \( \int_a^b f(x)\,\mathrm{d}x = \int_a^b f(a+b-x)\,\mathrm{d}x \). The companion case \( \varphi(s) = -s \) gives \( \int_{-a}^{0} f(x)\,\mathrm{d}x = \int_{0}^{a} f(-s)\,\mathrm{d}s \), whence \( \int_{-a}^{a} f = 0 \) for odd \( f \) and \( \int_{-a}^{a} f = 2\int_0^a f \) for even \( f \).
  • Periodicity. If \( f \) is continuous with period \( T \gt 0 \) then \( \int_{a}^{a+T} f \) is independent of \( a \). Substituting \( \varphi(s) = s+T \) on the interval with endpoints \( 0 \) and \( a \), and using \( f(s+T)=f(s) \), gives \( \int_{T}^{a+T} f = \int_{0}^{a} f \); splitting \( \int_a^{a+T} = \int_a^0 + \int_0^T + \int_T^{a+T} \) then cancels the outer two terms and leaves \( \int_0^T f \). Substituting on \( [a,a+T] \) instead proves only the weaker statement that \( a \mapsto a+T \) leaves the value unchanged.
  • Trigonometric and Weierstrass substitutions. \( x = \sin\theta \) on \( [-\pi/2,\pi/2] \), \( x = \tan\theta \) on \( (-\pi/2,\pi/2) \), \( x = \sec\theta \) on \( [0,\pi/2) \), and \( t = \tan(s/2) \) turning any rational function of \( \sin s,\cos s \) into a rational function of \( t \). Each is Step 8 with an explicitly monotone \( \varphi \); the restricted range is what supplies injectivity and fixes the sign of the surd.
  • Higher dimensions. The Jacobian change-of-variables theorem reduces to this one when \( n = 1 \), with \( \lvert\det D\varphi\rvert = \lvert\varphi'\rvert \) — matching the unsigned form of Step 9, not the oriented form, which is why the \( n \)-dimensional statement carries an injectivity hypothesis that the \( n=1 \) oriented statement does not.
  • The converse fails. The identity \( \int_{\alpha}^{\beta} f(\varphi(s))\psi(s)\,\mathrm{d}s = \int_{\varphi(\alpha)}^{\varphi(\beta)} f \) holding for one particular \( f \) does not force \( \psi = \varphi' \): with \( f \equiv 1 \) it only says \( \int_\alpha^\beta \psi = \varphi(\beta)-\varphi(\alpha) \), which countless \( \psi \) satisfy. Demanding it for every continuous \( f \) is still not enough when \( \varphi \) folds: for \( \varphi(s)=s^2 \) on \( [-1,1] \) the right-hand side is \( \int_1^1 f = 0 \), while \( s \mapsto f(s^2)\psi(s) \) is odd, hence has integral \( 0 \), for every odd \( \psi \) — so \( \psi(s) = 3s \) serves as well as \( \varphi'(s) = 2s \). What does pin \( \psi \) down is “for every continuous \( f \)” together with \( \varphi' \gt 0 \) throughout: substituting \( x = \varphi(s) \) turns \( \int_{\alpha}^{\beta} f(\varphi(s))\bigl(\psi-\varphi'\bigr)(s)\,\mathrm{d}s = 0 \) into \( \int_a^b f(x)\,h(x)\,\mathrm{d}x = 0 \) for the continuous \( h = \bigl((\psi-\varphi')\circ\varphi^{-1}\bigr)\cdot(\varphi^{-1})' \), and a continuous function orthogonal to every continuous function is identically zero; since \( (\varphi^{-1})' \gt 0 \), this forces \( \psi = \varphi' \).
Fails without
  • \( \varphi \) merely continuous and monotone, not \( C^1 \): the Cantor–Lebesgue function \( c \) on \( [0,1] \) is continuous, nondecreasing, surjective onto \( [0,1] \), and satisfies \( c' = 0 \) off a null set. With \( f \equiv 1 \), \( \int_{c(0)}^{c(1)} 1\,\mathrm{d}x = 1 \) but \( \int_0^1 c'(s)\,\mathrm{d}s = 0 \). All the “mass” of the substitution hides on the measure-zero set where \( c \) is not differentiable; the correct hypothesis in the Lebesgue theory is absolute continuity of \( \varphi \), and \( c \) is the standard function that is continuous and of bounded variation but not absolutely continuous.
  • \( f \) not continuous on the whole image of \( \varphi \): with \( \varphi(s) = 8s^2 - 7s + 1 \) on \( [0,1] \) and \( f(x) = 1/x \), one has \( \varphi(0)=1 \), \( \varphi(1)=2 \) and \( \int_1^2 \mathrm{d}x/x = \ln 2 \approx 0.6931 \). But \( \varphi \) vanishes twice inside \( (0,1) \), so \( f\circ\varphi \) has no value there and the left-hand side does not exist as a Riemann integral. Checking only the endpoint values \( \varphi(\alpha),\varphi(\beta) \) is not enough; the whole path must stay in the domain of continuity.
  • Injectivity dropped in the unsigned form: for \( \varphi(s) = s^2 \) on \( [-1,1] \) and \( f \equiv 1 \), \( \int_{-1}^{1} \lvert 2s\rvert\,\mathrm{d}s = 2 \), whereas \( \varphi([-1,1]) = [0,1] \) has length \( 1 \). The interval \( [0,1] \) is swept twice, and the unsigned formula counts it twice. The oriented statement is unharmed: both sides are \( 0 \), since \( \int_{-1}^{1} 2s\,\mathrm{d}s = 0 = \int_{1}^{1} \mathrm{d}x \).
  • A singularity crossed by the substituting map: in \( I = \int_{-1}^{1} \dfrac{\mathrm{d}x}{1+x^2} = \dfrac{\pi}{2} \), the formal substitution \( x = 1/u \) gives \( \mathrm{d}x = -u^{-2}\,\mathrm{d}u \) and \( (1+x^2)^{-1} = u^2/(1+u^2) \), hence \( I = -\int_{-1}^{1} \dfrac{\mathrm{d}u}{1+u^2} = -I \), so \( I = 0 \). The map \( u \mapsto 1/u \) is not defined at \( 0 \), let alone \( C^1 \) on \( [-1,1] \), so Step 3 never applies. The same mechanism invalidates “\( \int_{-1}^1 x^{-2}\,\mathrm{d}x = -2 \)”.
  • Improper limits taken before the substitution is justified: the theorem is stated on compact intervals. For \( \int_0^{\infty} \), substitute on \( [0,R] \), obtain an identity between two finite integrals, and only then let \( R \to \infty \) — and only if both limits exist. Swapping the order silently assumes a convergence that may be false.
Common errors
  • “Substitute the integrand, keep the limits.” Writing \( \int_0^1 2s\,e^{s^2}\,\mathrm{d}s = \int_0^1 e^{x}\,\mathrm{d}x \). The limits are \( \varphi(0)=0 \) and \( \varphi(1)=1 \) here only by coincidence of \( \varphi(s)=s^2 \); for \( \varphi(s)=s^2+3 \) the limits become \( 3 \) and \( 4 \). Either transform the limits or convert back to \( s \) before evaluating — never mix.
  • Losing \( \varphi' \). \( \int f(\varphi(s))\,\mathrm{d}s \neq \int f(x)\,\mathrm{d}x \) in general. The derivative factor is the whole content of the rule; without it the identity is simply false, e.g. \( \int_0^1 e^{s^2}\mathrm{d}s \approx 1.4627 \) while \( \int_0^1 e^{x}\mathrm{d}x = e-1 \approx 1.7183 \).
  • “\( \varphi \) must be monotone.” Not for the oriented form: \( \varphi(s) = s^2 - s \) on \( [0,1] \) is not monotone, yet \( \int_0^1 f(s^2-s)(2s-1)\,\mathrm{d}s = \int_0^0 f = 0 \) for every continuous \( f \) on \( [-1/4, 0] \), which is correct. Monotonicity is needed to run the substitution backwards, and for the \( \lvert\varphi'\rvert \) form.
  • Sign of a surd. Putting \( x = \sin\theta \) and writing \( \sqrt{1-x^2} = \cos\theta \). True only when \( \cos\theta \ge 0 \), i.e. \( \theta \in [-\pi/2,\pi/2] \); in general \( \sqrt{1-\sin^2\theta} = \lvert\cos\theta\rvert \). The same trap is \( \sqrt{x^2} = \lvert x\rvert \), not \( x \).
  • Forgetting to restore the original variable. An indefinite integral answered as \( \tfrac{1}{2}u^2 + C \) is not an answer; it must be \( \tfrac{1}{2}\varphi(s)^2 + C \).
  • Substituting inside an improper or singular integral without checking. Any substitution that maps a bounded parameter interval onto an unbounded one, or that passes through a pole of \( f \), needs a separate limiting argument — the compact-interval theorem does not cover it.
  • “\( \mathrm{d}x = \varphi'(s)\,\mathrm{d}s \) is an equation about infinitesimals.” It is an abbreviation for the theorem, licensed by it. The notation is reliable because the theorem is true, not the other way round.
Discussion

The rule is older than its proof. Leibniz's 1670s calculus was built on the differential \( \mathrm{d}x \), and substitution was, for him, nothing more than the observation that \( \mathrm{d}x \) obeys the same transformation law as the derivative — a piece of notation so well designed that it computes correctly by itself. Euler used it with complete freedom throughout the Institutiones calculi integralis (1768–1770). The modern justification arrived only with Cauchy's definition of the integral as a limit of sums (1823) and its refinement by Riemann (1854), at which point the hypotheses became visible: continuity of \( f \) on the image, and continuous differentiability of \( \varphi \). Everything difficult about the theorem lives in those hypotheses, since the proof itself is four lines once the fundamental theorem is available.

It is worth being clear about the direction of logical dependence. Substitution does not stand beside the chain rule and the fundamental theorem as a third principle; it is their composite, and the proof above is little more than a statement of that fact. This also explains the asymmetry between differentiation and integration in practice. The chain rule is an algorithm: given \( F \circ \varphi \), differentiate mechanically. Substitution is a search: given an integrand, guess a factorisation of the form \( f(\varphi(s))\varphi'(s) \). No such guess is guaranteed to exist within the elementary functions — Liouville's theory of integration in finite terms, made algorithmic by Risch (1969), decides exactly when it does, and shows that \( \int e^{-s^2}\mathrm{d}s \) has no elementary antiderivative. Substitution is therefore a powerful heuristic attached to a very sharp theorem, and the two should not be confused.

The geometric content is naturality under reparametrisation. Write the integrand as the differential form \( \omega = f(x)\,\mathrm{d}x \) on \( I \); then \( \varphi^{*}\omega = f(\varphi(s))\varphi'(s)\,\mathrm{d}s \) is its pullback, and the theorem says \( \int_{[\alpha,\beta]} \varphi^{*}\omega = \int_{\varphi_{*}[\alpha,\beta]} \omega \), the right-hand side being the integral over the oriented image chain — the path traced by \( \varphi \), counted with multiplicity and sign — and not over the image set. In this language the absence of an injectivity hypothesis is no surprise: pullback is defined for any smooth map, and a path that doubles back simply contributes cancelling oriented pieces. The unsigned form of Step 9 is the statement about measure rather than about forms, and measure cannot cancel, which is why it alone needs injectivity. The same split explains why the \( n \)-dimensional Jacobian theorem, which is a measure statement, carries \( \lvert\det D\varphi\rvert \) and demands a diffeomorphism, while its differential-form counterpart carries \( \det D\varphi \) and demands only orientation.

In the Lebesgue theory the clean general statement drops the correction factor altogether. For a measurable \( \varphi : (\Omega,\mathcal{A},\mu) \to (\Omega',\mathcal{A}') \), the image measure \( \varphi_{*}\mu = \mu \circ \varphi^{-1} \) satisfies \( \int_{\Omega'} g\,\mathrm{d}(\varphi_{*}\mu) = \int_{\Omega} (g\circ\varphi)\,\mathrm{d}\mu \) for every non-negative measurable \( g \) — proved by the usual bootstrap from indicators through simple functions and monotone convergence, with no smoothness anywhere. The Jacobian \( \lvert\varphi'\rvert \) is not part of that theorem; it appears only when one insists on writing \( \varphi_{*}\mu \) back in terms of Lebesgue measure, at which point \( \lvert\varphi'\rvert \) is the Radon–Nikodym derivative \( \mathrm{d}(\varphi_{*}^{-1}\lambda)/\mathrm{d}\lambda \), and its existence is exactly absolute continuity. The sharpest one-dimensional real-variable version says: if \( \varphi : [\alpha,\beta] \to \mathbb{R} \) is absolutely continuous and \( f \) is Borel with \( (f\circ\varphi)\varphi' \) Lebesgue integrable, then the identity holds — \( C^1 \) is comfortably sufficient, the Cantor function is exactly what absolute continuity excludes, and the probabilistic density-transformation rule \( p_Y(y) = p_X(\varphi^{-1}(y))\,\lvert(\varphi^{-1})'(y)\rvert \) is this same theorem read once more, with \( \varphi \) required injective because a density is a measure and measures do not cancel.

Common misconceptions. Substitution is not “change of variables in the integrand”: it changes the integrand, the measure, and the limits together, and any two out of three is wrong. It does not require \( \varphi \) to be invertible, monotone, or even locally injective — only that it be \( C^1 \) and land inside the region where \( f \) is continuous. Conversely it gives no licence to substitute through a point where \( f \) or \( \varphi \) misbehaves, and the resulting fallacies (\( \pi/2 = 0 \) above) look entirely routine on the page. Finally, the appearance of \( \lvert\varphi'\rvert \) rather than \( \varphi' \) is not a matter of taste: the absolute value belongs to the unsigned, set-theoretic reading and comes packaged with injectivity, while the signed \( \varphi' \) belongs to the oriented reading and comes free.

Worked examples

Example 1. Evaluate \( \displaystyle\int_{0}^{4} \frac{\mathrm{d}x}{1 + \sqrt{x}} \), justifying every hypothesis. The integrand is elementary but has no obvious antiderivative; the substitution \( x = \varphi(s) = s^2 \) rationalises it, and is used in the inverse direction (Step 8), so monotonicity must be checked.

1
\[ \varphi : [0,2] \to [0,4], \qquad \varphi(s) = s^2, \qquad \varphi'(s) = 2s, \qquad f(x) = \frac{1}{1+\sqrt{x}}. \]
Choice of substitution and its data. \( \varphi \in C^{\infty} \), so certainly \( C^1 \) on \( [0,2] \); \( \varphi \) is strictly increasing on \( [0,2] \), since \( 0 \le s_1 \lt s_2 \) gives \( s_1^2 \lt s_2^2 \); and \( \varphi(0) = 0 \), \( \varphi(2) = 4 \), so \( \varphi \) maps \( [0,2] \) bijectively onto \( [0,4] \). A
2
\[ f \ \text{is continuous on } I = [0,4], \qquad \text{since } 1 + \sqrt{x} \ge 1 \gt 0 \ \ \forall\, x \in [0,4]. \]
The image condition: \( \varphi([0,2]) = [0,4] = I \), and the denominator never vanishes on \( I \), so \( f \) is continuous on the whole image. Both hypotheses of the theorem are now verified, and Step 8 of the proof applies. A
3
\[ \int_{0}^{4} \frac{\mathrm{d}x}{1+\sqrt{x}} \;=\; \int_{0}^{2} \frac{1}{1+\sqrt{s^2}}\cdot 2s\,\mathrm{d}s \;=\; \int_{0}^{2} \frac{2s}{1+s}\,\mathrm{d}s. \]
Inverse substitution. The simplification \( \sqrt{s^2} = \lvert s\rvert = s \) is legal only because \( s \ge 0 \) on \( [0,2] \) — exactly the surd-sign trap listed under Common errors, resolved here by the range of \( \varphi \). B
4
\[ \frac{2s}{1+s} \;=\; \frac{2(1+s) - 2}{1+s} \;=\; 2 - \frac{2}{1+s}. \]
Polynomial division, carried out in symbols before any number is inserted; the new integrand is a constant plus a logarithmic derivative, both of which integrate in closed form. A
5
\[ \int_{0}^{2}\left(2 - \frac{2}{1+s}\right)\mathrm{d}s \;=\; \Bigl[\, 2s - 2\ln(1+s) \,\Bigr]_{0}^{2} \;=\; 4 - 2\ln 3. \]
Fundamental theorem, Part II, with the antiderivative \( s \mapsto 2s - 2\ln(1+s) \), which is \( C^1 \) on \( [0,2] \) since \( 1+s \ge 1 \gt 0 \). At \( s=0 \) the bracket is \( 0 - 2\ln 1 = 0 \). A
6
\[ 4 - 2\ln 3 \;=\; 4 - 2(1.0986122\ldots) \;=\; 1.802775\ldots \]
Numerical evaluation with \( \ln 3 = 1.0986122886\ldots \). A sanity check: the integrand decreases from \( 1 \) at \( x=0 \) to \( 1/3 \) at \( x=4 \), so the value must lie strictly between \( 4 \times \tfrac{1}{3} \approx 1.33 \) and \( 4 \times 1 = 4 \), and it does. A
\[ \int_{0}^{4} \frac{\mathrm{d}x}{1+\sqrt{x}} \;=\; 4 - 2\ln 3 \;\approx\; 1.8028 \]

Reading. The substitution is used backwards, so injectivity of \( \varphi \) was needed and was checked; the reward is that an irrational integrand becomes a rational one. The identification \( \sqrt{s^2}=s \) is the only place the restricted range \( [0,2] \) is spent, and it is not optional.

Example 2. A bead of mass \( m = 0.250\ \mathrm{kg} \) is pushed along a straight rail by the model force \( F(x) = \dfrac{k\,x}{(x^2+a^2)^{3/2}} \), where \( k = 2.00\ \mathrm{N\,m^2} \) and \( a = 0.100\ \mathrm{m} \) is a fixed offset. Find the work done as the bead moves from \( x_1 = 0 \) to \( x_2 = 0.200\ \mathrm{m} \), and the resulting speed if it starts from rest.

1
\[ W \;=\; \int_{x_1}^{x_2} F(x)\,\mathrm{d}x \;=\; \int_{x_1}^{x_2} \frac{k\,x}{\bigl(x^2+a^2\bigr)^{3/2}}\,\mathrm{d}x . \]
Definition of work done by a force along a line. The integrand is continuous on \( [x_1,x_2] \) because \( x^2 + a^2 \ge a^2 \gt 0 \), so the integral exists. A
2
\[ \varphi(x) = x^2 + a^2, \qquad \varphi'(x) = 2x, \qquad f(u) = \frac{k}{2}\,u^{-3/2}, \qquad \frac{k\,x}{(x^2+a^2)^{3/2}} = f\bigl(\varphi(x)\bigr)\,\varphi'(x). \]
Recognising the integrand in the form \( (f\circ\varphi)\varphi' \) — the search step. Here \( \varphi \in C^{\infty} \) and \( \varphi([x_1,x_2]) = [a^2,\ x_2^2+a^2] \subseteq (0,\infty) = I \), on which \( u \mapsto u^{-3/2} \) is continuous. Both hypotheses hold; note \( \varphi \) is monotone on \( [0,x_2] \) but the oriented form does not need that. B
3
\[ W \;=\; \frac{k}{2}\int_{a^2}^{\,x_2^2+a^2} u^{-3/2}\,\mathrm{d}u \;=\; \frac{k}{2}\Bigl[\, -2u^{-1/2} \,\Bigr]_{a^2}^{\,x_2^2+a^2} \;=\; k\left( \frac{1}{a} - \frac{1}{\sqrt{x_2^2+a^2}} \right). \]
Substitution with \( x_1 = 0 \), so \( \varphi(x_1) = a^2 \); then the power rule and Part II of the fundamental theorem, valid because \( u^{-1/2} \) is \( C^1 \) on \( [a^2, x_2^2+a^2] \subseteq (0,\infty) \). Note that \( \sqrt{a^2} = a \) here because \( a \gt 0 \). All symbols, no numbers yet. B
4
\[ [k] = \mathrm{N\,m^2}, \qquad \left[\frac{1}{a}\right] = \mathrm{m^{-1}}, \qquad [W] = \mathrm{N\,m^2 \cdot m^{-1}} = \mathrm{N\,m} = \mathrm{J}. \]
Dimensional check on the symbolic answer before substituting numbers. The bracket is a difference of two reciprocal lengths, so the formula returns joules as required. A
5
\[ \sqrt{x_2^2 + a^2} = \sqrt{(0.200)^2 + (0.100)^2}\ \mathrm{m} = \sqrt{0.0500}\ \mathrm{m} = 0.223607\ \mathrm{m}, \qquad \frac{1}{a} = 10.0\ \mathrm{m^{-1}}. \]
Numerical evaluation of the two reciprocal lengths, carried to six figures so that the difference of comparable quantities does not lose precision. A
6
\[ W = 2.00\ \mathrm{N\,m^2} \times \bigl(10.0 - 4.47214\bigr)\ \mathrm{m^{-1}} = 2.00 \times 5.52786\ \mathrm{J} = 11.0557\ \mathrm{J} \approx 11.1\ \mathrm{J}. \]
Arithmetic, rounded at the end to the three significant figures carried by the data. A
7
\[ v_2 = \sqrt{\frac{2W}{m}} = \sqrt{\frac{2 \times 11.0557\ \mathrm{J}}{0.250\ \mathrm{kg}}} = \sqrt{88.446\ \mathrm{m^2\,s^{-2}}} = 9.40\ \mathrm{m\,s^{-1}}. \]
Work–energy theorem with \( v_1 = 0 \): \( W = \tfrac{1}{2}mv_2^2 - \tfrac{1}{2}mv_1^2 \), solved for \( v_2 \). Units: \( \mathrm{J/kg} = \mathrm{m^2\,s^{-2}} \), whose square root is a speed. A
\[ W \;=\; k\left( \frac{1}{a} - \frac{1}{\sqrt{x_2^2+a^2}} \right) \;=\; 11.1\ \mathrm{J}, \qquad v_2 \;=\; 9.40\ \mathrm{m\,s^{-1}} \]

Reading. The substitution \( u = x^2+a^2 \) is the standard move for an integrand of the form \( x\,g(x^2) \); the factor \( x \) is exactly half the derivative of the new variable, which is what makes the pattern \( (f\circ\varphi)\varphi' \) visible. Because the image \( [a^2, x_2^2+a^2] \) stays strictly positive, the singular point \( u = 0 \) of \( u^{-3/2} \) is never approached, and the compact-interval theorem applies without any improper-integral argument.

Problems
  1. Evaluate \( \displaystyle\int_{0}^{1} x\,e^{-x^2}\,\mathrm{d}x \), stating which \( \varphi \) and which \( f \) you are using and checking the hypotheses.
    Solution

    Take \( \varphi(x) = -x^2 \) and \( f(u) = -\tfrac{1}{2}e^{u} \). Then \( \varphi \in C^{\infty}[0,1] \), \( \varphi'(x) = -2x \), and \[ f\bigl(\varphi(x)\bigr)\varphi'(x) = -\tfrac{1}{2}e^{-x^2}\cdot(-2x) = x\,e^{-x^2}, \] which is the integrand. The image is \( \varphi([0,1]) = [-1,0] \), and \( f \) is continuous on all of \( \mathbb{R} \), so certainly on that image. The theorem gives \[ \int_0^1 x e^{-x^2}\,\mathrm{d}x = \int_{\varphi(0)}^{\varphi(1)} f(u)\,\mathrm{d}u = \int_{0}^{-1} \left(-\tfrac{1}{2}e^{u}\right)\mathrm{d}u = \tfrac{1}{2}\int_{-1}^{0} e^{u}\,\mathrm{d}u, \] using the orientation convention to flip the limits. Hence \[ \int_0^1 x e^{-x^2}\,\mathrm{d}x = \tfrac{1}{2}\Bigl[e^{u}\Bigr]_{-1}^{0} = \tfrac{1}{2}\bigl(1 - e^{-1}\bigr) = \tfrac{1}{2}(1 - 0.367879\ldots) = 0.316060\ldots \approx 0.3161 . \] Equivalently, in the everyday notation, put \( u = x^2 \), \( \mathrm{d}u = 2x\,\mathrm{d}x \), limits \( 0 \to 1 \), giving \( \tfrac{1}{2}\int_0^1 e^{-u}\mathrm{d}u \) — the same number.

  2. Evaluate \( \displaystyle\int_{-1}^{1} \sqrt{1-x^2}\,\mathrm{d}x \) by trigonometric substitution, and say precisely where the choice of range for \( \theta \) is used.
    Solution

    Put \( \varphi(\theta) = \sin\theta \) on \( [\alpha,\beta] = [-\pi/2,\ \pi/2] \). Then \( \varphi \in C^{\infty} \), \( \varphi'(\theta) = \cos\theta \), \( \varphi(-\pi/2) = -1 \), \( \varphi(\pi/2) = 1 \), and \( \varphi \) is strictly increasing on this interval (its derivative is positive on the interior), so it is a bijection onto \( [-1,1] \) — this is what licenses the inverse-substitution direction. With \( f(x) = \sqrt{1-x^2} \), continuous on \( [-1,1] \), \[ \int_{-1}^{1}\sqrt{1-x^2}\,\mathrm{d}x = \int_{-\pi/2}^{\pi/2} \sqrt{1-\sin^2\theta}\;\cos\theta\,\mathrm{d}\theta = \int_{-\pi/2}^{\pi/2} \lvert\cos\theta\rvert\,\cos\theta\,\mathrm{d}\theta. \] Here the range is spent: on \( [-\pi/2,\pi/2] \) we have \( \cos\theta \ge 0 \), so \( \lvert\cos\theta\rvert = \cos\theta \) and the integrand is \( \cos^2\theta \). (On \( [0,\pi] \), say, this identification would be false on \( (\pi/2,\pi] \) and would produce a sign error.) Using \( \cos^2\theta = \tfrac{1}{2}(1+\cos 2\theta) \), \[ \int_{-\pi/2}^{\pi/2}\cos^2\theta\,\mathrm{d}\theta = \tfrac{1}{2}\Bigl[\theta + \tfrac{1}{2}\sin 2\theta\Bigr]_{-\pi/2}^{\pi/2} = \tfrac{1}{2}\Bigl[\bigl(\tfrac{\pi}{2}+0\bigr) - \bigl(-\tfrac{\pi}{2}+0\bigr)\Bigr] = \frac{\pi}{2} \approx 1.5708 . \] This is the area of a unit half-disc, as it must be.

  3. Prove the reflection corollary \( \displaystyle\int_{0}^{a} f(x)\,\mathrm{d}x = \int_{0}^{a} f(a-x)\,\mathrm{d}x \) for continuous \( f \) and \( a \gt 0 \), and use it to evaluate \( \displaystyle J = \int_{0}^{\pi/2} \frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,\mathrm{d}x \).
    Solution

    The corollary. Let \( \varphi(s) = a - s \) on \( [0,a] \). It is \( C^{\infty} \) with \( \varphi'(s) = -1 \), \( \varphi(0) = a \), \( \varphi(a) = 0 \), and \( \varphi([0,a]) = [0,a] \), on which \( f \) is continuous. The theorem gives \[ \int_{0}^{a} f(a-s)\,(-1)\,\mathrm{d}s = \int_{a}^{0} f(x)\,\mathrm{d}x = -\int_{0}^{a} f(x)\,\mathrm{d}x, \] and multiplying by \( -1 \) yields \( \int_0^a f(a-s)\,\mathrm{d}s = \int_0^a f(x)\,\mathrm{d}x \), as claimed.

    The integral. Apply this with \( a = \pi/2 \). The integrand is continuous on \( [0,\pi/2] \): on \( [0,\pi/2] \) both \( \sin x \) and \( \cos x \) are non-negative, so the square roots are real, and \[ \bigl(\sqrt{\sin x}+\sqrt{\cos x}\bigr)^2 = \sin x + \cos x + 2\sqrt{\sin x \cos x} \ \ge\ \sin x + \cos x \ \ge\ 1, \] the last inequality because \( (\sin x + \cos x)^2 = 1 + \sin 2x \ge 1 \) and \( \sin x + \cos x \ge 0 \) there. So the denominator is at least \( 1 \) and never vanishes. Using \( \sin(\pi/2 - x) = \cos x \) and \( \cos(\pi/2 - x) = \sin x \), \[ J = \int_{0}^{\pi/2} \frac{\sqrt{\cos x}}{\sqrt{\cos x} + \sqrt{\sin x}}\,\mathrm{d}x . \] Adding the two expressions for \( J \), \[ 2J = \int_{0}^{\pi/2} \frac{\sqrt{\sin x}+\sqrt{\cos x}}{\sqrt{\sin x}+\sqrt{\cos x}}\,\mathrm{d}x = \int_{0}^{\pi/2} 1\,\mathrm{d}x = \frac{\pi}{2}, \] so \( J = \pi/4 \approx 0.7854 \). Notice that no antiderivative of the integrand was ever found; the substitution was used purely as a symmetry.

  4. Evaluate \( \displaystyle I = \int_{0}^{\pi} \frac{x\,\sin x}{1 + \cos^2 x}\,\mathrm{d}x \).
    Solution

    The integrand is continuous on \( [0,\pi] \) since \( 1+\cos^2 x \ge 1 \). Substitute \( \varphi(t) = \pi - t \) on \( [0,\pi] \), which is \( C^{\infty} \), maps \( [0,\pi] \) onto itself, and has \( \varphi' = -1 \). With \( \sin(\pi-t) = \sin t \) and \( \cos^2(\pi-t) = \cos^2 t \), the reflection corollary of Problem 3 (with \( a = \pi \)) gives \[ I = \int_{0}^{\pi} \frac{(\pi - t)\sin t}{1+\cos^2 t}\,\mathrm{d}t = \pi\int_{0}^{\pi} \frac{\sin t}{1+\cos^2 t}\,\mathrm{d}t \;-\; I . \] Hence \( 2I = \pi K \) where \( K = \int_0^{\pi} \dfrac{\sin t}{1+\cos^2 t}\,\mathrm{d}t \). For \( K \), substitute \( \psi(t) = \cos t \) on \( [0,\pi] \): \( \psi \in C^{\infty} \), \( \psi'(t) = -\sin t \), \( \psi(0) = 1 \), \( \psi(\pi) = -1 \), and \( \psi([0,\pi]) = [-1,1] \), on which \( u \mapsto (1+u^2)^{-1} \) is continuous. Then \[ K = -\int_{0}^{\pi} \frac{\psi'(t)}{1+\psi(t)^2}\,\mathrm{d}t = -\int_{1}^{-1}\frac{\mathrm{d}u}{1+u^2} = \int_{-1}^{1}\frac{\mathrm{d}u}{1+u^2} = \arctan(1) - \arctan(-1) = \frac{\pi}{2}. \] Therefore \( 2I = \pi \cdot \dfrac{\pi}{2} \) and \[ I = \frac{\pi^2}{4} \approx 2.4674 . \] Both substitutions were applied in the oriented direction of Step 7, so no inverse function was ever needed; \( \varphi(t) = \pi - t \) served only as a symmetry, and \( \psi = \cos \) was used to push the limits from \( [0,\pi] \) to \( [1,-1] \), the reversal of orientation supplying the sign that cancels the minus sign of \( \psi' \).

  5. The following argument concludes that \( \displaystyle I = \int_{-1}^{1}\frac{\mathrm{d}x}{1+x^2} \) is zero. Substituting \( x = 1/u \) gives \( \mathrm{d}x = -u^{-2}\,\mathrm{d}u \) and \( (1+x^2)^{-1} = u^2/(1+u^2) \); the limits \( x = -1 \) and \( x = 1 \) correspond to \( u = -1 \) and \( u = 1 \); hence \( I = \int_{-1}^{1} \frac{u^2}{1+u^2}\cdot\left(-\frac{1}{u^2}\right)\mathrm{d}u = -I \), so \( I = 0 \). Locate the error precisely, and give the correct value.
    Solution

    The correct value. \( x \mapsto (1+x^2)^{-1} \) is continuous on \( [-1,1] \) and strictly positive, so \( I \gt 0 \) immediately; by Part II of the fundamental theorem with the antiderivative \( \arctan \), \[ I = \arctan(1) - \arctan(-1) = \frac{\pi}{4} - \left(-\frac{\pi}{4}\right) = \frac{\pi}{2} \approx 1.5708 . \] So the argument is certainly wrong.

    The error. The substituting map is \( \varphi(u) = 1/u \), and the theorem demands \( \varphi \in C^1[\alpha,\beta] \) with \( \varphi([\alpha,\beta]) \) inside the domain of continuity of \( f \). Here the proposed parameter interval is \( [\alpha,\beta] = [-1,1] \), and \( \varphi \) is not defined at \( u = 0 \), let alone continuously differentiable there. Step 3 of the proof — forming \( G = F\circ\varphi \) on the closed parameter interval — therefore never gets off the ground, and neither does the application of Part II in Step 6, which needs \( G \) continuous on the whole of \( [\alpha,\beta] \).

    What is actually true. On \( [\alpha,\beta] = [1,R] \) with \( R \gt 1 \) the substitution is perfectly legal, and it gives \[ \int_{1/R}^{1}\frac{\mathrm{d}x}{1+x^2} = \int_{1}^{R}\frac{\mathrm{d}u}{1+u^2}, \] a correct identity (both sides equal \( \arctan 1 - \arctan(1/R) = \arctan R - \arctan 1 \), using \( \arctan(1/t) = \pi/2 - \arctan t \) for \( t \gt 0 \)). Letting \( R \to \infty \) recovers \( \int_0^1 = \int_1^{\infty} = \pi/4 \), and the mirror computation on \( [-R,-1] \) gives \( \int_{-1}^{-1/R} \mathrm{d}x/(1+x^2) = \int_{-R}^{-1}\mathrm{d}u/(1+u^2) \). So the parameter set that \( u \mapsto 1/u \) really carries onto \( [-1,1]\setminus\{0\} \) is \( \lvert u\rvert \ge 1 \), not \( [-1,1] \): the fallacy has quietly swapped the true, unbounded \( u \)-domain for its complement. Nothing diverges here — both regions carry the same finite integral, \( \int_{\lvert u\rvert \ge 1} \mathrm{d}u/(1+u^2) = \pi/2 = \int_{-1}^{1}\mathrm{d}u/(1+u^2) \) — which is precisely why the arithmetic looks self-consistent and only the stray minus sign gives it away. This is the singularity-crossing failure mode: everything on the page looks routine, and only the hypothesis check catches it.