Unit 6Integration by Substitution
Concept 4.87Built for May 2027 AP Exam

Integration by Substitution

Reviewed by ACEpath AP Math Editorial Team

Last Updated: September 2026

30-second summary

Substitution runs the chain rule in reverse. When an integrand contains an inner function and something close to its derivative, name the inner function uu, write dudu, and the integral collapses into one you already know. For an indefinite integral, finish by returning to xx. For a definite integral, change the limits into uu-values and never go back, because mixing xx-limits with a uu-integrand is the error that ruins otherwise correct work. The whole skill is pattern recognition: the derivative of the inside has to be present up to a constant factor, and that constant is the only thing you are allowed to adjust.

On the AP Exam

AP Calculus AB tests this skill through the representations and reasoning described below.

What you’ll see
Seldom as a free-response part of its own. It appears inside differential-equation solutions and inside multiple-choice items, usually as ∫x ex2dx\int x\,e^{x^{2}}dx or ∫2xx2+1 dx\int \frac{2x}{x^{2}+1}\,dx, and often as one step of a longer computation.
What you’ll do
Pick uu as the inner function, compute dudu, match the remaining factor, and then either back-substitute or convert the limits.
Memory hook
Name the inside, then follow it down. Whatever sits inside the parentheses or the exponent becomes uu, and everything else must become dudu.
Use it on the exam
For MCQs: Differentiate the choices rather than integrating them. A candidate answer that differentiates back to the integrand is correct, and the check bypasses the whole substitution. For FRQs: Write uu and dudu on separate lines before rewriting the integral. When the integral is definite, write the new limits immediately, in the same line, so they cannot be forgotten.

Concept Review

The Chain Rule, Reversed

Figure 1 — Substitution changes the variable and the interval together. The region on the xx-axis maps to a region on the uu-axis, and the limits must travel with it.

The chain rule says ddxF(g(x))=F′(g(x))g′(x)\frac{d}{dx}F\left(g(x)\right) = F'\left(g(x)\right)g'(x). Integrating both sides gives the substitution rule:

∫f(g(x))g′(x) dx=F(g(x))+C,with u=g(x), du=g′(x) dx\int f\left(g(x)\right)g'(x)\,dx = F\left(g(x)\right) + C, \qquad \text{with } u = g(x),\ du = g'(x)\,dx

In practice you never write FF. You write uu, you write dudu, and the integral becomes ∫f(u) du\int f(u)\,du.

Substitution changes the variable and the interval together. The region on the $x$-axis maps to a region on the $u$-axis, and the limits must travel with it.

Choosing $u$

IntegrandNatural choice of uuWhy
x ex2x\,e^{x^{2}}u=x2u = x^{2}du=2x dxdu = 2x\,dx, and the x dxx\,dx is present up to the 22
2xx2+1\frac{2x}{x^{2}+1}u=x2+1u = x^{2}+1du=2x dxdu = 2x\,dx matches exactly
cos⁡(3x) dx\cos(3x)\,dxu=3xu = 3xdu=3 dxdu = 3\,dx
sin⁡4xcos⁡x dx\sin^{4}x\cos x\,dxu=sin⁡xu = \sin xdu=cos⁡x dxdu = \cos x\,dx
xx2+4 dxx\sqrt{x^{2}+4}\,dxu=x2+4u = x^{2}+4du=2x dxdu = 2x\,dx, present up to a factor

The pattern in every row is the same: the derivative of the inside appears somewhere in the integrand, possibly multiplied by a constant you can move.

Adjusting a Constant Is Legal; Adjusting a Variable Is Not

If du=2x dxdu = 2x\,dx and the integrand contains only x dxx\,dx, you may write x dx=12dux\,dx = \frac{1}{2}du and carry the 12\frac{1}{2} outside. That is multiplication by a constant, and constants pass through an integral. What you may not do is invent a missing factor of xx, because xx is not a constant and it changes with the variable.

