Dove's LibraryDove's Library

6.9 - Integrating Using Substitution

Connection to the Chain Rule

Chain rule review: for composite functions, the derivative is
ddx[f(g(x))]=f′(g(x))⋅g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)
That’s the derivative of the outside times the derivative of the inside.
U-substitution is the reverse process, for integrals involving composite functions.

When to Use U-Substitution

Rule of thumb: if taking the derivative would require the chain rule, then taking the integral requires u-substitution.
The integrand is the expression being integrated, meaning everything between the ∫\int and the dxdx:
∫f(x)⏟integrand dx\int \underbrace{f(x)}_{\text{integrand}} \, dx

The U-Substitution Method

Basic Procedure

  1. Choose uu: let uu be the inside function, usually the inner part of a composite
  1. Find dudu: take the derivative, dudx=\frac{du}{dx} = derivative of uu, then solve for dxdx: dx=duderivativedx = \frac{du}{\text{derivative}}
  1. Substitute: replace all the xx terms with uu and dxdx with the expression from step 2
  1. Integrate: integrate with respect to uu
  1. Back-substitute: replace uu with the original expression in terms of xx
Note: the letter uu is just convention. Any letter works.

Example 1: Basic U-Substitution

Evaluate ∫(3x−4)5 dx\int (3x-4)^5 \, dx.
Step 1: Choose uu.
u=3x−4u = 3x - 4
Step 2: Find dudu and solve for dxdx.
dudx=3⇒du=3 dx⇒dx=du3\frac{du}{dx} = 3 \quad \Rightarrow \quad du = 3 \, dx \quad \Rightarrow \quad dx = \frac{du}{3}
Step 3: Substitute.
∫(3x−4)5 dx=∫u5⋅du3\int (3x-4)^5 \, dx = \int u^5 \cdot \frac{du}{3}
Step 4: Integrate.
=13∫u5 du=13⋅u66+C=u618+C= \frac{1}{3} \int u^5 \, du = \frac{1}{3} \cdot \frac{u^6}{6} + C = \frac{u^6}{18} + C
Step 5: Back-substitute.
=(3x−4)618+C= \frac{(3x-4)^6}{18} + C

Example 2: When Terms Cancel

Evaluate ∫6x2(x3+4)5 dx\int 6x^2(x^3 + 4)^5 \, dx.
Step 1: Choose uu.
u=x3+4u = x^3 + 4
Why this choice? The derivative will be 3x23x^2, which will cancel with the 6x26x^2 already sitting in the integrand.
Step 2: Find dudu and solve for dxdx.
dudx=3x2⇒du=3x2 dx⇒dx=du3x2\frac{du}{dx} = 3x^2 \quad \Rightarrow \quad du = 3x^2 \, dx \quad \Rightarrow \quad dx = \frac{du}{3x^2}
Step 3: Substitute.
∫6x2⋅u5⋅du3x2\int 6x^2 \cdot u^5 \cdot \frac{du}{3x^2}
Step 4: Simplify, and the x2x^2 terms cancel.
=∫63u5 du=2∫u5 du= \int \frac{6}{3} u^5 \, du = 2\int u^5 \, du
Step 5: Integrate.
=2⋅u66+C=u63+C= 2 \cdot \frac{u^6}{6} + C = \frac{u^6}{3} + C
Step 6: Back-substitute.
=(x3+4)63+C= \frac{(x^3+4)^6}{3} + C
Key insight: the xx terms from the original integrand should cancel with terms from dxdx. That’s your signal that you picked the right uu.

Example 3: With Square Roots

Evaluate ∫(x−1)2x dx\int \dfrac{(\sqrt{x}-1)^2}{\sqrt{x}} \, dx.
Step 1: Choose uu.
u=x−1u = \sqrt{x} - 1
Step 2: Find dudu.
dudx=12x⇒du=12x dx⇒dx=2x du\frac{du}{dx} = \frac{1}{2\sqrt{x}} \quad \Rightarrow \quad du = \frac{1}{2\sqrt{x}} \, dx \quad \Rightarrow \quad dx = 2\sqrt{x} \, du
Step 3: Substitute.
∫u2x⋅2x du\int \frac{u^2}{\sqrt{x}} \cdot 2\sqrt{x} \, du
Step 4: Cancel, since the x\sqrt{x} terms drop out.
=∫2u2 du= \int 2u^2 \, du
Step 5: Integrate.
=2⋅u33+C=2u33+C= 2 \cdot \frac{u^3}{3} + C = \frac{2u^3}{3} + C
Step 6: Back-substitute.
=2(x−1)33+C= \frac{2(\sqrt{x}-1)^3}{3} + C

