AP® CALCULUS AB & BC · UNIT 6

Integrating Using Substitution

Reverse the chain rule to simplify an integral. Match the differential, convert both bounds when needed, and check your result with colorful worked examples.

Topic 6.9 study notes8 worked examples · 8 practice questionsUpdated 11 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. What Topic 6.9 asks you to do

Substitution changes the integration variable so a composite expression becomes easier to integrate. Start by identifying an inside expression and looking for its derivative among the remaining factors.

AP Calculus AB & BC · Topic 6.9. Use substitution to find antiderivatives and evaluate definite integrals. Show how the differential changes and use bounds that match the variable in the integral.

2. Reverse the chain rule

Let F′=f and u=g(x). The chain rule gives

ddxF(g(x))=f(g(x))g′(x).

Read that equation backwards. If the original integral is

I=∫f(g(x))g′(x)dx,

then the family of antiderivatives is

I=F(g(x))+C.

Writing du=g′(x)dx records how the derivative and differential enter the new integral. For an indefinite integral, first find a primitive F(u), then replace u with g(x) and include one arbitrary constant.

  1. Choose a candidate for u, such as a power base, exponent, denominator, root expression, or trigonometric argument.
  2. Differentiate and write du. Match the factor in the original integrand, including any constant multiplier or negative sign.
  3. Rewrite the whole integrand in u with du. A remaining factor may be expressible in u.
  4. Integrate. For an indefinite answer, return to the original variable and differentiate to check it. For a definite answer, use the matching bounds.

Use these identities on an interval where the original expression is defined and the chain rule applies. Trigonometric inputs here are in radians.

3. Choose a substitution that simplifies the integral

Look for a choice that makes both the composite expression and its remaining factors simpler. The table shows candidate choices; still compute the differential for each one.

Common choices for the new variable
PatternIntegrandChoose u
Power of an expression2x(x2+1)5x2+1
Exponentiale3x3x
Denominatorxx2+1x2+1
Trigonometric argumentcos(5x)5x
Radicalxx2+1x2+1

These results follow by setting u=g(x) and reversing the corresponding derivative rule. In the power row, n≠−1. In the logarithm row, g(x)≠0 throughout the interval.

Antiderivative patterns after substitution
IntegrandAntiderivative family
g′(x)[g(x)]n[g(x)]n+1n+1+C
g′(x)g(x)ln|g(x)|+C
g′(x)eg(x)eg(x)+C
g′(x)sin(g(x))−cos(g(x))+C
g′(x)cos(g(x))sin(g(x))+C

4. Worked examples: indefinite integrals

Example 1 · Match the inside derivative exactly

Find I=∫3x2(x3+5)7dx.

1 · Choose the inside expression

u=x3+5
du=3x2dx

The differential matches the full factor next to the power.

2 · Integrate in the new variable

I=∫u7du=u88+C

3 · Substitute back and check

I=(x3+5)88+C

Differentiating the power gives (x3+5)7 times the inside derivative 3x2.

Example 2 · Adjust a missing constant factor

Find I=∫x(x2+1)4dx.

1 · Match the differential

Let u=x2+1. Its differential is du=2xdx, so the factor in this integral is

xdx=12du.

2 · Keep the factor of one half

I=12∫u4du=u510+C

3 · Write the answer in the original variable

I=(x2+1)510+C

In the derivative check, the outer coefficient 510 combines with the inside factor 2x to give x.

Example 3 · Substitute the exponent

Find I=∫x2ex3dx.

1 · Match the derivative of the exponent

Set u=x3, so du=3x2dx.

x2dx=13du

2 · Integrate and check

I=13∫eudu
I=13ex3+C

The derivative of the exponential contributes a factor 3x2, which cancels the denominator 3.

Example 4 · Spot a trigonometric inside function

Find I=∫sin3xcosxdx.

1 · Use sine as the new variable

u=sinx
du=cosxdx

The cosine factor supplies the differential exactly.

2 · Use the power rule and check

I=∫u3du=u44+C
I=sin4x4+C

The derivative of this answer is sin3xcosx.

Example 5 · Recognize the logarithmic pattern

Find I=∫2xx2+1dx.

1 · Differentiate the denominator

Let u=x2+1, so du=2xdx.

I=∫1udu=ln|u|+C

2 · Check the sign before dropping absolute values

Because x2+1>0 for every real x, the log argument is already positive.

I=ln(x2+1)+C

Differentiating gives the denominator's derivative 2x divided by x2+1.

5. Change the bounds of a definite integral

Suppose you change variables using u=g(x) in the definite integral

I=∫abf(g(x))g′(x)dx.

The same value is given by the integral with transformed bounds:

I=∫g(a)g(b)f(u)du.

The start value a maps to g(a) and the end value b maps to g(b), in that order. The chain rule and Fundamental Theorem give the same difference F(g(b))−F(g(a)) on both sides, assuming g is continuously differentiable and f is continuous on an interval containing the values of g.

  • Change the bounds: Evaluate in u at the two new bounds.
  • Return to the original variable: Find the antiderivative in u without attaching bounds, substitute u=g(x) back into it, then evaluate it at the original bounds.

Both methods give a number. A definite integral has no arbitrary constant in its final answer. If the new bounds are decreasing, keep their order until you explicitly apply the sign rule for reversing bounds.

Example 6 · Change both bounds of a definite integral

Evaluate I=∫02x(x2+1)3dx.

