Integrating Square Roots of Binomials

Learning Outcomes

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

Integrals Involving [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex]

Before developing a general strategy for integrals containing [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex], consider the integral [latex]\displaystyle\int \sqrt{9-{x}^{2}}dx[/latex]. This integral cannot be evaluated using any of the techniques we have discussed so far. However, if we make the substitution [latex]x=3\sin\theta [/latex], we have [latex]dx=3\cos\theta d\theta [/latex]. After substituting into the integral, we have

[latex]\displaystyle\int \sqrt{9-{x}^{2}}dx={\displaystyle\int }^{\text{ }}\sqrt{9-{\left(3\sin\theta \right)}^{2}}3\cos\theta d\theta [/latex].

 

After simplifying, we have

[latex]{\displaystyle\int }^{\text{ }}\sqrt{9-{x}^{2}}dx={\displaystyle\int }^{\text{ }}9\sqrt{1-{\sin}^{2}\theta }\cos\theta d\theta [/latex].

 

Letting [latex]1-{\sin}^{2}\theta ={\cos}^{2}\theta [/latex], we now have

[latex]{\displaystyle\int }^{\text{ }}\sqrt{9-{x}^{2}}dx={\displaystyle\int }^{\text{ }}9\sqrt{{\cos}^{2}\theta }\cos\theta d\theta [/latex].

 

Assuming that [latex]\cos\theta \ge 0[/latex], we have

[latex]{\displaystyle\int }^{\text{ }}\sqrt{9-{x}^{2}}dx={\displaystyle\int }^{\text{ }}9{\cos}^{2}\theta d\theta [/latex].

 

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 [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex], we make the substitution [latex]x=a\sin\theta [/latex] and [latex]dx=a\cos\theta [/latex]. To see that this actually makes sense, consider the following argument: The domain of [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex] is [latex]\left[\text{-}a,a\right][/latex]. Thus, [latex]\text{-}a\le x\le a[/latex]. Consequently, [latex]-1\le \frac{x}{a}\le 1[/latex]. Since the range of [latex]\sin{x}[/latex] over [latex]\left[\text{-}\frac{\pi}{2},\frac{\pi}{2}\right][/latex] is [latex]\left[-1,1\right][/latex], there is a unique angle [latex]\theta [/latex] satisfying [latex]\text{-}\frac{\pi}{2}\le \theta \le \frac{\pi}{2}[/latex] so that [latex]\sin\theta =x\text{/}a[/latex], or equivalently, so that [latex]x=a\sin\theta [/latex]. If we substitute [latex]x=a\sin\theta [/latex] into [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex], we get

[latex]\begin{array}{ccccc}\hfill \sqrt{{a}^{2}-{x}^{2}}& =\sqrt{{a}^{2}-{\left(a\sin\theta \right)}^{2}}\hfill & & & \text{Let }x=a\sin\theta \text{ where }-\frac{\pi }{2}\le \theta \le \frac{\pi }{2}.\text{Simplify.}\hfill \\ & =\sqrt{{a}^{2}-{a}^{2}{\sin}^{2}\theta }\hfill & & & \text{Factor out }{a}^{2}.\hfill \\ & =\sqrt{{a}^{2}\left(1-{\sin}^{2}\theta \right)}\hfill & & & \text{Substitute }1-{\sin}^{2}x={\cos}^{2}x.\hfill \\ & =\sqrt{{a}^{2}{\cos}^{2}\theta }\hfill & & & \text{Take the square root.}\hfill \\ & =|a\cos\theta |\hfill & & & \\ & =a\cos\theta .\hfill & & & \end{array}[/latex]

 

Since [latex]\cos\theta \ge 0[/latex] on [latex]-\frac{\pi }{2}\le \theta \le \frac{\pi }{2}[/latex] and [latex]a>0[/latex], [latex]|a\cos\theta |=a\cos\theta [/latex]. We can see, from this discussion, that by making the substitution [latex]x=a\sin\theta [/latex], 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 [latex]x[/latex]. To see how to do this, let’s begin by assuming that [latex]0<x<a[/latex]. In this case, [latex]0<\theta <\frac{\pi }{2}[/latex]. Since [latex]\sin\theta =\frac{x}{a}[/latex], we can draw the reference triangle in Figure 1 to assist in expressing the values of [latex]\cos\theta [/latex], [latex]\tan\theta [/latex], and the remaining trigonometric functions in terms of [latex]x[/latex].  Before drawing the reference triangle, we recall the definition of trigonometric functions in terms of ratios of side lengths below.

