Evaluate
\begin{equation*}
\int 2x (x^2 + 1)^3 \,dx
\end{equation*}
Solution.
The expression \((x^2+1)^3\) could be expanded, allowing us to use the power rule, but it would be a lot of work.
Instead, it turns out we can use substitution. We will define a new variable, named \(u\text{,}\) in terms of the original variable \(x\text{.}\) In particular, let \(u=x^2+1\) (the expression inside the power). This means the integral will be,
\begin{equation*}
\int 2x \cdot u^3 \,dx
\end{equation*}
We also need to replace \(2x\) and \(\,dx\) with something in terms of \(u\text{.}\) To do this, we compute \(du\text{,}\) which is the derivative of \(u\) with respect to \(x\) times \(dx\text{.}\) We have,
\begin{gather*}
\frac{du}{dx} = 2x\\
du = 2x \,dx
\end{gather*}
(You may recall that \(du\) and \(dx\) are called differentials). This means we can replace \(2x \,dx\) with \(du\text{,}\) and \(2x \,dx\) is exactly what we have left in our integral. Then,
\begin{equation*}
\int 2x \cdot u^3 \,dx = \int u^3 \,du
\end{equation*}
This is a new integral in terms of \(u\) (only), which we can evaluate using the power rule. We have,
\begin{equation*}
= \frac{1}{4}u^4 + C
\end{equation*}
Finally, we substitute back \(u = x^2 + 1\text{,}\) to express our final answer in terms of the original variable \(x\text{,}\)
\begin{equation*}
= \frac{1}{4}(x^2 + 1)^4 + C
\end{equation*}
