Skip to main content

Section 6.2 Integration by Substitution

Previously, we saw how to integrate functions of the form \(f(ax + b)\) by integrating as normal and dividing by \(a\) (the reverse chain rule). Integration by substitution generalizes this idea to handle any composite function, not just linear ones.

Example 6.2.1. Substitution with a Power.

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*}

Example 6.2.2. Substitution with an Exponential.

Evaluate
\begin{equation*} \int 3x^2 e^{x^3} \,dx \end{equation*}
Solution.
Here, it turns out that letting \(u = x^3\) works well. This is because then, \(du = 3x^2 \,dx\text{,}\) which is exactly what we have left in our integral. Then, substituting,
\begin{align*} \int 3x^2 e^{x^3} \,dx \amp= \int e^u \,du \amp\amp \text{substituting $u = x^3$ and $du = 3x^2 \,dx$}\\ \amp= e^u + C\\ \amp= e^{x^3} + C \amp\amp \text{substituting back $u = x^3$} \end{align*}
In general, a good guideline is to let \(u\) be the inner function in a composition. For it to work, the derivative of the inner function must also be there in the integrand. This allows us to transform the integral into an easier integral.

Exercise Group 6.2.1. Exact Match Substitutions.

Evaluate each integral.

(e)

\(\int (x^2+x)^{10}(2x+1) \,dx\)
Hint.
\(u=x^2+x\)
Answer.
\(\frac{1}{11}(x^2+x)^{11}+C\)

Example 6.2.3. Substitution with a Logarithm.

Evaluate \(\int \frac{(\ln{x})^2}{x} \,dx\text{.}\)
Solution.
Notice that the inner function is \(\ln{x}\text{,}\) and its derivative is \(\frac{1}{x}\text{,}\) which is also in the integrand. Let \(u = \ln{x}\text{,}\) so \(du = \frac{1}{x} \,dx\text{.}\) Then,
\begin{align*} \int \frac{(\ln{x})^2}{x} \,dx \amp= \int u^2 \,du\\ \amp= \frac{1}{3}u^3 + C\\ \amp= \frac{1}{3}(\ln{x})^3 + C \amp\amp \text{substituting back $u = \ln{x}$} \end{align*}

Example 6.2.4. Substitution with a Trigonometric Power.

Evaluate \(\int \sin^2 x\cos x \,dx\text{.}\)
Solution.
Notice that the inner function is \(\sin x\) (recall that \(\sin^2{x}\) means \((\sin x)^2\)), and its derivative is \(\cos x\text{,}\) which is also in the integrand. Let \(u = \sin x\text{,}\) so \(du = \cos x \,dx\text{.}\) Then,
\begin{align*} \int \sin^2 x\cos x \,dx \amp= \int u^2 \,du\\ \amp= \frac{1}{3}u^3 + C\\ \amp= \frac{1}{3}\sin^3 x + C \amp\amp \text{substituting back $u = \sin x$} \end{align*}
Sometimes, the derivative of the inner function is not exactly there in the integrand, but it’s basically the same, except for a different number. In these cases, we can still use substitution.

Example 6.2.5. Adjusting for a Constant Factor.

Evaluate \(\int x^2 \cos{(x^3)} \,dx\text{.}\)
Solution.
Notice that the inner function is \(x^3\text{,}\) and its derivative is \(3x^2\text{,}\) and \(x^2\) is present in the integrand (but not a 3). Let \(u = x^3\text{,}\) so \(du = 3x^2 \,dx\text{.}\) We have \(x^2 \,dx\) left over in the integral, so we can solve for that,
\begin{gather*} du = 3x^2 \,dx\\ x^2 \,dx = \frac{1}{3} du \end{gather*}
Then,
\begin{align*} \int x^2 \cos{(x^3)} \,dx \amp= \int \cos{(u)} \cdot \frac{1}{3} \,du\\ \amp= \frac{1}{3} \int \cos{(u)} \,du\\ \amp= \frac{1}{3} \sin{(u)} + C\\ \amp= \frac{1}{3} \sin{(x^3)} + C \amp\amp \text{substituting back $u = x^3$} \end{align*}

Example 6.2.6. Adjusting with Multiplication.

