For full functionality of this site it is necessary to enable JavaScript. Here are the instructions how to enable JavaScript in your web browser.

Section 3.4: Substitution

We don't have many integration rules. For quite a few of the problems we see, the rules won't directly apply; we'll have to do some algebraic manipulation first. In practice, it is much harder to write down the antiderivative of a function than it is to find a derivative. (In fact, it's very easy to write a function that doesn't have any antiderivative you can find with algebra, although proving that it doesn't have an antiderivative is much more difficult.)

The Substitution Method (also called \( u \)-Substitution) is one way of algebraically manipulating an integrand so that the rules apply. This is a way to unwind or undo the Chain Rule for derivatives. When you find the derivative of a function using the Chain Rule, you end up with a product of something like the original function times a derivative. We can reverse this to write an integral: \[ \frac{d}{dx} f\left( g(x) \right) = f'\left( g(x) \right)g'(x) \] so \[ f\left( g(x) \right) =\int f'\left( g(x) \right)g'(x)\, dx\]

With substitution, we will substitute \( u=g(x) \) (hence the name \( u \)-substitution). This means \( \frac{du}{dx}=g'(x) \), so \( du=g'(x)dx \). Making these substitutions, \( \int f'\left( g(x) \right)g'(x)\, dx \) becomes \( \int f'(u)\, du \), which will probably be easier to integrate.

Try \( u \)-Substitution when you see a product in your integral, especially if you recognize one factor as the derivative of some part of the other factor.

The \( u \)-Substitution Method for Antiderivatives

The goal is to turn \( \int f\left( g(x) \right)\, dx \) into \( \int f(u)\, du \), where \(f(u)\) is much less messy than \(f\left(g(x)\right)\).

  1. Let \(u\) be some part of the integrand. A good first choice is one step inside the messiest bit.
  2. Compute \( du=\frac{du}{dx}\,dx \).
  3. Translate all your \(x\)'s into \(u\)'s everywhere in the integral, including the \(dx\). When you're done, you should have a new integral that is entirely in \(u\). If you have any \(x\)'s left, then that's an indication that the substitution didn't work or isn't complete; you may need to go back to step 1 and try a different choice for \(u\).
  4. Integrate the new \(u\)-integral, if possible. If you still can't integrate it, go back to step 1 and try a different choice for \(u\).
  5. Finally, substitute back \(x\)'s for \(u\)'s everywhere in your answer.

Example 1

Evaluate \( \displaystyle \int \frac{x}{\sqrt{4-x^2}}\, dx \).

This integrand is more complicated than anything in our list of basic integral formulas, so we'll have to try something else. The only tool we have is substitution, so let's try that!

  1. Let \(u\) be some part of the integrand. A good first choice is one step inside the messiest bit:

    Let \( u=4-x^2 \).

  2. Compute \( du=\frac{du}{dx}\,dx \):

    \( du=-2x\, dx \). There is \(x\, dx\) in the integrand, so that’s a good sign; that will be \(-\frac{1}{2}\,du\).

  3. Translate all your \(x\)'s into \(u\)'s everywhere in the integral, including the \(dx\):

    \[ \begin{align*} \int\frac{x}{\sqrt{4-x^2}}\, dx & = \int\frac{1}{\sqrt{4-x^2}}(x\, dx) \\ & = \int\frac{1}{\sqrt{u}}\left(-\frac{1}{2}du\right) \\ & = -\frac{1}{2}\int\frac{1}{\sqrt{u}}\, du \\ & = -\frac{1}{2}\int u^{-1/2}\, du \end{align*} \]

    Alternatively, we could have solved for dx and substituted that and simplified: \( dx=\frac{du}{-2x} \), so \[ \begin{align*} \int\frac{x}{\sqrt{4-x^2}}\, dx & = \int\frac{x}{\sqrt{u}}\left(\frac{du}{-2x}\right) \\ & = \int\frac{1}{\sqrt{u}}\left(-\frac{1}{2}du\right) \\ & = -\frac{1}{2}\int\frac{1}{\sqrt{u}}\, du \\ & = -\frac{1}{2}\int u^{-1/2}\, du \end{align*} \]

  4. Integrate the new \(u\)-integral, if possible:

    \[ -\frac{1}{2}\int u^{-1/2}\, du = -\frac{1}{2}\frac{u^{1/2}}{1/2}+C=-u^{1/2}+C \]

  5. Finally, substitute back \(x\)'s for \(u\)'s everywhere in the answer:

    Undoing our \( u=4-x^2 \) substitution yields \[ -u^{1/2}+C = -\sqrt{4-x^2}+C. \]

Thus we have found \[ \int\frac{x}{\sqrt{4-x^2}}\, dx= -\sqrt{4-x^2}+C \]

How would we check this? By differentiating: \[ \begin{align*} \frac{d}{dx}\left(-\sqrt{4-x^2}+C\right) & = \frac{d}{dx}\left(-\left(4-x^2\right)^{1/2}+C\right) \\ & = -\frac{1}{2}\left(4-x^2\right)^{-1/2}(-2x) \\ & = x\left(4-x^2\right)^{-1/2} \\ & = \frac{x}{\sqrt{4-x^2}} \end{align*} \]

Example 2

Evaluate \( \displaystyle \int\frac{e^x\, dx}{\left(e^x+15\right)^3} \)

This integral is not in our list of building blocks. But notice that the derivative of \( e^x+15 \) (which we see in the denominator) is just \( e^x \) (which we see in the numerator), so substitution will be a good choice for this.

Let \( u=e^x+15 \). Then \( du=e^x\, dx \), and this integral becomes \( \int\frac{du}{u^3} = \int u^{-3}\, du \).

Luckily, that is on our list of building block formulas: \( \int\frac{du}{u^3} = \frac{u^{-2}}{-2}+C = -\frac{1}{2u^2}+C \).

Finally, translating back: \[ \int\frac{e^x\, dx}{\left(e^x+15\right)^3} = -\frac{1}{2\left(e^x+15\right)^2} +C. \]

Example 3

Evaluate

  1. \( \displaystyle \int\frac{x^2}{x^3+5}\, dx \)
  2. \( \displaystyle \int\frac{x^3+5}{x^2}\, dx \)
  1. This is not a basic integral, but the composition is less obvious. Here, we can treat the denominator as the inside of the \( \frac{1}{x} \) function.

    Let \( u=x^3+5 \). Then \( du=3x^2\, dx \). Solving for \(dx\), \( dx=\frac{du}{3x^2} \). Substituting, \[ \int\frac{x^2}{x^3+5}\, dx = \int\frac{x^2}{u}\frac{du}{3x^2} = \int \frac{1}{u}\frac{du}{3} = \frac{1}{3}\int \frac{1}{u}\, du \]

    Using our basic formulas, \[ \frac{1}{3}\int \frac{1}{u}\, du = \frac{1}{3}\ln|u| +C. \]

    Undoing the substitution, \[ \int\frac{x^2}{x^3+5}\, dx = \frac{1}{3}\ln\left|x^3+5\right| +C. \]

  2. It is tempting to start this problem the same way we did the last, but if we try it will not work, since the numerator of this fraction is not the derivative of the denominator. Instead, we need to try a different approach. For this problem, we can use some basic algebra: \[ \begin{align*} \int\frac{x^3+5}{x^2}\, dx & = \int\left(\frac{x^3}{x^2}+\frac{5}{x^2}\right)\, dx \\ & = \int\left(x+5x^{-2}\right)\, dx. \end{align*} \]

    We can integrate this using our basic rules, without needing substitution: \[ \begin{align*} \int\left(x+5x^{-2}\right)\, dx & = \frac{x^2}{2}+5\frac{x^{-1}}{-1}+C \\ & = \frac{1}{2}x^2-\frac{5}{x}+C. \end{align*} \]

Substitution and Definite Integrals

When you use substitution to help evaluate a definite integral, you have a choice for how to handle the limits of integration. You can do either of these, whichever seems better to you. The important thing to remember is that the original limits of integration were values of the original variable (say, \(x\)), not values of the new variable (say, \(u\)).

  1. You can solve the antiderivative as a side problem, translating back to \(x\)’s, and then use the antiderivative with the original limits of integration.

    Or…

  2. You can substitute for the limits of integration at the same time as you’re substituting for everything inside the integral, and then skip the translate back into \(x\) step.

    If the original integral had endpoints \(x =a\) and \(x =b\), and we make the substitution \(u = g(x )\) and \(du = g'(x )\, dx\), then the new integral will have endpoints \(u= g(a)\) and \(u=g(b)\) and \[ \int_{x=a}^{x=b}\text{(original integrand)}\, dx\] becomes \[ \int_{u=g(a)}^{u=g(b)} \text{(new integrand)}\, du.\]

Method 1 seems more straightforward for most students, but it can involve some messy algebra. Method 2 is often neater and usually involves fewer steps.

Example 4

Evaluate \( \int\limits_0^1 (3x-1)^4\, dx \).

We'll need substitution to find an antiderivative, so we'll need to handle the limits of integration carefully. Let's solve this example both ways.

  1. Doing the antiderivative as a side problem:

    Step One – find the antiderivative, using substitution:

    Let \( u=3x-1 \). Then \( du=3\, dx \) and \[ \int(3x-1)^4\, dx = \int u^4\left(\frac{1}{3}\, du\right) = \frac{1}{3}\frac{u^5}{5}+C. \]

    Translating back to x: \[ \frac{1}{3}\frac{u^5}{5}+C = \frac{(3x-1)^5}{15}+C. \]

    Step Two – evaluate the definite integral: \[ \int\limits_0^1 (3x-1)^4\, dx = \left. \frac{(3x-1)^5}{15}\right]_0^1 = \frac{\left(3(1)-1\right)^5}{15} - \frac{\left(3(0)-1\right)^5}{15} = \frac{32}{15}-\frac{-1}{15}=\frac{33}{15}. \]

  2. Substituting for the limits of integration:

    Let \( u=3x-1 \). Then \( du=3\, dx \) and, substituting for the limits of integration, when \(x = 0\), \(u = -1\), and when \(x = 1\), \(u = 2\).

    So, \[ \begin{align*} \int_{x=0}^{x=1} (3x-1)^4\, dx & = \int_{u=-1}^{u=2} u^4\left(\frac{1}{3}\, du\right) \\ & = \left.\frac{u^5}{15}\right]_{u=-1}^{u=2} \\ & = \frac{(2)^5}{15}-\frac{(-1)^5}{15} \\ & = \frac{32}{15}-\frac{-1}{15} \\ & = \frac{33}{15} \end{align*} \]

Example 5

Evaluate \( \int\limits_2^{10} \frac{\left(\ln(x)\right)^6}{x}\, dx \).

I can see the derivative of \( \ln(x) \) in the integrand, so I can tell that substitution is a good choice.

Let \( u=\ln(x) \). Then \( du=\frac{1}{x}\, dx \). When \( x=2 \), \( u=\ln(2) \). When \( x=10 \), \( u=\ln(10) \). So the new definite integral is \[ \begin{align*} \int\limits_{x=2}^{x=10}\frac{\left(\ln(x)\right)^6}{x}\, dx & = \int\limits_{u=\ln(2)}^{u=\ln(10)} u^6\, du \\ & = \left.\frac{u^7}{7}\right]_{u=\ln(2)}^{u=\ln(10)} \\ & = \frac{1}{7}\left(\left(\ln(10)\right)^7-\left(\ln(2)\right)^7\right) \\ \approx & 49.01. \end{align*} \]