Tutorials › Calculus II › Deriving the Secant Substitution for x²−a²

Trigonometric Substitution · Tutorial 159 of 998

Deriving the Secant Substitution for x²−a²

See how a right triangle leads to the secant substitution, and why the angle range determines the correct sign of the radical.

Intermediate 10 min read

What You'll Learn

  • Identify the real domain of the square root of x squared minus a squared.
  • Derive the secant and tangent relationships from a right triangle.
  • Differentiate the secant substitution to obtain the differential.
  • Choose angle ranges that keep the substitution one-to-one.
  • Handle the negative-x branch without assigning the radical an incorrect sign.

Why a Secant Substitution Fits This Radical

The expression \(x^2-a^2\) has a difference-of-squares structure. The trigonometric identity \(\sec^2\theta-1=\tan^2\theta\) has the same structure, so it can convert the radical into a multiple of a tangent. The substitution is useful only when its angle range is chosen to match the real domain and sign of \(x\).

Throughout, assume \(a>0\). Since the square root denotes the nonnegative root, \(\sqrt{x^2-a^2}\) is real exactly when \(x^2-a^2\geq 0\), or \(|x|\geq a\). The open intervals \(x>a\) and \(x<-a\) are the two regions where the radicand is positive. At \(x=\pm a\), the radical is zero; these boundary points may be included when an integral is defined there, but they are not interior points of either substitution branch.

Definition: On the positive branch \(x>a\), use \(x=a\sec\theta\) with \(0<\theta<\pi/2\). Then \(\sqrt{x^2-a^2}=a\tan\theta\) and \(dx=a\sec\theta\tan\theta\,d\theta\). The angle range matters: it makes both \(\sec\theta\) and \(\tan\theta\) positive.

Deriving the Relationships from a Right Triangle

Begin with \(x>a>0\). Imagine a right triangle whose hypotenuse has length \(x\), whose adjacent leg has length \(a\), and whose opposite leg has length \(\sqrt{x^2-a^2}\). The Pythagorean theorem verifies that these lengths fit:

$$ a^2+\left(\sqrt{x^2-a^2}\right)^2 =a^2+x^2-a^2 =x^2. $$

Let \(\theta\) be the acute angle between the adjacent leg and the hypotenuse. By the right-triangle definitions of secant and tangent, hypotenuse divided by adjacent side is \(\sec\theta\), and opposite side divided by adjacent side is \(\tan\theta\). Thus

$$ \sec\theta=\frac{x}{a}, \qquad \tan\theta=\frac{\sqrt{x^2-a^2}}{a}. $$

Rearranging gives \(x=a\sec\theta\) and \(\sqrt{x^2-a^2}=a\tan\theta\). The triangle determines the positive signs here: all three side lengths are positive, and \(\theta\) is acute.

The same result follows directly from the identity \(\sec^2\theta-1=\tan^2\theta\). Substituting \(x=a\sec\theta\) gives

$$ x^2-a^2 =a^2\sec^2\theta-a^2 =a^2(\sec^2\theta-1) =a^2\tan^2\theta. $$

Taking square roots requires attention to signs. In general, \(\sqrt{a^2\tan^2\theta}=a|\tan\theta|\), because \(a>0\) and the principal square root is nonnegative. On the acute branch, \(\tan\theta>0\), so this is \(a\tan\theta\), as claimed. The absolute value is not optional if the angle can lie in another quadrant.

Deriving the Differential

Differentiate \(x=a\sec\theta\) with respect to \(\theta\). The constant \(a\) remains unchanged, and the derivative of \(\sec\theta\) is \(\sec\theta\tan\theta\). Therefore

$$ \frac{dx}{d\theta}=a\sec\theta\tan\theta, \qquad dx=a\sec\theta\tan\theta\,d\theta. $$

This derivative is positive on \(0<\theta<\pi/2\). Consequently \(x=a\sec\theta\) increases from \(a\) toward infinity as \(\theta\) increases from \(0\) toward \(\pi/2\). Each \(x>a\) corresponds to exactly one angle in this interval, so the substitution does not fold the positive domain back over itself.

Why the substitution works: The identity \(\sec^2\theta-1=\tan^2\theta\) matches the difference \(x^2-a^2\) after \(x=a\sec\theta\). The triangle gives the same relationship through the Pythagorean theorem, while the chosen angle range determines the sign of the square root.

Worked Examples

Worked Example: Building the Triangle on the Positive Branch

Let \(a=3\) and \(x=5\). First verify that this value belongs to the positive branch: \(5>3\). The triangle has hypotenuse \(5\) and adjacent leg \(3\). Its opposite leg is

$$ \sqrt{x^2-a^2}=\sqrt{5^2-3^2} =\sqrt{25-9} =\sqrt{16}=4. $$

These are the sides of a \(3\)-\(4\)-\(5\) right triangle. Thus \(\sec\theta=5/3\) and \(\tan\theta=4/3\) for the acute angle. Substitution recovers the original values:

$$ a\sec\theta=3\cdot\frac{5}{3}=5, \qquad a\tan\theta=3\cdot\frac{4}{3}=4. $$

The derivative at this angle is \(dx/d\theta=a\sec\theta\tan\theta\), so

$$ \frac{dx}{d\theta} =3\cdot\frac{5}{3}\cdot\frac{4}{3} =\frac{20}{3}. $$

Check: \(x=a\sec\theta\) gives \(5\), the radical formula gives \(\sqrt{25-9}=4\), and the derivative is positive as required on the acute branch.

Worked Example: Choosing the Correct Sign for Negative x

