AP Calculus AB • Integration and Accumulation of Change

Integrating Using Substitution

Reverse the chain rule to unlock integrals that resist direct antidifferentiation.

AP Calculus AB illustration with a smooth curve, infinity sign, and measuring ruler
Inside this lesson 10 sections 5 questions 7 figures

SECTION 1

Historical Context & Motivation

The problem of finding antiderivatives—reversing the process of differentiation—has occupied mathematicians since the earliest days of calculus. While Isaac Newton and Gottfried Wilhelm Leibniz independently developed the foundations of integral calculus in the late seventeenth century, they quickly discovered that many integrands do not yield to straightforward antidifferentiation. A composite function like sin(x²) · 2x, for instance, demands a systematic strategy to unravel the composition before integration can proceed. The technique that emerged, now called u-substitution, is essentially the chain rule run in reverse, and it remains one of the most powerful and widely used integration techniques in all of calculus.

1665–1676 • Birth of Calculus

Newton and Leibniz independently develop the fundamental ideas of differentiation and integration, establishing the need for systematic antidifferentiation techniques.

1690s • Leibniz's Differential Notation

Leibniz introduces the notation dx and ∫ for integrals, creating an algebraic framework where differentials can be manipulated symbolically—the very machinery that makes substitution feel natural.

1700s • Euler and Systematic Techniques

Leonhard Euler formalizes substitution methods for evaluating integrals of composite functions, embedding the technique into the standard toolkit of analysis.

1823 • Cauchy's Rigorous Foundations

Augustin-Louis Cauchy provides rigorous proofs for integration by substitution under the framework of limits, ensuring the technique rests on solid analytic ground.

The central question this technique addresses is deceptively simple: given a function that is clearly the derivative of some composition f(g(x)), how can we systematically recover the original antiderivative? Substitution provides a structured answer by introducing a new variable that collapses the composition into a simpler form, integrating in that simpler variable, and then converting back. In the AP Calculus AB curriculum, u-substitution is the first major integration technique students encounter, and it appears in a wide variety of both multiple-choice and free-response questions.

SECTION 2

Core Principles & Definitions

U-substitution rests on a small number of foundational ideas that connect differentiation and integration. Understanding these principles transforms substitution from a collection of ad hoc tricks into a coherent, repeatable strategy. Each principle below builds on the one before it, culminating in the full substitution procedure.

1

The Chain Rule in Reverse

If d/dx [F(g(x))] = F′(g(x)) · g′(x), then ∫ F′(g(x)) · g′(x) dx = F(g(x)) + C. Substitution formalizes this reversal.
2

Choosing u = g(x)

Select u to be the inner function of a composition. The differential du = g′(x) dx must appear (possibly with a constant factor) elsewhere in the integrand.
3

Rewriting the Integral

Replace every occurrence of x with u and dx with du so the integral becomes ∫ f(u) du, a simpler form amenable to known antiderivative rules.
4

Back-Substitution

After integrating in terms of u, replace u with the original expression g(x) to express the antiderivative in the original variable.
5

Definite Integrals & Limit Changes

For definite integrals, convert the limits of integration to u-values. This eliminates the need for back-substitution entirely.
✦

KEY TAKEAWAY

Think of substitution as changing the lens on a camera. The original integrand is a blurry composite shot; setting u equal to the inner function refocuses the image so you see a clean, simple integral. Once you take the picture (integrate in u), you zoom back out (back-substitute) to recover the full scene in terms of x. The art lies in choosing the right lens—the right u—so the entire integrand simplifies.

SECTION 3

Visual Explanation

The following diagram illustrates the geometric meaning of u-substitution. On the left, the original integrand f(g(x)) · g′(x) is plotted against x. On the right, the same area is reinterpreted as ∫ f(u) du after the substitution u = g(x). The transformation warps the x-axis into the u-axis, but the total accumulated area is preserved—this is the essence of the change-of-variable theorem.

