What You Will Master
in This Section
Use the method of substitution to find indefinite integrals of composite functions.
Solve initial value problems using substitution to find particular solutions.
Explore a price-adjustment model in economics using substitution techniques.
The Big Picture: Why Substitution?
In §5.1, you learned the basic integration rules. But what about integrals like:
None of the rules from §5.1 directly apply. These integrals involve composite functions — a function inside another function. Substitution is the systematic method for handling exactly these cases.
Recall the Chain Rule for derivatives: if $F(u)$ is an antiderivative of $f(u)$, then
$$\frac{d}{dx}[F(g(x))] = f(g(x)) \cdot g'(x)$$
Running this backwards: if we see $f(g(x)) \cdot g'(x)$ inside an integral, we can undo the chain rule:
$$\int f(g(x))\cdot g'(x)\,dx = F(g(x)) + C$$
The Four Steps of
Integration by Substitution
If $u = g(x)$ is a differentiable function, then:
$$\int f(g(x))\cdot g'(x)\,dx = \int f(u)\,du = F(u) + C = F(g(x)) + C$$
Step-by-Step Through a
Challenging Integral
Let us work through the following integral completely, showing every thought and every step:
Step 1 — Identify the Structure
The integrand is $\dfrac{3x^2}{\sqrt{x^3+5}} = 3x^2 \cdot (x^3+5)^{-1/2}$.
We have a composite function: $(x^3+5)^{-1/2}$ — the inner function is $x^3 + 5$.
Notice that $3x^2$ is exactly the derivative of $x^3 + 5$. This is the signal that substitution will work perfectly.
Step 2 — Choose $u$ and Find $du$
Let $u = x^3 + 5$
Then $\dfrac{du}{dx} = 3x^2$
Therefore $du = 3x^2\,dx$
Step 3 — Substitute
Replace $x^3 + 5$ with $u$ and $3x^2\,dx$ with $du$:
$$\int \frac{3x^2}{\sqrt{x^3+5}}\,dx = \int \frac{1}{\sqrt{u}}\,du = \int u^{-1/2}\,du$$
The integral is now entirely in $u$ — clean and simple.
Step 4 — Integrate in $u$
Apply the power rule (raise exponent by 1, divide):
$$\int u^{-1/2}\,du = \frac{u^{1/2}}{1/2} + C = 2\sqrt{u} + C$$
Step 5 — Back-Substitute
Replace $u$ with $x^3 + 5$:
$$2\sqrt{u} + C = 2\sqrt{x^3+5} + C$$
Six Categories of
Substitution Problems
When the inner function is linear: $u = ax + b$. These are the simplest substitutions.
Example — Linear
Find $\displaystyle\int (3x-2)^7\,dx$
Let $u = 3x-2$, so $du = 3\,dx$, thus $dx = \dfrac{du}{3}$.
$$\int u^7 \cdot \frac{du}{3} = \frac{1}{3}\int u^7\,du = \frac{1}{3}\cdot\frac{u^8}{8} + C = \frac{(3x-2)^8}{24} + C$$
When the inner function is quadratic. Look for $x$ (or a multiple of it) multiplying the whole expression — that extra $x$ is often $\frac{du}{2}$.
Example — Quadratic
Find $\displaystyle\int x(x^2+1)^4\,dx$
Let $u = x^2+1$, so $du = 2x\,dx$, thus $x\,dx = \dfrac{du}{2}$.
$$\int u^4 \cdot \frac{du}{2} = \frac{1}{2}\cdot\frac{u^5}{5} + C = \frac{(x^2+1)^5}{10} + C$$
When the exponent is a function of $x$, set $u$ equal to that exponent.
Example — Exponential
Find $\displaystyle\int x^2 e^{x^3}\,dx$
Let $u = x^3$, so $du = 3x^2\,dx$, thus $x^2\,dx = \dfrac{du}{3}$.
$$\int e^u \cdot \frac{du}{3} = \frac{1}{3}e^u + C = \frac{1}{3}e^{x^3} + C$$
When you have a rational function where the numerator is (a multiple of) the derivative of the denominator — this gives a logarithm.
Example — Rational
Find $\displaystyle\int \frac{4x^3}{x^4-7}\,dx$
Let $u = x^4 - 7$, so $du = 4x^3\,dx$.
$$\int \frac{du}{u} = \ln|u| + C = \ln|x^4 - 7| + C$$
When the integrand contains a radical (square root, cube root, etc.), set $u$ equal to the expression under the radical.
Example — Radical
Find $\displaystyle\int x^2\sqrt{x^3+7}\,dx$
Let $u = x^3 + 7$, so $du = 3x^2\,dx$, thus $x^2\,dx = \dfrac{du}{3}$.
$$\int \sqrt{u}\cdot\frac{du}{3} = \frac{1}{3}\cdot\frac{2}{3}u^{3/2} + C = \frac{2}{9}(x^3+7)^{3/2} + C$$
When $\ln(x)$ appears in the integrand, try $u = \ln(x)$. Then $du = \dfrac{1}{x}dx$.
Example — Logarithmic
Find $\displaystyle\int \frac{(\ln x)^3}{x}\,dx$
Let $u = \ln x$, so $du = \dfrac{1}{x}\,dx$.
$$\int u^3\,du = \frac{u^4}{4} + C = \frac{(\ln x)^4}{4} + C$$
Quick Reference: Substitution Patterns
| Integrand Pattern | Best Choice for $u$ | Result Form |
|---|---|---|
| $(ax+b)^n$ | $u = ax+b$ | Power of $u$ |
| $x\cdot f(x^2)$ | $u = x^2$ | Simpler $f(u)$ |
| $f'(x)\cdot e^{f(x)}$ | $u = f(x)$ | $e^u$ |
| $\dfrac{f'(x)}{f(x)}$ | $u = f(x)$ | $\ln|u|$ |
| $f'(x)\cdot\sqrt{f(x)}$ | $u = f(x)$ | $\dfrac{2}{3}u^{3/2}$ |
| $\dfrac{(\ln x)^n}{x}$ | $u = \ln x$ | $\dfrac{u^{n+1}}{n+1}$ |
Simplify First,
Then Integrate
Sometimes the integrand looks complicated but simplifies with algebra — long division, expanding, or factoring — before substitution can be applied.
Example 1 — Polynomial Division
Find $\displaystyle\int \frac{x^2}{x-1}\,dx$
The degree of the numerator equals the degree of the denominator, so we divide first:
$$\frac{x^2}{x-1} = x + 1 + \frac{1}{x-1}$$
Now integrate term by term (with $u = x-1$ for the last term):
$$\int\!\left(x + 1 + \frac{1}{x-1}\right)dx = \frac{x^2}{2} + x + \ln|x-1| + C$$
Example 2 — Expand Before Integrating
Find $\displaystyle\int (1+e^x)^2\,dx$
Expand: $(1+e^x)^2 = 1 + 2e^x + e^{2x}$
$$\int\!(1 + 2e^x + e^{2x})\,dx = x + 2e^x + \frac{e^{2x}}{2} + C$$
Example 3 — Separate a Fraction
Find $\displaystyle\int \frac{x^3 + 2x - 5}{x^2}\,dx$
Split into separate fractions:
$$\frac{x^3+2x-5}{x^2} = x + \frac{2}{x} - \frac{5}{x^2} = x + \frac{2}{x} - 5x^{-2}$$
$$\int\!\left(x + \frac{2}{x} - 5x^{-2}\right)dx = \frac{x^2}{2} + 2\ln|x| + \frac{5}{x} + C$$
Example 4 — Completing the Square (Preview)
Find $\displaystyle\int \frac{1}{x^2+4x+5}\,dx$
Complete the square: $x^2+4x+5 = (x+2)^2 + 1$. Let $u = x+2$, $du = dx$:
$$\int \frac{du}{u^2+1} = \arctan(u) + C = \arctan(x+2) + C$$
Word Problems
The LUMS cafeteria finds that its marginal revenue (in PKR thousands) from selling $q$ meal plans per week follows the model:
$$R'(q) = \frac{4q}{(q^2+9)^2}$$
If $R(0) = 0$, find the total revenue function $R(q)$.
Lahore's population (in millions) is growing at the rate:
$$\frac{dP}{dt} = 0.3\sqrt{1 + 0.5t}$$
where $t$ is years since 2020. If $P(0) = 14$ million, find $P(t)$.
The price-adjustment model in Faisalabad's textile sector states that the rate of price change follows:
$$\frac{dP}{dt} = k(D - S) = \frac{5}{(P+2)^2}$$
where $P$ is price (in PKR hundreds) and $t$ is time (months). Find $P(t)$ given $P(0) = 3$.
The LUMS library finds that book circulation (books borrowed per day) changes at the rate:
$$C'(t) = \frac{200t}{(t^2+1)^{3/2}}$$
At the start of semester ($t=0$), $C = 50$ books/day. Find $C(t)$.
The volume of imports through Karachi Port (in billions PKR) grows at:
$$V'(t) = \frac{3(\ln t)^2}{t}$$
for $t \geq 1$ years after 2015, with $V(1) = 0$. Find $V(t)$.
U-Choice Quiz:
Pick the Right Substitution
For each function below, select the best choice for $u$ to perform the substitution. Choose carefully — you only get one attempt per question!
An Integral Where
Substitution Fails
Substitution is powerful, but it is not universal. Consider:
Attempt: Let $u = x^2$, so $du = 2x\,dx$, thus $dx = \dfrac{du}{2x}$.
Substituting: $\displaystyle\int e^u \cdot \frac{du}{2x}$
Problem: we cannot eliminate $x$ — substituting $x = \sqrt{u}$ gives $\displaystyle\int \frac{e^u}{2\sqrt{u}}\,du$, which is no simpler.
Conclusion: $\displaystyle\int e^{x^2}\,dx$ has no closed-form antiderivative expressible in terms of elementary functions. This is a famous result — the integral is related to the error function $\text{erf}(x)$ used in statistics and physics. Substitution cannot conjure what does not exist.
Other Integrals With No Elementary Antiderivative
| Integral | Why It Fails | Related to |
|---|---|---|
| $\int e^{x^2}\,dx$ | No cancellation possible after sub. | Error function erf$(x)$ |
| $\int \dfrac{\sin x}{x}\,dx$ | $\sin(u)/\sqrt{u}$ still intractable | Sine integral Si$(x)$ |
| $\int \dfrac{1}{\ln x}\,dx$ | No obvious inner function | Logarithmic integral Li$(x)$ |
| $\int \sqrt{1-k^2\sin^2 x}\,dx$ | Elliptic integral | Arc length of ellipses |
Example Where a Different Technique Is Needed
Find $\displaystyle\int xe^x\,dx$
Try substitution: Let $u = x$, $du = dx$ — useless (no simplification). Let $u = e^x$, $du = e^x dx$, so $x = \ln u$ — gives $\displaystyle\int \ln(u)\,du$ — actually harder.
Correct technique: Integration by Parts (§6.1), which gives $xe^x - e^x + C$. Substitution is the wrong tool here.
Differential Equations
Involving Substitution
Many separable differential equations, once separated, yield integrals that require substitution to solve.
Given $\dfrac{dy}{dx} = f(x)\cdot g(y)$:
1. Separate: $\dfrac{dy}{g(y)} = f(x)\,dx$
2. Integrate both sides — the left side often requires substitution in $y$, the right in $x$.
3. Solve for $y$, apply initial condition.
Example 1 — Substitution on the Right Side
Solve $\dfrac{dy}{dx} = x(x^2+1)^3$, $y(0) = 2$.
Example 2 — Substitution on Both Sides
Solve $\dfrac{dy}{dx} = \dfrac{x}{(y+1)^2}$, $y(0) = 0$.
Example 3 — Logistic-Type Equation
Solve $\dfrac{dP}{dt} = P(1-P)$, $P(0) = 0.1$ (the logistic equation).
Solving IVPs
with Substitution
An initial value problem (IVP) adds a specific condition $y(x_0) = y_0$ to pin down the constant of integration $C$.
IVP Example 1
Find $f(x)$ given $f'(x) = \dfrac{6x^2}{(x^3+1)^4}$ and $f(0) = 5$.
IVP Example 2
A LUMS student's study intensity (hours per day) follows $I'(t) = \sqrt{2t+1}$ with $I(0) = 0$. Find $I(t)$ and $I(4)$.