1 · Match the differential

Take u=x2+1. Then du=2xdx, so xdx=12du.

2 · Convert the bounds and the integrand

Convert each bound using the same rule
BoundOriginal xNew u
Start01
End25
I=12∫15u3du

3 · Evaluate at the new bounds

I=[u48]15
I=625−18=78

To check in the original variable, take P0(x)=(x2+1)48. Its derivative is the original integrand, and P0(2)−P0(0) gives the same result.

Before substitution: x-coordinates

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0.0 0.5 1.0 1.5 2.0 x 0 50 100 150 200 250 P x ( )
The region under P(x)=x(x2+1)3 runs from x=0 to x=2. Its area is 78.

After substitution: u-coordinates

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 1 2 3 4 5 u 0 15 30 45 60 Q u ( )
The region under Q(u)=12u3 runs from u=1 to u=5. Its area is also 78. The horizontal scale and the height function both change.

Example 7 · Keep the order when the new bounds decrease

Evaluate I=∫012(4−2x)2dx.

1 · Track the negative differential

With u=4−2x, we have du=−2dx. Thus 2dx=−du.

As x goes from 0 to 1, u goes from 4 down to 2.

2 · Keep the negative sign until reversing the bounds

I=−∫42u2du
I=∫24u2du

3 · Evaluate and check the sign

I=64−83=563

The answer is positive, as expected because the original integrand is positive on [0,1].

A decreasing change of variable

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0.00 0.25 0.50 0.75 1.00 x 2.0 2.5 3.0 3.5 4.0 u Start End
The arrow follows u=4−2x from the start (0,4) to the end (1,2). Both endpoints are included. Moving to the right in x moves down in u, so the new integral initially has bounds 4 to 2.

6. Rewrite leftover factors and check your work

Example 8 · Rewrite a factor that remains after matching

Find I=∫x3(x2+1)2dx.

1 · Separate the factor used in the differential

Take u=x2+1 and use xdx=12du. Write the remaining x2 as u−1.

I=12∫(u−1)u2du

2 · Integrate the two powers

Expand the product in u. One primitive for the transformed integrand is

A(u)=u48−u36.

3 · Return to the original variable

I=A(x2+1)+C

This is a formula in x with A given above. Differentiating gives A′(u)·2x, which simplifies to x(u−1)u2. Substituting u=x2+1 recovers the integrand.

What to check before you finish

  • Match the complete differential. Account for every constant and sign. Rewrite any remaining factor entirely in u.
  • Keep the variable and bounds together. Use u-bounds with du, or evaluate an x-antiderivative at x-bounds.
  • Respect the original domain. Keep logarithmic absolute values until you know the sign. Check any zero denominators or radical restrictions.
  • Differentiate an indefinite answer. Check the full original integrand and include C. For a definite answer, check its value or sign.

A candidate is useful only if it simplifies the whole integral. For example, u=x2 immediately simplifies ∫2xex2dx. The same substitution leaves a factor to handle in ∫ex2dx; treating it as ∫eudu would drop the required derivative. A simple power often needs only the basic rule from Topic 6.8. The LIATE mnemonic concerns integration by parts.

On an AP response, write your choice of u, the matching differential, and the new bounds when you use them. Clear notation makes your method and endpoint evaluation easy to follow.

7. Practice with step-by-step solutions

Problem 1

Find I=∫6x(3x2−1)4dx.

Show solution 1

Solution

Set u=3x2−1. The factor 6xdx is du.

I=(3x2−1)55+C

Differentiating restores the original power and factor.

Problem 2

Find I=∫x2x3+1dx.

Show solution 2

Solution

Set u=x3+1. Then x2dx=13du. On x>−1, integrate u12 with the factor 13.

I=2(x3+1)329+C

The integrand and the answer extend continuously to x=−1.

Problem 3

Find I=∫e5xdx.

Show solution 3

Solution

Set u=5x, giving dx=15du.

I=e5x5+C

The inside derivative contributes 5, which cancels the denominator.

Problem 4

Find I=∫x2x3−5dx.

Show solution 4

Solution

Set u=x3−5. Then x2dx=13du. Use ln|u| on any interval avoiding u=0.

I=13ln|x3−5|+C

The excluded point is x=53. Each side can have its own constant.

Problem 5

Find I=∫sinxcos4xdx.

Show solution 5

Solution

Take u=cosx, so sinxdx=−du.

I=−cos5x5+C

The derivative of cosine introduces the second negative sign.

Problem 6

Evaluate I=∫132xx2+1dx.

Show solution 6

Solution

Set u=x2+1, giving du=2xdx and bounds 2 to 10.

I=∫2101udu
I=ln(10)−ln(2)=ln(5)

Problem 7

Evaluate I=∫013e3−3xdx.

Show solution 7

Solution

Set u=3−3x. The bounds are 3 to 0, and 3dx=−du.

I=−∫30eudu
I=e3−1

Problem 8

Evaluate I=∫−112xcos(x2)dx.

Show solution 8

Solution

Set u=x2. Both original bounds map to 1. The chain-rule form of substitution still applies even though u is not one-to-one on the interval.

I=∫11cosudu=0

Checking in x, the primitive sin(x2) has equal values at the two ends.

8. Continue studying integration

Review Topic 6.8's antiderivative rules before integrating in the new variable. Use Topic 6.7's endpoint evaluation after finding the primitive.