Let \(a=3\) and \(x=-5\). The value is in the real domain because \(-5<-3\), but it is not on the positive branch. If we retain \(x=a\sec\theta\), we need a quadrant-II angle, where \(\sec\theta<0\) and \(\tan\theta<0\). From the triangle side lengths, the hypotenuse is \(5\), the adjacent length is \(3\), and the opposite length is \(4\). The signed ratios are therefore

$$ \sec\theta=-\frac{5}{3}, \qquad \tan\theta=-\frac{4}{3}. $$

Indeed, \(3\sec\theta=3(-5/3)=-5\). But the radical is positive:

$$ \sqrt{x^2-a^2}=\sqrt{(-5)^2-3^2} =\sqrt{25-9}=4. $$

Since \(\tan\theta<0\), the correct relation on this quadrant-II branch is \(\sqrt{x^2-a^2}=-a\tan\theta\), which gives \(-3(-4/3)=4\). The derivative is

$$ \frac{dx}{d\theta} =3\left(-\frac{5}{3}\right)\left(-\frac{4}{3}\right) =\frac{20}{3}. $$

Check: the substitution gives \(x=-5\), the signed radical formula gives \(4\), and the derivative is positive on \(\pi/2<\theta<\pi\).

Worked Example: Transforming a Differential Expression

On the positive branch, consider the differential expression \(\frac{x\,dx}{\sqrt{x^2-4}}\), where \(a=2\) and \(x>2\). Use \(x=2\sec\theta\), \(\sqrt{x^2-4}=2\tan\theta\), and \(dx=2\sec\theta\tan\theta\,d\theta\). Substituting each factor gives

$$ \frac{x\,dx}{\sqrt{x^2-4}} = \frac{(2\sec\theta)(2\sec\theta\tan\theta\,d\theta)} {2\tan\theta} =2\sec^2\theta\,d\theta. $$

The cancellation is valid because \(0<\theta<\pi/2\), so \(\tan\theta\ne 0\). To check the transformation, start from \(x=2\sec\theta\), which implies \(dx=2\sec\theta\tan\theta\,d\theta\), and the identity gives \(\sqrt{x^2-4}=2\tan\theta\) on this branch. Substituting those expressions into the original differential expression reproduces \(2\sec^2\theta\,d\theta\).

Two Valid Ways to Handle the Negative Branch

For \(x<-a\), the radical is real, but the acute-angle formulas cannot be used unchanged with \(x=a\sec\theta\): an acute angle has positive secant, whereas \(x/a<0\). There are two consistent choices.

  • Keep \(x=a\sec\theta\): take \(\pi/2<\theta<\pi\). Then \(\sec\theta<0\), \(\tan\theta<0\), and \(x=a\sec\theta\). Since the radical must be nonnegative, \(\sqrt{x^2-a^2}=-a\tan\theta\). The derivative remains \(dx=a\sec\theta\tan\theta\,d\theta\), which is positive because both trigonometric factors are negative.
  • Use an acute angle: write \(x=-a\sec\phi\) with \(0<\phi<\pi/2\). Then \(\sqrt{x^2-a^2}=a\tan\phi\) and \(dx=-a\sec\phi\tan\phi\,d\phi\). Here \(x\) decreases as \(\phi\) increases, which is reflected by the negative differential.

Either choice describes the negative component of the real domain, \((-\infty,-a)\). Choose one convention for a calculation and use it consistently for the variable, radical, differential, and angle limits. A substitution that is valid on one component should not be assumed valid across the gap \([-a,a]\), where the radical is not real except at its endpoints.

Common Sign Error

A frequent mistake is to write \(\sqrt{x^2-a^2}=a\tan\theta\) without checking the sign of \(\tan\theta\). For the example \(a=3\), \(x=-5\), and \(\theta\) in quadrant II, this incorrect calculation gives

$$ a\tan\theta=3\left(-\frac{4}{3}\right)=-4. $$

But a principal square root cannot equal \(-4\); direct evaluation gives \(\sqrt{(-5)^2-3^2}=4\). The correction is to use \(\sqrt{x^2-a^2}=a|\tan\theta|\), or, on this specific quadrant-II range, \(\sqrt{x^2-a^2}=-a\tan\theta=4\). On the positive branch, the tangent is positive, so the familiar formula \(a\tan\theta\) is correct.

When the Derivation Is Useful

The secant substitution is useful when an expression involving \(\sqrt{x^2-a^2}\) appears and \(x\) lies in one of the real intervals outside \([-a,a]\). It converts the quadratic difference into a trigonometric square, and its differential supplies the factors needed to rewrite an integrand. The important work is not merely replacing \(x\): the domain, angle range, sign of the radical, and differential all belong to the substitution.

Takeaway: For \(x>a>0\), the acute-angle substitution \(x=a\sec\theta\) gives \(\sqrt{x^2-a^2}=a\tan\theta\) and \(dx=a\sec\theta\tan\theta\,d\theta\). For \(x<-a\), choose a negative-secant branch or use \(x=-a\sec\phi\); do not carry the positive-branch radical sign over without checking it.

Check Your Understanding

Use the domain and angle restrictions in each question to justify the signs, not only the algebra.

  1. For \(a>0\) and \(x>a\), derive \(\sqrt{x^2-a^2}=a\tan\theta\) from \(x=a\sec\theta\) and \(0<\theta<\pi/2\).
  2. Differentiate \(x=a\sec\theta\) and state why the resulting derivative is positive on the positive branch.
  3. If \(x=a\sec\theta\) with \(\pi/2<\theta<\pi\), should the radical equal \(a\tan\theta\) or \(-a\tan\theta\)? Explain.
  4. For \(a=4\) and \(x=5\), find the opposite side of the triangle and the values of \(\sec\theta\) and \(\tan\theta\) on the acute branch.
  5. Why is the substitution not a real substitution for values strictly between \(-a\) and \(a\)?

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon