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

3.3 Trigonometric Substitution

Calculus Volume 23.3 Trigonometric Substitution

Learning Objectives

  • 3.3.1 Solve integration problems involving the square root of a sum or difference of two squares.

In this section, we explore integrals containing expressions of the form a2x2,a2x2, a2+x2,a2+x2, and x2a2,x2a2, where the values of aa are positive. We have already encountered and evaluated integrals containing some expressions of this type, but many still remain inaccessible. The technique of trigonometric substitution comes in very handy when evaluating these integrals. This technique uses substitution to rewrite these integrals as trigonometric integrals.

Integrals Involving a2x2a2x2

Before developing a general strategy for integrals containing a2x2,a2x2, consider the integral 9x2dx.9x2dx. This integral cannot be evaluated using any of the techniques we have discussed so far. However, if we make the substitution x=3sinθ,x=3sinθ, we have dx=3cosθdθ.dx=3cosθdθ. After substituting into the integral, we have

9x2dx=9(3sinθ)23cosθdθ.9x2dx=9(3sinθ)23cosθdθ.

After simplifying, we have

9x2dx=91sin2θcosθdθ.9x2dx=91sin2θcosθdθ.

Letting 1sin2θ=cos2θ,1sin2θ=cos2θ, we now have

9x2dx=9cos2θcosθdθ.9x2dx=9cos2θcosθdθ.

Assuming that cosθ0,cosθ0, we have

9x2dx=9cos2θdθ.9x2dx=9cos2θdθ.

At this point, we can evaluate the integral using the techniques developed for integrating powers and products of trigonometric functions. Before completing this example, let’s take a look at the general theory behind this idea.

To evaluate integrals involving a2x2,a2x2, we make the substitution x=asinθx=asinθ and dx=acosθ.dx=acosθ. To see that this actually makes sense, consider the following argument: The domain of a2x2a2x2 is [a,a].[a,a]. Thus, axa.axa. Consequently, −1xa1.−1xa1. Since the range of sinxsinx over [(π/2),π/2][(π/2),π/2] is [−1,1],[−1,1], there is a unique angle θθ satisfying (π/2)θπ/2(π/2)θπ/2 so that sinθ=x/a,sinθ=x/a, or equivalently, so that x=asinθ.x=asinθ. If we substitute x=asinθx=asinθ into a2x2,a2x2, we get

a2x2=a2(asinθ)2Letx=asinθwhereπ2θπ2.Simplify.=a2a2sin2θFactor outa2.=a2(1sin2θ)Substitute1sin2x=cos2x.=a2cos2θTake the square root.=|acosθ|=acosθ.a2x2=a2(asinθ)2Letx=asinθwhereπ2θπ2.Simplify.=a2a2sin2θFactor outa2.=a2(1sin2θ)Substitute1sin2x=cos2x.=a2cos2θTake the square root.=|acosθ|=acosθ.

Since cosθ0cosθ0 on π2θπ2π2θπ2 and a>0,a>0, |acosθ|=acosθ.|acosθ|=acosθ. We can see, from this discussion, that by making the substitution x=asinθ,x=asinθ, we are able to convert an integral involving a radical into an integral involving trigonometric functions. After we evaluate the integral, we can convert the solution back to an expression involving x.x. To see how to do this, let’s begin by assuming that 0<x<a.0<x<a. In this case, 0<θ<π2.0<θ<π2. Since sinθ=xa,sinθ=xa, we can draw the reference triangle in Figure 3.4 to assist in expressing the values of cosθ,cosθ, tanθ,tanθ, and the remaining trigonometric functions in terms of x.x. It can be shown that this triangle actually produces the correct values of the trigonometric functions evaluated at θθ for all θθ satisfying π2θπ2.π2θπ2. It is useful to observe that the expression a2x2a2x2 actually appears as the length of one side of the triangle. Last, should θθ appear by itself, we use θ=sin−1(xa).θ=sin−1(xa).

This figure is a right triangle. It has an angle labeled theta. This angle is opposite the vertical side. The hypotenuse is labeled a, the vertical leg is labeled x, and the horizontal leg is labeled as the square root of (a^2 – x^2). To the left of the triangle is the equation sin(theta) = x/a.
Figure 3.4 A reference triangle can help express the trigonometric functions evaluated at θθ in terms of x.x.

The essential part of this discussion is summarized in the following problem-solving strategy.

Problem-Solving Strategy

