# 4.7: Integration by Substitution

**At Grade**Created by: CK-12

## Learning Objectives

- Integrate composite functions
- Use change of variables to evaluate definite integrals
- Use substitution to compute definite integrals

## Introduction

In this lesson we will expand our methods for evaluating definite integrals. We first look at a couple of situations where finding antiderivatives requires special methods. These involve finding antiderivatives of composite functions and finding antiderivatives of products of functions.

*Antiderivatives of Composites*

Suppose we needed to compute the following integral:

\begin{align*} \int 3x^2 \sqrt{1 + x^3} dx.\end{align*}

Our rules of integration are of no help here. We note that the integrand is of the form \begin{align*}f(g(x)) * g'(x)\end{align*} where \begin{align*}g(x) = 1 + x^3\end{align*} and \begin{align*}f(x) = \sqrt{x}.\end{align*}

Since we are looking for an antiderivative \begin{align*}F\end{align*} of \begin{align*}f,\end{align*} and we know that \begin{align*}F' = f,\end{align*} we can re-write our integral as

\begin{align*} \int \sqrt{1 + x^3} \cdot 3x^2 dx = \frac{2} {3} (\sqrt{1 + x^3})^{\frac{3} {2}} + C.\end{align*}

In practice, we use the following substitution scheme to verify that we can integrate in this way:

- 1. Let \begin{align*}u = 1 + x^3.\end{align*}
- 2. Differentiate both sides so \begin{align*}du = 3 x^2 dx.\end{align*}
- 3. Change the original integral in \begin{align*}x\end{align*} to an integral in \begin{align*}u\end{align*}:
- \begin{align*} \int \sqrt{1 + x^3} \cdot 3x^2 dx = \int \sqrt{u} du,\end{align*} where \begin{align*}u = 1 + x^3\end{align*} and \begin{align*} du = 3 x^2 dx.\end{align*}
- 4. Integrate with respect to \begin{align*}u\end{align*}:

\begin{align*} \int \sqrt{u} du = \int u^{\frac{1}{2}} du = \frac{2} {3} u^{\frac{3} {2}} + C.\end{align*}

- 5. Change the answer back to \begin{align*}x\end{align*}:

\begin{align*} \int \sqrt{u} du = \frac{2} {3} u^{\frac{3} {2}} + C = \frac{2} {3} (\sqrt{1 + x^3})^{\frac{3} {2}} + C.\end{align*}

While this method of substitution is a very powerful method for solving a variety of problems, we will find that we sometimes will need to modify the method slightly to address problems, as in the following example.

**Example 1:**

Compute the following indefinite integral:

\begin{align*} \int x^2 e^{x^3} dx.\end{align*}

**Solution:**

We note that the derivative of \begin{align*}x^3\end{align*} is \begin{align*}3 x^2\end{align*}; hence, the current problem is not of the form \begin{align*}\int F'(g(x)) \cdot g'(x)dx.\end{align*} But we notice that the derivative is off only by a constant of \begin{align*}3\end{align*} and we know that constants are easy to deal with when differentiating and integrating. Hence

Let \begin{align*}u = x^3.\end{align*}

Then \begin{align*}du = 3 x^2 dx.\end{align*}

Then \begin{align*} \frac{1} {3} du = x^2 dx.\end{align*} and we are ready to change the original integral from \begin{align*}x\end{align*} to an integral in \begin{align*}u\end{align*} and integrate:

\begin{align*} \int x^2 e^{x^3} dx = \int e^u \left (\frac{1} {3} du \right) = \frac{1} {3} \int e^u du = \frac{1} {3} e^u + C.\end{align*}

Changing back to \begin{align*}x\end{align*}, we have

\begin{align*} \int x^2 e^{x^3} dx = \frac{1} {3} e^{x^3} + C.\end{align*}

We can also use this substitution method to evaluate definite integrals. If we attach limits of integration to our first example, we could have a problem such as

\begin{align*} \int_1^4 \sqrt{1 + x^3} \cdot 3x^2 dx.\end{align*}

The method still works. However, we have a choice to make once we are ready to use the Fundamental Theorem to evaluate the integral.

