AP Calculus AB and BC

U-Substitution: How to Choose u and Integrate It

Choose u as the inside function of a composite whose derivative also appears in the integrand, up to a constant multiple. Find du, rewrite the whole integral in u, integrate, then back-substitute. For a definite integral, convert the bounds to u-values. If du is nowhere present, substitution is the wrong tool.

When u-substitution is the right tool

Reach for u-substitution (CED Topic 6.9) when the integrand is a composite function multiplied by the derivative of its inside. Substitution is the chain rule run backward: the chain rule turns F(g(x))F(g(x)) into F(g(x))g(x)F'(g(x)) \cdot g'(x), so an integral that carries both a composite piece and the derivative of its inner function is set up to be un-chained.

f(g(x))g(x)dx=f(u)du,u=g(x)\int f(g(x))\,g'(x)\,dx = \int f(u)\,du, \qquad u = g(x)

The recognition signal is a two-part pattern. First, find an inner function g(x)g(x) tucked inside something else: the base of a power, the radicand of a root, the exponent on ee, the argument of a trig function, or a denominator. Second, check whether g(x)g'(x), the derivative of that inner function, also shows up in the integrand. It only has to match up to a constant multiple, since constants are easy to carry through. When both parts are present, substitution collapses the whole integral into a basic one. On the AP exam this technique appears on both multiple-choice and free-response questions, often buried inside a larger accumulation or area problem.

The one-line test

If differentiating your candidate for uu produces something already in the integrand (times any constant), substitution is worth trying; if the rest of the integrand also collapses into uu with no stray xx remaining, it works. If differentiating produces a factor that is nowhere to be found, choose a different uu or a different method.

Choosing u: pick the inside

The choice of uu decides everything, and the rule is short: let uu be the inner function whose derivative appears. In x(x2+3)4dx\int x(x^2+3)^4\,dx the inside is x2+3x^2+3 because it is raised to a power, and its derivative 2x2x is sitting right there as a factor. In lnxxdx\int \frac{\ln x}{x}\,dx the inside is lnx\ln x, since its derivative 1x\frac{1}{x} is the other factor. In cos(5x)dx\int \cos(5x)\,dx the inside is 5x5x, the argument of the cosine.

Work from the outside in. Ask what function is wrapped around another, then name the wrapped part uu. A reliable checklist of candidates: the base of a power such as (x2+3)4(x^2+3)^4; the expression under a root; the exponent of e()e^{(\cdots)}; the argument of sin\sin, cos\cos, or tan\tan; and the denominator of a fraction. After you pick, differentiate to confirm g(x)g'(x) is available. A leftover constant is harmless, since you fix it by multiplying and dividing. A leftover variable is a warning sign that the choice may be wrong.

One subtlety: the inside is not always the most complicated-looking chunk. It is specifically the function whose derivative you can find elsewhere. In x3cos(x4)dx\int x^3 \cos(x^4)\,dx the tempting choice is u=x3u = x^3, but its derivative 3x23x^2 is not in the integrand; the right choice is u=x4u = x^4, whose derivative 4x34x^3 matches the x3x^3 factor. Let the available derivative, not the visual bulk, decide.

The five steps

Once uu is chosen, the procedure is mechanical.

  1. Set u=g(x)u = g(x) and differentiate to get du=g(x)dxdu = g'(x)\,dx.
  2. Solve for the exact piece the integral contains. If du=2xdxdu = 2x\,dx but the integral has xdxx\,dx, then xdx=12dux\,dx = \frac{1}{2}\,du.
  3. Rewrite the integral so that no xx remains anywhere, including inside the dxdx. A surviving xx means the substitution is incomplete.
  4. Integrate in terms of uu using the basic antiderivative rules.
  5. For an indefinite integral, back-substitute u=g(x)u = g(x) and add +C+C. For a definite integral, handle the bounds instead.

Steps two and three are where substitution succeeds or fails. If you can express every xx-piece in terms of uu and dudu, the integral was a genuine substitution. If you cannot, the setup is telling you to reconsider uu.

