Euler Hall — free maths guides

The substitution rule

Apply the substitution rule to an integrand that is a composition times its inner derivative. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

Change the variable to turn a hard integral into an easy one

The substitution rule is the chain rule read backwards:

∫f(g(x)) g′(x) dx=∫f(u) duwith u=g(x).\int f(g(x))\,g'(x)\,dx = \int f(u)\,du \quad \text{with } u = g(x).

The rule works because the chain rule saysddxF(g(x))=F′(g(x))g′(x)\frac{d}{dx}F(g(x)) = F'(g(x))g'(x) — so if you can see a function AND its derivative in the integrand, the integral collapses to the outer function's antiderivative.

The mechanical routine, in four steps:

  1. 1. chooseu=g(x)u = g(x);
  2. 2. computedu=g′(x) dxdu = g'(x)\,dx;
  3. 3. rewrite the integral entirely inuu — including replacingg′(x) dxg'(x)\,dx bydudu;
  4. 4. integrate inuu, then substitute back.

The test for whether a substitution will work is step 3: after step 2, does the integrand contain exactlyg′(x) dxg'(x)\,dx (up to a constant)? If yes, the substitution absorbs it. If the derivative is present only in part — sayxx where2x2x is needed — the constant can be adjusted but nothing else can.

∫(2x+1)3 dx:u=2x+1,  du=2 dx⇒dx=du2,\int (2x+1)^3\,dx: \quad u = 2x+1,\; du = 2\,dx \Rightarrow dx = \frac{du}{2},

so the integral is12∫u3 du=u48+C=(2x+1)48+C\frac12\int u^3\,du = \frac{u^4}{8} + C = \frac{(2x+1)^4}{8} + C.

Always differentiate to check. A substitution is easy to get slightly wrong and the check catches every version of it.

Why swappingdxdx fordudu is legitimate

Treatingdu=g′(x) dxdu = g'(x)\,dx as an algebraic identity is not sloppiness; it is the chain rule written in differential notation.

The formal statement: ifFF is an antiderivative offf, then

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

soF(g(x))F(g(x)) is an antiderivative off(g(x))g′(x)f(g(x))g'(x). Integrating both sides gives

∫f(g(x))g′(x) dx=F(g(x))+C=[F(u)+C]u=g(x)=∫f(u) du.\int f(g(x))g'(x)\,dx = F(g(x)) + C = \left[F(u) + C\right]_{u=g(x)} = \int f(u)\,du.

So the substitution is a theorem, proved by differentiating the right-hand side and applying the chain rule. Thedudu shorthand is a memorable way of writing it, and it is exact.

The practical reading: a substitution is valid when the integrand is a composition times the inner derivative. That is the only case it handles.

Worked example: three substitutions

*∫(3x+2)4 dx\int (3x+2)^4\,dx.**u=3x+2u = 3x+2,du=3 dxdu = 3\,dx, sodx=du/3dx = du/3:13∫u4 du=u515+C=(3x+2)515+C\frac13\int u^4\,du = \frac{u^5}{15} + C = \frac{(3x+2)^5}{15} + C.

*∫x(x2+5)2 dx\int x(x^2+5)^2\,dx.**u=x2+5u = x^2+5,du=2x dxdu = 2x\,dx, sox dx=du/2x\,dx = du/2:12∫u2 du=u36+C=(x2+5)36+C\frac12\int u^2\,du = \frac{u^3}{6} + C = \frac{(x^2+5)^3}{6} + C.

*∫2xx2+1 dx\int \frac{2x}{x^2+1}\,dx.**u=x2+1u = x^2+1,du=2x dxdu = 2x\,dx:∫duu=ln⁡∣u∣+C=ln⁡(x2+1)+C\int \frac{du}{u} = \ln|u| + C = \ln(x^2+1) + C. Note thatx2+1>0x^2+1 > 0 so the absolute value is unnecessary here.

The third case is worth pausing on: the substitution turned a rational function into the reciprocal, which is exactly the case that needs the logarithm. Substitution is often what reveals that a problem belongs to a case you already know.

By the end you can
  • Apply the substitution rule to an integrand that is a composition times its inner derivative
  • Compute du and convert the whole integral to the new variable
  • Verify a substitution by differentiating the result
Check yourself
  1. 1.∫(x+1)5 dx\int (x+1)^5\,dx
  2. 2.∫3x2(x3+1)4 dx\int 3x^2(x^3+1)^4\,dx
  3. 3.∫2xx2+3 dx\int \frac{2x}{x^2+3}\,dx
Answers
  1. 1.(x+1)66+C\frac{(x+1)^6}{6} + C.
  2. 2.u=x3+1u = x^3+1,du=3x2 dxdu = 3x^2\,dx:(x3+1)55+C\frac{(x^3+1)^5}{5} + C.
  3. 3.u=x2+3u = x^2+3,du=2x dxdu = 2x\,dx:ln⁡(x2+3)+C\ln(x^2+3) + C.
Work out where to start — free, no accountAnswer six real questions — free, no account