Solve integration problems involving the square root of a sum or difference of two squares
Integrals Involving √a2−x2
Before developing a general strategy for integrals containing √a2−x2, consider the integral ∫√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θ, we have dx=3cosθdθ. After substituting into the integral, we have
∫√9−x2dx=∫√9−(3sinθ)23cosθdθ.
After simplifying, we have
∫√9−x2dx=∫9√1−sin2θcosθdθ.
Letting 1−sin2θ=cos2θ, we now have
∫√9−x2dx=∫9√cos2θcosθdθ.
Assuming that cosθ≥0, we have
∫√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, we make the substitution x=asinθ and dx=acosθ. To see that this actually makes sense, consider the following argument: The domain of √a2−x2 is [-a,a]. Thus, -a≤x≤a. Consequently, −1≤xa≤1. Since the range of sinx over [-π2,π2] is [−1,1], there is a unique angle θ satisfying -π2≤θ≤π2 so that sinθ=x/a, or equivalently, so that x=asinθ. If we substitute x=asinθ into √a2−x2, we get
√a2−x2=√a2−(asinθ)2Let x=asinθ where −π2≤θ≤π2.Simplify.=√a2−a2sin2θFactor out a2.=√a2(1−sin2θ)Substitute 1−sin2x=cos2x.=√a2cos2θTake the square root.=|acosθ|=acosθ.
Since cosθ≥0 on −π2≤θ≤π2 and a>0, |acosθ|=acosθ. We can see, from this discussion, that by making the substitution 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. To see how to do this, let’s begin by assuming that [latex]0
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 θ for all θ satisfying −π2≤θ≤π2. It is useful to observe that the expression √a2−x2 actually appears as the length of one side of the triangle. Last, should θ appear by itself, we use θ=sin−1(xa).
Figure 1. A reference triangle can help express the trigonometric functions evaluated at θ in terms of x.
The essential part of this discussion is summarized in the following problem-solving strategy.
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 ∫1√a2−x2dx, ∫x√a2−x2dx, and ∫x√a2−x2dx, they can each be integrated directly either by formula or by a simple u-substitution.
Make the substitution x=asinθ and dx=acosθdθ. Note: This substitution yields √a2−x2=acosθ.
Simplify the expression.
Evaluate the integral using techniques from the section on trigonometric integrals.
Use the reference triangle from Figure 1 to rewrite the result in terms of x. You may also need to use some trigonometric identities and the relationship θ=sin−1(xa).
Example: Integrating an Expression Involving √a2−x2
Evaluate ∫√9−x2dx.
Show Solution
Begin by making the substitutions x=3sinθ and dx=3cosθdθ. Since sinθ=x3, we can construct the reference triangle shown in the following figure.
Figure 2. A reference triangle can be constructed for this example.
Thus,
∫√9−x2dx=∫√9−(3sinθ)23cosθdθSubstitute x=3sinθ and dx=3cosθdθ.=∫√9(1−sin2θ)3cosθdθSimplify.=∫√9cos2θ3cosθdθSubstitute cos2θ=1−sin2θ.=∫3|cosθ|3cosθdθTake the square root.=∫9cos2θdθSimplify. Since−π2≤θ≤π2,cosθ≥0 and |cosθ|=cosθ.=∫9(12+12cos(2θ))dθUse the strategy for integrating an even powerof cosθ.=92θ+94sin(2θ)+CEvaluate the integral.=92θ+94(2sinθcosθ)+CSubstitute sin(2θ)=2sinθcosθ.=92sin−1(x3)+92⋅x3⋅√9−x23+CSubstitute sin−1(x3)=θ and sinθ=x3.Usethe reference triangle to see thatcosθ=√9−x23and make this substitution.=92sin−1(x3)+x√9−x22+C.Simplify.
Example: Integrating an Expression Involving √a2−x2
Evaluate ∫√4−x2xdx.
Show Solution
First make the substitutions x=2sinθ and dx=2cosθdθ. Since sinθ=x2, we can construct the reference triangle shown in the following figure.
Figure 3. A reference triangle can be constructed for this example.
Thus,
∫√4−x2xdx=∫√4−(2sinθ)22sinθ2cosθdθSubstitutex=2sinθand=2cosθdθ.=∫2cos2θsinθdθSubstitutecos2θ=1−sin2θand simplify.=∫2(1−sin2θ)sinθdθSubstitutesin2θ=1−cos2θ.=∫(2cscθ−2sinθ)dθSeparate the numerator, simplify, and usecscθ=1sinθ.=2ln|cscθ−cotθ|+2cosθ+CEvaluate the integral.=2ln|2x−√4−x2x|+√4−x2+C.Use the reference triangle to rewrite theexpression in terms ofxand simplify.
In the next example, we see that we sometimes have a choice of methods.
Example: Integrating an Expression Involving √a2−x2 Two Ways
Evaluate ∫x3√1−x2dx two ways: first by using the substitution u=1−x2 and then by using a trigonometric substitution.
Show Solution
Method 1
Let u=1−x2 and hence x2=1−u. Thus, du=−2xdx. In this case, the integral becomes
∫x3√1−x2dx=−12∫x2√1−x2(−2xdx)Make the substitution.=−12∫(1−u)√uduExpand the expression.=−12∫(u1/2−u3/2)duEvaluate the integral.=−12(23u3/2−25u5/2)+CRewrite in terms ofx.=−13(1−x2)3/2+15(1−x2)5/2+C.
Method 2
Let x=sinθ. In this case, dx=cosθdθ. Using this substitution, we have
∫x3√1−x2dx=∫sin3θcos2θdθ=∫(1−cos2θ)cos2θsinθdθLet u=cosθ.Thus, du=-sinθdθ.=∫(u4−u2)du=15u5−13u3+CSubstitute cosθ=u.=15cos5θ−13cos3θ+CUse a reference triangle to see thatcosθ=√1−x2.=15(1−x2)5/2−13(1−x2)3/2+C.
try it
Rewrite the integral ∫x3√25−x2dx using the appropriate trigonometric substitution (do not evaluate the integral).
Hint
Substitute x=5sinθ and dx=5cosθdθ.
Show Solution
∫125sin3θdθ
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.
For integrals containing √a2+x2, let’s first consider the domain of this expression. Since √a2+x2 is defined for all real values of 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θ or x=acotθ. Either of these substitutions would actually work, but the standard substitution is x=atanθ or, equivalently, tanθ=xa. With this substitution, we make the assumption that -π2<θ<π2, so that we also have θ=tan−1(x/a). The procedure for using this substitution is outlined in the following problem-solving strategy.
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.
Substitute x=atanθ and dx=asec2θdθ. This substitution yields
√a2+x2=√a2+(atanθ)2=√a2(1+tan2θ)=√a2sec2θ=|asecθ|=asecθ. (Since −π2<θ<π2 and secθ>0 over this interval, |asecθ|=asecθ )
Simplify the expression.
Evaluate the integral using techniques from the section on trigonometric integrals.
Use the reference triangle from Figure 4 to rewrite the result in terms of x. You may also need to use some trigonometric identities and the relationship θ=tan−1(xa). (Note: The reference triangle is based on the assumption that x>0; however, the trigonometric ratios produced from the reference triangle are the same as the ratios for which x≤0 )
Figure 4. A reference triangle can be constructed to express the trigonometric functions evaluated at θ in terms of x.
Example: Integrating an Expression Involving √a2+x2
Evaluate ∫dx√1+x2 and check the solution by differentiating.
Show Solution
Begin with the substitution x=tanθ and dx=sec2θdθ. Since tanθ=x, draw the reference triangle in the following figure.
Figure 5. The reference triangle for this example.
Thus,
∫dx√1+x2=∫sec2θsecθdθSubstitutex=tanθanddx=sec2θdθ.Thissubstitution makes√1+x2=secθ.Simplify.=∫secθdθEvaluate the integral.=ln|secθ+tanθ|+CUse the reference triangle to express the resultin terms ofx.=ln|√1+x2+x|+C.
Since √1+x2+x>0 for all values of x, we could rewrite ln|√1+x2+x|+C=ln(√1+x2+x)+C, if desired.
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 x, the hyperbolic sine and hyperbolic cosine are defined as:
sinhx=ex−e−x2andcoshx=ex+e−x2
Their derivatives are given by:
ddx(sinhx)=coshxandddx(coshx)=sinhx
Example: Evaluating ∫dx√1+x2 Using a Different Substitution
Use the substitution x=sinhθ to evaluate ∫dx√1+x2.
Show Solution
Because sinhθ has a range of all real numbers, and 1+sinh2θ=cosh2θ, we may also use the substitution x=sinhθ to evaluate this integral. In this case, dx=coshθdθ. Consequently,
∫dx√1+x2=∫coshθ√1+sinh2θdθSubstitutex=sinhθanddx=coshθdθ.Substitute1+sinh2θ=cosh2θ.=∫coshθ√cosh2θdθ√cosh2θ=|coshθ|=∫coshθ|coshθ|dθ|coshθ|=coshθsincecoshθ>0for allθ.=∫coshθcoshθdθSimplify.=∫1dθEvaluate the integral.=θ+CSincex=sinhθ,we knowθ=sinh−1x.=sinh−1x+C.
Analysis
This answer looks quite different from the answer obtained using the substitution x=tanθ. To see that the solutions are the same, set y=sinh−1x. Thus, sinhy=x. From this equation we obtain:
ey−e-y2=x.
After multiplying both sides by 2ey and rewriting, this equation becomes:
e2y−2xey−1=0.
Use the quadratic equation to solve for ey:
ey=2x±√4x2+42.
Simplifying, we have:
ey=x±√x2+1.
Since x−√x2+1<0, it must be the case that ey=x+√x2+1. Thus,
y=ln(x+√x2+1).
Last, we obtain
sinh−1x=ln(x+√x2+1).
After we make the final observation that, since x+√x2+1>0,
ln(x+√x2+1)=ln|√1+x2+x|,
we see that the two different methods produced equivalent solutions.
Example: Finding an Arc Length
Find the length of the curve y=x2 over the interval [0,12].
Show Solution
Because dydx=2x, the arc length is given by
∫1/20√1+(2x)2dx=∫1/20√1+4x2dx.
To evaluate this integral, use the substitution x=12tanθ and dx=12sec2θdθ. We also need to change the limits of integration. If x=0, then θ=0 and if x=12, then θ=π4. Thus,
∫1/20√1+4x2dx=∫π/40√1+tan2θ12sec2θdθAfter substitution,√1+4x2=tanθ.Substitute1+tan2θ=sec2θ and simplify.=12∫π/40sec3θdθWe derived this integral in theprevious section.=12(12secθtanθ+ln|secθ+tanθ|)|π/40Evaluate and simplify.=14(√2+ln(√2+1)).
try it
Rewrite ∫x3√x2+4dx by using a substitution involving tanθ.
Hint
Use x=2tanθ and dx=2sec2θdθ.
Show Solution
∫32tan3θsec3θdθ
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.
The domain of the expression √x2−a2 is (-∞,-a]∪[a,+∞). Thus, either x≤-a or x≥a. Hence, xa≤−1 or xa≥1. Since these intervals correspond to the range of secθ on the set [0,π2)∪(π2,π], it makes sense to use the substitution secθ=xa or, equivalently, x=asecθ, where 0≤θ<π2 or π2<θ≤π. The corresponding substitution for dx is dx=asecθtanθdθ. The procedure for using this substitution is outlined in the following problem-solving strategy.
For x≥a, |atanθ|=atanθ and for x≤−a, |atanθ|=-atanθ.
Simplify the expression.
Evaluate the integral using techniques from the section on trigonometric integrals.
Use the reference triangles from Figure 6 to rewrite the result in terms of x. You may also need to use some trigonometric identities and the relationship θ=sec−1(xa). (Note: We need both reference triangles, since the values of some of the trigonometric ratios are different depending on whether x≥a or x≤-a.)
Figure 6. Use the appropriate reference triangle to express the trigonometric functions evaluated at θ in terms of x.
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: sin(cos−1(45)).
Beginning with the inside, we can say there is some angle such that θ=cos−1(45), which means cosθ=45, and we are looking for sinθ. We can use the Pythagorean identity to do this.
sin2θ+cos2θ=1Use our known value for cosine.sin2θ+(45)2=1Solve for sine.sin2θ=1−1625sinθ=±√925=±35
Since θ=cos−1(45) is in quadrant I, sinθ must be positive, so the solution is 35. See Figure A below.
Figure A. Right triangle illustrating that if cosθ=45, then sinθ=35
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 sin(cos−1(45))=sinθ=35.
Example: Finding the Area of a Region
Find the area of the region between the graph of f(x)=√x2−9 and the x-axis over the interval [3,5].
Show Solution
First, sketch a rough graph of the region described in the problem, as shown in the following figure.
Figure 7. Calculating the area of the shaded region requires evaluating an integral with a trigonometric substitution.
We can see that the area is A=∫53√x2−9dx. To evaluate this definite integral, substitute x=3secθ and dx=3secθtanθdθ. We must also change the limits of integration. If x=3, then 3=3secθ and hence θ=0. If x=5, then θ=sec−1(53). After making these substitutions and simplifying, we have
Area=∫53√x2−9dx=∫sec−1(5/3)09tan2θsecθdθUse tan2θ=1−sec2θ.=∫sec−1(5/3)09(sec2θ−1)secθdθExpand.=∫sec−1(5/3)09(sec3θ−secθ)dθEvaluate the integral.=(92ln|secθ+tanθ|+92secθtanθ)−9ln|secθ+tanθ||sec−1(5/3)0Simplify.=92secθtanθ−92ln|secθ+tanθ||sec−1(5/3)0Evaluate. Use sec(sec−153)=53and tan(sec−153)=43.=92⋅53⋅43−92ln|53+43|−(92⋅1⋅0−92ln|1+0|)=10−92ln3.
try it
Evaluate ∫dx√x2−4. Assume that x>2.
Hint
Substitute x=2secθ and dx=2secθtanθdθ.
Show Solution
ln|x2+√x2−42|+C
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.