Evaluate
\begin{equation*} \int \frac{6x}{(x^2+1)^2} \,dx \end{equation*}
Solution.
Notice that the inner function is \(x^2+1\text{,}\) and its derivative is \(2x\text{,}\) and \(6x\) is present in the integrand (which is almost \(2x\text{,}\) but with a 6 instead of a 2). Let \(u = x^2 + 1\text{,}\) so \(du = 2x \,dx\text{.}\) Then, to get \(6x \,dx\text{,}\) we can multiply both sides by 3,
\begin{align*} du \amp= 2x \,dx\\ 3 du \amp= 6x \,dx \end{align*}
Then,
\begin{align*} \int \frac{6x}{(x^2+1)^2} \,dx \amp= \int \frac{1}{u^2} \cdot 3 \,du\\ \amp= 3 \int u^{-2} \,du\\ \amp= 3 \brac{-u^{-1}} + C\\ \amp= -\frac{3}{u} + C\\ \amp= -\frac{3}{x^2+1} + C \amp\amp \text{substituting back $u = x^2 + 1$} \end{align*}

Example 6.2.7. Substitution Producing a Logarithm.

Evaluate \(\int \frac{2x}{x^2+4} \,dx\text{.}\)
Solution.
Here, there doesn’t seem to be an inner function. However, the derivative of the entire denominator \(x^2+4\) is \(2x\text{,}\) which is exactly what we have in the integrand. Let \(u = x^2 + 4\text{,}\) so \(du = 2x \,dx\text{.}\) Then,
\begin{align*} \int \frac{2x}{x^2+4} \,dx \amp= \int \frac{1}{u} \,du\\ \amp= \ln|u| + C\\ \amp= \ln|x^2+4| + C \amp\amp \text{substituting back $u = x^2 + 4$} \end{align*}
For the final answer, we can drop the absolute value, because \(x^2 + 4\) is always positive. Then,
\begin{equation*} \int \frac{2x}{x^2+4} \,dx = \ln(x^2+4) + C \end{equation*}

Example 6.2.8. Substitution with a Nested Logarithm.

Evaluate
\begin{equation*} \int \frac{1}{x \ln{x}} \,dx \end{equation*}
Solution.
Here, there again doesn’t seem to be an inner function. However, in the denominator there is \(\ln{x}\text{,}\) and its derivative is \(\frac{1}{x}\text{,}\) which is also in the integrand. Let \(u = \ln{x}\text{,}\) so \(du = \frac{1}{x} \,dx\text{.}\) Then,
\begin{align*} \int \frac{1}{x \ln{x}} \,dx \amp= \int \underbrace{\frac{1}{\ln{x}}}_{u} \cdot \underbrace{\frac{1}{x} \,dx}_{du}\\ \amp= \int \frac{1}{u} \,du\\ \amp= \ln|u| + C\\ \amp= \ln|\ln{x}| + C \amp\amp \text{substituting back $u = \ln{x}$} \end{align*}
Sometimes, after performing a substitution, there is still \(x\) left in the integrand. In some of these cases, we can substitute it as well.

Example 6.2.9. Substitution with Remaining x.

Evaluate \(\int x\sqrt{x+2} \,dx\text{.}\)
Solution.
The inner function is \(x+2\text{,}\) so let \(u = x + 2\text{,}\) so \(du = dx\text{.}\)
\begin{equation*} \int x\sqrt{x+2} \,dx = \int x \cdot \sqrt{u} \,du \quad \text{substituting $u = x + 2$ and $du = dx$} \end{equation*}
After substituting, there is still an \(x\text{,}\) that isn’t captured by the \(du\text{.}\) However, from \(u = x + 2\text{,}\) we can isolate \(x\text{,}\) to get \(x = u - 2\text{.}\) Then, we can substitute that as well, to get it entirely in terms of \(u\text{,}\)
\begin{align*} \amp= \int (u - 2)\sqrt{u} \,du\\ \amp= \int (u^{3/2} - 2u^{1/2}) \,du \amp\amp \text{expanding}\\ \amp= \frac{2}{5}u^{5/2} - 2 \cdot \frac{2}{3}u^{3/2} + C\\ \amp= \frac{2}{5}(x+2)^{5/2} - \frac{4}{3}(x+2)^{3/2} + C \amp\amp \text{substituting back $u = x+2$} \end{align*}

Example 6.2.10. Substitution with Solving for x.

