Skip to ContentGo to accessibility page
Calculus Volume 2

3.3 Trigonometric Substitution

Calculus Volume 23.3 Trigonometric Substitution

3.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 a2−x2,a2−x2, a2+x2,a2+x2, and x2−a2,x2−a2, 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 a2−x2a2−x2

Before developing a general strategy for integrals containing a2−x2,a2−x2, consider the integral ∫9−x2dx.∫9−x2dx. 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

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

After simplifying, we have

∫​9−x2dx=∫​91−sin2θcosθdθ.∫​9−x2dx=∫​91−sin2θcosθdθ.

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

∫​9−x2dx=∫​9cos2θcosθdθ.∫​9−x2dx=∫​9cos2θcosθdθ.

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

∫​9−x2dx=∫​9cos2θdθ.∫​9−x2dx=∫​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 a2−x2,a2−x2, 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 a2−x2a2−x2 is [−a,a].[−a,a]. Thus, −a≤x≤a.−a≤x≤a. Consequently, −1≤xa≤1.−1≤xa≤1. 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 a2−x2,a2−x2, we get

a2−x2=a2−(asinθ)2Letx=asinθwhere−π2≤θ≤π2.Simplify.=a2−a2sin2θFactor outa2.=a2(1−sin2θ)Substitute1−sin2x=cos2x.=a2cos2θTake the square root.=|acosθ|=acosθ.a2−x2=a2−(asinθ)2Letx=asinθwhere−π2≤θ≤π2.Simplify.=a2−a2sin2θFactor outa2.=a2(1−sin2θ)Substitute1−sin2x=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 a2−x2a2−x2 actually appears as the length of one side of the triangle. Last, should θθ appear by itself, we use θ=sin−1(xa).θ=sin−1(xa).

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 a2−x2a2−x2

  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 ∫1a2−x2dx,∫1a2−x2dx, ∫xa2−x2dx,∫xa2−x2dx, and ∫xa2−x2dx,∫xa2−x2dx, 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 a2−x2=acosθ.a2−x2=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 a2−x2a2−x2

Evaluate ∫​9−x2dx.∫​9−x2dx.

Example 3.22

Integrating an Expression Involving a2−x2a2−x2

Evaluate ∫4−x2xdx.∫4−x2xdx.

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

Example 3.23

Integrating an Expression Involving a2−x2a2−x2 Two Ways

Evaluate ∫​x31−x2dx∫​x31−x2dx two ways: first by using the substitution u=1−x2u=1−x2 and then by using a trigonometric substitution.

Checkpoint 3.14

Rewrite the integral ∫x325−x2dx∫x325−x2dx 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 x≤0.)x≤0.)
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+x2∫dx1+x2 and check the solution by differentiating.

Example 3.25

Evaluating ∫dx1+x2∫dx1+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:

ey−e−y2=x.ey−e−y2=x.

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

e2y−2xey−1=0.e2y−2xey−1=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 x−x2+1<0,x−x2+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+4dx∫​x3x2+4dx by using a substitution involving tanθ.tanθ.

Integrating Expressions Involving x2−a2x2−a2

The domain of the expression x2−a2x2−a2 is (−∞,−a]∪[a,+∞).(−∞,−a]∪[a,+∞). Thus, either x≤−ax≤−a or x≥a.x≥a. Hence, xa≤−1xa≤−1 or xa≥1.xa≥1. 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 x2−a2x2−a2

  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
    x2−a2=(asecθ)2−a2=a2(sec2θ–1)=a2tan2θ=|atanθ|.x2−a2=(asecθ)2−a2=a2(sec2θ–1)=a2tan2θ=|atanθ|.

    For x≥a,x≥a, |atanθ|=atanθ|atanθ|=atanθ and for x≤−a,x≤−a, |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 x≥ax≥a or x≤−a.)x≤−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)=x2−9f(x)=x2−9 and the x-axis over the interval [3,5].[3,5].

Checkpoint 3.16

Evaluate ∫dxx2−4.∫dxx2−4. 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: ∫−339−x2dx.∫−339−x2dx.

166.

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

167.

Evaluate the integral ∫dx1−x2∫dx1−x2 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 ∫dxxx2−1∫dxxx2−1 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+1dx∫xx2+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 ∫x2x2−1dx.∫x2x2−1dx. 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=264−4x2,x=0,y=0,andx=2.y=264−4x2,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=2t−144+t2,v=2t−144+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=16−x2y=16−x2 between x=0x=0 and x=2.x=2.

Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • 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 prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial 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 noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and 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

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Jul 15, 2026 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, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.