Skip to content

Integration by substitution

Integration by substitution reverses the chain rule. Transform the integrand, differential and bounds, and track a synthetic cash stream through two dimensionless clocks.

Integration by substitution rewrites an integral in a new variable, transforming both the integrand and its differential. Often called uu-substitution, it reverses the chain rule: a complicated expression becomes easier when its inner function is used as the integration variable.
The useful pattern is an inner function and its derivative. Replacing only the inner function leaves out the factor that converts small changes in one coordinate into small changes in the other. Feldman's UBC notes derive the rule directly from the chain rule.

Read the chain rule backwards

Suppose F′=fF'=f, gg has a continuous derivative on the interval of interest, and ff is continuous on the range of gg. Then

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

Consequently, with u=g(x)u=g(x) and du=g′(x)dxdu=g'(x)dx,

∫f(g(x))g′(x) dx=F(g(x))+C.\int f(g(x))g'(x)\,dx =F(g(x))+C.
In an indefinite integral, substitute back to the original variable in the final answer. The notation du=g′(x)dxdu=g'(x)dx records the chain-rule factor; it does not permit dropping factors that are inconvenient.

For example,

∫xex2 dx=12∫eu du=12ex2+C,u=x2.\int x e^{x^2}\,dx =\frac12\int e^u\,du =\frac12e^{x^2}+C, \qquad u=x^2.

Here du=2x dxdu=2x\,dx, so x dx=du/2x\,dx=du/2. Differentiating the answer recovers xex2xe^{x^2} and verifies the factor 1/21/2.

A cash-flow clock with changing speed

Consider a synthetic contractual cash stream, rather than a market forecast. Let tt measure elapsed time, fix the scale τ=1 year\tau=1\text{ year} and set K=USD 100K=\text{USD }100. The stipulated receipt rate is
c(t)=2Kτ(tτ)exp⁡[(tτ)2].c(t)=\frac{2K}{\tau}\left(\frac{t}{\tau}\right) \exp\left[\left(\frac{t}{\tau}\right)^2\right].

The rate has units USD/year. Its exponential argument is dimensionless: writing the square of a time measured in years directly inside an exponential would hide a required scale.

How much cash arrives between t=0.2τt=0.2\tau and t=0.8τt=0.8\tau? First use the dimensionless clock x=t/τx=t/\tau, giving dt=τ dxdt=\tau\,dx. Then change clocks again to u=x2u=x^2:

cash received=∫0.2τ0.8τc(t) dt=K∫0.20.82xex2 dx=K∫0.040.64eu du=K(e0.64−e0.04)=USD 85.56701051….\begin{aligned} \text{cash received} &=\int_{0.2\tau}^{0.8\tau}c(t)\,dt\\ &=K\int_{0.2}^{0.8}2xe^{x^2}\,dx\\ &=K\int_{0.04}^{0.64}e^u\,du\\ &=K\left(e^{0.64}-e^{0.04}\right)\\ &=\text{USD }85.56701051\ldots. \end{aligned}
The cash receipt rounds to USD 85.57. This is an undiscounted amount collected over the interval; present value would require a specified discount factor inside the original cash-flow integral. The positive function used here is a receipt-rate model, with no probability-density interpretation.
Two coordinate plots for the synthetic cash-flow model. The area under 2x exp(x squared) from x 0.2 to 0.8 equals the area under exp(u) from u 0.04 to 0.64: both are 0.8556701051, or USD 85.57 after multiplication by K equals USD 100. The darker band x 0.4 to 0.5 maps to u 0.16 to 0.25 and has area 0.110515 in both panels.
Two coordinate plots for the synthetic cash-flow model. The area under 2x exp(x squared) from x 0.2 to 0.8 equals the area under exp(u) from u 0.04 to 0.64: both are 0.8556701051, or USD 85.57 after multiplication by K equals USD 100. The darker band x 0.4 to 0.5 maps to u 0.16 to 0.25 and has area 0.110515 in both panels.
Original synthetic model. Both axes use dimensionless coordinates and normalised heights; multiplying either shaded area by K gives cash in USD. The darker bands show one corresponding subinterval.

The shapes are different because the new clock changes speed. Between x=0.4x=0.4 and x=0.5x=0.5, its increment is 0.25−0.16=0.090.25-0.16=0.09, while the original increment is 0.10.1. The exact relation is du=2x dxdu=2x\,dx: the height factor 2x2x in the left panel becomes the width conversion in the right panel. Both darker bands accumulate 0.1105145457…0.1105145457\ldots before multiplying by KK.

Bounds belong to a variable

For a definite integral, the substitution rule is
∫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.
There are two consistent routes: change the bounds and evaluate in uu, or find the antiderivative, substitute back to xx, and evaluate at the original bounds. Mixing these routes gives the wrong interval. In the cash example, ∫0.20.8eu du\int_{0.2}^{0.8}e^u\,du would use the old numbers on the new clock. OpenStax's substitution section explains both the transformed integrand and transformed limits.

A decreasing substitution can reverse the bounds. Keep their order and the differential's sign together; do not sort the endpoints independently.

Nor does the chain-rule identity require gg to be one-to-one. For instance, u=x2u=x^2 on [−1,1][-1,1] travels from 1 down to 0 and back to 1, and

∫−112xex2 dx=∫11eu du=0.\int_{-1}^{1}2xe^{x^2}\,dx =\int_1^1 e^u\,du=0.
The negative and positive contributions cancel. This does not justify replacing ∫−11ex2 dx\int_{-1}^1e^{x^2}\,dx with a zero-length integral: the derivative factor 2x2x is absent. If a change of variables requires an inverse map, split a non-monotone domain into branches and transform each branch correctly. Signed chain-rule substitution and an unsigned area or probability transformation are different calculations.

Substitution is useful when it makes the remaining integral simpler. Choosing u=x2u=x^2 in ∫ex2 dx\int e^{x^2}\,dx on x>0x>0 produces ∫eu/(2u) du\int e^u/(2\sqrt u)\,du; it does not turn it into ∫eu du\int e^u\,du. A legal substitution need not provide an elementary antiderivative.

For worked substitution steps, changed bounds and derivative checks, see Indefinite Integrals, the Net Change Theorem, and the Substitution Rule. The lesson has a public preview; full access requires membership.

Sources

Last updated
  • calculus
  • integration
  • chain rule
  • cash flows
  • change of variables
← Back to the glossaryBack to top ↑