Evaluate \(\int \frac{x^2}{(x-5)^3} \,dx\text{.}\)
Solution.
Let \(u = x - 5\text{,}\) so \(du = dx\text{,}\)
\begin{equation*} = \int \frac{x^2}{u^3} \,du \quad \text{substituting $u = x - 5$ and $du = dx$} \end{equation*}
We need to replace \(x^2\text{,}\) using \(u=x-5\) to isolate for \(x\) to get \(x = u + 5\text{.}\) Substituting,
\begin{align*} \amp= \int \frac{(u+5)^2}{u^3} \,du\\ \amp= \int \frac{u^2 + 10u + 25}{u^3} \,du\\ \amp= \int \brac{u^{-1} + 10u^{-2} + 25u^{-3}} \,du\\ \amp= \ln|u| - \frac{10}{u} - \frac{25}{2u^2} + C\\ \amp= \ln|x-5| - \frac{10}{x-5} - \frac{25}{2(x-5)^2} + C \end{align*}

Exercise Group 6.2.2. Solve-for-x Substitutions.

Evaluate each integral.

(a)

\(\int \frac{x}{\sqrt{x+1}} \,dx\)
Hint.
\(u=x+1\)
Answer.
\(\frac{2}{3}(x+1)^{3/2}-2(x+1)^{1/2}+C\)

(b)

\(\int x \sqrt{x-2} \,dx\)
Hint.
\(u=x-2\)
Answer.
\(\frac{2}{5}(x-2)^{5/2}+\frac{4}{3}(x-2)^{3/2}+C\)

(c)

\(\int x(x-1)^{10} \,dx\)
Hint.
\(u=x-1\)
Answer.
\(\frac{1}{12}(x-1)^{12}+\frac{1}{11}(x-1)^{11}+C\)

(d)

\(\int x\sqrt{4-x} \,dx\)
Hint.
\(u=4-x\)
Answer.
\(-\frac{2}{5}(4-x)^{5/2}+\frac{8}{3}(4-x)^{3/2}+C\)

(e)

\(\int (x+5)(x-5)^{1/3} \,dx\)
Hint.
\(u=x-5\)
Answer.
\(\frac{3}{7}(x-5)^{7/3}+\frac{15}{2}(x-5)^{4/3}+C\)

(f)

\(\int x\sqrt{2x+1}\,dx\)
Hint.
\(u=2x+1\)
Answer.
\(\frac{1}{10}(2x+1)^{5/2}-\frac{1}{6}(2x+1)^{3/2}+C\)

(g)

\(\int \frac{4x}{\sqrt{2x+3}} \,dx\)
Hint.
\(u=2x+3\)
Answer.
\(\frac{2}{3}(2x+3)^{3/2}-3\sqrt{2x+3}+C\)

(h)

\(\int x(2x+5)^8 \,dx\)
Hint.
\(u=2x+5\)
Answer.
\(\frac{1}{40}(2x+5)^{10}-\frac{5}{36}(2x+5)^9+C\)

Subsection 6.2.1 Summary of Integration by Substitution

