Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Calculus Volume 1

5.5 Substitution

Calculus Volume 15.5 Substitution

Learning Objectives

  • 5.5.1 Use substitution to evaluate indefinite integrals.
  • 5.5.2 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[g(x)]g(x)dx.f[g(x)]g(x)dx. For example, in the integral (x23)32xdx,(x23)32xdx, we have f(x)=x3,g(x)=x23,f(x)=x3,g(x)=x23, and g(x)=2x.g(x)=2x. Then,

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

Theorem 5.7

Substitution with Indefinite Integrals

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

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

Proof

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

ddxF(g(x))=F(g(x))g(x)=f[g(x)]g(x).ddxF(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.f[g(x)]g(x)dx=F(g(x))+C.

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

f[g(x)]g(x)dx=f(u)du=F(u)+C=F(g(x))+C.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=x23u=x23 and then du=2xdx.du=2xdx. Rewrite the integral in terms of u:

(x23)u3(2xdx)du=u3du.(x23)u3(2xdx)du=u3du.

Using the power rule for integrals, we have

u3du=u44+C.u3du=u44+C.

Substitute the original expression for x back into the solution:

u44+C=(x23)44+C.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)g(x) within the integrand to set equal to u. Let’s select g(x)g(x) such that g(x)g(x) is also part of the integrand.
  2. Substitute u=g(x)u=g(x) and du=g(x)dxdu=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).g(x).

Example 5.30

Using Substitution to Find an Antiderivative

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

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.y=15(3x2+4)5+1. We have

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

so

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

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

Checkpoint 5.25

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

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

Example 5.31

Using Substitution with Alteration

Use substitution to find zz25dz.zz25dz.

Checkpoint 5.26

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

Example 5.32

Using Substitution with Integrals of Trigonometric Functions

Use substitution to evaluate the integral sintcos3tdt.sintcos3tdt.

Checkpoint 5.27

Use substitution to evaluate the integral costsin2tdt.costsin2tdt.

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 5.33

Finding an Antiderivative Using u-Substitution

Use substitution to find the antiderivative xx1dx.xx1dx.

Checkpoint 5.28

Use substitution to evaluate the indefinite integral cos3tsintdt.cos3tsintdt.

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.

Theorem 5.8

Substitution with Definite Integrals

Let u=g(x)u=g(x) and let gg be continuous over an interval [a,b],[a,b], and let f be continuous over the range of u=g(x).u=g(x). Then,

abf(g(x))g(x)dx=g(a)g(b)f(u)du.abf(g(x))g(x)dx=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)F(x) is an antiderivative of f(x),f(x), we have

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

Then

abf[g(x)]g(x)dx=F(g(x))|x=ax=b=F(g(b))F(g(a))=F(u)|u=g(a)u=g(b)=g(a)g(b)f(u)du,abf[g(x)]g(x)dx=F(g(x))|x=ax=b=F(g(b))F(g(a))=F(u)|u=g(a)u=g(b)=g(a)g(b)f(u)du,
(5.20)

and we have the desired result.

Example 5.34

Using Substitution to Evaluate a Definite Integral

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

Checkpoint 5.29

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

Example 5.35

Using Substitution with an Exponential Function

Use substitution to evaluate 01xe4x2+3dx.01xe4x2+3dx.

Checkpoint 5.30

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

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 5.36.

Example 5.36

Using Substitution to Evaluate a Trigonometric Integral

Use substitution to evaluate 0π/2cos2θdθ.0π/2cos2θdθ.

Section 5.5 Exercises

254.

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

255.

2. If f=gh,f=gh, when reversing the chain rule, ddx(gh)(x)=g(h(x))h(x),ddx(gh)(x)=g(h(x))h(x), should you take u=g(x)u=g(x) or u=h(x)?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 f(u)du.f(u)du.

256.

x x + 1 d x = 2 15 ( x + 1 ) 3 / 2 ( 3 x 2 ) + C ; u = x + 1 x x + 1 d x = 2 15 ( x + 1 ) 3 / 2 ( 3 x 2 ) + C ; u = x + 1

257.

For x>1:x2x1dx=215x1(3x2+4x+8)+C;u=x1x>1:x2x1dx=215x1(3x2+4x+8)+C;u=x1

258.

x 4 x 2 + 9 d x = 1 12 ( 4 x 2 + 9 ) 3 / 2 + C ; u = 4 x 2 + 9 x 4 x 2 + 9 d x = 1 12 ( 4 x 2 + 9 ) 3 / 2 + C ; u = 4 x 2 + 9

259.

x 4 x 2 + 9 d x = 1 4 4 x 2 + 9 + C ; u = 4 x 2 + 9 x 4 x 2 + 9 d x = 1 4 4 x 2 + 9 + C ; u = 4 x 2 + 9

260.

