Skip to main content

Section 2.2 Integration by Substitution

The Chain Rule is a way of finding derivatives by substitutions. Integration by substitution is the Chain Rule for finding antiderivatives. That is it uses substitutions to help one to recognizes the indefinite integral of a function.
To facilitate the discussion we introduce differential forms . An in-depth treatment of the subject can be found in [2]. We think of differential forms, instead of functions, as formal objects for integration. For instance, instead of integrating the function \(x\sin(x^2)\text{,}\) we think of integrating the form \(x\sin(x^2) dx\text{.}\)
A differential 1-form, or simply a differential form (in \(x\)), is an expression of the form \(f(x) dx\text{.}\) Given a differentiable function \(f(x)\text{,}\) we write \(df(x)\) (or simply \(df\)) for the differential form \(f'(x)\ dx\text{.}\) We say that a differential form is exact if it is \(df(x)\) for some differentiable function \(f(x)\text{.}\) Integrating an exact form is trivial because by definition \(f(x)\) is an antiderivative of \(f'(x)\) and so,
\begin{equation*} \int\ df(x) = \int f'(x)\ dx = f(x) +C. \end{equation*}
To integrate by substitution means making various substitutions until the differential form to be integrated is transformed into a differential form that one recognizes as exact.

Example 2.4.

To integrate \(x\sin(x^2)\ dx\text{,}\) first realize that integrating \(\sin(x^2) dx\) is a problem but integrating \(\sin(u) du\) is not. This suggests the substitution \(u = x^2\text{.}\) With that we get \(du = dx^2 = 2xdx\text{.}\) Thus,
\begin{equation*} x\sin(x^2)\ dx = \frac{1}{2}\sin(u)\ du = -\frac{1}{2}d\cos(u) \end{equation*}
and so
\begin{align*} \int x\sin(x^2)\ dx & = \int \frac{1}{2}\sin(u) du \\ &= -\frac{1}{2}\cos(u) +C = -\frac{1}{2}\sin(x^2) + C \end{align*}

Example 2.5.

To compute the indefinite integral \(\int \tan(x) dx\text{,}\) observe that \(\sin(x) dx = -d \cos(x)\text{.}\) So, let \(u=\cos(x)\)
\begin{align*} \int \tan(x) dx & = \int \frac{\sin(x)}{\cos(x)} dx\\ &= \int -\frac{1}{u} du \\ & = -\ln |u|+C = \ln \left|\frac{1}{u}\right| +C\\ &= \ln |\sec(x)| +C \end{align*}

Example 2.6.

Suppose we want to integrate \(\ds \int \frac{1}{1+9x^2}dx\text{.}\) We recognize it is closed related to a exact form
\begin{equation*} \frac{1}{1+u^2}du = d\arctan(u). \end{equation*}
Comparing the two forms suggests the substitution \(u=3x\text{.}\) Then \(du =3dx\text{,}\) that is, \(dx = du/3\text{.}\) Thus,
\begin{align*} \int \frac{1}{1+9x^2} dx & = \int \frac{1}{1+u^2}dx\\ & = \frac{1}{3}\int \frac{1}{1+u^2}du \\ & = \frac{1}{3}\arctan(u)+C = \frac{1}{3}\arctan(3x)+C. \end{align*}

Example 2.7.

Here is a trickier example. To integrate \(\sec(x)\text{,}\) one realizes that if \(u = \sec(x) + \tan(x)\text{,}\) then
\begin{align*} du & = (\sec(x)\tan(x) + \sec^2(x))dx\\ & = \sec(x)(\tan(x) + \sec(x)dx\\ & = \sec(x) u dx \end{align*}
Note that \(\sec(x)\) is defined precisely when \(u\) is defined and nonzero. Hence,
\begin{align*} \int \sec(x) dx & = \int \frac{du}{u}\\ & = \ln|u|+C\\ & = \ln|\sec(x) + \tan(x)| + C \end{align*}
For a more natural derivation of this result, see Subsection 3.2.3.

Checkpoint 2.8.

Compute the integral \(\ds \int \sin(3x) dx\)
Hint.
\(u= 3x \text{.}\)
Solution.
\(u=3x\text{.}\)\(du =3 dx\)\(\sin(3x) dx = \frac{1}{3}\sin(u)du\text{.}\)
\begin{equation*} \int \sin(3x)dx = \frac{1}{3}\int \sin(u) du = -\frac{1}{3}\cos(u)+C = - \frac{1}{3}\cos(3x)+C \end{equation*}

Checkpoint 2.9.

Compute the integral \(\ds \int \frac{e^x}{1+e^{2x}} dx\)
Hint.
\(u=e^x\text{.}\)
Solution.
\(u=e^x\text{.}\)\(du =e^xdx\)\(1+e^{2x} = 1+u^2\text{.}\)
\begin{equation*} \int \frac{du}{1+u^2} = \arctan(u) +C = \arctan(e^x) + C. \end{equation*}

Checkpoint 2.10.

Compute the integral \(\ds \int \frac{(\ln x)^2}{x}\ dx\)
Hint.
\(u=\ln x\text{.}\)
Answer.
\(\ds \frac{(\ln x)^3}{3} +C\)