Integrating Expressions Involving a2x2a2x2

  1. It is a good idea to make sure the integral cannot be evaluated easily in another way. For example, although this method can be applied to integrals of the form 1a2x2dx,1a2x2dx, xa2x2dx,xa2x2dx, and xa2x2dx,xa2x2dx, they can each be integrated directly either by formula or by a simple u-substitution.
  2. Make the substitution x=asinθx=asinθ and dx=acosθdθ.dx=acosθdθ. Note: This substitution yields a2x2=acosθ.a2x2=acosθ.
  3. Simplify the expression.
  4. Evaluate the integral using techniques from the section on trigonometric integrals.
  5. Use the reference triangle from Figure 3.4 to rewrite the result in terms of x.x. You may also need to use some trigonometric identities and the relationship θ=sin−1(xa).θ=sin−1(xa).

The following example demonstrates the application of this problem-solving strategy.

Example 3.21

Integrating an Expression Involving a2x2a2x2

Evaluate 9x2dx.9x2dx.

Example 3.22

Integrating an Expression Involving a2x2a2x2

Evaluate 4x2xdx.4x2xdx.

In the next example, we see that we sometimes have a choice of methods.

Example 3.23

Integrating an Expression Involving a2x2a2x2 Two Ways

Evaluate x31x2dxx31x2dx two ways: first by using the substitution u=1x2u=1x2 and then by using a trigonometric substitution.

Checkpoint 3.14

Rewrite the integral x325x2dxx325x2dx using the appropriate trigonometric substitution (do not evaluate the integral).

Integrating Expressions Involving a2+x2a2+x2

For integrals containing a2+x2,a2+x2, let’s first consider the domain of this expression. Since a2+x2a2+x2 is defined for all real values of x,x, we restrict our choice to those trigonometric functions that have a range of all real numbers. Thus, our choice is restricted to selecting either x=atanθx=atanθ or x=acotθ.x=acotθ. Either of these substitutions would actually work, but the standard substitution is x=atanθx=atanθ or, equivalently, tanθ=x/a.tanθ=x/a. With this substitution, we make the assumption that (π/2)<θ<π/2,(π/2)<θ<π/2, so that we also have θ=tan−1(x/a).θ=tan−1(x/a). The procedure for using this substitution is outlined in the following problem-solving strategy.

Problem-Solving Strategy

Integrating Expressions Involving a2+x2a2+x2

  1. Check to see whether the integral can be evaluated easily by using another method. In some cases, it is more convenient to use an alternative method.
  2. Substitute x=atanθx=atanθ and dx=asec2θdθ.dx=asec2θdθ. This substitution yields
    a2+x2=a2+(atanθ)2=a2(1+tan2θ)=a2sec2θ=|asecθ|=asecθ.a2+x2=a2+(atanθ)2=a2(1+tan2θ)=a2sec2θ=|asecθ|=asecθ. (Since π2<θ<π2π2<θ<π2 and secθ>0secθ>0 over this interval, |asecθ|=asecθ.)|asecθ|=asecθ.)
  3. Simplify the expression.
  4. Evaluate the integral using techniques from the section on trigonometric integrals.
  5. Use the reference triangle from Figure 3.7 to rewrite the result in terms of x.x. You may also need to use some trigonometric identities and the relationship θ=tan−1(xa).θ=tan−1(xa). (Note: The reference triangle is based on the assumption that x>0;x>0; however, the trigonometric ratios produced from the reference triangle are the same as the ratios for which x0.)x0.)
This figure is a right triangle. It has an angle labeled theta. This angle is opposite the vertical side. The hypotenuse is labeled the square root of (a^2+x^2), the vertical leg is labeled x, and the horizontal leg is labeled a. To the left of the triangle is the equation tan(theta) = x/a.
Figure 3.7 A reference triangle can be constructed to express the trigonometric functions evaluated at θθ in terms of x.x.

Example 3.24

Integrating an Expression Involving a2+x2a2+x2

Evaluate dx1+x2dx1+x2 and check the solution by differentiating.

Example 3.25

Evaluating dx1+x2dx1+x2 Using a Different Substitution

Use the substitution x=sinhθx=sinhθ to evaluate dx1+x2.dx1+x2.

Analysis

This answer looks quite different from the answer obtained using the substitution x=tanθ.x=tanθ. To see that the solutions are the same, set y=sinh−1x.y=sinh−1x. Thus, sinhy=x.sinhy=x. From this equation we obtain:

eyey2=x.eyey2=x.

After multiplying both sides by 2ey2ey and rewriting, this equation becomes:

e2y2xey1=0.e2y2xey1=0.

Use the quadratic equation to solve for ey:ey:

ey=2x±4x2+42.ey=2x±4x2+42.

Simplifying, we have:

ey=x±x2+1.ey=x±x2+1.

Since xx2+1<0,xx2+1<0, it must be the case that ey=x+x2+1.ey=x+x2+1. Thus,