Recall that we found that \begin{align*} \int \sqrt{1 + x^3} \cdot 3x^2 dx = \int \sqrt{u} du\end{align*} for the indefinite integral. At this point, we could evaluate the integral by changing the answer back to \begin{align*}x\end{align*} or we could evaluate the integral in \begin{align*}u.\end{align*} But we need to be careful. Since the original limits of integration were in \begin{align*}x\end{align*}, we need to change the limits of integration for the equivalent integral in \begin{align*}u.\end{align*} Hence,

\begin{align*} \int_1^4 \sqrt{1 + x^3} \cdot 3x^2 dx = \int_{u = 2}^{65} \sqrt{u du},\end{align*} where \begin{align*}u = 1 + x^3\end{align*}

\begin{align*}\int_1^4 \sqrt{1 + x^3} \cdot 3x^2 dx = \int_{u = 2}^{65} \sqrt{u du} = \frac{2} {3} u^{\frac{3} {2}} \bigg |_{u = 2}^{u = 65} = \frac{2} {3} (\sqrt{65^3} - \sqrt{8}).\end{align*}

*Integrating Products of Functions*

We are not able to state a rule for integrating products of functions, \begin{align*} \int f(x) g(x) dx\end{align*} but we can get a relationship that is almost as effective. Recall how we differentiated a product of functions:

\begin{align*} \frac{d} {dx} f(x) g(x) = f(x) g'(x) + g(x) f'(x).\end{align*}

So by integrating both sides we get

\begin{align*} \int [f(x) g'(x) + g(x) f'(x)] dx = f(x) g(x),\end{align*} or

\begin{align*}\int f(x) g'(x) dx = f(x) g(x) - \int g(x) f'(x).\end{align*}

In order to remember the formula, we usually write it as

\begin{align*} \int u dv = uv - \int v du.\end{align*}

We refer to this method as integration by parts. The following example illustrates its use.

**Example 2:**

Use integration by parts method to compute

\begin{align*} \int x e^x dx.\end{align*}

**Solution:**

We note that our other substitution method is not applicable here. But our integration by parts method will enable us to reduce the integral down to one that we can easily evaluate.

Let \begin{align*}u = x\end{align*} and \begin{align*}dv = e^x dx\end{align*} then \begin{align*}du = dx\end{align*} and \begin{align*}v = e^x\end{align*}

By substitution, we have

\begin{align*} \int x e^x dx = x e^x - \int e^x dx.\end{align*}

We can easily evaluate the integral and have

\begin{align*} \int x e^x dx = x e^x - \int e^x dx = x e^x - e^x + C.\end{align*}

And should we wish to evaluate definite integrals, we need only to apply the Fundamental Theorem to the antiderivative.

## Lesson Summary

- We integrated composite functions.
- We used change of variables to evaluate definite integrals.
- We used substitution to compute definite integrals.

## Review Questions

Compute the integrals in problems #1–10.

- \begin{align*} \int x \ln x dx\end{align*}
- \begin{align*} \int_1^3 \sqrt{x} \ln x dx\end{align*}
- \begin{align*} \int \frac {x}{\sqrt {2x+1}}dx\end{align*}
- \begin{align*} \int_0^1 x^3 \sqrt{1-x^2} dx\end{align*}
- \begin{align*} \int x \cos x dx \end{align*}
- \begin{align*} \int_0^1 x^2 \sqrt{x^3+ 9} dx \end{align*}
- \begin{align*} \int \left ( \frac{1}{x^2} \cdot e^\frac {1}{x} \right )dx \end{align*}
- \begin{align*} \int x^3 e^{x^2} dx \end{align*}
- \begin{align*} \int \frac {{ \ln}x}{x^\frac {5}{2}} dx \end{align*}
- \begin{align*} \int_1^e \frac {1}{x} dx\end{align*}

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Please Sign In to create your own Highlights / Notes | |||

Show More |

### Image Attributions

**Save or share your relevant files like activites, homework and worksheet.**

To add resources, you must be the owner of the section. Click Customize to make your own copy.