Integration by Substitution

Substitution is the chain rule read backwards.

The chain rule leaves a factor

Differentiate (x² + 1)⁶ by the chain rule. The outside power gives 6(x² + 1)⁵, and the inside x² + 1 has derivative 2x, which multiplies the result: the derivative is 6(x² + 1)⁵ × 2x.

So whenever an integral is a function of some inside expression, multiplied by the derivative of that inside, it is a chain-rule result waiting to be run backwards. Substitution is the method for running it backwards.

Spot the factor, name the inside

Take ∫ 2x(x² + 1)⁵ dx. The bracket x² + 1 is an inside expression, and its derivative 2x stands beside it as a factor. That pairing is the signal.

Name the inside u: let u = x² + 1. The bracket (x² + 1)⁵ becomes u⁵, an ordinary power.

Trade 2x dx for du

Differentiating u = x² + 1 gives du/dx = 2x, which as differentials is du = 2x dx. The integral holds exactly 2x dx, so it can be replaced by du, and every x is gone: ∫ 2x(x² + 1)⁵ dx = ∫ u⁵ du.

Integrate the power: ∫ u⁵ du = u⁶/6 + c. Then write x² + 1 back in place of u, because u was only a name: ∫ 2x(x² + 1)⁵ dx = (x² + 1)⁶/6 + c.

Check by differentiating. The chain rule gives 6(x² + 1)⁵ × 2x / 6 = 2x(x² + 1)⁵, the integrand.

xu = x²00.511.5201234Δx = 0.2Δu = 0.52Δu / Δx = 2.6 · 2x = 2.4

du = 2x dx: the u-line stretches the interval by 2x = 2.4, which is why ∫ 2x cos(x²) dx becomes ∫ cos u du with the 2x used up

Slide the interval to where du and dx have the same length

x along the top line and u = x² along the bottom. The interval from x = 1.2 to 1.4, 0.2 wide, lands on u from 1.44 to 1.96, which is 0.52 wide: 2.6 times as wide, close to du/dx = 2x = 2.4. That stretch is the factor du = 2x dx uses up. Slide the interval to x = 0.4, where the two widths match.

Three more

For ∫ 3x²(x³ + 2)⁴ dx, let u = x³ + 2. Then du = 3x² dx, which is exactly the factor present, so the integral is ∫ u⁴ du = u⁵/5 + c = (x³ + 2)⁵/5 + c. Check: 5(x³ + 2)⁴ × 3x² / 5 = 3x²(x³ + 2)⁴.

A factor that is out by a constant still works. In ∫ x(x² + 1)⁵ dx, du = 2x dx but only x dx is present. Since x dx = ½ du, the integral is ½ ∫ u⁵ du = u⁶/12 + c = (x² + 1)⁶/12 + c. Check: 6(x² + 1)⁵ × 2x / 12 = x(x² + 1)⁵.

A root is a power too. In ∫ 2x√(x² + 9) dx, let u = x² + 9, so du = 2x dx and the integral is ∫ √u du, the integral of u to the power ½. Raising the power to 3/2 and dividing by 3/2 gives ⅔ u√u + c = ⅔ (x² + 9)√(x² + 9) + c. Check: the derivative of the power 3/2 brings down 3/2, which cancels the ⅔, and leaves √(x² + 9) times the inside derivative 2x.

When substitution fails

In ∫ (x² + 1)⁵ dx there is no factor 2x. Letting u = x² + 1 still gives du = 2x dx, so dx = du/(2x), and that leaves an x inside an integral in u. An x left over means the substitution does not work; here the bracket has to be multiplied out instead.

Choosing the wrong part as u fails the same way. In ∫ 2x(x² + 1)⁵ dx, u = 2x gives du = 2 dx, and the bracket (x² + 1)⁵ is still written in x.

A definite integral, two ways

Find the integral of 3x²(x³ + 2)⁴ from x = 0 to x = 1. The lesson’s way is to finish in x, then evaluate: [(x³ + 2)⁵/5] from 0 to 1 is 3⁵/5 − 2⁵/5 = (243 − 32)/5 = 211/5 = 42.2.

The other way changes the limits into values of u and never returns to x. At x = 0, u = 0³ + 2 = 2; at x = 1, u = 1³ + 2 = 3. So the integral is the integral of u⁴ from u = 2 to u = 3, which is 3⁵/5 − 2⁵/5 = 211/5 again.

Check it by strips: 1000 midpoint rectangles from 0 to 1 add to 42.19994.

The usual mistakes

Taking the inside’s derivative as u. In ∫ 2x(x² + 1)⁵ dx the 2x becomes part of du; u is the bracket x² + 1.

