5.8 The Substitution Rule and Change of Variables

In mathematics, the art of proposing a question must be held of higher value than solving it; change of perspective is often the very essence of discovery.

Georg Cantor

In differential calculus, the chain rule is the engine that unlocks derivatives of composite functions:

dd⁢x⁢F⁢(g⁢(x))=F′⁢(g⁢(x))⁢g′⁢(x).\frac{\mathrm{d}}{\mathrm{d}x}F\bigl{(}g(x)\bigr{)}=F^{\prime}\bigl{(}g(x)% \bigr{)}\,g^{\prime}(x).

Because integration reverses differentiation, every differentiation rule must have an integral counterpart. Reversing the chain rule yields the Substitution Rule, also known as the method of change of variables.

Just as the chain rule accounts for the inner rate of change g′⁢(x)g^{\prime}(x), the substitution rule accounts for the local stretching or compressing of the coordinate axis when we transition from an old variable xx to a new variable u=g⁢(x)u=g(x).

5.8.1 Inverting the Chain Rule: Indefinite Integrals

Let FF be any antiderivative of a continuous function ff, so that F′=fF^{\prime}=f. If gg is a differentiable function whose range is contained in the domain of ff, the chain rule gives

dd⁢x⁢F⁢(g⁢(x))=F′⁢(g⁢(x))⁢g′⁢(x)=f⁢(g⁢(x))⁢g′⁢(x).\frac{\mathrm{d}}{\mathrm{d}x}F\bigl{(}g(x)\bigr{)}=F^{\prime}\bigl{(}g(x)% \bigr{)}\,g^{\prime}(x)=f\bigl{(}g(x)\bigr{)}\,g^{\prime}(x).

Translating this identity into the language of indefinite integrals (5.7.5) yields

equation (5.9) (5.9)
∫f⁢(g⁢(x))⁢g′⁢(x)⁢dx=F⁢(g⁢(x))+C.\int f\bigl{(}g(x)\bigr{)}\,g^{\prime}(x)\,\mathrm{d}x=F\bigl{(}g(x)\bigr{)}+C.

To reveal the structure of the above equation, setting the new variable uu to be the inner function,

u=g⁢(x),u=g(x),

the corresponding differential represents the linear approximation of the change in uu:

d⁢u=g′⁢(x)⁢d⁢x.\,\mathrm{d}u=g^{\prime}(x)\,\mathrm{d}x.

Substituting these formal expressions into (5.9) transforms the integral into

equation (5.10) (5.10)
∫f⁢(g⁢(x))⏟f⁢(u)⁢g′⁢(x)⁢d⁢x⏟d⁢u=∫f⁢(u)⁢du=F⁢(u)+C.\int\underbrace{f\bigl{(}g(x)\bigr{)}}_{f(u)}\,\underbrace{g^{\prime}(x)\,% \mathrm{d}x}_{\,\mathrm{d}u}=\int f(u)\,\mathrm{d}u=F(u)+C.

The method replaces an intricate integral with respect to xx by a simpler integral with respect to uu. Once an antiderivative F⁢(u)F(u) is found, replacing uu by g⁢(x)g(x) restores the final result in terms of the original variable xx.

Intuition (Differentials as bookkeeping devices).

Writing d⁢u=g′⁢(x)⁢d⁢x\,\mathrm{d}u=g^{\prime}(x)\,\mathrm{d}x is not merely formal shorthand; it accurately reflects the distortion of scale between coordinate systems. If g′⁢(x)=5g^{\prime}(x)=5, a tiny step of length d⁢x\,\mathrm{d}x on the xx-axis produces a change d⁢u\,\mathrm{d}u that is five times as large on the uu-axis. The factor g′⁢(x)g^{\prime}(x) inside the integrand compensates for this coordinate re-scaling.

Moral.

To execute a successful substitution, the integrand must contain not only a composite expression f⁢(g⁢(x))f\bigl{(}g(x)\bigr{)}, but also the derivative of the inner function g′⁢(x)g^{\prime}(x) as an algebraic factor, at least up to a non-zero multiplicative constant.

To evaluate an indefinite integral using the Substitution Rule:

  1. 1.
    ​

    Identify the inner target: Inspect the integrand for a composite structure f⁢(g⁢(x))f\bigl{(}g(x)\bigr{)} where a constant multiple of g′⁢(x)g^{\prime}(x) appears elsewhere in the product. Set u=g⁢(x)u=g(x).

  2. 2.
    ​

    Compute the differential: Differentiate to find d⁢u=g′⁢(x)⁢d⁢x\,\mathrm{d}u=g^{\prime}(x)\,\mathrm{d}x, and isolate the remaining xx-terms in terms of d⁢u\,\mathrm{d}u.

  3. 3.
    ​

    Transform and integrate: Re-express the entire integrand in terms of uu and d⁢u\,\mathrm{d}u, ensuring that no remnants of the old variable xx survive. Compute the resulting integral ∫f⁢(u)⁢du\int f(u)\,\mathrm{d}u.

  4. 4.
    ​

    Back-substitute: Express the final antiderivative in terms of xx by substituting g⁢(x)g(x) back in place of uu.

