Professor Turing

Study guides

How to do u substitution

Last updated: 2026-11-26

To use u substitution, look for an inner expression whose derivative also appears in the integrand, up to a constant factor, and call that expression u. Then rewrite the whole integral in u, including dx, and for a definite integral change the bounds to values of u. The method is the chain rule read backwards.

Start learning No account needed

1. Five moves

  1. Choose u, often the expression inside a power, root, exponential or trig function.
  2. Differentiate to get du in terms of x and dx, and check that the matching x factor is in the integrand.
  3. Replace each x expression and dx. If an x is left over, rewrite it in terms of u or choose a different u before you integrate.
  4. For a definite integral, put each x bound into u to get the new bound.
  5. Integrate in u. For an indefinite integral, return to x, add the constant, and differentiate to check.

For a definite integral, the rule assumes that u has a continuous derivative and that the outer function is continuous on the values u takes.

2. A worked example with bounds

Evaluate the integral from 0 to 2 of x(x2 + 1)3 dx. The inner expression is x2 + 1, and its derivative 2x differs from the x outside only by the constant 2. So let u = x2 + 1. Then du = 2x dx, which gives x dx = du / 2.

Now move the bounds. When x = 0, u = 1. When x = 2, u = 5. The integral becomes one half of the integral from 1 to 5 of u3 du.

An antiderivative of u3 / 2 is u4 / 8. At 5 that is 625 / 8, and at 1 it is 1 / 8, so the value is 624 / 8 = 78. You can stop here without going back to x, because the bounds are already values of u.

CheckResult
Original integral in x, from 0 to 2, Simpson's rule78.0000
New integral in u, from 1 to 5, Simpson's rule78.0000
Exact value, 624 / 878
Derivative at x = 1, then the integrand at x = 18.0000 and 8.0000

The numerical rows use Simpson's rule, which estimates the area without any substitution. The last row differentiates (x2 + 1)4 / 8 numerically at x = 1 and compares it with the integrand there.

3. The bounds mistake

Keeping 0 and 2 after changing to u computes 24 / 8 − 04 / 8 = 2, far from 78. The numbers 0 and 2 are values of x, and the new integral asks for values of u. You have two consistent routes. Change the bounds and stay in u, or find the antiderivative, replace u with x2 + 1, and then use 0 and 2. The second route gives (625 − 1) / 8 = 78 as well.

4. When the derivative is missing

Try the same u on the integral from 0 to 2 of (x2 + 1)3 dx. Now dx = du / (2x) for x above 0, and the x does not cancel. You may move a constant such as one half outside an integral, but not a variable such as 1 / x. You could write x as the square root of u − 1, since x is not negative here, but the new integrand is no easier.

Here expanding works better. The integrand is x6 + 3x4 + 3x2 + 1, and integrating term by term from 0 to 2 gives 128/7 + 96/5 + 8 + 2 = 1662/35, about 47.4857. Replacing dx with du and integrating u3 from 1 to 5 would give 156, which is wrong.

5. Test yourself

Close this page and, for each integral, write u, du and the new bounds before integrating: the integral from 0 to 1 of 3x2(x3 + 1)2 dx; the integral from 0 to 2 of x times e to the power x2, dx. Then find the indefinite integral of cos x times (sin x)2 and differentiate your answer to check it. If a factor will not turn into u or du, say which one and pick again.

Related guides: how to study for a math exam and how to test yourself.

The worked example is checked by a short script, scripts/how-to-do-u-substitution-worked-example.py.

What the sources found, and their limits

Wikipedia, Integration by substitution. It supports the link to the chain rule, the change of dx, adjusting the limits of a definite integral, the condition that u is differentiable with a continuous derivative and the outer function is continuous, and checking by differentiating. Source: Integration by substitution, read on 2026-11-25.

Wikibooks, Calculus: Recognizing Derivatives and the Substitution Rule. It supports choosing u so that its derivative appears in the expression, adjusting by constants, and computing new bounds. Source: the Wikibooks chapter, read on 2026-11-25. Limits: the integrals on this page are ours, and the five moves are our summary.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.

Bring an integral where you are unsure what to call u. Its first reply asks what you already know before it teaches anything. If you answer with a bare guess, it asks how you got there instead of saying right or wrong, and when you stay stuck it changes its approach and makes the next step smaller, so you work it out yourself. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Do I have to change the bounds? For a definite integral, either change them to values of u, or go back to x before you put in the original bounds. Mixing old bounds with the new variable gives a wrong value in general.

What if an x is left after substituting? The integral has to be entirely in u before you integrate it. Rewrite the leftover x in terms of u if that helps, and otherwise try a different u or a different method.

Start with what you're working on

Tell the tutor which topic you are studying and let it ask you the questions.

Start learning No account needed

See also: all study guides