Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.7: Substitution

( \newcommand{\kernel}{\mathrm{null}\,}\)

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[g(x)]g(x)dx. For example, in the integral

(x23)32xdx.

we have

f(x)=x3

and

g(x)=x23.

Then

g(x)=2x.

and

f[g(x)]g(x)=(x23)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(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,

f[g(x)]g(x)dx=f(u)du=F(u)+C=F(g(x))+C

Proof

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

ddx[F(g(x))]=F(g(x))g(x)=f[g(x)]g(x).

Integrating both sides with respect to x, we see that

f[g(x)]g(x)dx=F(g(x))+C.

If we now substitute u=g(x), and du=g(x)dx, we get

f[g(x)]g(x)dx=f(u)du=F(u)+C=F(g(x))+C.

Returning to the problem we looked at originally, we let u=x23 and then du=2xdx.

Rewrite the integral (Equation ???) in terms of u:

(x23)3(2xdx)=u3du.

Using the power rule for integrals, we have

u3du=u44+C.

Substitute the original expression for x back into the solution:

u44+C=(x23)44+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(x) is also part of the integrand.
  2. Substitute u=g(x) and du=g(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).

Example 2.7.1: Using Substitution to Find an Antiderivative

Use substitution to find the antiderivative of 6x(3x2+4)4dx.

Solution

The first step is to choose an expression for u. We choose u=3x2+4 because then du=6xdx and we already have du in the integrand. Write the integral in terms of u:

6x(3x2+4)4dx=u4du.

Remember that du is the derivative of the expression chosen for u, regardless of what is inside the integrand. Now we can evaluate the integral with respect to u:

u4du=u55+C=(3x2+4)55+C.

Analysis

We can check our answer by taking the derivative of the result of integration. We should obtain the integrand. Picking a value for C of 1, we let y=15(3x2+4)5+1. We have

y=15(3x2+4)5+1,

so

y=(15)5(3x2+4)46x=6x(3x2+4)4.

This is exactly the expression we started with inside the integrand.

Exercise 2.7.1

Use substitution to find the antiderivative of 3x2(x33)2dx.

Hint

Let u=x33.

Answer

3x2(x33)2dx=13(x33)3+C

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

Example 2.7.2: Using Substitution with Alteration

Use substitution to find the antiderivative of zz25dz.

Solution

Rewrite the integral as z(z25)1/2dz. Let u=z25 and du=2zdz. Now we have a problem because du=2zdz and the original expression has only zdz. We have to alter our expression for du or the integral in u will be twice as large as it should be. If we multiply both sides of the du equation by 12. we can solve this problem. Thus,

u=z25

du=2zdz

12du=12(2z)dz=zdz.

Write the integral in terms of u, but pull the 12 outside the integration symbol:

z(z25)1/2dz=12u1/2du.

Integrate the expression in u:

12u1/2du=(12)u3/232+C=(12)(23)u3/2+C=13u3/2+C=13(z25)3/2+C

Exercise 2.7.2

Use substitution to find the antiderivative of x2(x3+5)9dx.

Hint

Multiply the du equation by 13.

Answer

x2(x3+5)9dx=(x3+5)1030+C

Integration of Trigonometric Functions

The next three examples will help fill in some missing pieces of our antiderivative knowledge. We know the antiderivatives of the sine and cosine functions; what about the other standard functions tangent, cotangent, secant and cosecant? We discover these next.

Example 2.7.3: Integration by substitution: antiderivatives of tanx

Evaluate tanx dx.

Solution

The previous paragraph established that we did not know the antiderivatives of tangent, hence we must assume that we have learned something in this section that can help us evaluate this indefinite integral.

Rewrite tanx as sinx/cosx. While the presence of a composition of functions may not be immediately obvious, recognize that cosx is "inside" the 1/x function. Therefore, we see if setting u=cosx returns usable results. We have that du=sinx dx, hence du=sinx dx. We can integrate:

tanx dx=sinxcosx dx=1cosxusinx dxdu=1u du=ln|u|+C=ln|cosx|+C.

Some texts prefer to bring the 1 inside the logarithm as a power of cosx, as in:

ln|cosx|+C=ln|(cosx)1|+C=ln|1cosx|+C=ln|secx|+C.

Thus the result they give is tanx dx=ln|secx|+C. These two answers are equivalent.

Example 2.7.4: Integrating by substitution: antiderivatives of secx

Evaluate secx dx.

Solution

This example employs a wonderful trick: multiply the integrand by "1" so that we see how to integrate more clearly. In this case, we write "1" as

1=secx+tanxsecx+tanx.

This may seem like it came out of left field, but it works beautifully. Consider:

secx dx=secxsecx+tanxsecx+tanx dx=sec2x+secxtanxsecx+tanx dx.

Now let u=secx+tanx; this means du=(secxtanx+sec2x) dx, which is our numerator. Thus:

=duu=ln|u|+C=ln|secx+tanx|+C.

We can use similar techniques to those used in Examples 2.7.3 and 2.7.4 to find antiderivatives of cotx and cscx (which the reader can explore in the exercises.) We summarize our results here.

Theorem 2.7.1: Antiderivatives of Trigonometric Functions

  1. sinx dx=cosx+C
  2. cosx dx=sinx+C
  3. tanx dx=ln|cosx|+C
  4. cscx dx=ln|cscx+cotx|+C
  5. secx dx=ln|secx+tanx|+C
  6. cotx dx=ln|sinx|+C

Note

Although we have these formulas, at this point it will be best to show supporting work for all but the first two (the antiderivatives of sine and cosine).

Example 2.7.5: Using Substitution with Integrals of Trigonometric Functions

Use substitution to evaluate the integral sintcos3tdt.

Solution

We know the derivative of cost is sint, so we set u=cost. Then du=sintdt.

Substituting into the integral, we have

sintcos3tdt=duu3.

Evaluating the integral, we get

duu3=u3du=(12)u2+C.

Putting the answer back in terms of t, we get

sintcos3tdt=12u2+C=12cos2t+C.

Exercise 2.7.3

Use substitution to evaluate the integral costsin2tdt.

Hint

Use the process from Example 2.7.5 to solve the problem.

Answer

costsin2tdt=1sint+C

Exercise 2.7.4

Use substitution to evaluate the indefinite integral cos3tsintdt.

Hint

Use the process from Example 2.7.5 to solve the problem.

Answer

cos3tsintdt=cos4t4+C

We explore one more common trigonometric integral.

Example 2.7.6: Integration by substitution: powers of cosx and sinx

Evaluate cos2x dx.

Solution

We have a composition of functions as cos2x=(cosx)2.

However, setting u=cosx means du=sinx dx, which we do not have in the integral. Another technique is needed.

The process we'll employ is to use a Power Reducing formula for cos2x (perhaps consult the back of this text for this formula), which states

cos2x=1+cos(2x)2.

The right hand side of this equation is not difficult to integrate. We have:

cos2x dx=1+cos(2x)2 dx=(12+12cos(2x)) dx.

Integrating, we obtain:

=12x+12sin(2x)2+C=12x+sin(2x)4+C.

We'll make significant use of this power--reducing technique in future sections.

A u-Substitution with a Twist

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.

Example 2.7.7: Finding an Antiderivative Using u-Substitution

Use substitution to find the antiderivative of xx1dx.

Solution

If we let u=x1, then du=dx. But this does not account for the x in the numerator of the integrand. We need to express x in terms of u. If u=x1, then x=u+1. Now we can rewrite the integral in terms of u:

xx1dx=u+1udu=u+1udu=(u1/2+u1/2)du.

Then we integrate in the usual way, replace u with the original expression, and factor and simplify the result. Thus,

(u1/2+u1/2)du=23u3/2+2u1/2+C=23(x1)3/2+2(x1)1/2+C=(x1)1/2[23(x1)+2]+C=(x1)1/2(23x23+63)=(x1)1/2(23x+43)=23(x1)1/2(x+2)+C.

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 be continuous over an interval [a,b], and let f be continuous over the range of u=g(x). Then,

baf(g(x))g(x)dx=g(b)g(a)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

f(g(x))g(x)dx=F(g(x))+C.

Then

baf[g(x)]g(x)dx=F(g(x))|x=bx=a=F(g(b))F(g(a))=F(u)|u=g(b)u=g(a)=g(b)g(a)f(u)du

and we have the desired result.

Example 2.7.8: Using Substitution to Evaluate a Definite Integral

Use substitution to evaluate 10x2(1+2x3)5dx.

Solution

Let u=1+2x3, so du=6x2dx. Since the original function includes one factor of x2 and du=6x2dx, multiply both sides of the du equation by 1/6. Then,

du=6x2dxbecomes16du=x2dx.

To adjust the limits of integration, note that when x=0,u=1+2(0)=1, and when x=1,u=1+2(1)=3. Then

10x2(1+2x3)5dx=1631u5du.

Evaluating this expression, we get

1631u5du=(16)(u66)|31=136[(3)6(1)6]=1829.

Exercise 2.7.5

Use substitution to evaluate the definite integral 01y(2y23)5dy.

Hint

Use the steps from Example 2.7.8 to solve the problem.

Answer

01y(2y23)5dy=913

Exercise 2.7.6

Use substitution to evaluate 10x2cos(π2x3)dx.

Hint

Use the process from Example 2.7.8 to solve the problem.

Answer

10x2cos(π2x3)dx=23π0.2122

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 Example 2.7.9.

Example 2.7.9: Using Substitution to Evaluate a Trigonometric Integral

Use substitution to evaluate π/20cos2θdθ.

Solution

Let us first use a trigonometric identity to rewrite the integral. The trig identity cos2θ=1+cos2θ2 allows us to rewrite the integral as

π/20cos2θdθ=π/201+cos2θ2dθ.

Then,

π/20(1+cos2θ2)dθ=π/20(12+12cos2θ)dθ=12π/20dθ+π/20cos2θdθ.

We can evaluate the first integral as it is, but we need to make a substitution to evaluate the second integral. Let u=2θ. Then, du=2dθ, or 12du=dθ. Also, when θ=0,u=0, and when θ=π/2,u=π. Expressing the second integral in terms of u, we have

12π/20dθ+12π/20cos2θdθ=12π/20dθ+12(12)π0cosudu=θ2|θ=π/2θ=0+14sinu|u=πu=0=(π40)+(00)=π4

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 f[g(x)]g(x)dx=f(u)du=F(u)+C=F(g(x))+C
  • Substitution with Definite Integrals baf(g(x))g(x)dx=g(b)g(a)f(u)du

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

Contributors

  • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.

  • Apex Calculus: the subsection on integrating trigonometric functions is mostly from Apex Calculus, Section 6.1.
  • Edited by Paul Seeburger (Monroe Community College)

2.7: Substitution is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.

  • Was this article helpful?

Support Center

How can we help?