Caveat (Incomplete substitutions).

A common error is to substitute u=g⁢(x)u=g(x) while leaving some appearances of xx inside the integrand. An intermediate expression such as ∫x2⁢u9⁢du\int x^{2}u^{9}\,\mathrm{d}u is completely invalid: an integral cannot be evaluated with respect to uu while treating remaining functions of xx as constants. Every single xx and d⁢x\,\mathrm{d}x must be transformed into uu and d⁢u\,\mathrm{d}u before proceeding.

Example 5.8.1 (Perfect substitutions).

Evaluate the following indefinite integrals and verify each result by differentiation.

  1. (i)
    ​

    ∫2⁢(2⁢x+1)3⁢dx\displaystyle\int 2(2x+1)^{3}\,\mathrm{d}x.

    Solution. The composite power (2⁢x+1)3(2x+1)^{3} has inner function u=2⁢x+1u=2x+1. Differentiating yields d⁢u=2⁢d⁢x\,\mathrm{d}u=2\,\mathrm{d}x, which appears as a factor in the integrand. Substituting directly:

    ∫(2⁢x+1)3⏟u3⋅2⁢d⁢x⏟d⁢u=∫u3⁢du=u44+C=(2⁢x+1)44+C.\begin{split}\int\underbrace{(2x+1)^{3}}_{u^{3}}\cdot\underbrace{2\,\mathrm{d}% x}_{\,\mathrm{d}u}&{}=\int u^{3}\,\mathrm{d}u\\ &{}=\frac{u^{4}}{4}+C\\ &{}=\frac{(2x+1)^{4}}{4}+C.\end{split}

    Check: dd⁢x⁢(14⁢(2⁢x+1)4+C)=14⋅4⁢(2⁢x+1)3⋅2=2⁢(2⁢x+1)3\frac{\mathrm{d}}{\mathrm{d}x}\bigl{(}\frac{1}{4}(2x+1)^{4}+C\bigr{)}=\frac{1}% {4}\cdot 4(2x+1)^{3}\cdot 2=2(2x+1)^{3}.

  2. (ii)
    ​

    ∫10⁢e10⁢x⁢dx\displaystyle\int 10\mathrm{e}^{10x}\,\mathrm{d}x.

    Solution. The exponential e10⁢x\mathrm{e}^{10x} has inner function u=10⁢xu=10x, giving d⁢u=10⁢d⁢x\,\mathrm{d}u=10\,\mathrm{d}x. Thus,

    ∫e10⁢x⏟eu⋅10⁢d⁢x⏟d⁢u=∫eu⁢du=eu+C=e10⁢x+C.\begin{split}\int\underbrace{\mathrm{e}^{10x}}_{\mathrm{e}^{u}}\cdot% \underbrace{10\,\mathrm{d}x}_{\,\mathrm{d}u}&{}=\int\mathrm{e}^{u}\,\mathrm{d}% u\\ &{}=\mathrm{e}^{u}+C\\ &{}=\mathrm{e}^{10x}+C.\end{split}

    Check: dd⁢x⁢(e10⁢x+C)=e10⁢x⋅10=10⁢e10⁢x\frac{\mathrm{d}}{\mathrm{d}x}(\mathrm{e}^{10x}+C)=\mathrm{e}^{10x}\cdot 10=10% \mathrm{e}^{10x}.

Example 5.8.2 (Introducing constant factors).

