## 5.5 Substitution

### Learning Objectives

• Use substitution to evaluate indefinite integrals.
• Use substitution to evaluate definite integrals.

The Fundamental Theorem of Calculus gave us a method to evaluate integrals without using Riemann sums. The drawback of this method, though, is that we must be able to find an antiderivative, and this is not always easy. In this section we examine a technique, called integration by substitution, to help us find antiderivatives. Specifically, this method helps us find antiderivatives when the integrand is the result of a chain-rule derivative.

At first, the approach to the substitution procedure may not appear very obvious. However, it is primarily a visual task—that is, the integrand shows you what to do; it is a matter of recognizing the form of the function. So, what are we supposed to see? We are looking for an integrand of the form $f\left[g(x)\right]{g}^{\prime }(x)dx.$ For example, in the integral $\int {({x}^{2}-3)}^{3}2xdx,$ we have $f(x)={x}^{3},g(x)={x}^{2}-3,$ and $g\text{‘}(x)=2x.$ Then,

$f\left[g(x)\right]{g}^{\prime }(x)={({x}^{2}-3)}^{3}(2x),$

and we see that our integrand is in the correct form.

The method is called substitution because we substitute part of the integrand with the variable $u$ and part of the integrand with du. It is also referred to as change of variables because we are changing variables to obtain an expression that is easier to work with for applying the integration rules.

### Substitution with Indefinite Integrals

Let $u=g(x),,$ where ${g}^{\prime }(x)$ is continuous over an interval, let $f(x)$ be continuous over the corresponding range of $g$, and let $F(x)$ be an antiderivative of $f(x).$ Then,

$\begin{array}{cc}\int f\left[g(x)\right]{g}^{\prime }(x)dx\hfill & =\int f(u)du\hfill \\ & =F(u)+C\hfill \\ & =F(g(x))+C.\hfill \end{array}$

# Proof

Let $f$, $g$, $u$, and F be as specified in the theorem. Then

$\begin{array}{cc}\frac{d}{dx}F(g(x))\hfill & ={F}^{\prime }(g(x)){g}^{\prime }(x)\hfill \\ & =f\left[g(x)\right]{g}^{\prime }(x).\hfill \end{array}$

Integrating both sides with respect to $x$, we see that

$\int f\left[g(x)\right]{g}^{\prime }(x)dx=F(g(x))+C.$

If we now substitute $u=g(x),$ and $du=g\text{‘}(x)dx,$ we get

$\begin{array}{cc}\int f\left[g(x)\right]{g}^{\prime }(x)dx\hfill & =\int f(u)du\hfill \\ & =F(u)+C\hfill \\ & =F(g(x))+C.\hfill \end{array}$

Returning to the problem we looked at originally, we let $u={x}^{2}-3$ and then $du=2xdx.$ Rewrite the integral in terms of $u$:

${\int \underset{u}{\underbrace{({x}^{2}-3)}}}^{3}\underset{du}{\underbrace{(2xdx)}}=\int {u}^{3}du.$

Using the power rule for integrals, we have

$\int {u}^{3}du=\frac{{u}^{4}}{4}+C.$

Substitute the original expression for $x$ back into the solution:

$\frac{{u}^{4}}{4}+C=\frac{{({x}^{2}-3)}^{4}}{4}+C.$

We can generalize the procedure in the following Problem-Solving Strategy.

### Problem-Solving Strategy: Integration by Substitution

1. Look carefully at the integrand and select an expression $g(x)$ within the integrand to set equal to $u$. Let’s select $g(x).$ such that ${g}^{\prime }(x)$ is also part of the integrand.
2. Substitute $u=g(x)$ and $du={g}^{\prime }(x)dx.$ into the integral.
3. We should now be able to evaluate the integral with respect to $u$. If the integral can’t be evaluated we need to go back and select a different expression to use as $u$.
4. Evaluate the integral in terms of $u$.
5. Write the result in terms of $x$ and the expression $g(x).$

### Using Substitution to Find an Antiderivative

Use substitution to find the antiderivative of $\int 6x{(3{x}^{2}+4)}^{4}dx.$

Use substitution to find the antiderivative of $\int 3{x}^{2}{({x}^{3}-3)}^{2}dx.$

$\int 3{x}^{2}{({x}^{3}-3)}^{2}dx=\frac{1}{3}{({x}^{3}-3)}^{3}+C$

#### Hint

Let $u={x}^{3}-3.$

Sometimes we need to adjust the constants in our integral if they don’t match up exactly with the expressions we are substituting.

### Using Substitution with Alteration

Use substitution to find the antiderivative of $\int z\sqrt{{z}^{2}-5}dz.$

Use substitution to find the antiderivative of $\int {x}^{2}{({x}^{3}+5)}^{9}dx.$

#### Hint

Multiply the du equation by $\frac{1}{3}.$