Recall: Right Triangle Trigonometry Relationships

Given a right triangle with an acute angle of [latex]\theta[/latex],

[latex]\begin{align}&\sin \left(\theta \right)=\frac{\text{opposite}}{\text{hypotenuse}} \\ &\cos \left(\theta \right)=\frac{\text{adjacent}}{\text{hypotenuse}} \\ &\tan \left(\theta \right)=\frac{\text{opposite}}{\text{adjacent}} \end{align}[/latex]

A common mnemonic for remembering these relationships is SohCahToa, formed from the first letters of “Sine is opposite over hypotenuse, Cosine is adjacent over hypotenuse, Tangent is opposite over adjacent.”

It can be shown that this triangle actually produces the correct values of the trigonometric functions evaluated at [latex]\theta [/latex] for all [latex]\theta [/latex] satisfying [latex]-\frac{\pi }{2}\le \theta \le \frac{\pi }{2}[/latex]. It is useful to observe that the expression [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex] actually appears as the length of one side of the triangle. Last, should [latex]\theta [/latex] appear by itself, we use [latex]\theta ={\sin}^{-1}\left(\frac{x}{a}\right)[/latex].

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 1. A reference triangle can help express the trigonometric functions evaluated at [latex]\theta [/latex] in terms of [latex]x[/latex].

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

Problem-Solving Strategy: Integrating Expressions Involving [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex]


  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 [latex]\displaystyle\int \frac{1}{\sqrt{{a}^{2}-{x}^{2}}}dx[/latex], [latex]\displaystyle\int \frac{x}{\sqrt{{a}^{2}-{x}^{2}}}dx[/latex], and [latex]\displaystyle\int x\sqrt{{a}^{2}-{x}^{2}}dx[/latex], they can each be integrated directly either by formula or by a simple u-substitution.
  2. Make the substitution [latex]x=a\sin\theta [/latex] and [latex]dx=a\cos\theta d\theta [/latex]. Note: This substitution yields [latex]\sqrt{{a}^{2}-{x}^{2}}=a\cos\theta[/latex].
  3. Simplify the expression.
  4. Evaluate the integral using techniques from the section on trigonometric integrals.
  5. Use the reference triangle from Figure 1 to rewrite the result in terms of [latex]x[/latex]. You may also need to use some trigonometric identities and the relationship [latex]\theta ={\sin}^{-1}\left(\frac{x}{a}\right)[/latex].

Example: Integrating an Expression Involving [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex]

Evaluate [latex]{\displaystyle\int }^{\text{ }}\sqrt{9-{x}^{2}}dx[/latex].

Example: Integrating an Expression Involving [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex]

Evaluate [latex]\displaystyle\int \frac{\sqrt{4-{x}^{2}}}{x}dx[/latex].

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

Example: Integrating an Expression Involving [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex] Two Ways

Evaluate [latex]{\displaystyle\int }^{\text{ }}{x}^{3}\sqrt{1-{x}^{2}}dx[/latex] two ways: first by using the substitution [latex]u=1-{x}^{2}[/latex] and then by using a trigonometric substitution.

try it

Rewrite the integral [latex]\displaystyle\int \frac{{x}^{3}}{\sqrt{25-{x}^{2}}}dx[/latex] using the appropriate trigonometric substitution (do not evaluate the integral).

Watch the following video to see the worked solution to the above Try It

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.

You can view the transcript for this segmented clip of “3.3 Trigonometric Substitution” here (opens in new window).

Integrating Expressions Involving [latex]\sqrt{{a}^{2}+{x}^{2}}[/latex]

For integrals containing [latex]\sqrt{{a}^{2}+{x}^{2},}[/latex] let’s first consider the domain of this expression. Since [latex]\sqrt{{a}^{2}+{x}^{2}}[/latex] is defined for all real values of [latex]x[/latex], we restrict our choice to those trigonometric functions that have a range of all real numbers. Thus, our choice is restricted to selecting either [latex]x=a\tan\theta [/latex] or [latex]x=a\cot\theta [/latex]. Either of these substitutions would actually work, but the standard substitution is [latex]x=a\tan\theta [/latex] or, equivalently, [latex]\tan\theta =\frac{x}{a}[/latex]. With this substitution, we make the assumption that [latex]\text{-}\frac{\pi}{2}<\theta <\frac{\pi}{2}[/latex], so that we also have [latex]\theta ={\tan}^{-1}\left(x\text{/}a\right)[/latex]. The procedure for using this substitution is outlined in the following problem-solving strategy.