x ( 4 x 2 + 9 ) 2 d x = 1 8 ( 4 x 2 + 9 ) ; u = 4 x 2 + 9 x ( 4 x 2 + 9 ) 2 d x = 1 8 ( 4 x 2 + 9 ) ; u = 4 x 2 + 9

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

261.

( x + 1 ) 4 d x ; u = x + 1 ( x + 1 ) 4 d x ; u = x + 1

262.

( x 1 ) 5 d x ; u = x 1 ( x 1 ) 5 d x ; u = x 1

263.

( 2 x 3 ) −7 d x ; u = 2 x 3 ( 2 x 3 ) −7 d x ; u = 2 x 3

264.

( 3 x 2 ) −11 d x ; u = 3 x 2 ( 3 x 2 ) −11 d x ; u = 3 x 2

265.

x x 2 + 1 d x ; u = x 2 + 1 x x 2 + 1 d x ; u = x 2 + 1

266.

x 1 x 2 d x ; u = 1 x 2 x 1 x 2 d x ; u = 1 x 2

267.

( x 1 ) ( x 2 2 x ) 3 d x ; u = x 2 2 x ( x 1 ) ( x 2 2 x ) 3 d x ; u = x 2 2 x

268.

( x 2 2 x ) ( x 3 3 x 2 ) 2 d x ; u = x 3 3 x 2 ( x 2 2 x ) ( x 3 3 x 2 ) 2 d x ; u = x 3 3 x 2

269.

cos3θdθ;u=sinθcos3θdθ;u=sinθ (Hint:cos2θ=1sin2θ)(Hint:cos2θ=1sin2θ)

270.

sin3θdθ;u=cosθsin3θdθ;u=cosθ (Hint:sin2θ=1cos2θ)(Hint:sin2θ=1cos2θ)

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

271.

x ( 1 x ) 99 d x x ( 1 x ) 99 d x

272.

t ( 1 t 2 ) 10 d t t ( 1 t 2 ) 10 d t

273.

( 11 x 7 ) −3 d x ( 11 x 7 ) −3 d x

274.

( 7 x 11 ) 4 d x ( 7 x 11 ) 4 d x

275.

cos 3 θ sin θ d θ cos 3 θ sin θ d θ

276.

sin 7 θ cos θ d θ sin 7 θ cos θ d θ

277.

cos 2 ( π t ) sin ( π t ) d t cos 2 ( π t ) sin ( π t ) d t

278.

sin2xcos3xdxsin2xcos3xdx (Hint:sin2x+cos2x=1)(Hint:sin2x+cos2x=1)

279.

t sin ( t 2 ) cos ( t 2 ) d t t sin ( t 2 ) cos ( t 2 ) d t

280.

t 2 cos 2 ( t 3 ) sin ( t 3 ) d t t 2 cos 2 ( t 3 ) sin ( t 3 ) d t

281.

x 2 ( x 3 3 ) 2 d x x 2 ( x 3 3 ) 2 d x

282.

x 3 1 x 2 d x x 3 1 x 2 d x

283.

y 5 ( 1 y 3 ) 3 / 2 d y y 5 ( 1 y 3 ) 3 / 2 d y

284.

cos θ ( 1 cos θ ) 99 sin θ d θ cos θ ( 1 cos θ ) 99 sin θ d θ

285.

( 1 cos 3 θ ) 10 cos 2 θ sin θ d θ ( 1 cos 3 θ ) 10 cos 2 θ sin θ d θ

286.

( cos θ 1 ) ( cos 2 θ 2 cos θ ) 3 sin θ d θ ( cos θ 1 ) ( cos 2 θ 2 cos θ ) 3 sin θ d θ

287.

( sin 2 θ 2 sin θ ) ( sin 3 θ 3 sin 2 θ ) 3 cos θ d θ ( sin 2 θ 2 sin θ ) ( sin 3 θ 3 sin 2 θ ) 3 cos θ d θ

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.

288.

[T] y=3(1x)2y=3(1x)2 over [0,2][0,2]

289.

[T] y=x(1x2)3y=x(1x2)3 over [−1,2][−1,2]

290.

[T] y=sinx(1cosx)2y=sinx(1cosx)2 over [0,π][0,π]

291.

[T] y=x(x2+1)2y=x(x2+1)2 over [−1,1][−1,1]

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

292.

0 1 x 1 x 2 d x 0 1 x 1 x 2 d x

293.

0 1 x 1 + x 2 d x 0 1 x 1 + x 2 d x

294.

0 2 t 5 + t 2 d t 0 2 t 5 + t 2 d t

295.

0 1 t 2 1 + t 3 d t 0 1 t 2 1 + t 3 d t

296.

0 π / 4 sec 2 θ tan θ d θ 0 π / 4 sec 2 θ tan θ d θ

297.

0 π / 4 sin θ cos 4 θ d θ 0 π / 4 sin θ cos 4 θ d θ

