01 / 20

Integration by
Substitution

Master the most powerful technique for evaluating integrals: the reverse chain rule. Learn to simplify complex integrals by choosing the right substitution.

Calculus 2

What Is \(u\)-Substitution?

\(u\)-substitution is a method for evaluating integrals by reversing the chain rule of differentiation. When you see a composite function inside an integral, you replace part of the integrand with a new variable \(u\), making the integral simpler to solve.

The Big Idea Visually

Complex Integral
\(\int f(g(x))g'(x)\,dx\)
let \(u=g(x)\)
Simple Integral
\(\int f(u)\,du\)
integrate Result
\(F(u) + C\)
back-substitute \(u = g(x)\)

Why Does Substitution Matter?

Most Common Technique
\(u\)-substitution is the first and most frequently used integration method: it applies to the majority of integrals you will encounter.
Foundation for Advanced Methods
Techniques like integration by parts, trig substitution, and partial fractions all build on the substitution mindset.
Real-World Applications
Used in physics, engineering, and probability to compute areas, volumes, work, and probability distributions.

The Substitution Rule

Anatomy of a Substitution

\(\displaystyle\int 2x \cos(x^2)\,dx\)
\(u = x^2\)
\(du = 2x\,dx\)
\(f(u) = \cos(u)\)
Choose u
\(u = x^2\)
Find du
\(du = 2x\,dx\)
Rewrite
\(\int \cos(u)\,du\)
\(= \sin(u) + C = \sin(x^2) + C\)

Indefinite vs Definite Substitution

Indefinite Definite
Form \(\int f(g(x))g'(x)\,dx\) \(\int_a^b f(g(x))g'(x)\,dx\)
After substitution \(\int f(u)\,du\) \(\int_{g(a)}^{g(b)} f(u)\,du\)
Back-substitute? Yes: replace \(u\) with \(g(x)\) No: evaluate directly with new limits
Don't forget \(+ C\) constant Change both limits

How to Apply: Step by Step

1
Identify the inner function. Look for a composite function \(f(g(x))\). The inner function \(g(x)\) is your candidate for \(u\).
2
Set \(u = g(x)\) and find \(du\). Differentiate: \(du = g'(x)\,dx\). Check that \(g'(x)\,dx\) appears in the integrand (possibly times a constant).
3
Rewrite the integral in terms of \(u\). Replace all \(x\)-expressions with \(u\) and \(du\). No leftover \(x\) should remain.
4
Integrate with respect to \(u\). Apply known antiderivative rules.
5
Back-substitute. Replace \(u\) with \(g(x)\) (indefinite) or change the limits (definite). Add \(+ C\) for indefinite integrals.

Example 1: Basic Substitution

1
Let \(u = x^2 + 1\). The inner function is \(x^2 + 1\).
2
Then \(du = 2x\,dx\). We see \(2x\,dx\) already in the integrand. ✓
3
Rewrite: \(\displaystyle\int u^5\,du\).
4
Integrate: \(\dfrac{u^6}{6} + C\).
5
Back-substitute: \(\dfrac{(x^2+1)^6}{6} + C\).

Example 2: Adjusting a Constant

1
Let \(u = x^3\), so \(du = 3x^2\,dx\).
2
We have \(x^2\,dx\) in the integrand, but need \(3x^2\,dx\). Solve: \(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\), i.e. \(x\,dx = \tfrac{1}{2}\,du\).
2
Change limits: When \(x = 0\): \(u = 0^2+1 = \) 1. When \(x = 2\): \(u = 2^2+1 = \) 5.
3
Rewrite: \(\displaystyle\tfrac{1}{2}\int_1^5 u^{1/2}\,du\).
4
Integrate: \(\tfrac{1}{2}\cdot\tfrac{2}{3}u^{3/2}\Big|_1^5 = \tfrac{1}{3}u^{3/2}\Big|_1^5\).
5
Evaluate: \(\tfrac{1}{3}(5^{3/2} - 1^{3/2}) = \) \(\tfrac{5\sqrt{5}-1}{3}\).

How to Choose the Right \(u\)

Inside Composition
Pick \(u\) as the inner function of a composition: e.g., in \(\cos(3x)\), let \(u = 3x\).
Derivative Present
Check that \(g'(x)\) appears in the integrand (up to a constant multiple).
Denominator / Radicand
For fractions, try \(u =\) denominator. For roots, try \(u =\) expression under the radical.

Common Substitution Patterns

Integral Form Let \(u = \) Then \(du = \)
\(\int f(ax+b)\,dx\) \(ax + b\) \(a\,dx\)
\(\int x^n f(x^{n+1})\,dx\) \(x^{n+1}\) \((n+1)x^n\,dx\)
\(\int \frac{f'(x)}{f(x)}\,dx\) \(f(x)\) \(f'(x)\,dx\)
\(\int e^{g(x)}g'(x)\,dx\) \(g(x)\) \(g'(x)\,dx\)
\(\int \sin^n(x)\cos(x)\,dx\) \(\sin(x)\) \(\cos(x)\,dx\)

Common Mistakes to Avoid

Forgetting to change limits
In definite integrals, you must convert \(x\)-limits to \(u\)-limits using \(u = g(x)\). Do not evaluate at the old bounds.
Missing the constant factor
If \(du = 3x^2\,dx\) but you only have \(x^2\,dx\), you must multiply and divide by 3. Never ignore the coefficient.
Forgetting to back-substitute
For indefinite integrals, your final answer must be in terms of \(x\), not \(u\). Always replace \(u = g(x)\) at the end.

Quick Reference Summary

Formula
\(\displaystyle\int f(g(x))g'(x)\,dx = \int f(u)\,du\) where \(u = g(x)\).
Key Skill
Spot the inner function, verify its derivative is present, adjust constants, and don't forget \(+C\) or limit changes.

Question 1 of 5

Evaluate \(\displaystyle\int \cos(3x)\,dx\) using substitution.

Question 2 of 5

What substitution would you use for \(\displaystyle\int \frac{2x}{x^2+4}\,dx\)?

Question 3 of 5

Evaluate \(\displaystyle\int_0^1 2x\,e^{x^2}\,dx\).

Question 4 of 5

Evaluate \(\displaystyle\int \frac{\ln(x)}{x}\,dx\).

Question 5 of 5

A student evaluates \(\displaystyle\int_1^4 \frac{1}{\sqrt{x}}\,dx\) by letting \(u = \sqrt{x}\) but forgets to change the limits. Which error results?