∫x ex2dx=12∫eu du=12eu+C=12ex2+C\int x\,e^{x^{2}}dx = \frac{1}{2}\int e^{u}\,du = \frac{1}{2}e^{u} + C = \frac{1}{2}e^{x^{2}} + C

Definite Integrals: Change the Limits

There are two correct routes and one wrong one. The correct routes are to convert the limits into uu-values before integrating, or to back-substitute and then evaluate at the original xx-limits. The wrong route is to integrate in uu and then substitute xx-limits into a uu-expression.

∫01x ex2dx=12∫01eu du=12[eu]01=12(e−1)\int_0^{1} x\,e^{x^{2}}dx = \frac{1}{2}\int_{0}^{1} e^{u}\,du = \frac{1}{2}\left[e^{u}\right]_0^{1} = \frac{1}{2}(e - 1)

The new limits come from the substitution itself: u=x2u = x^{2} sends x=0x = 0 to u=0u = 0 and x=1x = 1 to u=1u = 1. When the substitution is not monotone on the interval, the converted limits can collapse or reverse, and both are correct behaviour rather than errors.

When Substitution Fails

Substitution needs the inner derivative to be present. ∫ex2dx\int e^{x^{2}}dx has no elementary antiderivative, and no choice of uu fixes that, because the missing factor xx cannot be manufactured. Recognizing the failure is part of the skill: on the exam such integrands appear only inside definite integrals where a calculator or a table supplies the value.

Common Misconception Check

  • Myth 1: “Substitution works on any composite integrand.” Truth: It works when the inner derivative is present. Without that factor the method has nothing to absorb.
  • Myth 2: “After substituting, the old limits still apply.” Truth: The limits are xx-values and the integrand is now a uu-expression. Both must speak the same variable.
  • Myth 3: “You must always convert the limits.” Truth: Back-substituting and using the original limits is equally valid, and often safer when the substitution is awkward to invert.

Topic-Specific Study Method

Name the Inside, Then Follow It

Borrowed idea: Find the inside. Name it uu. The inner function is what makes the integrand composite, and it sits either in the exponent or in the parentheses. Then ask what dudu has to be. If the answer matches what is left over, the rest is one line of work. If it does not match, the method is wrong for this integrand, and no amount of rewriting will make the missing factor appear.

Exam disguiseWhat you see on the pageWhat your brain must translateRequired execution
Power of a trig functionsin⁡4xcos⁡x\sin^{4}x\cos xu=sin⁡xu = \sin x, du=cos⁡x dxdu = \cos x\,dxabsorb the cosine
Exponent with a squarex ex2x\,e^{x^{2}}du=2x dxdu = 2x\,dx, so a 12\frac{1}{2} appearsadjust the constant only
Fraction with a quadratic below2xx2+1\frac{2x}{x^{2}+1}uu is the denominatorgives a logarithm
Root of a quadraticxx2+4x\sqrt{x^{2}+4}u=x2+4u = x^{2}+4power rule on u1/2u^{1/2}
Definite integral with a compositelimits plus an inner functionthe limits must change tooconvert before integrating

① Write uu and dudu on their own lines. The two lines are the method, and skipping them is why students lose track of which variable is live.

② Convert the limits at the same moment you convert the integrand. A definite integral in uu with xx-limits is the single most common structural error in the topic.

③ Differentiate the final answer. For an indefinite integral this returns the original integrand, and for a definite integral it is not needed, since the numeric value can be sanity-checked by sign and size.


Training & Error Diagnosis

Core Archetype (Simplest Form): Find ∫2x(x2+3)5dx\int 2x\left(x^{2}+3\right)^{5}dx.

Standard Execution:

  1. Choose. u=x2+3u = x^{2}+3, so du=2x dxdu = 2x\,dx.
  2. Rewrite. The integral becomes ∫u5 du\int u^{5}\,du.
  3. Integrate. u66+C\frac{u^{6}}{6} + C.
  4. Return. (x2+3)66+C\frac{\left(x^{2}+3\right)^{6}}{6} + C.
  5. Check. Differentiating gives (x2+3)5⋅2x\left(x^{2}+3\right)^{5}\cdot 2x, which matches.