In summary, to use integration by substitution:
  1. Choose a substitution \(u = g(x)\text{.}\)
  2. Take the derivative to get \(du = g'(x) \,dx\text{.}\)
  3. Substitute \(u = g(x)\) and \(du = g'(x) \,dx\text{,}\) to get an integral in terms of the new variable \(u\) only.
  4. Evaluate the integral, using antiderivative rules.
  5. Substitute back \(u = g(x)\text{,}\) to express the final answer in terms of the original variable \(x\text{.}\) Don’t forget to add \(+C\) for the constant of integration.
The most challenging part of integration by substitution is choosing the right substitution \(u\text{.}\) It is somewhat an art, because there isn’t one straightforward rule that works in every scenario. Sometimes, you will choose the wrong \(u\text{,}\) and that’s okay, because you can always try a different substitution if the first one doesn’t work out.

Remark 6.2.11.

Your final answer should always be in terms of \(x\text{,}\) not \(u\text{.}\) The variable \(u\) is just a temporary variable to help you evaluate the integral, and shouldn’t be part of the final answer. A common mistake is forgetting to substitute back to \(x\) at the end, and leaving the answer in terms of \(u\text{.}\)

Subsection 6.2.2 Principles for Choosing \(u\)

Here are some guidelines for choosing the right \(u\text{.}\)
  1. Look for the “inner function”, and let \(u\) be that inner function. Here are some common patterns:
    • Expression inside a power If you see \((\text{expression})^n\text{,}\) try \(u = \text{expression}\text{.}\)
    • Inside a function If you see \(\sin(\text{expression})\text{,}\) \(e^{\text{expression}}\text{,}\) or \(\ln(\text{expression})\text{,}\) try \(u = \text{expression}\text{.}\)
    • Entire denominator If you see \(\frac{\text{something}}{\text{expression}}\text{,}\) try \(u = \text{expression}\text{.}\)
    • Under a root If you see \(\sqrt{\text{expression}}\text{,}\) try \(u = \text{expression}\text{.}\)
    In general, for a composition \(f(g(x))\text{,}\) try \(u = g(x)\text{.}\)
  2. When in doubt, try the most complicated part. If no inside is immediately obvious, try letting \(u\) be the most “complicated” piece of the integrand.
  3. If there is a function and its derivative, try letting \(u\) be the function. For example,
    • If you see \(\sin x\) and \(\cos x\text{,}\) try \(u = \sin x\text{.}\)
    • If you see \(e^x\) and \(e^x\text{,}\) try \(u = e^x\text{.}\)
    • If you see \(\ln x\) and \(\frac{1}{x}\text{,}\) try \(u = \ln x\text{.}\)
  4. If \(x\) still remains after substituting, solve for \(x\) in terms of \(u\) and substitute that as well. This works especially well when \(u\) is a linear function of \(x\text{.}\)

Remark 6.2.12.

Sometimes, especially for more complicated integrals, multiple choices of \(u\) can lead to different-looking but equivalent answers, which are both corect. For example, \(\int \csc^2 2x\cot 2x \,dx\) can be solved with \(u = \cot 2x\) or \(u = \csc 2x\text{,}\) yielding \(-\frac{1}{4}\cot^2 2x + C\) and \(-\frac{1}{4}\csc^2 2x + C\text{,}\) respectively. These differ by a constant, so both are correct.

Subsection 6.2.3 Examples

Exercise Group 6.2.3. Straightforward Substitutions.

Evaluate each integral.
(i)
\(\int \frac{2x^2}{\sqrt{1-4x^3}} \,dx\)
Hint.
\(u=1-4x^3\)
Answer.
\(-\frac{1}{3}\sqrt{1-4x^3}+C\)

Exercise Group 6.2.4. Compositions.

Evaluate each integral.
(a)
\(\int \frac{\cos(\sqrt{x})}{\sqrt{x}} \,dx\)
Hint.
\(u=\sqrt{x}\)
Answer.
\(2\sin(\sqrt{x})+C\)
(c)
\(\int \sin x\sqrt{1+\cos x}\,dx\)
Hint.
\(u=1+\cos x\)
Answer.
\(-\frac{2}{3}(1+\cos x)^{3/2}+C\)
(g)
\(\int \frac{\sec^2\brac{\frac{1}{x}}}{x^2} \,dx\)
Hint.
\(u=\frac{1}{x}\)
Answer.
\(-\tan\brac{\frac{1}{x}}+C\)
(j)
\(\int (3x+2)(3x^2+4x)^4 \,dx\)
Hint.
\(u=3x^2+4x\)
Answer.
\(\frac{1}{10}(3x^2+4x)^5+C\)
(m)
\(\int \frac{(1+\sqrt{x})^{1/3}}{\sqrt{x}} \,dx\)
Hint.
\(u=1+\sqrt{x}\)
Answer.
\(\frac{3}{2}(1+\sqrt{x})^{4/3}+C\)
(n)
\(\int 12(x^4+4x^2+1)^2(x^3+2x) \,dx\)
Hint.
\(u=x^4+4x^2+1\)
Answer.
\((x^4+4x^2+1)^3+C\)

Exercise Group 6.2.5. Advanced Compositions.

Evaluate each integral.
(a)
\(\int \frac{\sin(\sqrt{x})}{\sqrt{x}} \,dx\)
Hint.
\(u=\sqrt{x}\)
Answer.
\(-2\cos(\sqrt{x})+C\)
(c)
\(\int e^x \brac{2 + 3e^x}^{3/2} \,dx\)
Hint.
\(u=2+3e^x\)
Answer.
\(\frac{2}{15}(2+3e^x)^{5/2}+C\)
(d)
\(\int \frac{\brac{\sqrt{x}+1}^4}{2\sqrt{x}} \,dx\)
Hint.
\(u=\sqrt{x}+1\)
Answer.
\(\frac{1}{5}\brac{\sqrt{x}+1}^5+C\)
(f)
\(\int \frac{\cos\brac{\frac{\pi}{x}}}{x^2} \,dx\)
Hint.
\(u=\frac{\pi}{x}\)
Answer.
\(-\frac{1}{\pi}\sin\brac{\frac{\pi}{x}}+C\)
(i)
\(\int (x^6-3x^2)^4(x^5-x) \,dx\)
Hint.
\(u=x^6-3x^2\)
Answer.
\(\frac{1}{30}(x^6-3x^2)^5+C\)
(j)
\(\int \brac{x^{3/2}+8}^5\sqrt{x} \,dx\)
Hint.
\(u=x^{3/2}+8\)
Answer.
\(\frac{1}{9}\brac{x^{3/2}+8}^6+C\)
(k)
\(\int \frac{e^{2x}}{e^{2x}+1} \,dx\)
Hint.
\(u=e^{2x}+1\)
Answer.
\(\frac{1}{2}\ln(e^{2x}+1)+C\)
(l)
\(\int (1-\cos\brac{\frac{x}{2}})^2\sin\brac{\frac{x}{2}} \,dx\)
Hint.
\(u=1-\cos\brac{\frac{x}{2}}\)
Answer.
\(\frac{2}{3}\brac{1-\cos\brac{\frac{x}{2}}}^3+C\)
(m)
\(\int \frac{1}{\sqrt{x}(1+\sqrt{x})^2} \,dx\)
Hint.
\(u=1+\sqrt{x}\)
Answer.
\(-\frac{2}{1+\sqrt{x}}+C\)
(n)
\(\int \frac{2^x}{2^x+3} \,dx\)
Hint.
\(u=2^x+3\)
Answer.
\(\frac{1}{\ln 2}\ln(2^x+3)+C\)
(o)
\(\int 6x^2 \cdot 4^{x^3} \,dx\)
Hint.
\(u=x^3\)
Answer.
\(\frac{2}{\ln 4} \cdot 4^{x^3}+C\)

Exercise Group 6.2.6. Challenging Substitutions.

Evaluate each integral.
(a)
\(\int x^{1/2}\sin(x^{3/2}+1) \,dx\)
Hint.
\(u=x^{3/2}+1\)
Answer.
\(-\frac{2}{3}\cos(x^{3/2}+1)+C\)
(b)
\(\int \frac{x}{(2x-1)^{2/3}} \,dx\)
Hint.
\(u=2x-1\)
Answer.
\(\frac{3}{16}(2x-1)^{4/3}+\frac{3}{4}(2x-1)^{1/3}+C\)
(c)
\(\int \frac{1}{x^2}\cos\brac{\frac{1}{x}-1} \,dx\)
Hint.
\(u=\frac{1}{x}-1\)
Answer.
\(-\sin\brac{\frac{1}{x}-1}+C\)
(d)
\(\int \frac{1}{\sqrt{x}}\cos(\sqrt{x}+3) \,dx\)
Hint.
\(u=\sqrt{x}+3\)
Answer.
\(2\sin(\sqrt{x}+3)+C\)
(e)
\(\int x^2\brac{\frac{x^3}{18}-1}^5 \,dx\)
Hint.
\(u=\frac{x^3}{18}-1\)
Answer.
\(\brac{\frac{x^3}{18}-1}^6+C\)
(f)
\(\int x^2\sqrt{2+x} \,dx\)
Hint.
\(u=x+2\)
Answer.
\(\frac{2}{7}(x+2)^{7/2}-\frac{8}{5}(x+2)^{5/2}+\frac{8}{3}(x+2)^{3/2}+C\)
(g)
\(\int x^4\brac{7-\frac{x^5}{10}}^3 \,dx\)
Hint.
\(u=7-\frac{x^5}{10}\)
Answer.
\(-\frac{1}{2}\brac{7-\frac{x^5}{10}}^4+C\)
(h)
\(\int \frac{1}{x^2}\sin\brac{\frac{1}{x}}\cos\brac{\frac{1}{x}} \,dx\)
Hint.
\(u=\frac{1}{x}\)
Answer.
\(-\frac{1}{2}\sin^2\brac{\frac{1}{x}}+C\)
(j)
\(\int \frac{a+bx^2}{\sqrt{3ax+bx^3}} \,dx\)
Hint.
\(u=3ax+bx^3\)
Answer.
\(\frac{2}{3}\sqrt{3ax+bx^3}+C\)
(k)
\(\int (x+1)^2(1-x)^5 \,dx\)
Hint.
\(u=1-x\)
Answer.
\(-\frac{2}{3}(1-x)^6+\frac{4}{7}(1-x)^7-\frac{1}{8}(1-x)^8+C\)
(l)
\(\int x^3\sqrt{x^2+1} \,dx\)
Hint.
\(u=x^2+1\)
Answer.
\(\frac{1}{5}(x^2+1)^{5/2}-\frac{1}{3}(x^2+1)^{3/2}+C\)
(m)
\(\int \frac{x^3}{\sqrt{x^2+1}} \,dx\)
Hint.
\(u=x^2+1\)
Answer.
\(\frac{1}{3}(x^2+1)^{3/2}-(x^2+1)^{1/2}+C\)
(o)
\(\int 3x^5\sqrt{x^3+1} \,dx\)
Hint.
\(u=x^3+1\)
Answer.
\(\frac{2}{5}(x^3+1)^{5/2}-\frac{2}{3}(x^3+1)^{3/2}+C\)
(p)
\(\int \frac{x^7}{\sqrt{1-x^4}} \,dx\)
Hint.
\(u=1-x^4\)
Answer.
\(-\frac{2}{5}(1-x^4)^{5/2}+\frac{2}{3}(1-x^4)^{3/2}-2(1-x^4)^{1/2}+C\)

Subsection 6.2.4 Integration by Substitution in General

Now that we have seen how substitution works in practice, let’s analyze why. In fact, integration by substitution is the integral version of the chain rule (for derivatives). Recall that the chain rule says that the derivative of a composite function \(f(g(x))\) is,
\begin{equation*} \frac{d}{dx} \brac{f(g(x))} = f'(g(x)) g'(x) \end{equation*}
Equivalently, this says that \(f(g(x))\) is an antiderivative of \(f'(g(x)) g'(x)\text{,}\) or in other words,
\begin{equation*} \int f'(g(x)) g'(x) \,dx = f(g(x)) + C \end{equation*}
This is what we did with substitution. We let \(u=g(x)\text{,}\) so \(du = g'(x) \,dx\text{.}\) Then,
\begin{align*} \int f'(g(x)) g'(x) \,dx \amp= \int f'(u) \, du \amp\amp \text{substituting $u = g(x)$ and $du = g'(x)\,dx$}\\ \amp= f(u) + C \amp\amp \text{taking the antiderivative of $f'(u)$ with respect to $u$}\\ \amp= f(g(x)) + C \amp\amp \text{substituting back $u = g(x)$} \end{align*}

Remark 6.2.13.

Integration by substitution is more of a tool for determining indefinite integrals, rather than a theorem. After practicing a lot of substitution, you could do the simpler ones just mentally by inspection (in other words, educated guessing), without explicitly substituting \(u = g(x)\text{,}\) converting everything to \(u\text{,}\) integrating in \(u\text{,}\) and converting back. For example,
\begin{equation*} \int 2x (x^2 - 1)^2 \,dx \end{equation*}
can be seen to be (after some practice with this technique),
\begin{equation*} \int 2x (x^2 - 1)^2 \,dx = \frac{1}{3}(x^2 - 1)^3 + C \end{equation*}
Because the derivative is \(2x\) which is exactly what we have, so it’s like \(\int u^2 \,du = \frac{1}{3} u^3+C\text{.}\) However, you should probably write out the steps to show your work.

Remark 6.2.14.

Integration by substitution is very sensitive to changes in the integrand, in that, small changes in the integrand can transform a simple problem that is able to be evaluated using integration by substitution, to an integral which is extremely difficult or even impossible. For example,
\begin{equation*} \int 2x \sin{(x^2)} \,dx \end{equation*}
is a simple integral that can be evaluated using substitution (using \(u = x^2\)), but,
\begin{equation*} \int \sin{(x^2)} \,dx \end{equation*}
is a very difficult integral, that actually can’t be evaluated using any technique that we learn in this course. This is because the derivative of \(x^2\) is \(2x\text{,}\) which is exactly what we have in the first integral, but not in the second integral. In general, all integration techniques are very sensitive to changes in the integrand.