AB Calculus · Unit: Integration Techniques

Integration by
U-Substitution

Every concept, formula, worked example, and practice problem you need to walk in and score a 100.

Complete Study Guide
01

The Core Concept

What is U-Substitution?

U-substitution is the integration counterpart of the chain rule for differentiation. When an integrand contains a composite function, we replace the inner function with $u$ to simplify the integral into a basic form we can evaluate directly.

$$\int f(g(x))\cdot g'(x)\,dx = \int f(u)\,du \quad \text{where } u = g(x)$$

The Intuition

1

Spot the Pattern

You need a function and its derivative (or a constant multiple of it) both present in the integrand.

2

Substitute

Replace the inner function with $u$, and rewrite $dx$ in terms of $du$. This transforms the messy integral into a clean one.

3

Integrate

Evaluate the resulting integral in $u$ using basic antiderivative rules.

4

Back-Substitute

Replace $u$ with the original expression in $x$ to get your final answer.

02

The 5-Step Method

Follow these steps every time — no exceptions:

1

Choose $u$

Pick $u$ = the inner function (usually what's inside a power, root, trig function, or exponent). Look for a function whose derivative is also present.

2

Find $\dfrac{du}{dx}$, solve for $dx$

Differentiate $u$ with respect to $x$. Rearrange to express $dx$ in terms of $du$: $\;dx = \dfrac{du}{u'}$.

3

Substitute everything

Replace the inner expression with $u$ AND replace $dx$ with the $du$ expression. The result should have no remaining $x$'s.

4

Integrate in $u$

Evaluate $\int f(u)\,du$ using the basic rules (power rule, trig integrals, exponential rules).

5

Back-substitute (indefinite integrals only)

Replace $u$ with your original expression in $x$. Add $+ C$.

How to Choose $u$ — Decision Guide

⊙

Inside a Power

$\int (3x+1)^5\,dx$ → let $u = 3x+1$

√

Inside a Root

$\int \sqrt{2x-1}\,dx$ → let $u = 2x-1$

e

Exponent of $e$

$\int e^{3x}\,dx$ → let $u = 3x$

~

Inside Trig

$\int \cos(2x)\,dx$ → let $u = 2x$

Pro tip: If your derivative brings an unwanted constant (like $\frac{1}{3}$), just multiply outside the integral to compensate — you can always divide it out.

03

Essential Formulas

Basic Antiderivatives (after substitution, $u$ is the variable)

Power Rule $$\int u^n\,du = \frac{u^{n+1}}{n+1} + C$$
Exponential $$\int e^u\,du = e^u + C$$
Natural Log $$\int \frac{1}{u}\,du = \ln|u| + C$$
Sine $$\int \sin u\,du = -\cos u + C$$
Cosine $$\int \cos u\,du = \sin u + C$$
Secant Squared $$\int \sec^2 u\,du = \tan u + C$$
Square Root $$\int \sqrt{u}\,du = \frac{2}{3}u^{3/2} + C$$
Cosecant Squared $$\int \csc^2 u\,du = -\cot u + C$$

Definite Integral with U-Sub — Limits Rule

When evaluating definite integrals, change the limits of integration to $u$-values:

$$\text{If } u = g(x), \text{ then: new lower} = g(a),\quad \text{new upper} = g(b)$$

This means you never need to back-substitute — just evaluate the $u$-integral at the new limits directly.

04

Worked Examples

These are based on the problems from your study guide. Every step is shown.

Example 1 — Definite Integral with Trig

Easy ▼
$$\int_0^{\pi/2} 4\cos(2x)\,dx$$

Full Solution

①Let $u = 2x$, so $\dfrac{du}{dx} = 2$, giving $dx = \dfrac{du}{2}$
②Change limits: when $x=0$, $u=0$; when $x=\pi/2$, $u=\pi$
③Substitute: $\displaystyle\int_0^{\pi} 4\cos(u)\cdot\frac{du}{2} = \int_0^{\pi} 2\cos(u)\,du$
④Integrate: $\Big[2\sin(u)\Big]_0^{\pi}$
⑤Evaluate: $2\sin(\pi) - 2\sin(0) = 2(0) - 2(0) = \boxed{0}$

Note: $\sin(\pi) = 0$ and $\sin(0) = 0$, so the integral evaluates to zero.

Example 2 — Sum of Two Integrals (Splitting)

Medium ▼
$$\int \left(-4e^{3x} + \sqrt{2x-1}\right)dx$$

Full Solution

①Split into two integrals: $\displaystyle\int -4e^{3x}\,dx + \int \sqrt{2x-1}\,dx$
②Left integral: Let $u = 3x$, $du = 3\,dx$, so $dx = \dfrac{du}{3}$
③$\displaystyle -4\int e^u \cdot \frac{du}{3} = -\frac{4}{3}\int e^u\,du = -\frac{4}{3}e^u = -\frac{4}{3}e^{3x}$
④Right integral: Let $v = 2x-1$, $dv = 2\,dx$, so $dx = \dfrac{dv}{2}$
⑤$\displaystyle \int \sqrt{v}\cdot\frac{dv}{2} = \frac{1}{2}\int v^{1/2}\,dv = \frac{1}{2}\cdot\frac{2}{3}v^{3/2} = \frac{1}{3}v^{3/2}$
⑥Back-sub: $\dfrac{1}{3}(2x-1)^{3/2}$
⑦Final answer: $\displaystyle\boxed{-\frac{4}{3}e^{3x} + \frac{1}{3}(2x-1)^{3/2} + C}$

Key technique: when the integrand is a sum, split it and apply u-sub independently to each part.

Example 3 — Definite Integral, Composite Polynomial

Medium ▼
$$\int_{-1}^{0} (3x+3)(x^2+2x-1)^3\,dx$$

Full Solution

①Let $u = x^2 + 2x - 1$, so $\dfrac{du}{dx} = 2x+2$, giving $dx = \dfrac{du}{2x+2}$
②Notice $3x+3 = 3(x+1)$ and $2x+2 = 2(x+1)$. So $\dfrac{3(x+1)}{2(x+1)} = \dfrac{3}{2}$. The $x$ terms cancel!
③Change limits: $x=-1 \Rightarrow u = 1-2-1 = -2$; $x=0 \Rightarrow u = 0+0-1 = -1$
④Integral becomes: $\displaystyle\frac{3}{2}\int_{-2}^{-1} u^3\,du$
⑤$\displaystyle = \frac{3}{2}\cdot\frac{u^4}{4}\Bigg|_{-2}^{-1} = \frac{3}{8}u^4\Bigg|_{-2}^{-1}$
⑥$= \dfrac{3}{8}(-1)^4 - \dfrac{3}{8}(-2)^4 = \dfrac{3}{8}(1) - \dfrac{3}{8}(16) = \dfrac{3}{8} - \dfrac{48}{8}$
⑦$= \boxed{-\dfrac{45}{8} = -5.625}$

Key technique: recognize when a factor outside cancels with the derivative of $u$, leaving only a constant multiplier.

Example 4 — Double Substitution (Nested)

Hard ▼
$$\int \frac{1}{\sqrt{x}\,(1+\sqrt{x})^2}\,dx$$

Full Solution

①First sub: Let $u = \sqrt{x} = x^{1/2}$. Then $\dfrac{du}{dx} = \dfrac{1}{2\sqrt{x}}$, so $\dfrac{1}{\sqrt{x}}\,dx = 2\,du$ (i.e., $dx = 2u\,du$ since $\sqrt{x} = u$)
②Rewrite: $\displaystyle\int \frac{1}{u(1+u)^2}\cdot 2u\,du = 2\int\frac{1}{(1+u)^2}\,du$
③Second sub: Let $v = 1+u$, so $dv = du$
④$\displaystyle 2\int v^{-2}\,dv = 2\cdot\frac{v^{-1}}{-1} = -\frac{2}{v}$
⑤Back-sub $v = 1+u$: $-\dfrac{2}{1+u}$
⑥Back-sub $u = \sqrt{x}$: $\displaystyle\boxed{-\frac{2}{1+\sqrt{x}} + C}$

Key technique: apply u-sub twice in sequence. Start with the most deeply nested expression ($\sqrt{x}$), then substitute again for the remaining composite.

05

Definite Integrals — Special Rules

Two Valid Methods

MethodStepsWhen to Use
Change Limits Convert $a, b$ to $u$-values → integrate in $u$ → evaluate directly Preferred — faster, no back-substitution needed
Keep Original Limits Integrate in $u$ → back-substitute → evaluate at $x = a, b$ When you forget to change limits (still valid)
$$\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du$$

Limit Conversion Practice

$u$ substitution$x = a$New lower $u$$x = b$New upper $u$
$u = 2x$$0$$0$$\pi/2$$\pi$
$u = x^2+2x-1$$-1$$-2$$0$$-1$
$u = 3x+1$$0$$1$$2$$7$
$u = x^2$$1$$1$$3$$9$
06

Practice Problems

Click a problem to expand it. Use the hint before revealing the full solution.

P1 — Basic U-Sub (Indefinite)

Easy▼
$$\int (5x+2)^4\,dx$$
Let $u = 5x + 2$. What does $\frac{du}{dx}$ equal? How does that help you rewrite $dx$?

Solution

①$u = 5x+2$, $\quad du = 5\,dx$, $\quad dx = \dfrac{du}{5}$
②$\displaystyle\int u^4 \cdot \frac{du}{5} = \frac{1}{5}\int u^4\,du = \frac{1}{5}\cdot\frac{u^5}{5} = \frac{u^5}{25}$
③Back-sub: $\boxed{\dfrac{(5x+2)^5}{25} + C}$

P2 — Exponential U-Sub

Easy▼
$$\int x\,e^{x^2}\,dx$$
Notice that the derivative of $x^2$ is $2x$ — and $x$ is already there in the integrand. Let $u = x^2$.

Solution

①$u = x^2$, $\quad du = 2x\,dx$, $\quad x\,dx = \dfrac{du}{2}$
②$\displaystyle\int e^u\cdot\frac{du}{2} = \frac{1}{2}e^u$
③Back-sub: $\boxed{\dfrac{1}{2}e^{x^2} + C}$

P3 — Trigonometric U-Sub

Easy▼
$$\int \sin^3(x)\cos(x)\,dx$$
Let $u = \sin(x)$. What is $\frac{du}{dx}$? Can you express $\cos(x)\,dx$ in terms of $du$?

Solution

①$u = \sin(x)$, $\quad du = \cos(x)\,dx$
②$\displaystyle\int u^3\,du = \frac{u^4}{4}$
③Back-sub: $\boxed{\dfrac{\sin^4(x)}{4} + C}$

P4 — Definite Integral with Changed Limits

Medium▼
$$\int_0^1 3x^2(x^3+1)^4\,dx$$
Let $u = x^3 + 1$. Find $du$. Notice $x^2$ is already outside. Don't forget to change your limits!

Solution

①$u = x^3+1$, $\quad du = 3x^2\,dx$
②New limits: $x=0\Rightarrow u=1$; $x=1\Rightarrow u=2$
③$\displaystyle\int_1^2 u^4\,du = \frac{u^5}{5}\Bigg|_1^2 = \frac{32}{5} - \frac{1}{5} = \boxed{\frac{31}{5}}$

P5 — Rational / Log Form

Medium▼
$$\int \frac{x}{x^2+4}\,dx$$
The derivative of $x^2 + 4$ is $2x$. Since $x$ is in the numerator, let $u = x^2 + 4$.

Solution

①$u = x^2+4$, $\quad du = 2x\,dx$, $\quad x\,dx = \dfrac{du}{2}$
②$\displaystyle\frac{1}{2}\int\frac{1}{u}\,du = \frac{1}{2}\ln|u|$
③Back-sub: $\boxed{\dfrac{1}{2}\ln(x^2+4) + C}$

P6 — Tricky: Adjust for Missing Factor

Tricky▼
$$\int x\sqrt{x^2+3}\,dx$$
Let $u = x^2 + 3$. The derivative $du = 2x\,dx$ — notice you have $x\,dx$ in the integrand already, just divide by 2.

Solution

①$u = x^2+3$, $\quad du = 2x\,dx$, $\quad x\,dx = \dfrac{du}{2}$
②$\displaystyle\frac{1}{2}\int u^{1/2}\,du = \frac{1}{2}\cdot\frac{2}{3}u^{3/2} = \frac{1}{3}u^{3/2}$
③Back-sub: $\boxed{\dfrac{1}{3}(x^2+3)^{3/2} + C}$

P7 — Challenge: Trig with Definite Bounds

Hard▼
$$\int_0^{\pi/4} \sec^2(3x)\,dx$$
Let $u = 3x$. Don't forget: $\int \sec^2(u)\,du = \tan(u) + C$. Change the limits too.

Solution

①$u = 3x$, $\quad du = 3\,dx$, $\quad dx = \dfrac{du}{3}$
②New limits: $x=0\Rightarrow u=0$; $x=\pi/4\Rightarrow u=3\pi/4$
③$\displaystyle\frac{1}{3}\int_0^{3\pi/4}\sec^2(u)\,du = \frac{1}{3}\Big[\tan(u)\Big]_0^{3\pi/4}$
④$= \dfrac{1}{3}\left(\tan\!\left(\dfrac{3\pi}{4}\right) - \tan(0)\right) = \dfrac{1}{3}(-1 - 0) = \boxed{-\dfrac{1}{3}}$
07

Common Errors to Avoid

These are the mistakes that cost students points. Know them cold.

✗ Mistake #1 — Forgetting to change limits on definite integrals

After substituting $u$, you must also convert the limits $a$ and $b$ to $u$-values using $u = g(a)$ and $u = g(b)$. Leaving old $x$-limits on a $u$-integral gives the wrong answer.

✓ Fix: Always write new limits immediately when you write $u = \ldots$
✗ Mistake #2 — Not back-substituting on indefinite integrals

An answer with $u$ in it is incomplete for an indefinite integral. Always replace $u$ with the original expression in $x$ before writing your final answer.

✓ Fix: Circle your definition of $u$ at the start; check your final answer has no $u$ in it.
✗ Mistake #3 — Forgetting the $+ C$ on indefinite integrals

Every indefinite integral has a constant of integration. Omitting it on a test is a guaranteed point deduction.

✓ Fix: Train yourself to automatically write $+ C$ at every step where you integrate indefinitely.
✗ Mistake #4 — Mishandling the constant factor

When $du$ gives a coefficient you don't want (e.g., $du = 5\,dx$), you must divide: $dx = \frac{du}{5}$, bringing $\frac{1}{5}$ outside the integral. Students often multiply instead of divide, or drop the factor entirely.

✓ Fix: Solve for $dx$ explicitly before substituting. Write it out every time.
✗ Mistake #5 — Choosing the wrong $u$

Choosing a $u$ whose derivative doesn't appear in the integrand means you'll have leftover $x$-terms that can't be cancelled. If you get stuck with $x$'s remaining, reconsider your choice of $u$.

✓ Fix: After choosing $u$, ask: "Is $\frac{du}{dx}$ (or a multiple of it) sitting in front of the function I'm integrating?"
✗ Mistake #6 — Power rule error on fractional exponents

$\int u^{1/2}\,du = \frac{u^{3/2}}{3/2} = \frac{2}{3}u^{3/2}$, not $\frac{1}{2}u^{-1/2}$ (that's the derivative). Raise the power, divide by it.

✓ Fix: Raise power by 1, then divide by the new power. Double-check with a derivative.
✗ Mistake #7 — Sign errors on trig antiderivatives

$\int \sin(u)\,du = -\cos(u) + C$ (negative!). Students often write $+\cos(u)$. When back-substituting trig, carefully track the sign.

✓ Fix: Memorize the antiderivative table and verify by differentiating your answer.
08

Quick Quiz

Test yourself. Each question is multiple choice. Instant feedback after each answer.

For $\displaystyle\int (6x)(3x^2+1)^4\,dx$, the best choice of $u$ is:

$u = (3x^2+1)^4$
$u = 3x^2+1$
$u = 6x$
$u = x^2$

Evaluate $\displaystyle\int_1^2 2x\,e^{x^2}\,dx$.

$e^4$
$e^4 - e$
$e^4 - 1$
$e^2 - e$

$\displaystyle\int \cos(5x)\,dx = $?

$\sin(5x) + C$
$\dfrac{1}{5}\sin(5x) + C$
$-\dfrac{1}{5}\sin(5x) + C$
$\dfrac{1}{5}\cos(5x) + C$

$\displaystyle\int \frac{4x^3}{x^4+7}\,dx = $?

$\dfrac{4}{(x^4+7)^2} + C$
$4\ln|x^4+7| + C$
$\ln|x^4+7| + C$
$\dfrac{1}{2(x^4+7)^2} + C$

Which expression equals $\displaystyle\int \sqrt{2x-1}\,dx$?

$\dfrac{2}{3}(2x-1)^{3/2} + C$
$\dfrac{1}{3}(2x-1)^{3/2} + C$
$\dfrac{2}{3}\sqrt{(2x-1)^3} + C$
$\dfrac{1}{\sqrt{2x-1}} + C$

Score: —

09

Rapid-Reference Cheat Sheet

U-Sub Antiderivatives at a Glance

Power$$\int u^n\,du = \frac{u^{n+1}}{n+1}+C$$
Exponential$$\int e^u\,du = e^u+C$$
Reciprocal$$\int \frac{1}{u}\,du = \ln|u|+C$$
sin$$\int \sin u\,du = -\cos u+C$$
cos$$\int \cos u\,du = \sin u+C$$
sec²$$\int \sec^2 u\,du = \tan u+C$$
csc²$$\int \csc^2 u\,du = -\cot u+C$$
sec·tan$$\int \sec u\tan u\,du = \sec u+C$$

Quick Checklist Before You Submit

U-Choice Quick Reference

Integrand StructureChoose $u =$Example
$(f(x))^n \cdot f'(x)$inner function$(x^2+1)^3 \cdot 2x$
$e^{f(x)} \cdot f'(x)$exponent$e^{3x} \cdot 3$
$\dfrac{f'(x)}{f(x)}$denominator$\dfrac{2x}{x^2+1}$
$\sin(f(x)) \cdot f'(x)$trig argument$\sin(x^2) \cdot 2x$
$\dfrac{1}{\sqrt{x}} \cdot g(\sqrt{x})$$\sqrt{x}$$\dfrac{\cos\sqrt{x}}{\sqrt{x}}$