Calculus · Grade 12 and undergraduate

Integration by Substitution (u-Substitution)

Quick answer

Substitution is the chain rule run backward. When an integrand has the form f(g(x)) · g′(x) — a function of an inner function, times the inner function's derivative — set u = g(x), so du = g′(x) dx, and the integral becomes ∫ f(u) du. Integrate in u, then write the answer back in x. A missing constant factor can be fixed by multiplying and dividing. For a definite integral, change the limits to u-values too, and there is no need to go back to x.

What you'll learn

  • Recognize integrands of the form f(g(x)) · g′(x)
  • Carry out a substitution, including constant adjustments
  • Change the limits of a definite integral under substitution

The chain rule backward

The chain rule says ddx(x2+1)6=6(x2+1)5⋅2x\tfrac{d}{dx}(x^2 + 1)^6 = 6(x^2 + 1)^5 \cdot 2x. So, reading it backward,

∫12x(x2+1)5 dx=(x2+1)6+C\int 12x(x^2 + 1)^5\,dx = (x^2 + 1)^6 + C

The integrand has an inner function, x2+1x^2 + 1, and next to it that inner function’s derivative, 2x2x. Spotting that pattern is the whole skill; substitution is the bookkeeping that follows.

The method

  1. Choose uu: usually the inner function.
  2. Compute du=g′(x) dxdu = g'(x)\,dx.
  3. Rewrite the integral entirely in uu — no xx left over.
  4. Integrate in uu.
  5. Substitute back u=g(x)u = g(x).

For ∫2x(x2+1)5 dx\int 2x(x^2 + 1)^5\,dx: let u=x2+1u = x^2 + 1, so du=2x dxdu = 2x\,dx. Then

∫2x(x2+1)5 dx=∫u5 du=u66+C=(x2+1)66+C\int 2x(x^2 + 1)^5\,dx = \int u^5\,du = \frac{u^6}{6} + C = \frac{(x^2 + 1)^6}{6} + C

Why the substitution is legitimate

Suppose FF is an antiderivative of ff. By the chain rule,

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

So F(g(x))F(g(x)) is an antiderivative of f(g(x)) g′(x)f(g(x))\,g'(x). Writing u=g(x)u = g(x) and du=g′(x) dxdu = g'(x)\,dx is shorthand for exactly this. Substitution does not invent a new rule; it is the chain rule, recognized inside an integral.

Definite integrals

With a definite integral, change the limits to uu-values as well:

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

Then evaluate in uu and stop; there is nothing to substitute back.

Worked examples

Common mistakes