Example 4: Exponential with Trig

Evaluate ∫sin⁡(x)ecos⁡(x) dx\int \sin(x) e^{\cos(x)} \, dx.
Test the choices:
Bad choice: u=sin⁡(x)u = \sin(x), which gives du=cos⁡(x) dxdu = \cos(x) \, dx. That won’t cancel the sin⁡(x)\sin(x) in front.
Good choice: u=cos⁡(x)u = \cos(x), which gives du=−sin⁡(x) dxdu = -\sin(x) \, dx. That WILL cancel with the sin⁡(x)\sin(x) in the integrand.
Solution:
u=cos⁡(x),du=−sin⁡(x) dx,dx=du−sin⁡(x)u = \cos(x), \quad du = -\sin(x) \, dx, \quad dx = \frac{du}{-\sin(x)}
Substitute:
∫sin⁡(x)⋅eu⋅du−sin⁡(x)=∫−eu du\int \sin(x) \cdot e^u \cdot \frac{du}{-\sin(x)} = \int -e^u \, du=−eu+C=−ecos⁡(x)+C= -e^u + C = -e^{\cos(x)} + C

Double U-Substitution

Sometimes you need u-substitution twice in the same problem.

Example: ∫cot⁡(3x) dx\int \cot(3x) \, dx

First substitution:
u=3x,du=3 dx,dx=du3u = 3x, \quad du = 3 \, dx, \quad dx = \frac{du}{3}∫cot⁡(3x) dx=13∫cot⁡(u) du\int \cot(3x) \, dx = \frac{1}{3}\int \cot(u) \, du
Problem: we don’t have a formula for ∫cot⁡(u) du\int \cot(u) \, du.
Solution: rewrite cotangent.
∫cot⁡(u) du=∫cos⁡(u)sin⁡(u) du\int \cot(u) \, du = \int \frac{\cos(u)}{\sin(u)} \, du
Second substitution (the “w” substitution):
w=sin⁡(u),dw=cos⁡(u) du,du=dwcos⁡(u)w = \sin(u), \quad dw = \cos(u) \, du, \quad du = \frac{dw}{\cos(u)}∫cos⁡(u)sin⁡(u) du=∫cos⁡(u)w⋅dwcos⁡(u)=∫1w dw\int \frac{\cos(u)}{\sin(u)} \, du = \int \frac{\cos(u)}{w} \cdot \frac{dw}{\cos(u)} = \int \frac{1}{w} \, dw=ln⁡∣w∣+C=ln⁡∣sin⁡(u)∣+C=ln⁡∣sin⁡(3x)∣+C= \ln|w| + C = \ln|\sin(u)| + C = \ln|\sin(3x)| + C
Final answer:
∫cot⁡(3x) dx=13ln⁡∣sin⁡(3x)∣+C\int \cot(3x) \, dx = \frac{1}{3}\ln|\sin(3x)| + C

Advanced Technique: Solving for xx

Sometimes you have to solve the uu equation for xx.

Example: ∫xx+1 dx\int \dfrac{x}{\sqrt{x+1}} \, dx

Substitution:
u=x+1,du=dxu = x + 1, \quad du = dx
Problem: there’s still an xx in the numerator after substituting.
Solution: solve for xx in terms of uu.
u=x+1  ⟹  x=u−1u = x + 1 \implies x = u - 1
Substitute everything:
∫xx+1 dx=∫u−1u du\int \frac{x}{\sqrt{x+1}} \, dx = \int \frac{u-1}{\sqrt{u}} \, du
Separate the fraction:
=∫(uu−1u)du=∫(u1/2−u−1/2)du= \int \left(\frac{u}{\sqrt{u}} - \frac{1}{\sqrt{u}}\right) du = \int \left(u^{1/2} - u^{-1/2}\right) du
Integrate:
=u3/23/2−u1/21/2+C=2u3/23−2u1/2+C= \frac{u^{3/2}}{3/2} - \frac{u^{1/2}}{1/2} + C = \frac{2u^{3/2}}{3} - 2u^{1/2} + C
Back-substitute:
=2(x+1)3/23−2(x+1)1/2+C= \frac{2(x+1)^{3/2}}{3} - 2(x+1)^{1/2} + C

Recognizing Inverse Trig (Not U-Substitution)