Original: ∫ f(g(x))·g′(x) dxxyabArea = A⟹Substituted: ∫ f(u) duuyg(a)g(b)Area = A
Left: the area under f(g(x))·g′(x) from x = a to x = b. Right: the same accumulated area reinterpreted as ∫ f(u) du from u = g(a) to u = g(b). The shape of the curve changes, but the total area A is preserved.

Notice that the shape of the curve is different in the two coordinate systems, yet the shaded areas are equal. This is the geometric guarantee provided by the substitution theorem: when you change variables from x to u = g(x), the factor g′(x) dx in the original integral is precisely the Jacobian that accounts for the stretching and compressing of the x-axis. On the AP exam, this idea appears both in indefinite integrals (where you back-substitute) and in definite integrals (where you convert the limits directly).

SECTION 4

Mathematical Framework

The formal statement of the substitution rule follows directly from the chain rule for differentiation. If g is a differentiable function whose range is an interval I, and f is continuous on I, then the substitution u = g(x) transforms the integral as shown below.

INDEFINITE SUBSTITUTION RULE

∫f(g(x))⋅g′(x)dx=∫f(u)duwhereu=g(x),du=g′(x)dx∫ f(g(x)) · g′(x) dx = ∫ f(u) du where u = g(x), du = g′(x) dx

u = g(x) is the substitution variable; du = g′(x) dx is the differential relationship. After integrating ∫ f(u) du = F(u) + C, back-substitute u = g(x) to obtain F(g(x)) + C.

DEFINITE SUBSTITUTION RULE

∫abf(g(x))⋅g′(x)dx=∫g(a)g(b)f(u)du∫ₐᵇ f(g(x)) · g′(x) dx = ∫_{g(a)}^{g(b)} f(u) du

When evaluating a definite integral, convert the limits: the lower limit becomes u = g(a) and the upper limit becomes u = g(b). No back-substitution is needed.

CONSTANT MULTIPLE ADJUSTMENT

Ifdu=k⋅(expressionindx),thendx=(1/k)duIf du = k · (expression in dx), then dx = (1/k) du

When g′(x) differs from the factor in the integrand by a constant multiple k, pull 1/k outside the integral. Only constant factors may be adjusted this way—never functions of x.

⚠

Common Exam Pitfall

A frequent AP exam error is attempting to "adjust" for a non-constant factor. If the integrand contains x² but du only accounts for x, you cannot simply multiply by 1/x outside the integral—1/x is not a constant. You would need a different approach or a different choice of u.

SECTION 5

Common Substitution Patterns

While every substitution problem is unique in detail, a relatively small set of structural patterns covers the vast majority of integrals you will encounter on the AP exam. Recognizing these patterns accelerates your work and builds the pattern-matching intuition that is essential under timed conditions.

Common u-Substitution PatternsPOWER COMPOSITION∫ [g(x)]ⁿ · g′(x) dxu = g(x), result: uⁿ⁺¹/(n+1)+CEx: ∫ (3x+1)⁴ · 3 dxEXPONENTIAL∫ e^{g(x)} · g′(x) dxu = g(x), result: eᵘ + CEx: ∫ 2x · e^{x²} dxTRIGONOMETRIC∫ trig(g(x)) · g′(x) dxu = g(x), use trig rulesEx: ∫ cos(5x) · 5 dxLOGARITHMIC (1/u)∫ g′(x)/g(x) dxu = g(x), result: ln|u| + CEx: ∫ 2x/(x²+1) dxRADICAL / FRACTIONAL∫ g′(x)/√g(x) dxu = g(x), result: 2√u + CEx: ∫ 3x²/√(x³+4) dxCONSTANT ADJUSTMENT∫ f(g(x))·k·g′(x) dxFactor 1/k or k out frontEx: ∫ x·e^{x²} dx → ½∫ eᵘ duStrategy TipLook for an inner function whose derivative (or a constant multiple of it) appears as a factor in the integrand.
Six archetypal substitution patterns. In each card, the top line shows the generic integral form, the middle line identifies u and the result template, and the bottom line gives a concrete example. The strategy tip at the bottom summarizes the unifying heuristic.

