01 / 21

\(u\)-Substitution

Master the reverse chain rule to evaluate integrals of composite functions by choosing the right substitution.

Calculus 1

Why Do We Need \(u\)-Substitution?

Many integrals involve composite functions: an outer function applied to an inner function. Direct antiderivative rules don't work when a function is "nested" inside another.

\(u\)-substitution lets you peel away the outer layer, integrate in simpler terms, then convert back. It is the single most-used integration technique in all of calculus.

The Chain Rule Connection

Differentiation uses the chain rule to handle compositions. Integration reverses it:

Chain Rule (Forward)
\(\dfrac{d}{dx}\big[F(g(x))\big]\)
\(= F'(g(x))\cdot g'(x)\)
u-Substitution (Reverse)
\(\displaystyle\int f(g(x))\,g'(x)\,dx\)
\(= F(g(x)) + C\)

What Is \(u\) Exactly?

\(u\)
A new variable that replaces the inner function \(g(x)\). You choose it so the integral simplifies.
\(du\)
The differential of \(u\): \(du = g'(x)\,dx\). It must match (up to a constant) what remains in the integrand after extracting \(u\).

The Core Formula

\(\displaystyle\int f\!\bigl(g(x)\bigr)\,g'(x)\,dx \;=\; \int f(u)\,du \;=\; F(u) + C\)

where \(u = g(x)\) and \(du = g'(x)\,dx\). After integrating in \(u\), replace \(u\) with \(g(x)\) to return to the original variable.

\(u\) vs. \(du\): How to Choose

Good \(u\) Choices
The inner layer of a composition: arguments of \(\sin\), \(\cos\), \(\ln\), \(e^{(\cdot)}\), or expressions raised to a power.
Signs of a Good Fit
The derivative \(du\) (or a constant multiple) already appears in the integrand.

Step-by-Step Method

1
Identify the inner function. Look for a composite structure \(f(g(x))\) and set \(u = g(x)\).
2
Differentiate. Compute \(du = g'(x)\,dx\).
3
Rewrite the integral. Substitute \(u\) and \(du\) so that no \(x\) remains.
4
Integrate in \(u\). Apply standard antiderivative rules to the simpler integral.
5
Back-substitute. Replace \(u\) with \(g(x)\) and add \(+\,C\).

Example 1: \(\int 2x\cos(x^2)\,dx\)

1
Choose \(u\): The inner function is \(u = x^2\).
2
Find \(du\): \(du = 2x\,dx\).
3
Rewrite: \(\displaystyle\int \cos(u)\,du\).
4
Integrate: \(\sin(u) + C\).
5
Back-substitute: \(\sin(x^2) + C\).

Example 2: \(\int x^2 e^{x^3}\,dx\)

1
Choose \(u\): \(u = x^3\).
2
Find \(du\): \(du = 3x^2\,dx\), so \(x^2\,dx = \tfrac{1}{3}\,du\).
3
Rewrite: \(\displaystyle\int e^{u}\cdot\tfrac{1}{3}\,du = \tfrac{1}{3}\int e^{u}\,du\).
4
Integrate: \(\tfrac{1}{3}\,e^{u} + C\).
5
Back-substitute: \(\tfrac{1}{3}\,e^{x^3} + C\).

Example 3: \(\int \tan(x)\,dx\)

Rewrite as \(\displaystyle\int \frac{\sin x}{\cos x}\,dx\). Now look for a substitution:

1
Choose \(u\): \(u = \cos x\).
2
Find \(du\): \(du = -\sin x\,dx\), so \(\sin x\,dx = -du\).
3
Rewrite: \(\displaystyle\int \frac{-du}{u} = -\int \frac{du}{u}\).
4
Integrate: \(-\ln|u| + C\).
5
Back-substitute: \(-\ln|\cos x| + C\).

Visualizing the Substitution

x-world
\(\int 2x\cos(x^2)\,dx\)
\(u = x^2\)
\(du = 2x\,dx\)
\(\sin(x^2) + C\)
sub back u-world
\(\int \cos(u)\,du\)
integrate
\(\sin(u) + C\)

When It Doesn't Work Directly

Sometimes the derivative \(g'(x)\) is not present in the integrand, or the substitution leaves behind \(x\) terms that cannot be expressed in \(u\).

Constant Mismatch
If \(du\) differs by a constant factor, simply divide. E.g., \(du = 3x^2\,dx\) but you have \(x^2\,dx\): use \(\frac{1}{3}\,du\).
Variable Mismatch
If leftover \(x\) terms can't be rewritten in \(u\), \(u\)-sub alone won't work. You may need a different technique.

Definite Integrals: Change the Bounds

For definite integrals, convert the limits of integration from \(x\)-values to \(u\)-values so you never need to back-substitute:

\(\displaystyle\int_{a}^{b} f(g(x))\,g'(x)\,dx \;=\; \int_{g(a)}^{g(b)} f(u)\,du\)

Example 4: \(\displaystyle\int_0^1 2x\,e^{x^2}\,dx\)

1
Let \(u = x^2\), so \(du = 2x\,dx\).
2
Change bounds: when \(x = 0\), \(u = 0\). When \(x = 1\), \(u = 1\).
3
Rewrite: \(\displaystyle\int_0^1 e^u\,du\).
4
Evaluate: \(\bigl[e^u\bigr]_0^1 = e^1 - e^0 = \textcolor{#818cf8}{e - 1}\).

Common Mistakes

✕ Forgetting \(du\)
Setting \(u\) but not replacing \(dx\) with \(du\). Every \(dx\) must become part of \(du\).
✕ Leaving \(x\) behind
After substitution, no \(x\) should remain. If it does, your \(u\) choice is wrong.
✕ Wrong bounds
Using the original \(x\)-limits with a \(u\)-integral. Always convert limits when doing definite integrals.

Summary Table

Integral \(u\) \(du\) Result
\(\int 2x\cos(x^2)\,dx\) \(x^2\) \(2x\,dx\) \(\sin(x^2)+C\)
\(\int x^2 e^{x^3}\,dx\) \(x^3\) \(3x^2\,dx\) \(\tfrac{1}{3}e^{x^3}+C\)
\(\int \tan x\,dx\) \(\cos x\) \(-\sin x\,dx\) \(-\ln|\cos x|+C\)
\(\int_0^1 2x\,e^{x^2}\,dx\) \(x^2\) \(2x\,dx\) \(e - 1\)

Question 1 of 5

Evaluate \(\displaystyle\int 3x^2\sin(x^3)\,dx\).

Question 2 of 5

For \(\displaystyle\int 5x^4\sqrt{x^5+1}\,dx\), what is the best choice of \(u\)?

Question 3 of 5

Evaluate \(\displaystyle\int \frac{e^x}{1+e^x}\,dx\).

Question 4 of 5

Evaluate the definite integral \(\displaystyle\int_0^2 x\,e^{x^2}\,dx\).

Question 5 of 5

Which integral cannot be solved by a simple \(u\)-substitution?