AP Calculus AB and BC · Unit 6 · Topic 6.9

    6.9 Integrating Using Substitution

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    Substitution undoes the chain rule. If an integrand contains a function u=g(x)u = g(x) together with its derivative g′(x)g'(x) (up to a constant factor), set du=g′(x) dxdu = g'(x)\,dx, rewrite everything in uu, integrate, and substitute back. For definite integrals, change the limits to uu-values and skip the back-substitution.

    What you need to know

    • Recognise integrands that suit substitution.
    • Choose u and express dx in terms of du.
    • Adjust for missing constant factors.
    • Evaluate definite integrals by changing the limits of integration.

    The chain rule in reverse

    Since ddxsin⁡(x2)=cos⁡(x2)⋅2x\frac{d}{dx}\sin(x^2) = \cos(x^2)\cdot 2x, we know ∫2xcos⁡(x2) dx=sin⁡(x2)+C\int 2x\cos(x^2)\,dx = \sin(x^2) + C. Substitution makes this systematic: let u=x2u = x^2, so du=2x dxdu = 2x\,dx, and the integral becomes ∫cos⁡u du=sin⁡u+C=sin⁡(x2)+C\int \cos u\,du = \sin u + C = \sin(x^2) + C.

    • Choose uu: usually the inside of a composition, a power's base, or a denominator.
    • Find du=u′(x) dxdu = u'(x)\,dx.
    • Rewrite the whole integral in uu; no xx may remain.
    • Integrate, then replace uu by its expression in xx.

    Adjusting constants

    The derivative of uu often appears with the wrong constant. For ∫xx2+1 dx\int x\sqrt{x^2 + 1}\,dx, let u=x2+1u = x^2 + 1, du=2x dxdu = 2x\,dx, so x dx=12dux\,dx = \frac{1}{2}du. Then ∫12u1/2 du=13u3/2+C=13(x2+1)3/2+C\int \frac{1}{2}u^{1/2}\,du = \frac{1}{3}u^{3/2} + C = \frac{1}{3}(x^2 + 1)^{3/2} + C.

    Simple linear insides need only a constant too: ∫e3x dx=13e3x+C\int e^{3x}\,dx = \frac{1}{3}e^{3x} + C and ∫cos⁡(5x) dx=15sin⁡(5x)+C\int \cos(5x)\,dx = \frac{1}{5}\sin(5x) + C. Only constants can be adjusted this way. If an extra xx is missing, substitution in this form will not work.

    Some useful results come straight from substitution: ∫ln⁡xx dx=(ln⁡x)22+C\int \frac{\ln x}{x}\,dx = \frac{(\ln x)^2}{2} + C with u=ln⁡xu = \ln x, and ∫tan⁡x dx=−ln⁡∣cos⁡x∣+C\int \tan x\,dx = -\ln|\cos x| + C with u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx.

    Definite integrals

    Change the limits along with the variable. For ∫02x(x2+1)3 dx\int_0^2 x(x^2 + 1)^3\,dx, let u=x2+1u = x^2 + 1: when x=0x = 0, u=1u = 1; when x=2x = 2, u=5u = 5. The integral becomes 12∫15u3 du=18[u4]15=18(625−1)=78\frac{1}{2}\int_1^5 u^3\,du = \frac{1}{8}\left[u^4\right]_1^5 = \frac{1}{8}(625 - 1) = 78.

    Similarly, ∫01xex2 dx=12∫01eu du=e−12\int_0^1 xe^{x^2}\,dx = \frac{1}{2}\int_0^1 e^u\,du = \frac{e - 1}{2}.

    Choosing u well

    A good uu is one whose derivative is sitting elsewhere in the integrand. Look for an 'inside' function, such as x2x^2 in cos⁡(x2)\cos(x^2), the base of a power, or the expression under a root. If your first choice leaves stray xx's that cannot be rewritten, try another. With practice, you will often see the answer directly and can skip writing uu at all, but on the exam it is safer to show the substitution.

    Substitution also handles accumulation questions. If a rate is given as R(t)=4te−t2R(t) = 4te^{-t^2}, the total change from 0 to 2 is ∫024te−t2 dt=−2[e−u]04=2(1−e−4)\int_0^2 4te^{-t^2}\,dt = -2\left[e^{-u}\right]_0^4 = 2(1 - e^{-4}), with u=t2u = t^2. The technique is the same in any context.

    Key terms

    u-substitution
    Replacing an inner function by u to undo the chain rule.
    Differential
    du=u′(x) dxdu = u'(x)\,dx, relating small changes in u and x.
    Changing the limits
    Converting x-limits to u-limits for a definite integral.
    Back-substitution
    Replacing u by its expression in x at the end of an indefinite integral.

    Common mistakes

    • Leaving some x in the integral after substituting.

      Everything, including dx, must be in terms of u.

    • Keeping the x-limits after changing to u.

      Convert the limits or substitute back first.

    • Adjusting for a missing variable factor.

      Only constant factors can be compensated for.

    How this topic is tested

    • Show u, du and the new limits explicitly.
    • Differentiate your answer to check.
    • Simplify the constant factor before integrating.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Implementing Mathematical Processes

      What is ∫2xcos⁡(x2) dx\int 2x\cos(x^2)\,dx?

    2. Question 2 · MP 1 · Implementing Mathematical Processes

      What is ∫xx2+1 dx\int x\sqrt{x^2 + 1}\,dx?

    3. Question 3 · MP 1 · Implementing Mathematical Processes

      What is ∫02x(x2+1)3 dx\int_0^2 x(x^2 + 1)^3\,dx?

    4. Question 4 · MP 2 · Connecting Representations

      After substituting u=x2+1u = x^2 + 1 in ∫02… dx\int_0^2 \dots\,dx, what are the new limits?

    5. Question 5 · MP 1 · Implementing Mathematical Processes

      What is ∫tan⁡x dx\int \tan x\,dx?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 3 points

    Evaluate ∫0π/2sin⁡xcos⁡2x dx\int_0^{\pi/2}\sin x\cos^2 x\,dx.

    1. (a) State a substitution and the new limits.
    2. (b) Evaluate the integral.

    Connected topics

    Frequently asked questions

    Is substitution always possible?

    No. It works when the derivative of an inner function appears, up to a constant factor.

    Must I change limits?

    No, you may substitute back to x instead. Just do not mix the two methods.

    Is this on AB?

    Yes. Substitution is a core AB skill and appears every year.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the exam is laid out.

    Free Unit 6 cheat sheet

    Every topic in Unit 6: Integration and Accumulation of Change on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus AB practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus AB practice examsUnit 6 is one of 8 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Related lessons in other AP courses

    All topics in Unit 6: Integration and Accumulation of Change

    1. 6.1 Exploring Accumulations of Change
    2. 6.2 Approximating Areas with Riemann Sums
    3. 6.3 Riemann Sums, Summation Notation, and Definite Integral Notation
    4. 6.4 The Fundamental Theorem of Calculus and Accumulation Functions
    5. 6.5 Interpreting the Behavior of Accumulation Functions Involving Area
    6. 6.6 Applying Properties of Definite Integrals
    7. 6.7 The Fundamental Theorem of Calculus and Definite Integrals
    8. 6.8 Finding Antiderivatives and Indefinite Integrals: Basic Rules and Notation
    9. 6.9 Integrating Using Substitution
    10. 6.10 Integrating Functions Using Long Division and Completing the Square
    11. 6.14 Selecting Techniques for Antidifferentiation

    Other units in AP Calculus AB

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.