y=ln(x+x2+1).y=ln(x+x2+1).

Last, we obtain

sinh−1x=ln(x+x2+1).sinh−1x=ln(x+x2+1).

After we make the final observation that, since x+x2+1>0,x+x2+1>0,

ln(x+x2+1)=ln|1+x2+x|,ln(x+x2+1)=ln|1+x2+x|,

we see that the two different methods produced equivalent solutions.

Example 3.26

Finding an Arc Length

Find the length of the curve y=x2y=x2 over the interval [0,12].[0,12].

Checkpoint 3.15

Rewrite x3x2+4dxx3x2+4dx by using a substitution involving tanθ.tanθ.

Integrating Expressions Involving x2a2x2a2

The domain of the expression x2a2x2a2 is (,a][a,+).(,a][a,+). Thus, either xaxa or xa.xa. Hence, xa1xa1 or xa1.xa1. Since these intervals correspond to the range of secθsecθ on the set [0,π2)(π2,π],[0,π2)(π2,π], it makes sense to use the substitution secθ=xasecθ=xa or, equivalently, x=asecθ,x=asecθ, where 0θ<π20θ<π2 or π2<θπ.π2<θπ. The corresponding substitution for dxdx is dx=asecθtanθdθ.dx=asecθtanθdθ. The procedure for using this substitution is outlined in the following problem-solving strategy.

Problem-Solving Strategy

Integrals Involving x2a2x2a2

  1. Check to see whether the integral cannot be evaluated using another method. If so, we may wish to consider applying an alternative technique.
  2. Substitute x=asecθx=asecθ and dx=asecθtanθdθ.dx=asecθtanθdθ. This substitution yields
    x2a2=(asecθ)2a2=a2(sec2θ1)=a2tan2θ=|atanθ|.x2a2=(asecθ)2a2=a2(sec2θ1)=a2tan2θ=|atanθ|.

    For xa,xa, |atanθ|=atanθ|atanθ|=atanθ and for xa,xa, |atanθ|=atanθ.|atanθ|=atanθ.
  3. Simplify the expression.
  4. Evaluate the integral using techniques from the section on trigonometric integrals.
  5. Use the reference triangles from Figure 3.9 to rewrite the result in terms of x.x. You may also need to use some trigonometric identities and the relationship θ=sec−1(xa).θ=sec−1(xa). (Note: We need both reference triangles, since the values of some of the trigonometric ratios are different depending on whether xaxa or xa.)xa.)
This figure has two right triangles. The first triangle is in the first quadrant of the xy coordinate system and has an angle labeled theta. This angle is opposite the vertical side. The hypotenuse is labeled x, the vertical leg is labeled the square root of (x^2-a^2), and the horizontal leg is labeled a. The horizontal leg is on the x-axis. To the left of the triangle is the equation sec(theta) = x/a, x>a. There are also the equations sin(theta)= the square root of (x^2-a^2)/x, cos(theta) = a/x, and tan(theta) = the square root of (x^2-a^2)/a. The second triangle is in the second quadrant, with the hypotenuse labeled –x. The horizontal leg is labeled –a and is on the negative x-axis. The vertical leg is labeled the square root of (x^2-a^2). To the right of the triangle is the equation sec(theta) = x/a, x<-a. There are also the equations sin(theta)= the negative square root of (x^2-a^2)/x, cos(theta) = a/x, and tan(theta) = the negative square root of (x^2-a^2)/a.
Figure 3.9 Use the appropriate reference triangle to express the trigonometric functions evaluated at θθ in terms of x.x.

Example 3.27

Finding the Area of a Region

Find the area of the region between the graph of f(x)=x29f(x)=x29 and the x-axis over the interval [3,5].[3,5].

Checkpoint 3.16

Evaluate dxx24.dxx24. Assume that x>2.x>2.

Section 3.3 Exercises

Simplify the following expressions by writing each one using a single trigonometric function.

126.

4 4 sin 2 θ 4 4 sin 2 θ

127.

9 sec 2 θ 9 9 sec 2 θ 9

128.

a 2 + a 2 tan 2 θ a 2 + a 2 tan 2 θ

129.

a 2 + a 2 sinh 2 θ a 2 + a 2 sinh 2 θ

130.

16 cosh 2 θ 16 16 cosh 2 θ 16

Use the technique of completing the square to express each trinomial as the square of a binomial or the square of a binomial plus a constant.

131.

4 x 2 4 x + 1 4 x 2 4 x + 1

132.

2 x 2 8 x + 3 2 x 2 8 x + 3

133.

x 2 2 x + 4 x 2 2 x + 4

Integrate using the method of trigonometric substitution. Express the final answer in terms of the variable.