Find the following indefinite integrals.

  1. (i)
    ​

    ∫x4⁢(x5+6)9⁢dx\displaystyle\int x^{4}(x^{5}+6)^{9}\,\mathrm{d}x.

    Solution. The inner function of (x5+6)9(x^{5}+6)^{9} is u=x5+6u=x^{5}+6, with derivative d⁢ud⁢x=5⁢x4\frac{\mathrm{d}u}{\mathrm{d}x}=5x^{4}. The factor x4x^{4} is present in the integrand, lacking only the scalar factor 55. We write

    d⁢u=5⁢x4⁢d⁢x⟹x4⁢d⁢x=15⁢d⁢u.\,\mathrm{d}u=5x^{4}\,\mathrm{d}x\implies x^{4}\,\mathrm{d}x=\frac{1}{5}\,% \mathrm{d}u.

    Applying the substitution rule and factoring out the constant scalar:

    ∫(x5+6)9⏟u9⋅x4⁢d⁢x⏟15⁢d⁢u=∫u9⋅15⁢du=15⁢∫u9⁢du=15⋅u1010+C=150⁢(x5+6)10+C.\begin{split}\int\underbrace{(x^{5}+6)^{9}}_{u^{9}}\cdot\underbrace{x^{4}\,% \mathrm{d}x}_{\frac{1}{5}\,\mathrm{d}u}&{}=\int u^{9}\cdot\frac{1}{5}\,\mathrm% {d}u\\ &{}=\frac{1}{5}\int u^{9}\,\mathrm{d}u\\ &{}=\frac{1}{5}\cdot\frac{u^{10}}{10}+C\\ &{}=\frac{1}{50}(x^{5}+6)^{10}+C.\end{split}
  2. (ii)
    ​

    ∫cos3⁡x⁢sin⁡x⁢d⁢x\displaystyle\int\cos^{3}x\sin x\,\mathrm{d}x.

    Solution. Rewriting the integrand as (cos⁡x)3⁢sin⁡x(\cos x)^{3}\sin x, we identify u=cos⁡xu=\cos x. Then d⁢u=−sin⁡x⁢d⁢x\,\mathrm{d}u=-\sin x\,\mathrm{d}x, which implies sin⁡x⁢d⁢x=−d⁢u\sin x\,\mathrm{d}x=-\,\mathrm{d}u. Substituting gives

    ∫cos3⁡x⏟u3⋅sin⁡x⁢d⁢x⏟−d⁢u=−∫u3⁢du=−u44+C=−cos4⁡x4+C.\begin{split}\int\underbrace{\cos^{3}x}_{u^{3}}\cdot\underbrace{\sin x\,% \mathrm{d}x}_{-\,\mathrm{d}u}&{}=-\int u^{3}\,\mathrm{d}u\\ &{}=-\frac{u^{4}}{4}+C\\ &{}=-\frac{\cos^{4}x}{4}+C.\end{split}
Moral (Heuristics for selecting uu).

Choosing the appropriate substitution often requires trial and error, guided by two primary heuristics:

  • •
    ​

    If an expression g⁢(x)g(x) appears in the integrand and a constant multiple of its derivative g′⁢(x)g^{\prime}(x) also appears as an algebraic factor multiplying the differential, test u=g⁢(x)u=g(x).

  • •
    ​

    If a complicated expression is trapped inside an algebraic root, an exponential, a trigonometric argument, or a denominator, test that inner expression as uu.

5.8.2 Substitution for Definite Integrals

When evaluating a definite integral ∫abf⁢(g⁢(x))⁢g′⁢(x)⁢dx\int_{a}^{b}f\bigl{(}g(x)\bigr{)}g^{\prime}(x)\,\mathrm{d}x, there are two distinct conceptual approaches:

  1. (I)
    ​

    Antiderivative first, limits second: Use substitution to find the indefinite antiderivative F⁢(g⁢(x))F\bigl{(}g(x)\bigr{)}, and then apply the Fundamental Theorem of Calculus directly to the original limits:

    [F⁢(g⁢(x))]ab=F⁢(g⁢(b))−F⁢(g⁢(a)).\bigl{[}F\bigl{(}g(x)\bigr{)}\bigr{]}_{a}^{b}=F\bigl{(}g(b)\bigr{)}-F\bigl{(}g% (a)\bigr{)}.
  2. (II)
    ​

    Transforming the limits simultaneously: Change the limits of integration from xx-values to uu-values at the exact moment the substitution is executed:

    x=a⟹u=g⁢(a),x=b⟹u=g⁢(b).x=a\implies u=g(a),\qquad x=b\implies u=g(b).

    Once the limits are updated, one evaluates the new uu-integral directly, with no need to back-substitute into xx.

The second approach is more streamlined and significantly less prone to sign errors.

Theorem 5.8.3 (Substitution Rule for Definite Integrals).

Let gg be a function whose derivative g′g^{\prime} is continuous on [a,b][a,b], and let ff be continuous on the range of gg. Then

equation (5.11) (5.11)
∫abf⁢(g⁢(x))⁢g′⁢(x)⁢dx=∫g⁢(a)g⁢(b)f⁢(u)⁢du.\int_{a}^{b}f\bigl{(}g(x)\bigr{)}\,g^{\prime}(x)\,\mathrm{d}x=\int_{g(a)}^{g(b% )}f(u)\,\mathrm{d}u.
Proof.

Let FF be an antiderivative of ff on the range of gg, so that F′=fF^{\prime}=f. By the chain rule,

dd⁢x⁢F⁢(g⁢(x))=F′⁢(g⁢(x))⁢g′⁢(x)=f⁢(g⁢(x))⁢g′⁢(x).\frac{\mathrm{d}}{\mathrm{d}x}F\bigl{(}g(x)\bigr{)}=F^{\prime}\bigl{(}g(x)% \bigr{)}\,g^{\prime}(x)=f\bigl{(}g(x)\bigr{)}\,g^{\prime}(x).

Since ff and g′g^{\prime} are continuous, f⁢(g⁢(x))⁢g′⁢(x)f\bigl{(}g(x)\bigr{)}g^{\prime}(x) is continuous on [a,b][a,b]. By Part 2 of the Fundamental Theorem of Calculus (Theorem 5.7.1 (ii)), the left-hand side evaluates to

