Reading history

Integration by Substitution

5 min read Updated 0 views

Learn integration by substitution as the reverse chain rule: choosing u, the f′(x)/f(x) rule, linear substitutions, changing limits and inverse-trig results.

Some integrals look hard at first, but they hide a simple pattern. If one part of the expression is the derivative of another part, a change of variable turns the integral into an easy one. This method is called integration by substitution. It is the chain rule worked backwards. In this lesson you will learn how to choose the substitution, how to change dx, and how to handle definite integrals.

In this lesson you will learn

  • Why substitution is the reverse of the chain rule
  • How to choose u and replace dx
  • The quick rule for f′(x)/f(x)
  • Linear substitutions such as (3x + 2)⁵
  • How to change the limits of a definite integral
  • Two standard results that lead to inverse trigonometric functions

You should know integration basics and the chain rule from differentiation basics.

Want to go deeper? Our step-by-step Calculus course builds differentiation and integration from basic limits to advanced techniques.

The Idea

The chain rule says that the derivative of f(g(x)) is f′(g(x)) × g′(x). So if an integral has the shape f′(g(x)) × g′(x), the answer is f(g(x)). We make this easy to see by giving g(x) a new name, u.

∫ 2x(x² + 1)⁴ dx

Let u = x² + 1.  Then du/dx = 2x, so du = 2x dx.

∫ 2x(x² + 1)⁴ dx = ∫ u⁴ du
                 = u⁵/5 + C
                 = (x² + 1)⁵/5 + C

Check by differentiating: the derivative of (x² + 1)⁵/5 is 5(x² + 1)⁴ × 2x / 5 = 2x(x² + 1)⁴. It works.

The Steps

  1. Choose u. A good u is a function whose derivative also appears (or nearly appears) in the integral.
  2. Find du/dx and write dx in terms of du.
  3. Replace every x. No x should be left over.
  4. Integrate with respect to u.
  5. Put x back, and add C.
∫ x√(x² + 3) dx

u = x² + 3,  du = 2x dx,  so x dx = du/2

∫ x√(x² + 3) dx = ½ ∫ u^(1/2) du
                = ½ × (2/3) u^(3/2) + C
                = ⅓ (x² + 3)^(3/2) + C

Notice that the integral had x, not 2x. That does not matter. We only need the derivative to appear up to a constant factor.

Substitution With Trigonometric Functions

∫ sin³x cos x dx

u = sin x,  du = cos x dx
∫ u³ du = u⁴/4 + C = sin⁴x / 4 + C


∫ tan x dx = ∫ sin x / cos x dx

u = cos x,  du = −sin x dx
∫ −du/u = −ln|u| + C = −ln|cos x| + C = ln|sec x| + C

The f′(x)/f(x) Rule

The tan x example shows a pattern. When the top of a fraction is the derivative of the bottom, the answer is a logarithm.

Rule

∫ f′(x)/f(x) dx = ln|f(x)| + C

∫ 2x/(x² + 5) dx       = ln(x² + 5) + C
∫ 3x²/(x³ + 1) dx      = ln|x³ + 1| + C
∫ x/(x² + 5) dx        = ½ ln(x² + 5) + C      (top is half of 2x)
∫ cos x/(2 + sin x) dx = ln(2 + sin x) + C

Linear Substitutions

When the inside function is ax + b, the substitution always gives the same result: integrate as usual, then divide by a.

∫ (3x + 2)⁵ dx  = (3x + 2)⁶ / (6 × 3) + C = (3x + 2)⁶/18 + C
∫ e^(5x) dx     = e^(5x)/5 + C
∫ cos 2x dx     = (sin 2x)/2 + C
∫ 1/(4x − 1) dx = ¼ ln|4x − 1| + C

Definite Integrals: Change the Limits

With a definite integral, change the limits from x-values to u-values. Then you never need to put x back.

∫₀¹ 2x(x² + 1)³ dx

u = x² + 1
When x = 0, u = 1.   When x = 1, u = 2.

= ∫₁² u³ du = [u⁴/4]₁² = 16/4 − 1/4 = 15/4

Two Standard Results

Some integrals need a trigonometric substitution. For example, putting x = a sin θ in the first one below gives a very simple integral. You can use these results directly.

IntegralResult
∫ 1/√(a² − x²) dxsin⁻¹(x/a) + C
∫ 1/(a² + x²) dx(1/a) tan⁻¹(x/a) + C
∫ 1/(9 + x²) dx  = ⅓ tan⁻¹(x/3) + C
∫ 1/√(4 − x²) dx = sin⁻¹(x/2) + C
∫₀¹ 1/(1 + x²) dx = tan⁻¹1 − tan⁻¹0 = π/4

These link to inverse trigonometric functions.

Common Mistakes

  1. Not replacing dx. Writing ∫ u⁴ dx mixes two variables and gives a wrong answer.
  2. Leaving some x behind. Every x must be written in terms of u before you integrate.
  3. Using the old limits after switching to u. Change them, or put x back first.
  4. Forgetting the constant C in an indefinite integral.

Practice Exercises

Exercise 1. Find ∫ 3x²(x³ − 4)⁵ dx.

Show answer

Let u = x³ − 4, so du = 3x² dx. The integral is ∫ u⁵ du = u⁶/6 + C = (x³ − 4)⁶/6 + C.

Exercise 2. Find ∫ cos x/(1 + sin x) dx.

Show answer

The top is the derivative of the bottom, so the answer is ln(1 + sin x) + C.

Exercise 3. Evaluate ∫₀^(π/2) sin x cos²x dx.

Show answer

Let u = cos x, so du = −sin x dx. The limits change from 0 and π/2 to 1 and 0. The integral is ∫₁⁰ −u² du = ∫₀¹ u² du = 1/3.

Frequently Asked Questions

How do I know which part to call u?

Look for an “inside” function whose derivative sits outside it. Brackets raised to a power, the inside of a root, and the bottom of a fraction are good first guesses. If the first choice fails, try another.

Can every integral be done by substitution?

No. Some need integration by parts or partial fractions. A few, like ∫ e^(x²) dx, have no answer in terms of ordinary functions at all.

Summary

  • Substitution reverses the chain rule: choose u, find du, and replace every x.
  • ∫ f′(x)/f(x) dx = ln|f(x)| + C.
  • For a linear inside function ax + b, integrate as normal and divide by a.
  • In definite integrals, change the limits to u-values.
  • ∫ 1/(a² + x²) dx = (1/a) tan⁻¹(x/a) + C and ∫ 1/√(a² − x²) dx = sin⁻¹(x/a) + C.

Next: Integration by Parts.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *