Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
6. Integration
6.1 Accumulation of change
6.2 Riemann sums & area
6.3 Definite integrals
6.4 Accumulation functions
6.5 Behavior of accumulation functions
6.6 Fundamental theorem of calculus
6.7 Indefinite integrals
6.8 u-substitution
6.9 Long division & completing the square
7. Differential equations
8. Applications of integrals
9. Testing details tag
10. test
Wrapping up
Achievable logoAchievable logo
6.8 u-substitution
Achievable AP Calculus AB
6. Integration
Our AP Calculus AB course is currently in development and is a work-in-progress.

u-substitution

8 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • How to use u-substitution to simplify an integral
  • Using u-substitution on indefinite and definite integrals

u-substitution is essentially the reverse chain rule - use this when one part of the function is inside another, and its derivative (or something close to the derivative) is also present. By temporarily using a new variable and simplifying the integral, integration rules can be applied more easily.

Steps for u-substitution

  1. Choose u=g(x).

Pick the inner function - look for something nested or a function whose derivative also appears elsewhere. Don’t use u=x, since that’s just a letter change.

  1. Differentiate u

Take the derivative

dxdu​=g′(x)

and rearrange so that

du=g′(x)dx

  1. Rewrite the integral

Substitute u and du into the integral. There should be no x anywhere.

  1. Integrate with respect to u.

Use the integration rules from the previous section.

  1. Plug g(x) back in.

If it’s an indefinite integral, don’t forget the +C.

Examples

∫2xcos(x2)dx

Solution

There’s an inner function x2 nested in the cosine, so let’s try

u=x2

Then

du=2xdx

which appears in the integral so rewriting the integral in terms of u,

∫cos(u)du

=sin(u)

=sin(x2)+C​

AP tip:

Even if the derivative of your chosen u isn’t a perfect match, you can adjust by multiplying or dividing by a constant.

∫xex2dx

Solution

(spoiler)

There’s a nested x2 again. Let’s try

u=x2

Then

du=2xdx

However, since only xdx appears in the integrand, let’s adjust by dividing by 2, so that

21​du=xdx

Then rewriting the integral in terms of u,

∫eu⋅21​du

=21​∫eudu

=21​eu

=21​ex2+C​

AP tip:

For quotients, a general recommendation is to set u as the bottom expression or a nested portion of it. Otherwise there’s no way to reach a g′(x) that’s in the denominator.

∫x2−2x+3x−1​dx

Solution

(spoiler)

Let’s try

u=x2−2x+3

Then

du=(2x−2)dx

Notice that 2 can be factored out such that

du=2(x−1)dx

And since (x−1)dx appears in the integrand, then

21​du=(x−1)dx

Rewriting the integral in terms of u,

∫u1​⋅21​du

=21​∫u1​du

=21​ln(u)

=21​ln(x2−2x+3)+C​

∫x2−3+ln(4x)​​dx

Solution

(spoiler)

This involves a quotient but setting u=x in the denominator won’t get us anywhere. However, because the derivative of ln(x) is x1​ which does appear in the integrand, let’s set u to be the entire nested function

u=−3+ln(4x)

du=x1​dx

Then the integral rewritten in terms of u is

2∫u​du

=2∫u1/2du

=3/22u3/2​

=34​u3/2

=34​(−3+ln(4x))3/2+C​

∫tan(2x)sec2(2x)dx

Solution

(spoiler)

There’s a nested function 2x, but recall that the derivative of tan(x) is sec2(x). Since a function and its derivative appear in the integrand, it would be better to choose

u=tan(2x)

then

du=2sec2(2x)dx

Rearranging,

21​du=sec2(2x)dx

The integral rewritten is

∫u⋅21​du

=21​⋅2u2​

=41​tan2(2x)+C​

Alternatively, this substitution also works:

u=sec(2x)

Then

du=2sec(2x)tan(2x)dx

21​du=sec(2x)tan(2x)

And the integral rewritten is again

∫u⋅21​du

But the final answer when replacing u with sec(2x) is

=41​sec2(2x)+C​

The reason both are correct is because of the Pythagorean identity tan2(x)+1=sec2(x), where the two functions differ only by a constant.

As a bonus problem, turn the integrand into a function involving only sin(2x) and cos(2x) before making an appropriate u-substitution.

Extra technique

Here’s an interesting one that involves applying an additional technique during the u-substitution.

∫xx−1​dx

Solution

(spoiler)

There’s a nested function x−1, so let’s try

u=x−1

Then

du=dx

But how do we take care of the x outside the square root?

What we can do is rearrange the chosen u by adding 1 to both sides so that

u+1=x

Then the integral rewritten in terms of u is

∫((u+1)⋅u​)du

Distribute u​ to get

∫(uu​+u​)du

=∫(u3/2+u1/2)du

Then using the reverse power rule, the integral is

52​u5/2+32​u3/2+C

=52​(x−1)5/2+32​(x−1)3/2+C​

∫x2+1x3​dx

Solution

(spoiler)

Let

u=x2+1

du=2xdx

Notice that in the numerator, x3 can be broken apart into x2⋅x. Rearrange the chosen u=x2+1 to get

x2=u−1

Rearrange du to get

xdx=21​du

Which means

x3dx=x2⋅xdx=(u−1)⋅21​du

Then the integral rewritten in terms of u is

∫x2+1x3​dx

=∫u1​⋅(u−1)21​⋅du

=21​∫uu−1​du

=21​(∫1du−∫u1​du)

=21​(u−ln(u))

=21​(x2+1−ln(x2+1))+C​

Definite integrals and changing bounds

If you’re using u-substitution on a definite integral, there are two options to evaluate it using the FTC part 2:

Option 1: Change the bounds

Change the limits from x to u so that the antiderivative does not need to be changed back to a function in terms of x.

Option 2: Don’t change the bounds.

Plug g(x) back into u and evaluate the result with the original bounds.

Examples

∫02​(x2+1)23x​dx

(spoiler)

Calculations are often a little easier if the constant multiple is brought out first.

3∫02​(x2+1)2x​dx

(x2+1)2 is the denominator, but if we let u=(x2+1)2, then du=2(x2+1)(2x)dx which is more complicated than what appears in the numerator. Instead, try

u=x2+1

Then

du=2xdx

In order to get xdx, divide by 2.

21​du=xdx

At this point, we have two options:

Option 1: Change the bounds

When x=0 (the lower bound),

u=02+1=1

When x=2 (the upper bound),

u=22+1=5

Then the integral rewritten in terms of u is

3∫15​u21​⋅21​du

=23​∫15​u−2du

=23​⋅−2+1u−2+1​

=23​(−u1​)​15​

=23​[−51​−(−11​)]

=56​

Option 2: Don’t change the bounds

Use the same substitution u=x2+1 to rewrite the integral in terms of u, but keep the original bounds of x=0 to x=2:

3∫02​u21​⋅21​du

After integrating to this step, change u back to x2+1 and evaluate from 0 to 2

=23​(−u1​)

=23​(−x2+11​)​02​

=23​(−22+11​−02+11​)

=56​

Sign up for free to take 10 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.