### Using Substitution with Integrals of Trigonometric Functions

Use substitution to evaluate the integral $\int \frac{ \sin t}{{ \cos }^{3}t}dt.$

Use substitution to evaluate the integral $\int \frac{ \cos t}{{ \sin }^{2}t}dt.$

#### Hint

Use the process from (Figure) to solve the problem.

Sometimes we need to manipulate an integral in ways that are more complicated than just multiplying or dividing by a constant. We need to eliminate all the expressions within the integrand that are in terms of the original variable. When we are done, $u$ should be the only variable in the integrand. In some cases, this means solving for the original variable in terms of $u$. This technique should become clear in the next example.

### Finding an Antiderivative Using $u$-Substitution

Use substitution to find the antiderivative of $\int \frac{x}{\sqrt{x-1}}dx.$

Use substitution to evaluate the indefinite integral $\int { \cos }^{3}t \sin tdt.$

#### Hint

Use the process from (Figure) to solve the problem.

# Substitution for Definite Integrals

Substitution can be used with definite integrals, too. However, using substitution to evaluate a definite integral requires a change to the limits of integration. If we change variables in the integrand, the limits of integration change as well.

### Substitution with Definite Integrals

Let $u=g(x)$ and let ${g}^{\text{′}}$ be continuous over an interval $\left[a,b\right],$ and let $f$ be continuous over the range of $u=g(x).$ Then,

${\int }_{a}^{b}f(g(x)){g}^{\prime }(x)dx={\int }_{g(a)}^{g(b)}f(u)du.$

Although we will not formally prove this theorem, we justify it with some calculations here. From the substitution rule for indefinite integrals, if $F(x)$ is an antiderivative of $f(x),$ we have

$\int f(g(x)){g}^{\prime }(x)dx=F(g(x))+C.$

Then

$\begin{array}{cc}{\int }_{a}^{b}f\left[g(x)\right]{g}^{\prime }(x)dx\hfill & ={F(g(x))|}_{x=a}^{x=b}\hfill \\ & =F(g(b))-F(g(a))\hfill \\ & ={F(u)|}_{u=g(a)}^{u=g(b)}\hfill \\ \\ \\ & ={\int }_{g(a)}^{g(b)}f(u)du,\hfill \end{array}$

and we have the desired result.

### Using Substitution to Evaluate a Definite Integral

Use substitution to evaluate ${\int }_{0}^{1}{x}^{2}{(1+2{x}^{3})}^{5}dx.$

Use substitution to evaluate the definite integral ${\int }_{-1}^{0}y{(2{y}^{2}-3)}^{5}dy.$

#### Hint

Use the steps from (Figure) to solve the problem.

### Using Substitution with an Exponential Function

Use substitution to evaluate ${\int }_{0}^{1}x{e}^{4{x}^{2}+3}dx.$

Use substitution to evaluate ${\int }_{0}^{1}{x}^{2} \cos (\frac{\pi }{2}{x}^{3})dx.$

#### Hint

Use the process from (Figure) to solve the problem.

Substitution may be only one of the techniques needed to evaluate a definite integral. All of the properties and rules of integration apply independently, and trigonometric functions may need to be rewritten using a trigonometric identity before we can apply substitution. Also, we have the option of replacing the original expression for $u$ after we find the antiderivative, which means that we do not have to change the limits of integration. These two approaches are shown in (Figure).

### Using Substitution to Evaluate a Trigonometric Integral

Use substitution to evaluate ${\int }_{0}^{\pi \text{/}2}{ \cos }^{2}\theta d\theta .$

### Key Concepts

• Substitution is a technique that simplifies the integration of functions that are the result of a chain-rule derivative. The term ‘substitution’ refers to changing variables or substituting the variable $u$ and du for appropriate expressions in the integrand.
• When using substitution for a definite integral, we also have to change the limits of integration.

# Key Equations

• Substitution with Indefinite Integrals
$\int f\left[g(x)\right]{g}^{\prime }(x)dx=\int f(u)du=F(u)+C=F(g(x))+C$
• Substitution with Definite Integrals
${\int }_{a}^{b}f(g(x))g\text{‘}(x)dx={\int }_{g(a)}^{g(b)}f(u)du$

1. Why is $u$-substitution referred to as change of variable?

2. If $f=g\circ h,$ when reversing the chain rule, $\frac{d}{dx}(g\circ h)(x)={g}^{\prime }(h(x)){h}^{\prime }(x),$ should you take $u=g(x)$ or $u=h(x)?$

In the following exercises, verify each identity using differentiation. Then, using the indicated $u$-substitution, identify $f$ such that the integral takes the form $\int f(u)du.$

3. $\int x\sqrt{x+1}dx=\frac{2}{15}{(x+1)}^{3\text{/}2}(3x-2)+C;u=x+1$