Definite integrals: convert the bounds

For a definite integral, the essential-knowledge point of Topic 6.9 (FUN-6.D.2) is that substitution requires corresponding changes to the limits of integration. The bounds written on the integral are xx-values. The moment you switch the variable to uu, those numbers no longer describe where you are, so you must deal with them on purpose.

abf(g(x))g(x)dx=g(a)g(b)f(u)du\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du

There are two safe routes. The cleaner one: convert the limits by plugging each original bound into u=g(x)u = g(x), then evaluate the antiderivative entirely in uu and never return to xx. The alternative: find the antiderivative, back-substitute to xx, then use the original xx-bounds. Pick one and commit to it.

The most common mistake

Do not plug the original xx-bounds into an antiderivative still written in uu. Either convert the bounds to uu-values, or convert the antiderivative back to xx first. Mixing the two gives a wrong number every time.

What a failed choice looks like

A wrong uu announces itself quickly, which is useful, because you can bail out before wasting time. Three failure patterns cover almost every case.

The inner derivative is missing. Set u=x2u = x^2 in ex2dx\int e^{x^2}\,dx and you get du=2xdxdu = 2x\,dx, but there is no xx anywhere in the integrand to absorb it. The substitution stalls, and this particular integral has no elementary antiderivative at all. The lesson is that the derivative of your uu has to actually be present, not just wished for.

A variable factor is left behind. If rewriting the integral in uu still leaves a stray xx, the choice usually needs rescuing. Sometimes you can solve u=g(x)u = g(x) for xx and substitute that expression too, as in Example 3. If that does not clear the xx, abandon the choice and try a different uu or a different technique from Topic 6.14.

The constant gets dropped. When du=2xdxdu = 2x\,dx but the integrand carries only xdxx\,dx, the factor of 12\frac{1}{2} is easy to forget. Carry it through, and always confirm by differentiating your answer, which should reproduce the original integrand exactly.

Worked examples

Worked example

Indefinite integral with a constant adjustment

Evaluate x(x2+3)4dx\int x(x^2+3)^4\,dx.

  1. Recognize the pattern. The inside function is x2+3x^2+3, raised to the fourth power, and its derivative 2x2x appears in the integrand as the factor xx (up to the constant 22). Let u=x2+3u = x^2+3.
  2. Differentiate: dudx=2x\frac{du}{dx} = 2x, so du=2xdxdu = 2x\,dx. Solve for the piece present in the integral: xdx=12dux\,dx = \frac{1}{2}\,du.
  3. Rewrite everything in uu: x(x2+3)4dx=(x2+3)4xdx=u412du=12u4du\int x(x^2+3)^4\,dx = \int (x^2+3)^4 \cdot x\,dx = \int u^4 \cdot \frac{1}{2}\,du = \frac{1}{2}\int u^4\,du.
  4. Integrate: 12u4du=12u55=u510\frac{1}{2}\int u^4\,du = \frac{1}{2} \cdot \frac{u^5}{5} = \frac{u^5}{10}.
  5. Back-substitute u=x2+3u = x^2+3 and add the constant: (x2+3)510+C\frac{(x^2+3)^5}{10} + C.
  6. Check by differentiating: ddx[(x2+3)510]=5(x2+3)42x10=x(x2+3)4\frac{d}{dx}\left[\frac{(x^2+3)^5}{10}\right] = \frac{5(x^2+3)^4 \cdot 2x}{10} = x(x^2+3)^4, which is the original integrand.

(x2+3)510+C\dfrac{(x^2+3)^5}{10} + C

Worked example

Definite integral: convert the bounds

