• Foundation
  • About 17 min
  • 5 practice questions

Integration by substitution

Spot an integrand of the form f(g(x)) g′(x), change the variable with u = g(x) and du = g′(x) dx, adjust constants, and use the shortcuts ∫ f′/f dx = ln|f| + C and ∫ fⁿ f′ dx = fⁿ⁺¹/(n + 1) + C.

If something looks wrong, please tell us.

The table of standard integrals only goes so far. Substitution is the first real method of integration: it is the chain rule run backwards. Whenever the integrand contains a function together with (a multiple of) its own derivative, a change of variable turns it into a table entry.

The idea

By the chain rule, d/dx F(g(x)) = F′(g(x)) · g′(x). So an integrand that looks like f(g(x)) · g′(x) has the antiderivative F(g(x)). To make this mechanical, put u = g(x). Then du/dx = g′(x), which we write as du = g′(x) dx, and the whole integral becomes ∫ f(u) du.

  1. Choose u: usually the inside of a bracket, a power, a root or an exponent, whose derivative also appears in the integrand.
  2. Find du = g′(x) dx and replace every part of the integral, including dx, so that only u remains.
  3. Integrate with respect to u.
  4. Put u = g(x) back, add C, and check by differentiating.

Worked example 1: a power of a bracket

∫ 3x²(x³ + 2)⁴ dx. Put u = x³ + 2, so du = 3x² dx. The integral is ∫ u⁴ du = u⁵/5 + C = (x³ + 2)⁵/5 + C. Note that expanding (x³ + 2)⁴ would have worked too, but far more slowly.

Worked example 2: adjusting a constant

∫ x√(x² + 5) dx. Put u = x² + 5, so du = 2x dx and x dx = (1/2) du. Then the integral is (1/2) ∫ u^(1/2) du = (1/2) · (2/3)u^(3/2) = (1/3)(x² + 5)^(3/2) + C. A missing constant factor can always be supplied this way. A missing variable factor cannot: ∫ √(x² + 5) dx is not done by this substitution.

Worked example 3: an exponential

∫ cos x · e^(sin x) dx. Put u = sin x, du = cos x dx. The integral is ∫ eᵘ du = eᵘ + C = e^(sin x) + C.

Two shortcuts worth memorising

Two substitutions come up so often that it is faster to know their results directly.

∫ f′(x)/f(x) dx = ln|f(x)| + C, and ∫ [f(x)]ⁿ f′(x) dx = [f(x)]ⁿ⁺¹/(n + 1) + C (n ≠ −1).

Worked example 4: numerator is the derivative of the denominator

∫ (2x + 3)/(x² + 3x + 1) dx. The derivative of x² + 3x + 1 is exactly 2x + 3, so the answer is ln|x² + 3x + 1| + C. For ∫ x²/(x³ + 1) dx, the derivative of x³ + 1 is 3x², so write the integrand as (1/3) · 3x²/(x³ + 1) and get (1/3) ln|x³ + 1| + C.

Worked example 5: tan x and cot x

tan x = sin x/cos x. The derivative of cos x is −sin x, so ∫ tan x dx = −ln|cos x| + C = ln|sec x| + C. Similarly ∫ cot x dx = ∫ cos x/sin x dx = ln|sin x| + C. These two results join the standard table.

Key takeaways: look for a function and its derivative side by side. Replace everything, including dx, before integrating; a missing constant can be adjusted but a missing x cannot. Know the f′/f and fⁿ f′ shortcuts, and the integrals of tan x and cot x.

Check your understanding

  1. 1. Find ∫ 2x(x² − 3)⁵ dx.

    1. (x² − 3)⁶ + C
    2. (x² − 3)⁶/12 + C
    3. (x² − 3)⁶/6 + C
    4. x²(x² − 3)⁶/6 + C
    Show answer

    Answer: C. u = x² − 3, du = 2x dx, so the integral is ∫ u⁵ du = u⁶/6 = (x² − 3)⁶/6 + C. Dividing by 12 would be right only if the 2x were missing.

  2. 2. Find ∫ sin x cos⁴x dx.

    1. −cos⁵x/5 + C
    2. cos⁵x/5 + C
    3. sin⁵x/5 + C
    4. −cos⁵x + C
    Show answer

    Answer: A. u = cos x, du = −sin x dx, so sin x dx = −du. The integral is −∫ u⁴ du = −u⁵/5 = −cos⁵x/5 + C.

  3. 3. Find ∫ eˣ/(eˣ + 4) dx.

    1. 1/(eˣ + 4) + C
    2. ln(eˣ + 4) + C
    3. eˣ ln(eˣ + 4) + C
    4. x − ln(eˣ + 4) + C
    Show answer

    Answer: B. The numerator eˣ is the derivative of the denominator eˣ + 4, so the integral is ln(eˣ + 4) + C (no modulus is needed because eˣ + 4 is always positive).

  4. 4. Find ∫ (ln x)/x dx.

    1. ln|ln x| + C
    2. 2(ln x)² + C
    3. x ln x − x + C
    4. (ln x)²/2 + C
    Show answer

    Answer: D. u = ln x, du = (1/x) dx. The integral is ∫ u du = u²/2 = (ln x)²/2 + C. ln|ln x| would be the answer for 1/(x ln x).

  5. 5. Find ∫ x³ cos(x⁴) dx.

    1. 4 sin(x⁴) + C
    2. sin(x⁴) + C
    3. (1/4) sin(x⁴) + C
    4. −(1/4) cos(x⁴) + C
    Show answer

    Answer: C. u = x⁴, du = 4x³ dx, so x³ dx = (1/4) du. The integral is (1/4) ∫ cos u du = (1/4) sin(x⁴) + C.

Sign in to keep track of the lessons you finish.

Next lesson → Integration by parts

Privacy · Terms · Refunds · Delivery