\begin{equation*}
\int 2x (x^2+1)^4 dx
\end{equation*}
This looks like a composition, with an inside function \(x^2 + 1\text{.}\) I’ll try a substitution \(u = x^2 +1\) to see if it makes the integral more reasonable. I need to change the differential term; here, \(u = x^2 +1\text{,}\) so \(du = (2x) dx\text{.}\) If I regroup the terms in the original integral, I can replace \(2x dx\) with \(du\text{.}\) This lets me replace all of the \(x\) variables.
\begin{equation*}
\int (x^2+1)^4 (2x)dx \mapsto \int u^4 du
\end{equation*}
Then can find the anti-derivative by reversing the power rule.
\begin{equation*}
\int u^4 du = \frac{u^5}{5} + c
\end{equation*}
After I find an antiderivative in the new variable \(u\text{,}\) I need to return to the original variable by undoing the substitution. I simply replace \(u\) with \(x^2+1\text{.}\) This gives me an antiderivative for the original function in the original variable.
\begin{equation*}
\int 2x (x^2+1)^4 dx = \int u^4 du = \frac{u^5}{5} + c =
\frac{(x^2+1)^5}{5} + c
\end{equation*}