01 / 20
∫

Integration by
Substitution

Master the reverse chain rule: transform complex integrals into simple ones by choosing the right substitution for \( u \).

Calculus 1

Why Do We Need Substitution?

Many integrals don't match basic antiderivative rules directly. For example, \(\displaystyle\int 2x\cos(x^2)\,dx\) isn't a standard form. Substitution lets us rewrite the integral in terms of a new variable so it becomes one we already know how to solve.

The Chain Rule Connection

Recall the chain rule for differentiation:

If we integrate both sides, we get:

Substitution formalizes this: set \( u = g(x) \), so \( du = g'(x)\,dx \), and the integral simplifies to \(\int F'(u)\,du\).

Visual Intuition

x-world (complex) area = ? f(g(x)) · g'(x) u = g(x) u-world (simple) area = easy! f(u)

The Substitution Rule

Anatomy of a Substitution

\(\displaystyle\int 2x \cdot \cos(x^2)\,dx\)
inner function
\(u = x^2\)
derivative of inner
\(du = 2x\,dx\)
← outer function: \(f(u) = \cos(u)\)
becomes: \(\int \cos(u)\,du = \sin(u) + C\)

Indefinite vs. Definite Substitution

Indefinite Integral
Substitute \( u = g(x) \), integrate in \( u \), then back-substitute to return the answer in terms of \( x \). Don't forget \( +C \).
Definite Integral
Substitute \( u = g(x) \) and change the limits: \( x = a \to u = g(a) \), \( x = b \to u = g(b) \). Evaluate directly in \( u \): no back-substitution needed.

Step-by-Step Method

1
Choose \( u \). Pick the "inner" function: usually the argument inside a composite function (e.g., the expression inside \(\sin(\cdot)\), \(\sqrt{\cdot}\), or \((\cdot)^n\)).
2
Compute \( du \). Differentiate: \( du = g'(x)\,dx \). Solve for \( dx \) if needed.
3
Rewrite the integral. Replace all \( x \)-expressions with \( u \) and \( du \). No \( x \) should remain.
4
Integrate in \( u \). Apply standard antiderivative rules.
5
Back-substitute. Replace \( u \) with \( g(x) \). (Skip for definite integrals with converted limits.)

How to Choose \( u \)

Inside Composite
Choose the inner function of a composition: the argument of \(\sin\), \(\cos\), \(\ln\), \(e^{(\cdot)}\), or under a root.
Derivative Present
Verify that \( g'(x) \) (or a constant multiple of it) appears elsewhere in the integrand.
Simplifies the Integral
After substitution, every \( x \) must vanish. If \( x \) remains, try a different \( u \).

Example 1: Basic

1
Let \( u = x^2 \)
2
Then \( du = 2x\,dx \)
3
Rewrite: \(\displaystyle\int \cos(u)\,du\)
4
Integrate: \(\sin(u) + C\)
5
Back-substitute: \(\sin(x^2) + C\)

Example 2: Adjusting a Constant

1
Let \( u = x^3 \)
2
Then \( 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: Definite Integral

1
Let \( u = x^2 + 1 \), so \( du = 2x\,dx \) and \( x\,dx = \tfrac{1}{2}\,du \)
2
Change limits: when \( x=0 \): \( u=1 \); when \( x=2 \): \( u=5 \)
3
Rewrite: \(\displaystyle\tfrac{1}{2}\int_1^5 \sqrt{u}\,du = \tfrac{1}{2}\int_1^5 u^{1/2}\,du\)
4
Integrate: \(\displaystyle\tfrac{1}{2}\cdot\frac{u^{3/2}}{3/2}\bigg|_1^5 = \tfrac{1}{3}\bigl(5^{3/2}-1\bigr) = \tfrac{1}{3}(5\sqrt{5}-1)\)

Example 4: Trig Inside

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

Common Patterns

Integral Form Choose \( u \) Result
\(\int f(ax+b)\,dx\) \(u = ax+b\) \(\tfrac{1}{a}F(u)+C\)
\(\int x^n f(x^{n+1})\,dx\) \(u = x^{n+1}\) \(\tfrac{1}{n+1}\!\int f(u)\,du\)
\(\int \frac{f'(x)}{f(x)}\,dx\) \(u = f(x)\) \(\ln|u|+C\)
\(\int f(e^x)\,e^x\,dx\) \(u = e^x\) \(\int f(u)\,du\)
\(\int f(\sin x)\cos x\,dx\) \(u = \sin x\) \(\int f(u)\,du\)

Common Mistakes

✕ Forgetting to convert \( dx \)
Replacing \( g(x) \) with \( u \) but leaving \( dx \) unchanged. You must substitute \( dx = \frac{du}{g'(x)} \).
✕ Adjusting variables
Trying to move an \( x \) outside the integral like a constant. Only true constants can be factored out.
✕ Unchanged limits
Using original \( x \)-limits after substituting \( u \). Either convert limits to \( u \)-values or back-substitute first.

Question 1 of 5

What is the best substitution for
\(\displaystyle\int 3x^2\sin(x^3)\,dx\)?

Question 2 of 5

Evaluate \(\displaystyle\int e^{5x}\,dx\).

Question 3 of 5

If \( u = x^2 + 1 \), what are the new limits for
\(\displaystyle\int_0^3 x\sqrt{x^2+1}\,dx\)?

Question 4 of 5

Evaluate \(\displaystyle\int \frac{2x}{x^2+4}\,dx\).

Question 5 of 5

Which of these integrals cannot be solved by a simple \( u \)-substitution?