Problem-Solving Strategy: Integrating Expressions Involving [latex]\sqrt{{a}^{2}+{x}^{2}}[/latex]


  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 [latex]x=a\tan\theta [/latex] and [latex]dx=a{\sec}^{2}\theta d\theta [/latex]. This substitution yields

    [latex]\sqrt{{a}^{2}+{x}^{2}}=\sqrt{{a}^{2}+{\left(a\tan\theta \right)}^{2}}=\sqrt{{a}^{2}\left(1+{\tan}^{2}\theta \right)}=\sqrt{{a}^{2}{\sec}^{2}\theta }=|a\sec\theta |=a\sec\theta [/latex]. (Since [latex]-\frac{\pi }{2}<\theta <\frac{\pi }{2}[/latex] and [latex]\sec\theta >0[/latex] over this interval, [latex]|a\sec\theta |=a\sec\theta[/latex] )
  3. Simplify the expression.
  4. Evaluate the integral using techniques from the section on trigonometric integrals.
  5. Use the reference triangle from Figure 4 to rewrite the result in terms of [latex]x[/latex]. You may also need to use some trigonometric identities and the relationship [latex]\theta ={\tan}^{-1}\left(\frac{x}{a}\right)[/latex]. (Note: The reference triangle is based on the assumption that [latex]x>0[/latex]; however, the trigonometric ratios produced from the reference triangle are the same as the ratios for which [latex]x \le{0}[/latex] )
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 4. A reference triangle can be constructed to express the trigonometric functions evaluated at [latex]\theta [/latex] in terms of [latex]x[/latex].

Example: Integrating an Expression Involving [latex]\sqrt{{a}^{2}+{x}^{2}}[/latex]

Evaluate [latex]\displaystyle\int \frac{dx}{\sqrt{1+{x}^{2}}}[/latex] and check the solution by differentiating.

In the example below, we explore how to use hyperbolic trigonometric functions as an alternative substitution method. First, we briefly review the definition of these functions and their derivatives.

Recall: Definition and Derivatives of Hyperbolic Trigonometric Functions

For any real number [latex] x [/latex], the hyperbolic sine and hyperbolic cosine are defined as:

[latex] \sinh x = \frac{e^x - e^{-x}}{2} \: \text{and}\:\cosh x = \frac{e^x + e^{-x}}{2} [/latex]

Their derivatives are given by:

[latex] \frac{d}{dx} \left( \sinh x \right) = \cosh x \:\text{and}\:\frac{d}{dx} \left( \cosh x \right) = \sinh x [/latex]

Example: Evaluating [latex]\displaystyle\int \frac{dx}{\sqrt{1+{x}^{2}}}[/latex] Using a Different Substitution

Use the substitution [latex]x=\text{sinh}\theta [/latex] to evaluate [latex]\displaystyle\int \frac{dx}{\sqrt{1+{x}^{2}}}[/latex].

Example: Finding an Arc Length

Find the length of the curve [latex]y={x}^{2}[/latex] over the interval [latex]\left[0,\frac{1}{2}\right][/latex].

try it

Rewrite [latex]{\displaystyle\int }^{\text{ }}{x}^{3}\sqrt{{x}^{2}+4}dx[/latex] by using a substitution involving [latex]\tan\theta [/latex].

Watch the following video to see the worked solution to the above Try It

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.

You can view the transcript for this segmented clip of “3.3 Trigonometric Substitution” here (opens in new window).

Try It

Integrating Expressions Involving [latex]\sqrt{{x}^{2}-{a}^{2}}[/latex]

The domain of the expression [latex]\sqrt{{x}^{2}-{a}^{2}}[/latex] is [latex]\left(\text{-}\infty ,\text{-}a\right]\cup \left[a,\text{+}\infty \right)[/latex]. Thus, either [latex]x\le \text{-}a[/latex] or [latex]x\ge a[/latex]. Hence, [latex]\frac{x}{a}\le -1[/latex] or [latex]\frac{x}{a}\ge 1[/latex]. Since these intervals correspond to the range of [latex]\sec\theta [/latex] on the set [latex]\left[0,\frac{\pi }{2}\right)\cup \left(\frac{\pi }{2},\pi \right][/latex], it makes sense to use the substitution [latex]\sec\theta =\frac{x}{a}[/latex] or, equivalently, [latex]x=a\sec\theta [/latex], where [latex]0\le \theta <\frac{\pi }{2}[/latex] or [latex]\frac{\pi }{2}<\theta \le \pi [/latex]. The corresponding substitution for [latex]dx[/latex] is [latex]dx=a\sec\theta \tan\theta d\theta [/latex]. The procedure for using this substitution is outlined in the following problem-solving strategy.