Evaluate 022xx2+1dx\int_0^{2} 2x\sqrt{x^2+1}\,dx.

  1. Identify the inside. Under the root is x2+1x^2+1, and its derivative 2x2x is exactly the other factor. Let u=x2+1u = x^2+1.
  2. Differentiate: du=2xdxdu = 2x\,dx, so the entire non-root part 2xdx2x\,dx becomes dudu with no constant to adjust.
  3. Convert the limits, since these are xx-values. When x=0x = 0, u=02+1=1u = 0^2+1 = 1. When x=2x = 2, u=22+1=5u = 2^2+1 = 5.
  4. Rewrite the integral entirely in uu: 022xx2+1dx=15udu=15u1/2du\int_0^{2} 2x\sqrt{x^2+1}\,dx = \int_1^{5} \sqrt{u}\,du = \int_1^{5} u^{1/2}\,du.
  5. Integrate: 15u1/2du=23u3/215\int_1^{5} u^{1/2}\,du = \frac{2}{3}u^{3/2}\Big|_1^{5}.
  6. Evaluate at the new bounds: 23(53/213/2)=23(551)6.79\frac{2}{3}\left(5^{3/2} - 1^{3/2}\right) = \frac{2}{3}\left(5\sqrt{5} - 1\right) \approx 6.79.

23(551)6.79\dfrac{2}{3}\left(5\sqrt{5} - 1\right) \approx 6.79

Worked example

When a stray x survives: solve for x

Evaluate xx+1dx\int x\sqrt{x+1}\,dx.

  1. Pick the inside. The inner function is x+1x+1, under the root. Its derivative is 11, which is present, but there is an extra factor of xx that is not the derivative. Let u=x+1u = x+1 and plan to rewrite that stray xx.
  2. Differentiate: du=dxdu = dx. To handle the leftover xx, solve the substitution for xx: since u=x+1u = x+1, we have x=u1x = u - 1.
  3. Replace every xx-piece: xx+1dx=(u1)udu=(u1)u1/2du\int x\sqrt{x+1}\,dx = \int (u-1)\sqrt{u}\,du = \int (u-1)u^{1/2}\,du.
  4. Expand the product so the power rule applies: (u1)u1/2du=(u3/2u1/2)du\int (u-1)u^{1/2}\,du = \int \left(u^{3/2} - u^{1/2}\right)\,du.
  5. Integrate term by term: (u3/2u1/2)du=25u5/223u3/2+C\int \left(u^{3/2} - u^{1/2}\right)\,du = \frac{2}{5}u^{5/2} - \frac{2}{3}u^{3/2} + C.
  6. Back-substitute u=x+1u = x+1: 25(x+1)5/223(x+1)3/2+C\frac{2}{5}(x+1)^{5/2} - \frac{2}{3}(x+1)^{3/2} + C.
  7. Check by differentiating: 2552(x+1)3/22332(x+1)1/2=(x+1)1/2[(x+1)1]=xx+1\frac{2}{5}\cdot\frac{5}{2}(x+1)^{3/2} - \frac{2}{3}\cdot\frac{3}{2}(x+1)^{1/2} = (x+1)^{1/2}\left[(x+1) - 1\right] = x\sqrt{x+1}, the original integrand.

25(x+1)5/223(x+1)3/2+C\dfrac{2}{5}(x+1)^{5/2} - \dfrac{2}{3}(x+1)^{3/2} + C

Frequently asked questions

How do you know what to pick for u in u-substitution?

Pick the inner function whose derivative also appears in the integrand. Test it by differentiating your candidate: if the result (times any constant) is already a factor in the integral, the choice works. Bases of powers, radicands, exponents of ee, trig arguments, and denominators are the usual candidates.

Do you always have to change the limits in u-substitution?

Only for definite integrals, and only if you finish the calculation in uu. Convert each xx-bound with u=g(x)u = g(x), then evaluate in uu. The alternative is to back-substitute to xx first and keep the original bounds. Never plug xx-bounds into a uu-antiderivative.

What do I do if there is still an x after substituting?

First try solving your substitution u=g(x)u = g(x) for xx and replacing the stray factor, as in Example 3. If an xx still survives, the choice of uu is wrong, so pick a different inner function or switch to another technique.

Is u-substitution on the AP Calculus exam?

Yes. It is Topic 6.9, part of both AB and BC, and it appears on multiple-choice and free-response questions, often as one step inside a larger accumulation or area problem rather than as a standalone prompt.