Uni-Sine
MathematicsCalculus

Integration by substitution

Integration by substitution means replacing part of an integral with a new variable, u, so the integral becomes one you can do. You choose u, find du in terms of dx, rewrite everything in u, integrate, then substitute back. It is the reverse of the chain rule. Below are the method, six worked examples and a set of integration by substitution questions with answers.

How to integrate by substitution

  1. Choose u. Usually the inside of a bracket, root or power, or a function whose derivative also appears. Exam questions often tell you the substitution.
  2. Differentiate. Find du/dx, then rearrange to get dx in terms of du.
  3. Rewrite the integral in u. Every x must go, including any left over outside the bracket: use the substitution to write x in terms of u.
  4. Integrate with respect to u.
  5. Substitute back to give the answer in x, and add + C. (For a definite integral, change the limits instead; see Example 3.)

Why it works: if F is an integral of f, the chain rule gives d/dx[F(u)] = f(u) × du/dx. So integrating f(u) du/dx with respect to x gives F(u) + C, and the substitution just makes that pattern visible.

\int f\left(u\right)\frac{du}{dx}\ dx=\int f\left(u\right)\ duThe idea behind integration by substitution

Worked examples

Example 1: the derivative is already there

\int 6x^2\left(x^3-2\right)^5\ dx
  1. Let u = x³ − 2. Then du/dx = 3x², so dx = du ÷ 3x².
  2. Substitute: ∫ 6x² u⁵ × du ÷ 3x² = ∫ 2u⁵ du. The x² cancels.
  3. Integrate: 2u⁶ ÷ 6 = u⁶ ÷ 3.
  4. Substitute back: (x³ − 2)⁶ ÷ 3 + C.

When the derivative of the inside is already there, as here, you can also spot the answer with the reverse chain rule. Substitution is the method that still works when it is not.

Example 2: an x left over

\int x\sqrt{x+1}\ dx
  1. Let u = x + 1, so du/dx = 1 and dx = du.
  2. The x outside the root must also be replaced: x = u − 1.
  3. The integral becomes ∫ (u − 1)u1/2 du = ∫ (u3/2 − u1/2) du.
  4. Integrate: (2/5)u5/2 − (2/3)u3/2.
  5. Substitute back: (2/5)(x + 1)5/2 − (2/3)(x + 1)3/2 + C.

Example 3: a definite integral, changing the limits

\int_0^3\frac{x}{\sqrt{x+1}}\ dx
  1. Let u = x + 1, so dx = du and x = u − 1.
  2. Change the limits: when x = 0, u = 1; when x = 3, u = 4.
  3. The integral becomes ∫ from 1 to 4 of (u − 1) ÷ u1/2 du = ∫ from 1 to 4 of (u1/2 − u−1/2) du.
  4. Integrate: [(2/3)u3/2 − 2u1/2] from 1 to 4.
  5. At u = 4: (2/3)(8) − 2(2) = 16/3 − 4 = 4/3. At u = 1: 2/3 − 2 = −4/3.
  6. Answer: 4/3 − (−4/3) = 8/3.

Because the limits are now values of u, there is no need to substitute back. You can check definite integrals like this one in the Integral Calculator, which also shades the area.

Example 4: an exponential

\int\frac{e^x}{e^x+1}\ dx
  1. Let u = eˣ + 1, so du/dx = eˣ and dx = du ÷ eˣ.
  2. The integral becomes ∫ (eˣ ÷ u) × du ÷ eˣ = ∫ 1/u du = ln|u|.
  3. Since eˣ + 1 is always positive: ln(eˣ + 1) + C.

Example 5: a substitution given in the question

Use the substitution x = sin θ to find the exact value of:

\int_0^{\frac{1}{2}}\frac{1}{\sqrt{1-x^2}}\ dx
  1. x = sin θ, so dx/dθ = cos θ and dx = cos θ dθ.
  2. Limits: x = 0 gives θ = 0; x = 1/2 gives θ = π/6.
  3. √(1 − sin²θ) = √(cos²θ) = cos θ, which is positive for θ between 0 and π/6.
  4. The integral becomes ∫ from 0 to π/6 of (cos θ ÷ cos θ) dθ = ∫ from 0 to π/6 of 1 dθ.
  5. Answer: π/6.

Example 6: a logarithm inside

\int_e^{e^2}\frac{1}{x\ln x}\ dx
  1. Let u = ln x, so du/dx = 1/x and dx = x du.
  2. Limits: x = e gives u = 1; x = e² gives u = 2.
  3. The integral becomes ∫ from 1 to 2 of (1 ÷ (x u)) × x du = ∫ from 1 to 2 of 1/u du.
  4. Answer: ln 2 − ln 1 = ln 2.