Problem-Solving Strategy: Integrals Involving [latex]\sqrt{{x}^{2}-{a}^{2}}[/latex]


  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 [latex]x=a\sec\theta [/latex] and [latex]dx=a\sec\theta \tan\theta d\theta [/latex]. This substitution yields

    [latex]\sqrt{{x}^{2}-{a}^{2}}=\sqrt{{\left(a\sec\theta \right)}^{2}-{a}^{2}}=\sqrt{{a}^{2}\left({\sec}^{2}\theta -1\right)}=\sqrt{{a}^{2}{\tan}^{2}\theta }=|a\tan\theta |[/latex].



    For [latex]x\ge a[/latex], [latex]|a\tan\theta |=a\tan\theta [/latex] and for [latex]x\le -a[/latex], [latex]|a\tan\theta |=\text{-}a\tan\theta [/latex].

  3. Simplify the expression.
  4. Evaluate the integral using techniques from the section on trigonometric integrals.
  5. Use the reference triangles from Figure 6 to rewrite the result in terms of [latex]x[/latex]. You may also need to use some trigonometric identities and the relationship [latex]\theta ={\sec}^{-1}\left(\frac{x}{a}\right)[/latex]. (Note: We need both reference triangles, since the values of some of the trigonometric ratios are different depending on whether [latex]x\ge a[/latex] or [latex]x\le \text{-}a.[/latex])
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 6. Use the appropriate reference triangle to express the trigonometric functions evaluated at [latex]\theta [/latex] in terms of [latex]x[/latex].

For the next example, it is worthwhile to review the technique of how to precisely evaluate a trignometric function whose input is an inverse trigonometric function.

Recall: Evaluating Trigonometric Functions composed with Inverse Trigonometric Functions

Suppose we wanted to evaluate a trigonometric function composed with an inverse trigonometric function, for example: [latex]\sin\left(\cos^{−1}\left(\frac{4}{5}\right)\right)[/latex].

Beginning with the inside, we can say there is some angle such that [latex]\theta=\cos^{−1}(\frac{4}{5})[/latex], which means [latex]\cos\theta=\frac{4}{5}[/latex], and we are looking for [latex]\sin\theta[/latex]. We can use the Pythagorean identity to do this.

[latex]\begin{align} &\sin^{2}\theta+\cos^{2}\theta=1 && \text{Use our known value for cosine.} \\ &\sin^{2}\theta+\left(\frac{4}{5}\right)^{2}=1 && \text{Solve for sine.} \\ &\sin^{2}\theta=1−\frac{16}{25} \\ &\sin\theta=\pm\sqrt{\frac{9}{25}}=\pm\frac{3}{5} \end{align}[/latex]

Since [latex]\theta=\cos^{−1}(\frac{4}{5})[/latex] is in quadrant I, [latex]\sin{\theta}[/latex] must be positive, so the solution is [latex]\frac{3}{5}[/latex]. See Figure A below.

An illustration of a right triangle with an angle theta. Oppostie the angle theta is a side with length 3. Adjacent the angle theta is a side with length 4. The hypoteneuse has angle of length 5.

Figure A. Right triangle illustrating that if [latex]\cos\theta=\frac{4}{5}[/latex], then [latex]\sin\theta=\frac{3}{5}[/latex]

We know that the inverse cosine always gives an angle on the interval [0, π], so we know that the sine of that angle must be positive; therefore [latex]\sin\left(\cos^{−1}\left(\frac{4}{5}\right)\right)=\sin\theta=\frac{3}{5}[/latex].

Example: Finding the Area of a Region

Find the area of the region between the graph of [latex]f\left(x\right)=\sqrt{{x}^{2}-9}[/latex] and the x-axis over the interval [latex]\left[3,5\right][/latex].

try it

Evaluate [latex]\displaystyle\int \frac{dx}{\sqrt{{x}^{2}-4}}[/latex]. Assume that [latex]x>2[/latex].

Watch the following video to see the worked solution to the above Try It

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.

You can view the transcript for this segmented clip of “3.3 Trigonometric Substitution” here (opens in new window).