∫abf⁢(g⁢(x))⁢g′⁢(x)⁢dx=[F⁢(g⁢(x))]ab=F⁢(g⁢(b))−F⁢(g⁢(a)).\int_{a}^{b}f\bigl{(}g(x)\bigr{)}\,g^{\prime}(x)\,\mathrm{d}x=\bigl{[}F\bigl{(% }g(x)\bigr{)}\bigr{]}_{a}^{b}=F\bigl{(}g(b)\bigr{)}-F\bigl{(}g(a)\bigr{)}.

Now consider the right-hand side of (5.11). Since F′=fF^{\prime}=f, Part 2 of the Fundamental Theorem applies directly with respect to the variable uu:

∫g⁢(a)g⁢(b)f⁢(u)⁢du=[F⁢(u)]g⁢(a)g⁢(b)=F⁢(g⁢(b))−F⁢(g⁢(a)).\int_{g(a)}^{g(b)}f(u)\,\mathrm{d}u=\bigl{[}F(u)\bigr{]}_{g(a)}^{g(b)}=F\bigl{% (}g(b)\bigr{)}-F\bigl{(}g(a)\bigr{)}.

Both sides evaluate to F⁢(g⁢(b))−F⁢(g⁢(a))F\bigl{(}g(b)\bigr{)}-F\bigl{(}g(a)\bigr{)}, establishing the equality.∎

Example 5.8.4 (Definite integral evaluations).

Evaluate the following definite integrals.

  1. (i)
    ​

    ∫02d⁢x(x+3)3\displaystyle\int_{0}^{2}\frac{\mathrm{d}x}{(x+3)^{3}}.

    Solution. Set u=x+3u=x+3, so that d⁢u=d⁢x\,\mathrm{d}u=\,\mathrm{d}x. We transform the limits of integration:

    when ⁢x=0,u=0+3=3;when ⁢x=2,u=2+3=5.\text{when }x=0,\quad u=0+3=3;\qquad\text{when }x=2,\quad u=2+3=5.

    The integral becomes

    ∫02d⁢x(x+3)3=∫35u−3⁢du=[−12⁢u−2]35=−12⁢(152−132)=−12⁢(125−19)=−12⁢(−16225)=8225.\begin{split}\int_{0}^{2}\frac{\mathrm{d}x}{(x+3)^{3}}&{}=\int_{3}^{5}u^{-3}\,% \mathrm{d}u\\ &{}=\Bigl{[}-\frac{1}{2}u^{-2}\Bigr{]}_{3}^{5}\\ &{}=-\frac{1}{2}\Bigl{(}\frac{1}{5^{2}}-\frac{1}{3^{2}}\Bigr{)}\\ &{}=-\frac{1}{2}\Bigl{(}\frac{1}{25}-\frac{1}{9}\Bigr{)}\\ &{}=-\frac{1}{2}\Bigl{(}-\frac{16}{225}\Bigr{)}\\ &{}=\frac{8}{225}.\end{split}
  2. (ii)
    ​

    ∫23x2x3−7⁢dx\displaystyle\int_{2}^{3}\frac{x^{2}}{x^{3}-7}\,\mathrm{d}x.

    Solution. Set u=x3−7u=x^{3}-7, so d⁢u=3⁢x2⁢d⁢x\,\mathrm{d}u=3x^{2}\,\mathrm{d}x, which gives x2⁢d⁢x=13⁢d⁢ux^{2}\,\mathrm{d}x=\frac{1}{3}\,\mathrm{d}u. Updating the limits:

    when ⁢x=2,u=23−7=1;when ⁢x=3,u=33−7=20.\text{when }x=2,\quad u=2^{3}-7=1;\qquad\text{when }x=3,\quad u=3^{3}-7=20.

    Applying the reciprocal antiderivative formula from Proposition 5.7.13 (ii):

    ∫23x2x3−7⁢dx=13⁢∫1201u⁢du=13⁢[log⁡|u|]120=13⁢(log⁡20−log⁡1)=13⁢log⁡20.\begin{split}\int_{2}^{3}\frac{x^{2}}{x^{3}-7}\,\mathrm{d}x&{}=\frac{1}{3}\int% _{1}^{20}\frac{1}{u}\,\mathrm{d}u\\ &{}=\frac{1}{3}\bigl{[}\log\left\lvert u\right\rvert\bigr{]}_{1}^{20}\\ &{}=\frac{1}{3}(\log 20-\log 1)\\ &{}=\frac{1}{3}\log 20.\end{split}
  3. (iii)
    ​

    ∫0π/2sin4⁡x⁢cos⁡x⁢d⁢x\displaystyle\int_{0}^{\pi/2}\sin^{4}x\cos x\,\mathrm{d}x.

    Solution. Set u=sin⁡xu=\sin x, so d⁢u=cos⁡x⁢d⁢x\,\mathrm{d}u=\cos x\,\mathrm{d}x. Updating the limits:

    when ⁢x=0,u=sin⁡0=0;when ⁢x=π2,u=sin⁡(π2)=1.\text{when }x=0,\quad u=\sin 0=0;\qquad\text{when }x=\frac{\pi}{2},\quad u=% \sin\Bigl{(}\frac{\pi}{2}\Bigr{)}=1.

    Evaluating the polynomial integral in uu:

    ∫0π/2sin4⁡x⁢cos⁡x⁢d⁢x=∫01u4⁢du=[u55]01=15−0=15.\begin{split}\int_{0}^{\pi/2}\sin^{4}x\cos x\,\mathrm{d}x&{}=\int_{0}^{1}u^{4}% \,\mathrm{d}u\\ &{}=\Bigl{[}\frac{u^{5}}{5}\Bigr{]}_{0}^{1}\\ &{}=\frac{1}{5}-0=\frac{1}{5}.\end{split}