Problem: ∫11−4x2 dx\int \dfrac{1}{\sqrt{1-4x^2}} \, dx
Common mistake: trying u=1−4x2u = 1 - 4x^2, which gives du=−8x dxdu = -8x \, dx. But there’s no xx in the numerator to cancel with, so this goes nowhere.
Correct approach: recognize the inverse trig pattern. Rewrite as
11−(2x)2\frac{1}{\sqrt{1-(2x)^2}}
This matches the pattern 11−u2\frac{1}{\sqrt{1-u^2}}, which integrates to sin⁡−1(u)\sin^{-1}(u).
Solution:
u=2x,du=2 dx,dx=du2u = 2x, \quad du = 2 \, dx, \quad dx = \frac{du}{2}∫11−u2⋅du2=12sin⁡−1(u)+C=12sin⁡−1(2x)+C\int \frac{1}{\sqrt{1-u^2}} \cdot \frac{du}{2} = \frac{1}{2}\sin^{-1}(u) + C = \frac{1}{2}\sin^{-1}(2x) + C

U-Substitution with Definite Integrals

For definite integrals, change the limits of integration instead of back-substituting.

Procedure

  1. Do the u-substitution as usual
  1. Convert the limits: plug the original limits into u=g(x)u = g(x) to get the new limits
  1. Integrate with respect to uu using the new limits
  1. Evaluate, with no need to substitute back

Example: ∫02t2t3+1 dt\int_0^2 t^2\sqrt{t^3+1} \, dt

Step 1: Substitution.
u=t3+1,du=3t2 dt,dt=du3t2u = t^3 + 1, \quad du = 3t^2 \, dt, \quad dt = \frac{du}{3t^2}
Step 2: Change the limits.
When t=0t = 0: u=03+1=1u = 0^3 + 1 = 1
When t=2t = 2: u=23+1=9u = 2^3 + 1 = 9
New limits: from 1 to 9.
Step 3: Substitute and simplify.
∫02t2⋅u⋅du3t2=∫1913u1/2 du\int_0^2 t^2 \cdot \sqrt{u} \cdot \frac{du}{3t^2} = \int_1^9 \frac{1}{3}u^{1/2} \, du
Step 4: Integrate.
=13⋅u3/23/2∣19=29u3/2∣19= \frac{1}{3} \cdot \frac{u^{3/2}}{3/2} \bigg|_1^9 = \frac{2}{9} u^{3/2} \bigg|_1^9
Step 5: Evaluate using the new limits.
=29[93/2−13/2]=29[27−1]=29(26)=529= \frac{2}{9}\left[9^{3/2} - 1^{3/2}\right] = \frac{2}{9}[27 - 1] = \frac{2}{9}(26) = \frac{52}{9}
Key advantage: no need to convert back to tt, because you changed the limits.

Example 2: ∫0π/2sin⁡3(x)cos⁡(x) dx\int_0^{\pi/2} \sin^3(x)\cos(x) \, dx

Substitution:
u=sin⁡(x),du=cos⁡(x) dxu = \sin(x), \quad du = \cos(x) \, dx
Change the limits:
When x=0x = 0: u=sin⁡(0)=0u = \sin(0) = 0
When x=π2x = \frac{\pi}{2}: u=sin⁡(π2)=1u = \sin\left(\frac{\pi}{2}\right) = 1
New limits: from 0 to 1.
Integrate:
∫01u3 du=u44∣01=14−0=14\int_0^1 u^3 \, du = \frac{u^4}{4}\bigg|_0^1 = \frac{1}{4} - 0 = \frac{1}{4}

Key Takeaways

  • U-substitution reverses the chain rule for integration
  • When to use it: if the derivative would need the chain rule, the integral needs u-sub
  • Choose uu to be the inside function of a composite
  • Check your choice: the derivative of uu should cancel with existing terms
  • Always solve for dxdx: dx=duderivative of udx = \frac{du}{\text{derivative of } u}
  • Terms should cancel. After substituting, all the xx terms should be gone
  • Back-substitute to replace uu with the original expression for indefinite integrals
  • For definite integrals, change the limits instead of back-substituting
  • Double substitution is sometimes needed for harder problems (the w-substitution)
  • Solve for xx when needed, using u=g(x)u = g(x) to write xx in terms of uu
  • Not everything is u-sub. Some patterns are inverse trig formulas, so learn the difference
  • Think ahead: before choosing uu, check whether its derivative will actually help you cancel

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.