Exam Variation (Context / Parameter Shift): Evaluate ∫123x2x3+1 dx\int_1^{2} \frac{3x^{2}}{x^{3}+1}\,dx.

Solution: Let u=x3+1u = x^{3}+1, so du=3x2dxdu = 3x^{2}dx and the integrand is exactly duu\frac{du}{u}. The limits convert: x=1x = 1 gives u=2u = 2, and x=2x = 2 gives u=9u = 9. So the integral is ∫29duu=[ln⁡u]29=ln⁡9−ln⁡2=ln⁡92\int_2^{9}\frac{du}{u} = \left[\ln u\right]_2^{9} = \ln 9 - \ln 2 = \ln\frac{9}{2}. Note the two decisions that carry the points: the limits moved with the substitution, and the absolute value in the logarithm can be dropped because both limits are positive.

Common Traps & Failure Signals:

  1. Limits left in xx (Signal: an xx-value substituted into a uu-expression): convert the limits or back-substitute, never mix.
  2. Missing dudu factor (Signal: an xx left over after substituting): the derivative of the inside must be fully absorbed.
  3. Invented factor (Signal: multiplying by xx to make the match work): only constants may be adjusted.

6D Cognitive Error Diagnosis (Where Your Thinking Broke):

  • Inside Unnamed: Write uu before rewriting.
  • Variable Mixing: You converted the integrand and kept the old limits, which is a bookkeeping failure rather than a calculus one, and it produces a wrong number with no visible symptom because every individual step looks correct.
  • Factor Invented: You supplied the missing xx to make the substitution fit, which works only when the missing factor is a constant, and the resulting answer differentiates back to something that is not the original integrand at all.

Past 10-Year AP Exam Appearance

Testing Frequency
MCQ Only
No released free-response part since 2017 requires u-substitution as a scored step; every appearance is in the multiple-choice section or inside a differential-equation solution
10-Year Total Count
0 of 9 Exams · 0 FRQ Parts
The nine free-response sets contain no part whose rubric mentions substitution
FRQ Years Appeared
None in Released FRQs ---

Practice Examples

MCQ 1

The Straightforward Case

∫2x(x2+5)3dx=\int 2x\left(x^{2}+5\right)^{3}dx =

MCQ 2

Changing the Limits

∫013x2(x3+1)2dx=\int_0^{1} 3x^{2}\left(x^{3}+1\right)^{2}dx =

MCQ 3

Recognising a Logarithm

∫4xx2+9 dx=\int \frac{4x}{x^{2}+9}\,dx =

FRQ 4

Substitution in Both Directions

(a) Find ∫x2x3+1 dx\int x^{2}\sqrt{x^{3}+1}\,dx.

(b) Evaluate ∫02xx2+1 dx\int_0^{2} \frac{x}{x^{2}+1}\,dx.

(c) A student writes ∫02xx2+1 dx=[12ln⁡(x2+1)]02\int_0^{2} \frac{x}{x^{2}+1}\,dx = \left[\frac{1}{2}\ln\left(x^{2}+1\right)\right]_0^{2} and then claims the substitution was never needed. Explain why the method is sound even though the antiderivative was written directly in xx.

Cheatsheet

Core Reference

ActionFailure if skipped
1name uu as the inner functionnothing collapses
2compute dudu and solve for the leftoveran xx survives
3adjust constants onlythe answer differentiates back wrong
4convert the limits (definite)xx-limits on a uu-integrand
5back-substitute (indefinite)the answer is in the wrong variable

Sentences That Score

TOPIC REVIEW • NEXT STEP IN YOUR LEARNING LOOP

Ready to check your understanding?

Strengthen this topic with AP-style practice, or continue to next topic.