STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

U-substitution, explained with examples

U-substitution is the chain rule in reverse. It turns a complicated integral into a simple one by renaming part of it, and it is the most used integration technique in AP Calculus AB and BC.

On this page
  1. The idea
  2. How to spot it
  3. The method
  4. Worked examples
  5. Choosing between two possible u
  6. Check by differentiating
  7. Definite integrals: change the limits
  8. When u-substitution is not the answer
  9. Common mistakes
  10. Practice questions
  11. Frequently asked questions
  12. Key takeaways
  13. Related guides

The idea

The chain rule says that the derivative of f(g(x)) is f'(g(x)) · g'(x). So if an integral contains a function of g(x) multiplied by g'(x), it is the result of a chain rule, and we can undo it. U-substitution makes this systematic: let u = g(x), so that du = g'(x) dx, and the integral becomes ∫ f'(u) du, which is usually straightforward.

How to spot it

Look for an “inside function” whose derivative also appears in the integrand, possibly up to a constant multiple. Typical signs:

The method

  1. Choose u, usually the inside function.
  2. Differentiate: find du/dx, and rearrange to get dx or the matching piece of the integrand in terms of du.
  3. Substitute so the integral contains only u and du. No x should be left.
  4. Integrate with respect to u.
  5. Substitute back u = g(x) and add + C.

Worked examples

Example 1: a power of a bracket

Find ∫ 2x(x² + 1)5 dx.

Example 2: adjusting a constant

Find ∫ x² cos(x³) dx.

Example 3: a logarithm

Find ∫ 2x/(x² + 4) dx.

Example 4: an exponential

Find ∫ e5x dx.

Example 5: trig

Find ∫ sin x cos4x dx.

Example 6: tan x

Find ∫ tan x dx.

Example 7: a leftover x

Find ∫ x√(x + 1) dx.

Choosing between two possible u

Sometimes more than one choice looks reasonable. A good rule is to pick the expression that is “inside” something else: inside a bracket with a power, inside a square root, in the exponent of e, or inside a trig function. Then check quickly: is du, or a constant multiple of it, present in the integrand? If yes, proceed. If substituting leaves a mess, go back and try the other option; trying costs only a few seconds.

Check by differentiating

Every indefinite integral can be checked by differentiating your answer. If you get back the original integrand, you are right. For Example 1, the derivative of (x² + 1)6/6 is (x² + 1)5 · 2x, which matches. This is the fastest way to catch a missing constant factor.

Definite integrals: change the limits

For a definite integral, the limits belong to x. When you switch to u, either change the limits to u-values, or substitute back to x before evaluating. Changing the limits is usually quicker and avoids errors. On AP free-response questions, write the new limits clearly; mixing x-limits with a u-integral is a common lost point.

Example 8: with new limits

Evaluate ∫02 x(x² + 1)³ dx.

When u-substitution is not the answer

If no part of the integrand is the derivative of another part, substitution usually will not help. A product of unrelated functions, such as x ex, calls for integration by parts. A rational function such as 1/((x + 1)(x + 2)) calls for partial fractions. Some integrals, like ∫ ex² dx, have no elementary answer at all; on the AP exam these appear only as definite integrals for your calculator.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Find ∫ 3x²(x³ − 2)4 dx.

Show answer
(x³ − 2)5/5 + C.

Q2. Find ∫ cos(4x) dx.

Show answer
(1/4) sin(4x) + C.

Q3. Find ∫ ex/(1 + ex) dx.

Show answer
u = 1 + ex: ln(1 + ex) + C.

Q4. Find ∫ ln x / x dx.

Show answer
u = ln x: (ln x)²/2 + C.

Q5. Evaluate ∫0π/2 sin x cos x dx.

Show answer
u = sin x, limits 0 to 1: 1/2.

Frequently asked questions

Is u-substitution on AP Calculus AB?

Yes. It is in Unit 6 of both AB and BC, and it appears in multiple-choice and free-response questions.

Is it the same as integration by substitution in A level Maths?

Yes. A level calls it integration by substitution, and it is in the second year. Questions often tell you which substitution to use.

Key takeaways