Practice problems

  1. Find ∫3x2(x3−5)4 dx\int 3x^2(x^3 - 5)^4\,dx.

    Answer

    (x3−5)55+C\tfrac{(x^3 - 5)^5}{5} + C

    Full solution

    u=x3−5u = x^3 - 5, du=3x2 dxdu = 3x^2\,dx: ∫u4 du=u55+C\int u^4\,du = \tfrac{u^5}{5} + C.

  2. Find ∫cos⁡(5x) dx\int \cos(5x)\,dx.

    Answer

    15sin⁡(5x)+C\tfrac{1}{5}\sin(5x) + C

    Full solution

    u=5xu = 5x, du=5 dxdu = 5\,dx, so dx=du5dx = \tfrac{du}{5}: 15∫cos⁡u du\tfrac{1}{5}\int \cos u\,du.

  3. Find ∫2xx2+4 dx\int \tfrac{2x}{x^2 + 4}\,dx.

    Answer

    ln⁡(x2+4)+C\ln(x^2 + 4) + C

    Full solution

    u=x2+4u = x^2 + 4, du=2x dxdu = 2x\,dx: ∫duu=ln⁡∣u∣+C\int \tfrac{du}{u} = \ln\lvert u \rvert + C. Since x2+4>0x^2 + 4 > 0, the absolute value can go.

  4. Find ∫e3x+1 dx\int e^{3x + 1}\,dx.

    Answer

    13e3x+1+C\tfrac{1}{3}e^{3x + 1} + C

    Full solution

    u=3x+1u = 3x + 1, du=3 dxdu = 3\,dx: 13∫eu du\tfrac{1}{3}\int e^u\,du.

  5. Find ∫xx2+9 dx\int x\sqrt{x^2 + 9}\,dx.

    Answer

    13(x2+9)3/2+C\tfrac{1}{3}(x^2 + 9)^{3/2} + C

    Full solution

    u=x2+9u = x^2 + 9, x dx=du2x\,dx = \tfrac{du}{2}: 12∫u1/2 du=12⋅23u3/2\tfrac{1}{2}\int u^{1/2}\,du = \tfrac{1}{2} \cdot \tfrac{2}{3}u^{3/2}.

  6. Find ∫ln⁡xx dx\int \tfrac{\ln x}{x}\,dx.

    Answer

    (ln⁡x)22+C\tfrac{(\ln x)^2}{2} + C

    Full solution

    u=ln⁡xu = \ln x, du=dxxdu = \tfrac{dx}{x}: ∫u du=u22+C\int u\,du = \tfrac{u^2}{2} + C.

  7. Evaluate ∫02x(x2+1)2 dx\int_0^2 x(x^2 + 1)^2\,dx.

    Answer

    623\tfrac{62}{3}

    Full solution

    u=x2+1u = x^2 + 1 runs from 11 to 55, and x dx=du2x\,dx = \tfrac{du}{2}: 12∫15u2 du=12⋅125−13=623\tfrac{1}{2}\int_1^5 u^2\,du = \tfrac{1}{2} \cdot \tfrac{125 - 1}{3} = \tfrac{62}{3}.

  8. Evaluate ∫0π/2sin⁡xcos⁡2x dx\int_0^{\pi/2} \sin x \cos^2 x\,dx.

    Answer

    13\tfrac{1}{3}

    Full solution

    u=cos⁡xu = \cos x runs from 11 to 00, and sin⁡x dx=−du\sin x\,dx = -du: −∫10u2 du=∫01u2 du=13-\int_1^0 u^2\,du = \int_0^1 u^2\,du = \tfrac{1}{3}.

  9. Find ∫11+4x2 dx\int \tfrac{1}{1 + 4x^2}\,dx.

    Answer

    12arctan⁡(2x)+C\tfrac{1}{2}\arctan(2x) + C

    Full solution

    u=2xu = 2x, dx=du2dx = \tfrac{du}{2}: 12∫du1+u2=12arctan⁡u+C\tfrac{1}{2}\int \tfrac{du}{1 + u^2} = \tfrac{1}{2}\arctan u + C.

  10. A student evaluates ∫012x(x2+1) dx\int_0^1 2x(x^2 + 1)\,dx with u=x2+1u = x^2 + 1 as ∫01u du=12\int_0^1 u\,du = \tfrac{1}{2}. What went wrong?

    Hint

    What are the uu-values at x=0x = 0 and x=1x = 1?

    Answer

    The limits were not changed. They are 11 to 22, and the integral is 32\tfrac{3}{2}.

    Full solution

    At x=0x = 0, u=1u = 1; at x=1x = 1, u=2u = 2. So the integral is ∫12u du=4−12=32\int_1^2 u\,du = \tfrac{4 - 1}{2} = \tfrac{3}{2}.

    Check directly: ∫01(2x3+2x) dx=12+1=32\int_0^1 (2x^3 + 2x)\,dx = \tfrac{1}{2} + 1 = \tfrac{3}{2}.

Frequently asked questions

When should I use u-substitution?

When the integrand contains an inner function together with that inner function's derivative, possibly off by a constant factor — such as 2x and x² + 1 in 2x(x² + 1)⁵.

How do I choose u?

Usually u is the inner function: the expression inside a power, root, exponential or trig function, whose derivative also appears in the integrand.

What if the derivative is off by a constant?

Multiply and divide by that constant. For ∫ x e^(x²) dx, du = 2x dx, so x dx = du/2.

How do the limits change in a definite integral?

Replace each limit x = a and x = b with u = g(a) and u = g(b). Then evaluate in u, with no need to substitute back.

Why does substitution work?

By the chain rule, the derivative of F(g(x)) is f(g(x)) g′(x) when F′ = f. So F(g(x)) is an antiderivative of the integrand.

What to learn next