Practise the basic integration rules these examples finish with in this question from the Calculus course.

Integrate a random polynomial, remembering the constant of integration.

Press Mark to have your answer marked in the Calculus course.

How to choose u

If the integral hasTryExample
A bracket raised to a poweru = the bracket∫ x(x + 3)⁵ dx: u = x + 3
A root of an expressionu = the expression under the root, or u = the root∫ x√(2x − 1) dx: u = 2x − 1
A function and its derivativeu = the function∫ sec²x tan³x dx: u = tan x
ln x and 1/xu = ln x∫ (ln x)⁴/x dx
√(1 − x²)x = sin θ (usually given)Example 5

Integration by substitution questions

Try these, then check your answers below. Questions 1 to 3 are indefinite, so include + C.

  1. Find ∫ 4x(2x² + 1)³ dx.
  2. Use u = x + 3 to find ∫ x(x + 3)⁵ dx.
  3. Use u = tan x to find ∫ sec²x tan³x dx.
  4. Use u = 1 − x to find the exact value of ∫ from 0 to 1 of x(1 − x)⁴ dx.
  5. Use u = x − 1 to find the exact value of ∫ from 1 to 5 of x√(x − 1) dx.
  6. Use u = x² to find the exact value of ∫ from 0 to 2 of x ex² dx.

Answers

  1. u = 2x² + 1, du = 4x dx: ∫ u³ du = (2x² + 1)⁴ ÷ 4 + C.
  2. x = u − 3: ∫ (u − 3)u⁵ du = u⁷/7 − u⁶/2, so (x + 3)⁷/7 − (x + 3)⁶/2 + C.
  3. du = sec²x dx: ∫ u³ du = tan⁴x ÷ 4 + C.
  4. x = 1 − u, dx = −du, limits 1 to 0: ∫ from 0 to 1 of (1 − u)u⁴ du = 1/5 − 1/6 = 1/30.
  5. x = u + 1, limits 0 to 4: ∫ (u + 1)u1/2 du = [(2/5)u5/2 + (2/3)u3/2] from 0 to 4 = 64/5 + 16/3 = 272/15.
  6. du = 2x dx, limits 0 to 4: (1/2)∫ eᵘ du = (e⁴ − 1) ÷ 2.
practice
Pick an answer, then check it.
When using u = 2x + 1 in a definite integral from x = 1 to x = 4, what are the new limits?

Common mistakes

  • Leaving some x in the integral. After substituting, only u (and du) should remain. Use x = u − 1, or similar, for any leftover x.
  • Forgetting to replace dx. dx is not du unless du/dx = 1.
  • Keeping the x limits. Either change the limits to u values, or substitute back to x before using the original limits.
  • Forgetting + C on indefinite integrals.
  • Dropping a minus sign when u = 1 − x, so dx = −du. Swapping the limits back cancels it.

Practise with a short timed paper

Integration by substitution is in the second year of AQA A-level Maths (H5), alongside integration by parts. The daily A-level Maths: Calculus paper is a short timed paper of 8 questions, with a new one every day.

Common questions

What is integration by substitution?
A method that replaces part of an integral with a new variable u, so the integral becomes simpler to do. It is the reverse of the chain rule.
How do you choose u?
Usually the inside of a bracket, power or root, or a function whose derivative also appears in the integral. Exam questions often give the substitution.
Do you change the limits in integration by substitution?
Yes, for a definite integral: put each x limit into the substitution to get u limits. Then you do not need to substitute back.
What is the difference between substitution and the reverse chain rule?
They rest on the same idea. The reverse chain rule spots the answer when the derivative of the inside is present; substitution works step by step and handles leftover x terms too.
Is integration by substitution in AS or A-level Maths?
In AQA A-level Maths it is in content H5, which is A-level (second year) content, not AS.
When should I use integration by parts instead?
When the integral is a product of two unrelated functions, such as x eˣ or x sin x, where no substitution simplifies it.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Integral Calculator

    Integrate step by step and shade the area under the curve

    Open the tool
  • Learn it

    Calculus

    Differentiation, integration and the mathematics that drives physics and engineering

    Start the course
  • Test it

    A-level Maths: Calculus

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · CalculusIntegration A-level Maths: methods, formulas and examplesA-level Maths integration in one place: standard integrals, definite integrals, areas, substitution, parts, partial fractions and differential equations.