5.8.3 Geometric Meaning of the Change of Variables

The analytical proof of Theorem 5.8.3 via Part 2 of the Fundamental Theorem is concise, but it obscures the underlying geometric mechanism. To see what change of variables actually does to area, we examine Riemann sums directly.

Suppose that the coordinate map u=g⁢(t)u=g(t) has a strictly positive derivative g′⁢(t)>0g^{\prime}(t)>0 on [a,b][a,b], so that gg is strictly increasing. It maps the interval [a,b][a,b] on the tt-axis bijectively onto the interval [A,B][A,B] on the uu-axis, where A=g⁢(a)A=g(a) and B=g⁢(b)B=g(b).

A diagram explaining the geometric interpretation of the substitution rule. It displays an upper horizontal t-axis and a parallel lower horizontal u-axis. On the t-axis, a subinterval bounded by points a j-1 and a j with a red sample point t j in the middle has a double-headed arrow above it labeled Delta t j. On the lower u-axis, this interval is mapped via u = g(t) to a stretched interval bounded by u j-1 and u j, with the sample point mapped to g(t j). A double-headed arrow below it is labeled Delta u j is approximately g prime of t j times Delta t j. Curved dashed arrows connect the upper points to their corresponding lower points, illustrating the transformation and local scaling.
Figure 5.14: The geometric meaning of the substitution rule: the transformation u=g⁢(t)u=g(t) maps the interval [aj−1,aj][a_{j-1},a_{j}] to [uj−1,uj][u_{j-1},u_{j}], scaling its width locally by the derivative factor g′⁢(tj)g^{\prime}(t_{j}).

Subdivide [a,b][a,b] into nn subintervals via partition points

a=a0<a1<a2<⋯<an=b.a=a_{0}<a_{1}<a_{2}<\dots<a_{n}=b.

Because gg is strictly increasing, applying gg to these points creates an induced partition of [A,B][A,B]:

A=u0<u1<u2<⋯<un=B,where ⁢uj≔g⁢(aj).A=u_{0}<u_{1}<u_{2}<\dots<u_{n}=B,\qquad\text{where }u_{j}\coloneqq g(a_{j}).

By the Mean Value Theorem of differential calculus applied to gg on [aj−1,aj][a_{j-1},a_{j}], there exists an intermediate point tj∈(aj−1,aj)t_{j}\in(a_{j-1},a_{j}) such that

equation (5.12) (5.12)
uj−uj−1=g⁢(aj)−g⁢(aj−1)=g′⁢(tj)⁢(aj−aj−1).u_{j}-u_{j-1}=g(a_{j})-g(a_{j-1})=g^{\prime}(t_{j})(a_{j}-a_{j-1}).

Equation (5.12) shows that the derivative g′⁢(tj)g^{\prime}(t_{j}) acts as a local stretching factor between the two coordinate axes (Figure 5.14).

Now compare the approximating Riemann sums for the integrals on both sides of (5.11):

  • •
    ​

    For the integral ∫ABf⁢(u)⁢du\int_{A}^{B}f(u)\,\mathrm{d}u on the uu-axis, we evaluate ff at the tagged sample points g⁢(tj)∈[uj−1,uj]g(t_{j})\in[u_{j-1},u_{j}]:

    ∑j=1nf⁢(g⁢(tj))⁢(uj−uj−1).\sum_{j=1}^{n}f\bigl{(}g(t_{j})\bigr{)}\,(u_{j}-u_{j-1}).
  • •
    ​

    For the integral ∫abf⁢(g⁢(t))⁢g′⁢(t)⁢dt\int_{a}^{b}f\bigl{(}g(t)\bigr{)}g^{\prime}(t)\,\mathrm{d}t on the tt-axis, we evaluate the composite integrand at the tags tjt_{j}:

    ∑j=1nf⁢(g⁢(tj))⁢g′⁢(tj)⁢(aj−aj−1).\sum_{j=1}^{n}f\bigl{(}g(t_{j})\bigr{)}\,g^{\prime}(t_{j})\,(a_{j}-a_{j-1}).

Substituting the stretching relation (5.12) reveals that these two Riemann sums are algebraically identical term by term:

∑j=1nf⁢(g⁢(tj))⁢(uj−uj−1)=∑j=1nf⁢(g⁢(tj))⁢g′⁢(tj)⁢(aj−aj−1).\sum_{j=1}^{n}f\bigl{(}g(t_{j})\bigr{)}\,(u_{j}-u_{j-1})=\sum_{j=1}^{n}f\bigl{% (}g(t_{j})\bigr{)}\,g^{\prime}(t_{j})\,(a_{j}-a_{j-1}).

Because gg is uniformly continuous on [a,b][a,b], refining the partition on the tt-axis simultaneously refines the partition on the uu-axis. Passing to the limit as the mesh norm tends to zero establishes that

∫ABf⁢(u)⁢du=∫abf⁢(g⁢(t))⁢g′⁢(t)⁢dt.\int_{A}^{B}f(u)\,\mathrm{d}u=\int_{a}^{b}f\bigl{(}g(t)\bigr{)}g^{\prime}(t)\,% \mathrm{d}t.
Intuition (Stretching strips).

A rectangular strip on the tt-axis of height f⁢(g⁢(t))f\bigl{(}g(t)\bigr{)} and width Δ⁢t\Delta t corresponds to a strip on the uu-axis of height f⁢(u)f(u) and width Δ⁢u≈g′⁢(t)⁢Δ⁢t\Delta u\approx g^{\prime}(t)\,\Delta t. The factor g′⁢(t)g^{\prime}(t) adjusts the base width of each approximating rectangle so that the accumulated area is preserved under the coordinate distortion.

The geometric utility of Theorem 5.8.3 becomes especially clear when gg is an affine linear map:

g⁢(t)=k⁢t+c,g(t)=kt+c,

where k≠0k\neq 0 and cc are real constants. Differentiating gives g′⁢(t)=kg^{\prime}(t)=k. Applying the Substitution Rule:

∫k⁢a+ck⁢b+cf⁢(x)⁢dx=∫abf⁢(k⁢t+c)⁢k⁢dt=k⁢∫abf⁢(k⁢t+c)⁢dt.\int_{ka+c}^{kb+c}f(x)\,\mathrm{d}x=\int_{a}^{b}f(kt+c)\,k\,\mathrm{d}t=k\int_% {a}^{b}f(kt+c)\,\mathrm{d}t.

This single identity captures two fundamental geometric invariances of the integral:

  1. (i)
    ​

    Translation invariance (k=1k=1): Setting k=1k=1 gives g⁢(t)=t+cg(t)=t+c and g′⁢(t)=1g^{\prime}(t)=1, which yields

    equation (5.13) (5.13)
    ∫a+cb+cf⁢(x)⁢dx=∫abf⁢(t+c)⁢dt.\int_{a+c}^{b+c}f(x)\,\mathrm{d}x=\int_{a}^{b}f(t+c)\,\mathrm{d}t.

    Shifting a function horizontally by cc units and shifting the integration limits by the same amount leaves the accumulated area unchanged.

  2. (ii)
    ​

    Dilation and scaling (c=0c=0): Setting c=0c=0 gives g⁢(t)=k⁢tg(t)=kt and g′⁢(t)=kg^{\prime}(t)=k, which yields

    equation (5.14) (5.14)
    ∫k⁢ak⁢bf⁢(x)⁢dx=k⁢∫abf⁢(k⁢t)⁢dt.\int_{ka}^{kb}f(x)\,\mathrm{d}x=k\int_{a}^{b}f(kt)\,\mathrm{d}t.

    Compressing the domain horizontally by a factor of kk must be balanced by multiplying the integral by kk to preserve the total area.

Exercise 5.8.5.
  1. (i)
    ​

    Evaluate ∫exx⁢dx\displaystyle\int\frac{\mathrm{e}^{\sqrt{x}}}{\sqrt{x}}\,\mathrm{d}x.

  2. (ii)
    ​

    Evaluate ∫01x2⁢1−x3⁢dx\displaystyle\int_{0}^{1}x^{2}\sqrt{1-x^{3}}\,\mathrm{d}x by updating the limits of integration.

  3. (iii)
    ​

    Use the linear substitution u=a+b−xu=a+b-x to prove the reflection identity:

    ∫abf⁢(x)⁢dx=∫abf⁢(a+b−x)⁢dx.\int_{a}^{b}f(x)\,\mathrm{d}x=\int_{a}^{b}f(a+b-x)\,\mathrm{d}x.
  4. (iv)
    ​

    Apply the identity from part (c) to evaluate ∫0π/2sin⁡xsin⁡x+cos⁡x⁢dx\displaystyle\int_{0}^{\pi/2}\frac{\sin x}{\sin x+\cos x}\,\mathrm{d}x without finding an explicit antiderivative.

Solution to 5.8.5.
  1. (i)
    ​

    Indefinite integral with an algebraic radical inside an exponential.

    We evaluate

    ∫exx⁢dxfor ⁢x>0.\int\frac{\mathrm{e}^{\sqrt{x}}}{\sqrt{x}}\,\mathrm{d}x\qquad\text{for }x>0.

    The power x=x1/2\sqrt{x}=x^{1/2} appears in the exponent. Choosing u=xu=\sqrt{x}, its differential is

    d⁢u=12⁢x⁢d⁢x⟹d⁢xx=2⁢d⁢u.\,\mathrm{d}u=\frac{1}{2\sqrt{x}}\,\mathrm{d}x\implies\frac{\mathrm{d}x}{\sqrt% {x}}=2\,\mathrm{d}u.

    Substituting into the integral:

    ∫exx⁢dx=∫ex⏟eu⋅d⁢xx⏟2⁢d⁢u=2⁢∫eu⁢du=2⁢eu+C=2⁢ex+C.\begin{split}\int\frac{\mathrm{e}^{\sqrt{x}}}{\sqrt{x}}\,\mathrm{d}x&{}=\int% \underbrace{\mathrm{e}^{\sqrt{x}}}_{\mathrm{e}^{u}}\cdot\underbrace{\frac{% \mathrm{d}x}{\sqrt{x}}}_{2\,\mathrm{d}u}\\ &{}=2\int\mathrm{e}^{u}\,\mathrm{d}u\\ &{}=2\mathrm{e}^{u}+C\\ &{}=2\mathrm{e}^{\sqrt{x}}+C.\end{split}

    Check: Differentiating the result via the chain rule gives

    dd⁢x⁢(2⁢ex+C)=2⁢ex⋅12⁢x=exx,\frac{\mathrm{d}}{\mathrm{d}x}\bigl{(}2\mathrm{e}^{\sqrt{x}}+C\bigr{)}=2% \mathrm{e}^{\sqrt{x}}\cdot\frac{1}{2\sqrt{x}}=\frac{\mathrm{e}^{\sqrt{x}}}{% \sqrt{x}},

    confirming the computation.

  2. (ii)
    ​

    Definite integral via transformation of limits.

    We evaluate

    ∫01x2⁢1−x3⁢dx.\int_{0}^{1}x^{2}\sqrt{1-x^{3}}\,\mathrm{d}x.

    The quantity under the square root is g⁢(x)=1−x3g(x)=1-x^{3}. Setting u=1−x3u=1-x^{3}, the differential is

    d⁢u=−3⁢x2⁢d⁢x⟹x2⁢d⁢x=−13⁢d⁢u.\,\mathrm{d}u=-3x^{2}\,\mathrm{d}x\implies x^{2}\,\mathrm{d}x=-\frac{1}{3}\,% \mathrm{d}u.

    We transform the integration limits directly from xx to uu:

    when ⁢x=0,u=1−03=1;when ⁢x=1,u=1−13=0.\text{when }x=0,\quad u=1-0^{3}=1;\qquad\text{when }x=1,\quad u=1-1^{3}=0.

    By the Substitution Rule for definite integrals (Theorem 5.8.3) and the orientation convention (Definition 5.6.1 (ii)):

    ∫01x2⁢1−x3⁢dx=∫10u⁢(−13⁢d⁢u)=13⁢∫01u1/2⁢du=13⁢[23⁢u3/2]01=29⁢(13/2−03/2)=29.\begin{split}\int_{0}^{1}x^{2}\sqrt{1-x^{3}}\,\mathrm{d}x&{}=\int_{1}^{0}\sqrt% {u}\,\Bigl{(}-\frac{1}{3}\,\mathrm{d}u\Bigr{)}\\ &{}=\frac{1}{3}\int_{0}^{1}u^{1/2}\,\mathrm{d}u\\ &{}=\frac{1}{3}\Bigl{[}\frac{2}{3}u^{3/2}\Bigr{]}_{0}^{1}\\ &{}=\frac{2}{9}(1^{3/2}-0^{3/2})\\ &{}=\frac{2}{9}.\end{split}
  3. (iii)
    ​

    Proof of the reflection identity.

    We establish that for any integrable function ff on [a,b][a,b],

    ∫abf⁢(x)⁢dx=∫abf⁢(a+b−x)⁢dx.\int_{a}^{b}f(x)\,\mathrm{d}x=\int_{a}^{b}f(a+b-x)\,\mathrm{d}x.

    Consider the right-hand side. We apply the affine linear substitution

    u=g⁢(x)≔a+b−x.u=g(x)\coloneqq a+b-x.

    The derivative is g′⁢(x)=−1g^{\prime}(x)=-1, yielding the differential relation

    d⁢u=−d⁢x⟹d⁢x=−d⁢u.\,\mathrm{d}u=-\,\mathrm{d}x\implies\,\mathrm{d}x=-\,\mathrm{d}u.

    Next, we map the boundary endpoints:

    when ⁢x=a,u=a+b−a=b;when ⁢x=b,u=a+b−b=a.\text{when }x=a,\quad u=a+b-a=b;\qquad\text{when }x=b,\quad u=a+b-b=a.

    Applying Theorem 5.8.3:

    ∫abf⁢(a+b−x)⁢dx=∫baf⁢(u)⁢(−d⁢u)=−∫baf⁢(u)⁢du=∫abf⁢(u)⁢du.\begin{split}\int_{a}^{b}f(a+b-x)\,\mathrm{d}x&{}=\int_{b}^{a}f(u)\,(-\,% \mathrm{d}u)\\ &{}=-\int_{b}^{a}f(u)\,\mathrm{d}u\\ &{}=\int_{a}^{b}f(u)\,\mathrm{d}u.\end{split}

    Because uu is a dummy variable of integration (5.3.1), renaming uu back to xx yields

    ∫abf⁢(a+b−x)⁢dx=∫abf⁢(x)⁢dx,\int_{a}^{b}f(a+b-x)\,\mathrm{d}x=\int_{a}^{b}f(x)\,\mathrm{d}x,

    as claimed.

  4. (iv)
    ​

    Evaluation without an explicit antiderivative.

    We compute

    I≔∫0π/2sin⁡xsin⁡x+cos⁡x⁢dx.I\coloneqq\int_{0}^{\pi/2}\frac{\sin x}{\sin x+\cos x}\,\mathrm{d}x.

    Here a=0a=0 and b=π2b=\frac{\pi}{2}, so a+b−x=π2−xa+b-x=\frac{\pi}{2}-x. By the co-function trigonometric identities:

    sin⁡(π2−x)=cos⁡x,cos⁡(π2−x)=sin⁡x.\sin\Bigl{(}\frac{\pi}{2}-x\Bigr{)}=\cos x,\qquad\cos\Bigl{(}\frac{\pi}{2}-x% \Bigr{)}=\sin x.

    Applying the reflection identity proved in part (c) to f⁢(x)=sin⁡xsin⁡x+cos⁡xf(x)=\frac{\sin x}{\sin x+\cos x}:

    I=∫0π/2sin⁡(π2−x)sin⁡(π2−x)+cos⁡(π2−x)⁢dx=∫0π/2cos⁡xcos⁡x+sin⁡x⁢dx.\begin{split}I&{}=\int_{0}^{\pi/2}\frac{\sin\bigl{(}\frac{\pi}{2}-x\bigr{)}}{% \sin\bigl{(}\frac{\pi}{2}-x\bigr{)}+\cos\bigl{(}\frac{\pi}{2}-x\bigr{)}}\,% \mathrm{d}x\\ &{}=\int_{0}^{\pi/2}\frac{\cos x}{\cos x+\sin x}\,\mathrm{d}x.\end{split}

    Adding these two expressions for II together eliminates the non-trivial trigonometric denominator entirely:

    2⁢I=∫0π/2sin⁡xsin⁡x+cos⁡x⁢dx+∫0π/2cos⁡xsin⁡x+cos⁡x⁢dx=∫0π/2sin⁡x+cos⁡xsin⁡x+cos⁡x⁢dx=∫0π/21⁢dx=π2−0=π2.\begin{split}2I&{}=\int_{0}^{\pi/2}\frac{\sin x}{\sin x+\cos x}\,\mathrm{d}x+% \int_{0}^{\pi/2}\frac{\cos x}{\sin x+\cos x}\,\mathrm{d}x\\ &{}=\int_{0}^{\pi/2}\frac{\sin x+\cos x}{\sin x+\cos x}\,\mathrm{d}x\\ &{}=\int_{0}^{\pi/2}1\,\mathrm{d}x\\ &{}=\frac{\pi}{2}-0=\frac{\pi}{2}.\end{split}

    Dividing by 22 produces the exact value:

    I=π4.∎I=\frac{\pi}{4}.\qed
Intuition (The power of symmetry over primitives).

Finding an antiderivative for sin⁡xsin⁡x+cos⁡x\frac{\sin x}{\sin x+\cos x} using classical methods requires either tangent half-angle substitutions or clever algebraic decomposition into symmetric and antisymmetric pieces (12⁢(sin⁡x+cos⁡x)+(sin⁡x−cos⁡x)sin⁡x+cos⁡x\frac{1}{2}\frac{(\sin x+\cos x)+(\sin x-\cos x)}{\sin x+\cos x}).

The reflection substitution u=a+b−xu=a+b-x bypasses antidifferentiation entirely. By reflecting the integrand across the midpoint of the interval x=π/4x=\pi/4, it demonstrates that the sine and cosine components contribute equally to the total area, allowing us to evaluate the integral strictly through functional symmetry.