The power composition pattern is by far the most common on the AP exam; it includes any integral where an expression raised to a power is multiplied by the derivative of that expression. The logarithmic pattern arises whenever the integrand can be written as a derivative divided by the function itself, since ∫ (1/u) du = ln|u| + C. The constant adjustment pattern reminds you that a missing constant factor is never a deal-breaker: if du = 2x dx but the integrand contains only x dx, simply write x dx = (1/2) du and factor the one-half out of the integral.

SECTION 6

Worked Example

The following worked example demonstrates the full substitution procedure for both an indefinite and a definite integral. Each step is annotated with the reasoning behind it.

Example 1 — Indefinite Integral: ∫ x² · cos(x³) dx

  1. 1

    Step 1 — Identify the Inner Function

    The integrand contains the composite function cos(x³). The inner function is x³, and its derivative 3x² is closely related to the factor x² already present in the integrand. Set u = x³.
  2. 2

    Step 2 — Compute du and Solve for dx

    Differentiating: du = 3x² dx, so x² dx = (1/3) du. The factor x² dx in the integrand is exactly (1/3) du.
    x² dx = (1/3) du
  3. 3

    Step 3 — Rewrite the Integral in Terms of u

    Substitute into the original integral: ∫ x² · cos(x³) dx = ∫ cos(u) · (1/3) du = (1/3) ∫ cos(u) du.
    (1/3) ∫ cos(u) du
  4. 4

    Step 4 — Integrate in u

    The antiderivative of cos(u) is sin(u). Therefore: (1/3) ∫ cos(u) du = (1/3) sin(u) + C.
    (1/3) sin(u) + C
  5. 5

    Step 5 — Back-Substitute

    Replace u with x³ to express the result in terms of the original variable.
    (1/3) sin(x³) + C
  6. 6

    Step 6 — Verify by Differentiation

    Check: d/dx [(1/3) sin(x³)] = (1/3) cos(x³) · 3x² = x² cos(x³). ✓ This matches the original integrand, confirming the result.

Example 2 — Definite Integral: ∫₀² x · (x² + 1)³ dx

  1. 1

    Step 1 — Choose u and Compute du

    Set u = x² + 1. Then du = 2x dx, so x dx = (1/2) du.
  2. 2

    Step 2 — Convert the Limits of Integration

    When x = 0: u = 0² + 1 = 1. When x = 2: u = 2² + 1 = 5. The new limits are u = 1 to u = 5.
    Lower: u = 1, Upper: u = 5
  3. 3

    Step 3 — Rewrite and Integrate

    ∫₀² x(x² + 1)³ dx = (1/2) ∫₁⁵ u³ du = (1/2) · [u⁴/4] evaluated from 1 to 5 = (1/8)[u⁴] from 1 to 5.
  4. 4

    Step 4 — Evaluate

    (1/8)[5⁴ − 1⁴] = (1/8)[625 − 1] = (1/8)(624) = 78.
    78

SECTION 7

Strengths, Limitations & Common Mistakes

StrengthLimitationCommon Mistake to Avoid
Works on any composite function where the derivative of the inner function appears in the integrand.Fails when the derivative of the proposed u is not present even after constant adjustment.Trying to "pull out" a non-constant factor (e.g., writing 1/x outside ∫).
Converts definite integrals seamlessly by changing limits—no back-substitution required.Cannot handle products of unrelated functions (those require integration by parts, a BC topic).Forgetting to change limits on a definite integral and then evaluating with x-limits on a u-expression.
Constant multiplier mismatches are easily corrected by factoring.Some integrals require algebraic manipulation before a valid u becomes apparent.Forgetting the constant of integration (+C) in indefinite integrals.
Result can always be verified by differentiating the answer using the chain rule.Choosing a poor u may lead to a more complicated integral; good choices come with practice.Neglecting to replace every x-expression with u before integrating.