Leaving an x beside the bracket. x(x² + 1)⁶/6 + c keeps the 2x that du = 2x dx has already used up.

Skipping the divide. (x² + 1)⁶ + c differentiates to 12x(x² + 1)⁵, six times the integrand.

Keeping the x limits once the integral is in u. The integral of u⁴ from 0 to 1 is 1/5; the limits in u are 2 and 3.

A sluice gate

In the application below, the flow through a sluice has n² + 144 under a root. Substituting for it turns the root into a power, and the limits are carried into the new variable, where they come out as whole-number square roots.

Worked example: A Sluice Gate Winched Open: A Volume From a Substitution That Turns a Root Into a Power

Question A sluice gate is winched open at a steady rate, and the flow through it builds up as q = 30n√n2 + 144 cubic meters per minute, where n is the number of minutes after winching starts. (a) How much water passes through the sluice in the first five minutes? (b) How much passes between the fifth minute and the ninth?

  1. 1.The volume is ∫ q dn. The awkward part is n2 + 144 under the root, so put u = n2 + 144. Its differential is du = 2n dn, so n dn = 12du, and an n dn is precisely what the numerator offers.

    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in uu = n2+ 144, so du = 2n dn and n dn = half du
    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in uu = n2+ 144, so du = 2n dn and n dn = half du
    Put u = n2 + 144. Then du = 2n dn, so n dn = 12du, and the numerator offers exactly that.
  2. 2.The integral becomes ∫30√u × 12du = 15∫ u−12du = 15 × 2u12 = 30√u = 30√n2 + 144.

    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in uu = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of u
    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in uu = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of u
    The integral becomes 15∫ u−12du = 30√u: the same area, drawn here against u instead of against the minutes.
  3. 3.Carry the limits over rather than changing back. At n = 0, u = 144; at n = 5, u = 169; at n = 9, u = 225. Their square roots are 12, 13 and 15, all whole numbers.

    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in uu = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of ulimits: n = 0, 5, 9 give u = 144, 169, 225whose square roots are 12, 13 and 15
    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in uu = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of ulimits: n = 0, 5, 9 give u = 144, 169, 225whose square roots are 12, 13 and 15
    The limits travel with the substitution: n = 0, 5, 9 become u = 144, 169, 225, whose roots are 12, 13 and 15.
  4. 4.(a) ∫05 q dn = 30(√169 − √144) = 30(13 − 12) = 30 cubic meters.

    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in u3030u = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of ulimits: n = 0, 5, 9 give u = 144, 169, 225whose square roots are 12, 13 and 15(a) 30(13 − 12) = 30 cubic meters
    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in u3030u = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of ulimits: n = 0, 5, 9 give u = 144, 169, 225whose square roots are 12, 13 and 15(a) 30(13 − 12) = 30 cubic meters
    (a) ∫05 q dn = 30(13 − 12) = 30 cubic meters, the gold area on either axis.
  5. 5.(b) ∫59 q dn = 30(√225 − √169) = 30(15 − 13) = 60 cubic meters, twice as much in four minutes as in the first five, because the gate stands further open. Check: 30 + 60 = 90, and ∫09 q dn = 30(15 − 12) = 90 cubic meters, so the two parts add to the whole.

    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in u30306060u = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of ulimits: n = 0, 5, 9 give u = 144, 169, 225whose square roots are 12, 13 and 15(a) 30(13 − 12) = 30 cubic meters(b) 30(15 − 13) = 60 cubic metersand 30 + 60 = 90 over the nine minutes
    061218059n, minutescubic meters per minute00.61.2144169225u, the new variablethe integrand in u30306060u = n2+ 144, so du = 2n dn and n dn = half duthe integral in u is 30 times the square root of ulimits: n = 0, 5, 9 give u = 144, 169, 225whose square roots are 12, 13 and 15(a) 30(13 − 12) = 30 cubic meters(b) 30(15 − 13) = 60 cubic metersand 30 + 60 = 90 over the nine minutes
    (b) ∫59 q dn = 30(15 − 13) = 60 cubic meters, twice as much in four minutes as in the first five.

Answer: (a) 30 cubic meters; (b) 60 cubic meters, and 90 cubic meters over the nine minutes altogether

Common mistakes

  • Setting u = n2 + 144 and then integrating 30n√u with the n still standing in the numerator. An integral may carry only one variable: the n dn has to become 12du before anything is integrated, and that half is where the 15 comes from.
  • Keeping the limits 0 and 5 after changing to u. They are values of n, not of u; in u the limits are 144 and 169. Using 0 and 5 gives 30√5 = 67.1, which is the volume of nothing at all.

More techniques of integration problems, worked step by step →

Practice Integration by Substitution in the app