In the following exercises, evaluate the indefinite integral f(x)dxf(x)dx with constant C=0C=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)=axf(t)dt,F(x)=axf(t)dt, with a the left endpoint of the given interval.

298.

[T] (2x+1)ex2+x6dx(2x+1)ex2+x6dx over [−3,2][−3,2]

299.

[T] cos(ln(2x))xdxcos(ln(2x))xdx on [0,2][0,2]

300.

[T] 3x2+2x+1x3+x2+x+4dx3x2+2x+1x3+x2+x+4dx over [−1,2][−1,2]

301.

[T] sinxcos3xdxsinxcos3xdx over [π3,π3][π3,π3]

302.

[T] (x+2)ex24x+3dx(x+2)ex24x+3dx over [−5,1][−5,1]

303.

[T] 3x22x3+1dx3x22x3+1dx over [0,1][0,1]

304.

If h(a)=h(b)h(a)=h(b) in abg(h(x))h(x)dx,abg(h(x))h(x)dx, what can you say about the value of the integral?

305.

Is the substitution u=1x2u=1x2 in the definite integral 02x1x2dx02x1x2dx okay? If not, why not?

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

306.

0 π cos 2 ( 2 θ ) sin ( 2 θ ) d θ 0 π cos 2 ( 2 θ ) sin ( 2 θ ) d θ

307.

0 π t cos ( t 2 ) sin ( t 2 ) d t 0 π t cos ( t 2 ) sin ( t 2 ) d t

308.

0 1 ( 1 2 t ) d t 0 1 ( 1 2 t ) d t

309.

0 1 1 2 t ( 1 + ( t 1 2 ) 2 ) d t 0 1 1 2 t ( 1 + ( t 1 2 ) 2 ) d t

310.

0 π sin ( ( t π 2 ) 3 ) cos ( t π 2 ) d t 0 π sin ( ( t π 2 ) 3 ) cos ( t π 2 ) d t

311.

0 2 ( 1 t ) cos ( π t ) d t 0 2 ( 1 t ) cos ( π t ) d t

312.

π / 4 3 π / 4 sin 2 t cos t d t π / 4 3 π / 4 sin 2 t cos t d t

313.

Show that the average value of f(x)f(x) over an interval [a,b][a,b] is the same as the average value of f(cx)f(cx) over the interval [ac,bc][ac,bc] for c>0.c>0.

314.

Find the area under the graph of f(t)=t(1+t2)af(t)=t(1+t2)a between t=0t=0 and t=xt=x where a>0a>0 and a1a1 is fixed, and evaluate the limit as x.x.

315.

Find the area under the graph of g(t)=t(1t2)ag(t)=t(1t2)a between t=0t=0 and t=x,t=x, where 0<x<10<x<1 and a>0a>0 is fixed. Evaluate the limit as x1.x1.

316.

The area of a semicircle of radius 1 can be expressed as −111x2dx.−111x2dx. Use the substitution x=costx=cost to express the area of a semicircle as the integral of a trigonometric function. You do not need to compute the integral.

317.

The area of the top half of an ellipse with a major axis that is the x-axis from x=ax=a to x=ax=a and with a minor axis that is the y-axis from y=by=b to y=by=b can be written as aab1x2a2dx.aab1x2a2dx. Use the substitution x=acostx=acost to express this area in terms of an integral of a trigonometric function. You do not need to compute the integral.

318.

[T] The following graph is of a function of the form f(t)=asin(nt)+bsin(mt).f(t)=asin(nt)+bsin(mt). Estimate the coefficients a and b, and the frequency parameters n and m. Use these estimates to approximate 0πf(t)dt.0πf(t)dt.

A graph of a function of the given form over [0, 2pi], which has six turning points. They are located at just before pi/4, just after pi/2, between 3pi/4 and pi, between pi and 5pi/4, just before 3pi/2, and just after 7pi/4 at about 3, -2, 1, -1, 2, and -3. It begins at the origin and ends at (2pi, 0). It crosses the x axis between pi/4 and pi/2, just before 3pi/4, pi, just after 5pi/4, and between 3pi/2 and 4pi/4.
319.

[T] The following graph is of a function of the form f(x)=acos(nt)+bcos(mt).f(x)=acos(nt)+bcos(mt). Estimate the coefficients a and b and the frequency parameters n and m. Use these estimates to approximate 0πf(t)dt.0πf(t)dt.

The graph of a function of the given form over [0, 2pi]. It begins at (0,1) and ends at (2pi, 1). It has five turning points, located just after pi/4, between pi/2 and 3pi/4, pi, between 5pi/4 and 3pi/2, and just before 7pi/4 at about -1.5, 2.5, -3, 2.5, and -1. It crosses the x axis between 0 and pi/4, just before pi/2, just after 3pi/4, just before 5pi/4, just after 3pi/2, and between 7pi/4 and 2pi.
Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction
Citation information

© Jul 25, 2024 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.