Comparison of the strengths, limitations, and most frequent student errors in u-substitution.

✦

KEY TAKEAWAY

U-substitution is the Swiss Army knife of AB-level integration: it handles the widest variety of integrals with a single, systematic procedure. However, it is not omnipotent—when the derivative of your chosen u does not appear in the integrand (even after constant adjustment), you must reconsider your choice of u or explore whether algebraic simplification can reveal a hidden substitution.

SECTION 8

Connection to Advanced Theory

In AP Calculus AB, u-substitution is the primary change-of-variable technique. Looking ahead to Calculus BC and beyond, the ideas introduced here generalize in powerful ways.

Concept in ABGeneralization in BC / Beyond
u-substitution (single variable)Change of variables in multivariable integrals (Jacobian determinant).
Adjusting for a constant multipleIntegration by parts (Calculus BC), which handles products of unrelated functions.
Reversing the chain ruleDifferential forms and pullbacks in differential geometry, where substitution becomes a coordinate transformation.
Choosing u as the inner functionTrigonometric substitution (BC topic), where u is chosen to exploit Pythagorean identities.

How u-substitution concepts in AB extend into Calculus BC and higher mathematics.

Mastering substitution in a single variable provides the conceptual scaffold for all future change-of-variable work. In multivariable calculus, the one-dimensional du = g′(x) dx generalizes to the Jacobian determinant, which accounts for how area or volume elements stretch when coordinates change. The intuition you build now—recognizing compositions, adjusting differentials, and converting limits—transfers directly to these more advanced settings.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A student is asked to evaluate ∫ 4x · ex2e^{x²} dx. Which of the following is the best choice for u in a u-substitution?
  • A. u = 4x
  • B. u = ex2e^{x²}
  • C. u = x²
  • D. u = x
  • E. u = 4x · ex2e^{x²}
Show answer (C)
The correct answer is C. Setting u = x² gives du = 2x dx, so 4x dx = 2 du, and the integral becomes 2∫ eᵘ du = 2eᵘ + C = 2ex22e^{x²} + C. Choice A (u = 4x) fails because du = 4 dx does not account for the ex2e^{x²} factor, leaving no clean way to rewrite the integral. Choice B (u = ex2e^{x²}) leads to du = 2x · ex2e^{x²} dx, which does not match the integrand's structure and makes the integral more complicated. Choice D (u = x) is trivial and achieves no simplification. Choice E sets u equal to the entire integrand, which defeats the purpose of substitution since du would be far more complex.

Question 2: BASIC CALCULATION

Evaluate ∫ cos(3x) dx.
  • A. 3 sin(3x) + C
  • B. (1/3) sin(3x) + C
  • C. −(1/3) sin(3x) + C
  • D. sin(3x) + C
  • E. (1/3) cos(3x) + C
Show answer (B)
The correct answer is B. Let u = 3x so du = 3 dx, hence dx = (1/3) du. The integral becomes (1/3)∫ cos(u) du = (1/3) sin(u) + C = (1/3) sin(3x) + C. Choice A multiplies by 3 instead of 1/3, a common error of applying the constant factor in the wrong direction. Choice C has an incorrect negative sign; the antiderivative of cos is +sin, not −sin. Choice D omits the necessary 1/3 adjustment entirely. Choice E gives (1/3) cos(3x) + C, but the antiderivative of cos(u) is sin(u), not cos(u).

Question 3: INTERMEDIATE

Evaluate ∫₀¹ x²(1 + x³)⁵ dx.
  • A. 21/2
  • B. 64/18
  • C. 7/2
  • D. 63/36
  • E. 21/18
Show answer (C)
The correct answer is C. Let u = 1 + x³, so du = 3x² dx and x² dx = (1/3) du. Change the limits: when x = 0, u = 1; when x = 1, u = 2. The integral becomes (1/3)∫₁² u⁵ du = (1/3)[u⁶/6] from 1 to 2 = (1/18)(64 − 1) = 63/18 = 7/2. A (21/2) forgets the 1/3 factor: [u⁶/6]₁² = 63/6 = 21/2. B (64/18) uses 64 − 0 instead of subtracting the lower limit. D (63/36) is an incorrect simplification of 63/18 (should divide numerator and denominator by 9, not 2). E (21/18) results from further incorrect reduction or other arithmetic error.

Question 4: APPLIED

5 pts
A particle moves along a straight line with velocity v(t) = t · sin(t²) meters per second for t ≥ 0. (a) Find the displacement of the particle from t = 0 to t = √π. Show all substitution steps. (3 points) (b) Determine the general antiderivative of v(t). Verify your answer by differentiation. (2 points)
Show answer
Part (a) — 3 points: [1 point] Set up the definite integral: Displacement = ∫₀^{√π} t · sin(t²) dt. [1 point] Perform substitution correctly: Let u = t², du = 2t dt, so t dt = (1/2) du. Limits: when t = 0, u = 0; when t = √π, u = π. Integral becomes (1/2)∫₀^π sin(u) du. [1 point] Evaluate correctly: (1/2)[−cos(u)] from 0 to π = (1/2)[−cos(π) + cos(0)] = (1/2)[1 + 1] = 1 meter. Part (b) — 2 points: [1 point] General antiderivative: Using the same substitution, ∫ t sin(t²) dt = (1/2)(−cos(t²)) + C = −(1/2)cos(t²) + C. [1 point] Verification: d/dt[−(1/2)cos(t²) + C] = −(1/2)(−sin(t²)) · 2t = t sin(t²) = v(t). ✓

Question 5: CRITICAL THINKING

3 pts
Consider the integral ∫ x / √(x + 4) dx. A student tries the substitution u = x but finds it unhelpful. (a) Explain why u = x + 4 is a more productive substitution, and rewrite x in terms of u. (1 point) (b) Use the substitution u = x + 4 to evaluate the integral. Simplify completely. (2 points)
Show answer
[1 point] Part (a): Setting u = x + 4 makes du = dx and transforms the square root into √u. Since x = u − 4, the entire integrand can be expressed in terms of u: the numerator x becomes (u − 4) and the denominator √(x+4) becomes √u = u1/2u^{1/2}. The substitution u = x is not useful because it does not simplify the radical. [1 point] Part (b) setup: ∫ x/√(x+4) dx = ∫ (u − 4)/u1/2u^{1/2} du = ∫ (u1/2u^{1/2} − 4u−1/24u^{−1/2}) du. [1 point] Part (b) evaluation: = (2/3)u3/2u^{3/2} − 4 · 2u1/22u^{1/2} + C = (2/3)u3/2u^{3/2} − 8u1/28u^{1/2} + C = (2/3)(x+4)3/2(x+4)^{3/2} − 8(x+4)1/2(x+4)^{1/2} + C.

SUMMARY

Summary

Summary

U-substitution is the technique of reversing the chain rule to evaluate integrals involving composite functions. The procedure has four core steps: (1) identify the inner function and set it equal to u, (2) compute du and adjust for any constant mismatch, (3) rewrite the entire integral in terms of u and integrate, and (4) back-substitute to return to the original variable. For definite integrals, you may instead convert the limits of integration to u-values and skip back-substitution entirely.

Success with substitution depends on pattern recognition: scan the integrand for a composite structure, verify that the derivative of the inner function (up to a constant multiple) appears elsewhere, and then execute the algebraic transformation. Always verify your answer by differentiating the result to confirm it reproduces the original integrand. This technique is tested extensively on the AP Calculus AB exam in both multiple-choice and free-response formats.

Varsity Tutors • AP Calculus AB • Integrating Using Substitution