4. $\int \frac{{x}^{2}}{\sqrt{x-1}}dx(x>1)=\frac{2}{15}\sqrt{x-1}(3{x}^{2}+4x+8)+C;u=x-1$

5. $\int x\sqrt{4{x}^{2}+9}dx=\frac{1}{12}{(4{x}^{2}+9)}^{3\text{/}2}+C;u=4{x}^{2}+9$

6. $\int \frac{x}{\sqrt{4{x}^{2}+9}}dx=\frac{1}{4}\sqrt{4{x}^{2}+9}+C;u=4{x}^{2}+9$

7. $\int \frac{x}{{(4{x}^{2}+9)}^{2}}dx=-\frac{1}{8(4{x}^{2}+9)};u=4{x}^{2}+9$

In the following exercises, find the antiderivative using the indicated substitution.

8. $\int {(x+1)}^{4}dx;u=x+1$

9. $\int {(x-1)}^{5}dx;u=x-1$

10. $\int {(2x-3)}^{-7}dx;u=2x-3$

11. $\int {(3x-2)}^{-11}dx;u=3x-2$

12. $\int \frac{x}{\sqrt{{x}^{2}+1}}dx;u={x}^{2}+1$

13. $\int \frac{x}{\sqrt{1-{x}^{2}}}dx;u=1-{x}^{2}$

14. $\int (x-1){({x}^{2}-2x)}^{3}dx;u={x}^{2}-2x$

15. $\int ({x}^{2}-2x){({x}^{3}-3{x}^{2})}^{2}dx;u={x}^{3}=3{x}^{2}$

16. $\int { \cos }^{3}\theta d\theta ;u= \sin \theta$($Hint\text{:}{ \cos }^{2}\theta =1-{ \sin }^{2}\theta$)

17. $\int { \sin }^{3}\theta d\theta ;u= \cos \theta$$(Hint\text{:}{ \sin }^{2}\theta =1-{ \cos }^{2}\theta)$

In the following exercises, use a suitable change of variables to determine the indefinite integral.

18. $\int x{(1-x)}^{99}dx$

19. $\int t{(1-{t}^{2})}^{10}dt$

20. $\int {(11x-7)}^{-3}dx$

21. $\int {(7x-11)}^{4}dx$

22. $\int { \cos }^{3}\theta \sin \theta d\theta$

23. $\int { \sin }^{7}\theta \cos \theta d\theta$

24. $\int { \cos }^{2}(\pi t) \sin (\pi t)dt$

25. $\int { \sin }^{2}x{ \cos }^{3}xdx$$(Hint\text{:}{ \sin }^{2}x+{ \cos }^{2}x=1)$

26. $\int t \sin ({t}^{2}) \cos ({t}^{2})dt$

27. $\int {t}^{2}{ \cos }^{2}({t}^{3}) \sin ({t}^{3})dt$

28. $\int \frac{{x}^{2}}{{({x}^{3}-3)}^{2}}dx$

29. $\int \frac{{x}^{3}}{\sqrt{1-{x}^{2}}}dx$

30. $\int \frac{{y}^{5}}{{(1-{y}^{3})}^{3\text{/}2}}dy$

31. ${\int \cos \theta (1- \cos \theta )}^{99} \sin \theta d\theta$

32. ${\int (1-{ \cos }^{3}\theta )}^{10}{ \cos }^{2}\theta \sin \theta d\theta$

33. $\int ( \cos \theta -1){({ \cos }^{2}\theta -2 \cos \theta )}^{3} \sin \theta d\theta$

34. $\int ({ \sin }^{2}\theta -2 \sin \theta ){({ \sin }^{3}\theta -3{ \sin }^{2}\theta )}^{3} \cos \theta d\theta$

In the following exercises, use a calculator to estimate the area under the curve using left Riemann sums with 50 terms, then use substitution to solve for the exact answer.

35. [T]$y=3{(1-x)}^{2}$ over $\left[0,2\right]$

36. [T]$y=x{(1-{x}^{2})}^{3}$ over $\left[-1,2\right]$

37. [T]$y= \sin x{(1- \cos x)}^{2}$ over $\left[0,\pi \right]$

38. [T]$y=\frac{x}{{({x}^{2}+1)}^{2}}$ over $\left[-1,1\right]$

In the following exercises, use a change of variables to evaluate the definite integral.

39. ${\int }_{0}^{1}x\sqrt{1-{x}^{2}}dx$

40. ${\int }_{0}^{1}\frac{x}{\sqrt{1+{x}^{2}}}dx$

41. ${\int }_{0}^{2}\frac{t}{\sqrt{5+{t}^{2}}}dt$

42. ${\int }_{0}^{1}\frac{t}{\sqrt{1+{t}^{3}}}dt$

43. ${\int }_{0}^{\pi \text{/}4}{ \sec }^{2}\theta \tan \theta d\theta$