134.

d x 4 x 2 d x 4 x 2

135.

d x x 2 a 2 d x x 2 a 2

136.

4 x 2 d x 4 x 2 d x

137.

d x 1 + 9 x 2 d x 1 + 9 x 2

138.

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

139.

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

140.

d x ( 1 + x 2 ) 2 d x ( 1 + x 2 ) 2

141.

x 2 + 9 d x x 2 + 9 d x

142.

x 2 25 x d x x 2 25 x d x

143.

θ 3 d θ 9 θ 2 θ 3 d θ 9 θ 2

144.

d x x 6 x 2 d x x 6 x 2

145.

x 6 x 8 d x x 6 x 8 d x

146.

d x ( 1 + x 2 ) 3 / 2 d x ( 1 + x 2 ) 3 / 2

147.

d x ( x 2 9 ) 3 / 2 d x ( x 2 9 ) 3 / 2

148.

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

149.

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

150.

x 2 d x x 2 + 4 x 2 d x x 2 + 4

151.

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

152.

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

153.

( 1 x 2 ) 3 / 2 d x ( 1 x 2 ) 3 / 2 d x

In the following exercises, use the substitutions x=sinhθ,coshθ,x=sinhθ,coshθ, or tanhθ.tanhθ. Express the final answers in terms of the variable x.

154.

d x x 2 1 d x x 2 1

155.

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

156.

x 2 1 d x x 2 1 d x

157.

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

158.

d x 1 x 2 d x 1 x 2

159.

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

Use the technique of completing the square to evaluate the following integrals.

160.

1 x 2 6 x d x 1 x 2 6 x d x

161.

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

162.

1 x 2 + 2 x + 8 d x 1 x 2 + 2 x + 8 d x

163.

1 x 2 + 10 x d x 1 x 2 + 10 x d x

164.

1 x 2 + 4 x 12 d x 1 x 2 + 4 x 12 d x

165.

Evaluate the integral without using calculus: −339x2dx.−339x2dx.

166.

Find the area enclosed by the ellipse x24+y29=1.x24+y29=1.

167.

Evaluate the integral dx1x2dx1x2 using two different substitutions. First, let x=cosθx=cosθ and evaluate using trigonometric substitution. Second, let x=sinθx=sinθ and use trigonometric substitution. Are the answers the same?

168.

Evaluate the integral dxxx21dxxx21 using the substitution x=secθ.x=secθ. Next, evaluate the same integral using the substitution x=cscθ.x=cscθ. Show that the results are equivalent.

169.

Evaluate the integral xx2+1dxxx2+1dx using the form 1udu.1udu. Next, evaluate the same integral using x=tanθ.x=tanθ. Are the results the same?

170.

State the method of integration you would use to evaluate the integral xx2+1dx.xx2+1dx. Why did you choose this method?

171.

State the method of integration you would use to evaluate the integral x2x21dx.x2x21dx. Why did you choose this method?

172.

Evaluate −11xdxx2+1−11xdxx2+1

173.

Find the length of the arc of the curve over the specified interval: y=lnx,[1,5].y=lnx,[1,5]. Round the answer to three decimal places.

174.

Find the surface area of the solid generated by revolving the region bounded by the graphs of y=x2,y=0,x=0,andx=2y=x2,y=0,x=0,andx=2 about the x-axis. (Round the answer to three decimal places).

175.

The region bounded by the graph of f(x)=11+x2f(x)=11+x2 and the x-axis between x=0x=0 and x=1x=1 is revolved about the x-axis. Find the volume of the solid that is generated.

Solve the initial-value problem for y as a function of x.

176.

( x 2 + 36 ) d y d x = 1 , y ( 6 ) = 0 ( x 2 + 36 ) d y d x = 1 , y ( 6 ) = 0

177.

( 64 x 2 ) d y d x = 1 , y ( 0 ) = 3 ( 64 x 2 ) d y d x = 1 , y ( 0 ) = 3

178.

Find the area bounded by y=2644x2,x=0,y=0,andx=2.y=2644x2,x=0,y=0,andx=2.

179.

An oil storage tank can be described as the volume generated by revolving the area bounded by y=1664+x2,x=0,y=0,x=2y=1664+x2,x=0,y=0,x=2 about the x-axis. Find the volume of the tank (in cubic meters).

180.

During each cycle, the velocity v (in feet per second) of a robotic welding device is given by v=2t144+t2,v=2t144+t2, where t is time in seconds. Find the expression for the displacement s (in feet) as a function of t if s=0s=0 when t=0.t=0.

181.

Find the length of the curve y=16x2y=16x2 between x=0x=0 and x=2.x=2.

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-2/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-2/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.