u-Substitution (Indefinite Integrals)
Reversing the Chain Rule
The chain rule tells us how to differentiate compositions: $\frac{d}{dx}[F(g(x))] = F'(g(x)) \cdot g'(x)$. But what if we’re given an integral that looks like $\int f(g(x)) g'(x)\,dx$? We need to “undo” the chain rule.
u-Substitution is the technique that reverses this process. By introducing a new variable $u = g(x)$, we transform a complicated integral into a simpler one.
This is the foundational integration technique, used more frequently than any other method in first-year calculus.
Prerequisite Map
Quick Reference
| Property | Value |
|---|---|
| Section | Stewart 4.5 |
| Course | MATH162 |
| Difficulty | Intermediate |
| Time | ~20 minutes |
Key Concepts
The Substitution Rule
Theorem: If $u = g(x)$ is a differentiable function whose range is an interval $I$ and $f$ is continuous on $I$, then
$$\boxed{\int f(g(x)) g'(x) \, dx = \int f(u) \, du}$$
Why It Works
The substitution rule is simply the chain rule in reverse:
$$\frac{d}{dx}[F(g(x))] = F'(g(x)) \cdot g'(x)$$
Integrating both sides:
$$F(g(x)) = \int F'(g(x)) \cdot g'(x) \, dx$$
If we let $f = F'$ and $u = g(x)$, then $du = g'(x)\,dx$, and:
$$\int f(g(x)) g'(x) \, dx = F(g(x)) = F(u) = \int f(u) \, du$$
The Procedure
Step 1: Choose $u$
- Look for a function whose derivative also appears in the integrand
- Often, $u$ is the “inside” of a composite function
- Common choices: the expression under a radical, inside a trig function, or in an exponent
Step 2: Find $du$
- Differentiate: $du = g'(x)\,dx$
- Solve for $dx$ if needed: $dx = \frac{du}{g'(x)}$
Step 3: Substitute
- Replace all $x$-terms with $u$-terms
- The integral should now be entirely in terms of $u$
Step 4: Integrate
- Evaluate $\int f(u)\,du$
Step 5: Back-substitute
- Replace $u$ with $g(x)$ to return to the original variable
Handling Constants
If the derivative of your $u$ appears with a different constant factor, adjust:
$$\int x^3 \cos(x^4 + 2)\,dx$$
Let $u = x^4 + 2$. Then $du = 4x^3\,dx$, so $x^3\,dx = \frac{1}{4}du$.
$$\int x^3 \cos(x^4 + 2)\,dx = \frac{1}{4}\int \cos u\,du = \frac{1}{4}\sin u + C = \frac{1}{4}\sin(x^4 + 2) + C$$
How to Choose $u$
| Pattern | Choose $u$ as... |
|---|---|
| $\int f(ax + b)\,dx$ | $u = ax + b$ |
| $\int g(x) \cdot f(g(x)^n)\,dx$ where $g'$ appears | $u = g(x)$ |
| $\int (\text{inside})^n \cdot (\text{derivative of inside})\,dx$ | $u = \text{inside}$ |
| $\int \frac{g'(x)}{g(x)}\,dx$ | $u = g(x)$ (gives $\ln\vert u\vert $) |
Common Mistake: Leftover $x$-terms
After substitution, all $x$-terms must be eliminated. If you have leftover $x$’s, either:
- Express them in terms of $u$ (e.g., if $u = 1 + x^2$, then $x^2 = u - 1$)
- Try a different substitution
Worked Examples
Example 1: Basic Substitution
Find $\int 2x\sqrt{1 + x^2}\,dx$.
Choose $u$: Let $u = 1 + x^2$ (the expression under the radical).
Find $du$: $du = 2x\,dx$
Substitute: $$\int 2x\sqrt{1 + x^2}\,dx = \int \sqrt{u}\,du = \int u^{1/2}\,du$$
Integrate: $$= \frac{u^{3/2}}{3/2} + C = \frac{2}{3}u^{3/2} + C$$
Back-substitute: $$= \frac{2}{3}(1 + x^2)^{3/2} + C$$
Example 2: Adjusting for Constants
Find $\int \cos(5x)\,dx$.
Choose $u$: Let $u = 5x$.
Find $du$: $du = 5\,dx$, so $dx = \frac{1}{5}du$.
Substitute and integrate: $$\int \cos(5x)\,dx = \int \cos u \cdot \frac{1}{5}\,du = \frac{1}{5}\sin u + C = \frac{1}{5}\sin(5x) + C$$
Example 3: Expressing $x$ in Terms of $u$
Find $\int x^5\sqrt{1 + x^2}\,dx$.
Choose $u$: Let $u = 1 + x^2$, so $du = 2x\,dx$.
Handle the extra $x^4$: Since $u = 1 + x^2$, we have $x^2 = u - 1$, so $x^4 = (u-1)^2$.
Rewrite: $$\int x^5\sqrt{1 + x^2}\,dx = \int x^4 \cdot \sqrt{1 + x^2} \cdot x\,dx = \int (u-1)^2 \sqrt{u} \cdot \frac{1}{2}\,du$$
Expand and integrate: $$= \frac{1}{2}\int (u^2 - 2u + 1)u^{1/2}\,du = \frac{1}{2}\int (u^{5/2} - 2u^{3/2} + u^{1/2})\,du$$
$$= \frac{1}{2}\left[\frac{2}{7}u^{7/2} - \frac{4}{5}u^{5/2} + \frac{2}{3}u^{3/2}\right] + C$$
$$= \frac{1}{7}(1+x^2)^{7/2} - \frac{2}{5}(1+x^2)^{5/2} + \frac{1}{3}(1+x^2)^{3/2} + C$$
Practice Problems
Evaluate each integral:
- $\displaystyle\int \cos(3x)\,dx$
- $\displaystyle\int e^{2x}\,dx$
- $\displaystyle\int (2x+1)^5\,dx$
Evaluate each integral:
- $\displaystyle\int x^2\cos(x^3)\,dx$
- $\displaystyle\int \frac{x}{\sqrt{1-4x^2}}\,dx$
Evaluate each integral:
- $\displaystyle\int \frac{\ln x}{x}\,dx$
- $\displaystyle\int \tan x\,dx$
Evaluate $\displaystyle\int x\sqrt{2x + 1}\,dx$.
Evaluate $\displaystyle\int \sqrt{2x+1}\,dx$ using two different substitutions:
- $u = 2x + 1$
- $u = \sqrt{2x + 1}$
Verify both give the same answer.
Conceptual Questions (CCI-Style)
A student tries to evaluate $\int e^{x^2}\,dx$ using substitution with $u = x^2$:
$$u = x^2, \quad du = 2x\,dx$$
$$\int e^{x^2}\,dx = \frac{1}{2x}\int e^u\,du = \frac{e^{x^2}}{2x} + C$$
What is wrong with this calculation?
Explain why $\int f(g(x))g'(x)\,dx = F(g(x)) + C$ where $F' = f$.
Use the chain rule to verify your answer by differentiating the right-hand side.
Common Misconceptions
after setting $u = g(x)$ and $du = g'(x)\,dx$, it is acceptable to leave some $x$-terms in the integrand and convert only the obvious pieces.
This is the input-output-confusion error. Substitution requires that every occurrence of $x$ be replaced; the integral must be expressed entirely in $u$ before it can be evaluated. If $x$-terms remain, the substitution is incomplete and the resulting expression in mixed variables has no meaning as an integral. For $\int e^{x^2}\,dx$ with $u = x^2$, the factor $\tfrac{1}{2x}$ cannot be pulled outside the integral because $x$ is the integration variable; no valid substitution converts this integral to an elementary form.
Mastery Checklist
Mental Model
The Disguised Package Analogy:
Imagine you receive a package wrapped in multiple layers. To see what’s inside, you unwrap layer by layer.
Similarly, $\int 2x\sqrt{1+x^2}\,dx$ has a “package” $(1+x^2)$ wrapped in a square root, multiplied by packaging tape $2x\,dx$. The substitution $u = 1 + x^2$ unwraps the package, revealing the simple $\int \sqrt{u}\,du$ inside.
Connections
Looking back:
- Chain Rule is the differentiation rule that substitution reverses
- Antiderivative Rules provide the formulas used after substitution
Looking ahead:
- u-Substitution (Definite) handles limits of integration
- Integration by Parts handles products where substitution fails
- Trig Substitution uses specific substitutions for radical expressions
| Previous | Up | Next |
|---|---|---|
| Complete Curve Sketch | Skills Index | u-Substitution (Definite) |
Last updated: 2026-01-22