44. ${\int }_{0}^{\pi \text{/}4}\frac{ \sin \theta }{{ \cos }^{4}\theta }d\theta$

In the following exercises, evaluate the indefinite integral $\int f(x)dx$ with constant $C=0$ using $u$-substitution. Then, graph the function and the antiderivative over the indicated interval. If possible, estimate a value of C that would need to be added to the antiderivative to make it equal to the definite integral $F(x)={\int }_{a}^{x}f(t)dt,$ with $a$ the left endpoint of the given interval.

45. [T]$\int (2x+1){e}^{{x}^{2}+x-6}dx$ over $\left[-3,2\right]$

46. [T]$\int \frac{ \cos (\text{ln}(2x))}{x}dx$ on $\left[0,2\right]$

47. [T]$\int \frac{3{x}^{2}+2x+1}{\sqrt{{x}^{3}+{x}^{2}+x+4}}dx$ over $\left[-1,2\right]$

48. [T]$\int \frac{ \sin x}{{ \cos }^{3}x}dx$ over $\left[-\frac{\pi }{3},\frac{\pi }{3}\right]$

49. [T]$\int (x+2){e}^{\text{−}{x}^{2}-4x+3}dx$ over $\left[-5,1\right]$

50. [T]$\int 3{x}^{2}\sqrt{2{x}^{3}+1}dx$ over $\left[0,1\right]$

51. If $h(a)=h(b)$ in ${\int }_{a}^{b}g\text{‘}(h(x))h(x)dx,$ what can you say about the value of the integral?

52. Is the substitution $u=1-{x}^{2}$ in the definite integral ${\int }_{0}^{2}\frac{x}{1-{x}^{2}}dx$ okay? If not, why not?

In the following exercises, use a change of variables to show that each definite integral is equal to zero.

53. ${\int }_{0}^{\pi }{ \cos }^{2}(2\theta ) \sin (2\theta )d\theta$

54. ${\int }_{0}^{\sqrt{\pi }}t \cos ({t}^{2}) \sin ({t}^{2})dt$

55. ${\int }_{0}^{1}(1-2t)dt$

56. ${\int }_{0}^{1}\frac{1-2t}{(1+{(t-\frac{1}{2})}^{2})}dt$

57. ${\int }_{0}^{\pi } \sin ({(t-\frac{\pi }{2})}^{3}) \cos (t-\frac{\pi }{2})dt$

58. ${\int }_{0}^{2}(1-t) \cos (\pi t)dt$

59. ${\int }_{\pi \text{/}4}^{3\pi \text{/}4}{ \sin }^{2}t \cos tdt$

60. Show that the average value of $f(x)$ over an interval $\left[a,b\right]$ is the same as the average value of $f(cx)$ over the interval $\left[\frac{a}{c},\frac{b}{c}\right]$ for $c>0.$

61. Find the area under the graph of $f(t)=\frac{t}{{(1+{t}^{2})}^{a}}$ between $t=0$ and $t=x$ where $a>0$ and $a\ne 1$ is fixed, and evaluate the limit as $x\to \infty .$

62. Find the area under the graph of $g(t)=\frac{t}{{(1-{t}^{2})}^{a}}$ between $t=0$ and $t=x,$ where $0<x<1$ and $a>0$ is fixed. Evaluate the limit as $x\to 1.$

63. The area of a semicircle of radius 1 can be expressed as ${\int }_{-1}^{1}\sqrt{1-{x}^{2}}dx.$ Use the substitution $x= \cos t$ to express the area of a semicircle as the integral of a trigonometric function. You do not need to compute the integral.

64. The area of the top half of an ellipse with a major axis that is the $x$-axis from $x=-1$ to $a$ and with a minor axis that is the $y$-axis from $y=\text{−}b$ to $b$ can be written as ${\int }_{\text{−}a}^{a}b\sqrt{1-\frac{{x}^{2}}{{a}^{2}}}dx.$ Use the substitution $x=a \cos t$ to express this area in terms of an integral of a trigonometric function. You do not need to compute the integral.

65. [T] The following graph is of a function of the form $f(t)=a \sin (nt)+b \sin (mt).$ Estimate the coefficients $a$ and $b$, and the frequency parameters $n$ and $m$. Use these estimates to approximate ${\int }_{0}^{\pi }f(t)dt.$

66. [T] The following graph is of a function of the form $f(x)=a \cos (nt)+b \cos (mt).$ Estimate the coefficients $a$ and $b$ and the frequency parameters $n$ and $m$. Use these estimates to approximate ${\int }_{0}^{\pi }f(t)dt.$

## Glossary

change of variables
the substitution of a variable, such as $u$, for an expression in the integrand
integration by substitution
a technique for integration that allows integration of functions that are the result of a chain-rule derivative