Trigonometric Integrals: Learn It 5

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

Now let’s tackle expressions involving [latex]\sqrt{{a}^{2}+{x}^{2}}[/latex]. This requires a different approach than what we just learned.

The key difference here is domain. Unlike [latex]\sqrt{{a}^{2}-{x}^{2}}[/latex], the expression [latex]\sqrt{{a}^{2}+{x}^{2}}[/latex] is defined for all real values of [latex]x[/latex]. This means we need a trigonometric function that also has a range of all real numbers.

Our options:

  • [latex]x = a\tan\theta[/latex] ✓ (tangent has range [latex](-\infty, \infty)[/latex])
  • [latex]x = a\cot\theta[/latex] ✓ (cotangent has range [latex](-\infty, \infty)[/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], where [latex]-\frac{\pi}{2} < \theta < \frac{\pi}{2}[/latex].

Why This Substitution Works

When you substitute [latex]x = a\tan\theta[/latex]:

[latex]\sqrt{{a}^{2}+{x}^{2}} = \sqrt{{a}^{2}+{(a\tan\theta)}^{2}} = \sqrt{{a}^{2}(1+{\tan}^{2}\theta)} = \sqrt{{a}^{2}{\sec}^{2}\theta} = a\sec\theta[/latex]

This substitution relies on the identity [latex]1 + \tan^2\theta = \sec^2\theta[/latex]. Since [latex]\sec\theta > 0[/latex] over the interval [latex](-\frac{\pi}{2}, \frac{\pi}{2})[/latex], we have [latex]|a\sec\theta| = a\sec\theta[/latex].

Since [latex]\tan\theta = \frac{x}{a}[/latex], you can build this reference triangle:

  • Adjacent side: [latex]a[/latex]
  • Opposite side: [latex]x[/latex]
  • Hypotenuse: [latex]\sqrt{a^2+x^2}[/latex] (by Pythagorean theorem)
  • Therefore: [latex]\theta = \tan^{-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 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.
A reference triangle can be constructed to express the trigonometric functions evaluated at [latex]\theta [/latex] in terms of [latex]x[/latex].
CautionThe reference triangle assumes [latex]x > 0[/latex], but don’t worry! The trigonometric ratios it produces work for all values of [latex]x[/latex], including when [latex]x \leq 0[/latex].
Problem-Solving Strategy for [latex]\sqrt{{a}^{2}+{x}^{2}}[/latex]

  1. Check first: Can this integral be solved more easily another way? 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].
  3. Simplify: Use [latex]\sqrt{{a}^{2}+{x}^{2}} = a\sec\theta[/latex]
  4. Integrate: Use trigonometric integration techniques
  5. Convert back: Use the reference triangle to express 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].

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.

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]

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