Tutorials › Calculus II › Integrating the Square Root of x²−a²

Trigonometric Substitution · Tutorial 160 of 998

Integrating the Square Root of x²−a²

Use x = a sec θ to turn √(x²−a²) into a tan²θ sec θ integral, then convert the result back to x with a triangle.

Intermediate 10 min read

What You'll Learn

  • Substitute x = a sec θ and simplify √(x²−a²) to a tan θ.
  • Rewrite the integrand as a²(sec³θ − sec θ) and integrate.
  • Convert back to x using sec θ = x/a and tan θ = √(x²−a²)/a.
  • Evaluate definite integrals starting at x = a.
  • Check by differentiation and by a geometric area argument.

The Secant Substitution for a Radical of a Difference

When the radicand is \(x^2-a^2\), the identity \(\sec^2\theta-1=\tan^2\theta\) suggests \(x=a\sec\theta\). Then \(x^2-a^2=a^2(\sec^2\theta-1)=a^2\tan^2\theta\), and the radical becomes \(a\tan\theta\) for \(0\le\theta<\frac\pi2\). The integral \(\int\sqrt{x^2-a^2}\,dx\) is defined for \(|x|\ge a\), and this tutorial treats the branch \(x\ge a\); the branch \(x\le-a\) follows by symmetry.

Result: For \(x\ge a>0\), \(\displaystyle\int\sqrt{x^2-a^2}\,dx=\frac x2\sqrt{x^2-a^2}-\frac{a^2}{2}\ln\bigl(x+\sqrt{x^2-a^2}\bigr)+C.\)

Deriving the Formula

Let \(x=a\sec\theta\) with \(0\le\theta<\frac\pi2\). Then \(dx=a\sec\theta\tan\theta\,d\theta\) and \(\sqrt{x^2-a^2}=a\tan\theta\). Hence

$$ \int\sqrt{x^2-a^2}\,dx=a^2\int\tan^2\theta\sec\theta\,d\theta=a^2\int(\sec^3\theta-\sec\theta)\,d\theta. $$

The integral of \(\sec^3\theta\) is \(\frac12\bigl(\sec\theta\tan\theta+\ln|\sec\theta+\tan\theta|\bigr)\), and the integral of \(\sec\theta\) is \(\ln|\sec\theta+\tan\theta|\). Subtracting,

$$ a^2\int(\sec^3\theta-\sec\theta)\,d\theta=\frac{a^2}{2}\bigl(\sec\theta\tan\theta-\ln|\sec\theta+\tan\theta|\bigr)+C. $$

From the triangle with hypotenuse \(x\), adjacent side \(a\), and opposite side \(\sqrt{x^2-a^2}\), we read \(\sec\theta=\frac xa\) and \(\tan\theta=\frac{\sqrt{x^2-a^2}}{a}\). Then \(\sec\theta\tan\theta=\frac{x\sqrt{x^2-a^2}}{a^2}\) and \(\sec\theta+\tan\theta=\frac{x+\sqrt{x^2-a^2}}{a}\). The constant \(\ln a\) from the denominator is absorbed in \(C\), which produces the stated result.

Checking by Differentiation

The derivative of \(\frac x2\sqrt{x^2-a^2}\) is \(\frac12\sqrt{x^2-a^2}+\frac{x^2}{2\sqrt{x^2-a^2}}\). The derivative of \(\ln(x+\sqrt{x^2-a^2})\) is \(\frac{1}{\sqrt{x^2-a^2}}\), so the second term contributes \(-\frac{a^2}{2\sqrt{x^2-a^2}}\). Over the common denominator \(2\sqrt{x^2-a^2}\), the numerator is \((x^2-a^2)+x^2-a^2=2(x^2-a^2)\), and the sum is \(\sqrt{x^2-a^2}\).

Worked Examples

Worked Example: Radius One

Evaluate \(\int_1^2\sqrt{x^2-1}\,dx\).

With \(a=1\), \(F(x)=\frac x2\sqrt{x^2-1}-\frac12\ln(x+\sqrt{x^2-1})\). At \(x=2\): \(\sqrt3-\frac12\ln(2+\sqrt3)\). At \(x=1\): \(0-\frac12\ln1=0\). Hence

$$ \int_1^2\sqrt{x^2-1}\,dx=\sqrt3-\frac12\ln(2+\sqrt3)\approx1.074. $$

The integrand rises from \(0\) to \(\sqrt3\approx1.732\), and the average height is about \(1.07\), which is plausible for a function that rises steeply at first.

Worked Example: Radius Two

Evaluate \(\int_2^4\sqrt{x^2-4}\,dx\).

With \(a=2\), \(F(x)=\frac x2\sqrt{x^2-4}-2\ln(x+\sqrt{x^2-4})\). At \(x=4\): \(2\sqrt{12}-2\ln(4+2\sqrt3)=4\sqrt3-2\ln(4+2\sqrt3)\). At \(x=2\): \(-2\ln2\). Subtracting and using \(\ln(4+2\sqrt3)-\ln2=\ln(2+\sqrt3)\),

$$ \int_2^4\sqrt{x^2-4}\,dx=4\sqrt3-2\ln(2+\sqrt3)\approx4.294. $$

The logarithms combine because the lower limit contributes \(-2\ln2\); in general, subtracting two logarithms gives the logarithm of the quotient.

Worked Example: An Indefinite Integral with a = 3

Find \(\int\sqrt{x^2-9}\,dx\).

Apply the formula with \(a=3\) and \(a^2=9\):

$$ \int\sqrt{x^2-9}\,dx=\frac x2\sqrt{x^2-9}-\frac92\ln\bigl(x+\sqrt{x^2-9}\bigr)+C. $$

The coefficient of the logarithm is \(\frac{a^2}{2}=\frac92\), not \(\frac a2\).

Worked Example: A Scaled Radical

Evaluate \(\int_{1/2}^{1}\sqrt{4x^2-1}\,dx\).

Let \(u=2x\), so \(dx=\frac{du}{2}\) and \(\sqrt{4x^2-1}=\sqrt{u^2-1}\). The antiderivative is \(\frac12\bigl[\frac u2\sqrt{u^2-1}-\frac12\ln(u+\sqrt{u^2-1})\bigr]=\frac x2\sqrt{4x^2-1}-\frac14\ln(2x+\sqrt{4x^2-1})\). At \(x=1\) this is \(\frac{\sqrt3}{2}-\frac14\ln(2+\sqrt3)\), and at \(x=\frac12\) it is \(0\). Therefore

$$ \int_{1/2}^{1}\sqrt{4x^2-1}\,dx=\frac{\sqrt3}{2}-\frac14\ln(2+\sqrt3)\approx0.537. $$

The lower limit \(x=\frac12\) is where the radicand vanishes, so the antiderivative has the simplest possible value there.

A Reliable Procedure

1
Match the form.
Rewrite the radicand as \(u^2-a^2\) with \(u\) linear in \(x\).
2
Substitute.
Let \(u=a\sec\theta\), so \(\sqrt{u^2-a^2}=a\tan\theta\).
3
Reduce the integral.
Write \(\tan^2\theta=\sec^2\theta-1\) and integrate \(\sec^3\theta-\sec\theta\).
4
Return with a triangle.
Use \(\sec\theta=\frac ua\) and \(\tan\theta=\frac{\sqrt{u^2-a^2}}{a}\).
5
Check.
Differentiate, or compare with a hyperbolic area.

Common Mistakes

Students often forget the minus sign between the two terms, write \(+\frac{a^2}{2}\ln\), or drop the factor \(\frac12\) in front of \(\frac{a^2}{2}\). The sign matters: the sum \(\frac x2\sqrt{x^2-a^2}+\frac{a^2}{2}\ln(\ldots)\) belongs to the plus-sign radical \(\sqrt{x^2+a^2}\), not to \(\sqrt{x^2-a^2}\). A second error is to apply the formula for \(x<a\), where the radicand is negative.

Quick Reference

IntegrandAntiderivative
\(\sqrt{x^2-a^2}\)\(\frac x2\sqrt{x^2-a^2}-\frac{a^2}{2}\ln(x+\sqrt{x^2-a^2})\)
\(\sqrt{x^2-1}\)\(\frac x2\sqrt{x^2-1}-\frac12\ln(x+\sqrt{x^2-1})\)
\(\sqrt{x^2-9}\)\(\frac x2\sqrt{x^2-9}-\frac92\ln(x+\sqrt{x^2-9})\)
\(\sqrt{4x^2-1}\)\(\frac x2\sqrt{4x^2-1}-\frac14\ln(2x+\sqrt{4x^2-1})\)

Interpreting the Result

The curve \(y=\sqrt{x^2-a^2}\) is the upper branch of the hyperbola \(x^2-y^2=a^2\). The area under it from \(x=a\) to \(x\) equals the area of the triangle with vertices \((0,0)\), \((x,0)\), and \((x,y)\), which is \(\frac12xy=\frac x2\sqrt{x^2-a^2}\), minus the area of the hyperbolic sector between the origin and the curve. The sector area is \(\frac{a^2}{2}\ln\frac{x+\sqrt{x^2-a^2}}{a}\). This is the hyperbolic analogue of the sector-plus-triangle picture for the circle, with a subtraction instead of an addition.

A Numerical Spot Check

Test \(\int_1^2\sqrt{x^2-1}\,dx\approx1.074\) with Simpson's rule using three points. The heights are \(0\), \(\sqrt{1.25}\approx1.1180\), and \(\sqrt3\approx1.7321\). Then \(\frac{0.5}{3}(0+4\cdot1.1180+1.7321)\approx1.034\). Simpson's rule is slightly low because the curve has a vertical tangent at \(x=1\), which slows convergence, but the estimate is within four percent.

Practice Problems with Answers

Try each problem before reading the answer. Every answer below was checked by differentiation or by numerical integration.

  1. Evaluate \(\int_1^2\sqrt{x^2-1}\,dx\). Hint: the lower limit gives \(0\). Answer: \(\sqrt3-\frac12\ln(2+\sqrt3)\)
  2. Evaluate \(\int_2^4\sqrt{x^2-4}\,dx\). Hint: combine the two logarithms. Answer: \(4\sqrt3-2\ln(2+\sqrt3)\)
  3. Find an antiderivative of \(\sqrt{x^2-9}\) for \(x>3\). Hint: use \(a^2=9\). Answer: \(\frac x2\sqrt{x^2-9}-\frac92\ln(x+\sqrt{x^2-9})\)
  4. Evaluate \(\int_4^5\sqrt{x^2-16}\,dx\). Hint: at \(x=5\), \(\sqrt{25-16}=3\) and \(x+\sqrt{\cdot}=8\). Answer: \(\frac{15}{2}-8\ln2\)
Takeaway: For \(\sqrt{x^2-a^2}\), use \(x=a\sec\theta\), integrate \(\sec^3\theta-\sec\theta\), and return with the triangle. The result is a triangle area minus a logarithmic sector term.

Recalling the Secant-Cubed Integral

The derivation uses \(\int\sec^3\theta\,d\theta=\frac12\bigl(\sec\theta\tan\theta+\ln|\sec\theta+\tan\theta|\bigr)+C\), which comes from integration by parts. Write \(\sec^3\theta=\sec\theta\cdot\sec^2\theta\), take \(u=\sec\theta\) and \(dv=\sec^2\theta\,d\theta\), and obtain \(\sec\theta\tan\theta-\int\sec\theta\tan^2\theta\,d\theta=\sec\theta\tan\theta-\int\sec^3\theta\,d\theta+\int\sec\theta\,d\theta\). Solving for the integral gives the stated formula. If you forget it, you can rederive it in a minute, and the overall integral then follows.

An Alternative Route with Hyperbolic Functions

Another substitution is \(x=a\cosh t\), with \(t\ge0\). Then \(\sqrt{x^2-a^2}=a\sinh t\) and \(dx=a\sinh t\,dt\), so the integral becomes \(a^2\int\sinh^2t\,dt=\frac{a^2}{2}\bigl(\sinh t\cosh t-t\bigr)\). Since \(\cosh t=\frac xa\) and \(\sinh t=\frac{\sqrt{x^2-a^2}}{a}\), and \(t=\ln\frac{x+\sqrt{x^2-a^2}}{a}\), the result matches the trigonometric answer exactly. The hyperbolic route avoids the \(\sec^3\) integral, but trigonometric substitution remains the standard method in this course.

The Branch x ≤ −a

For \(x\le-a\), the radical \(\sqrt{x^2-a^2}\) is still real. The formula needs an absolute value: \(\frac x2\sqrt{x^2-a^2}-\frac{a^2}{2}\ln|x+\sqrt{x^2-a^2}|\) is valid on both branches. On the left branch, \(x+\sqrt{x^2-a^2}\) is negative, so the absolute value is needed to keep the logarithm defined. In practice, most problems use \(x\ge a\), but a definite integral on a negative interval should be handled with the absolute value or by the substitution \(x\mapsto-x\), which shows that the integral over \([-b,-a]\) equals the integral over \([a,b]\).

Why the Answer Is Not an Inverse Trigonometric Function

For \(\sqrt{a^2-x^2}\) the second term was an arcsine, but here it is a logarithm. The reason is that the secant integral is logarithmic, while the cosine integral produced an angle. The circle is described by angles, and the hyperbola by logarithms. The pairing mirrors the identities \(\cos^2\theta+\sin^2\theta=1\) and \(\cosh^2t-\sinh^2t=1\). Recognizing which curve is behind the radical tells you the type of answer to expect before you start.

Worked Example: A Shifted Radical

Find \(\int\sqrt{x^2+2x-3}\,dx\) for \(x>1\).

Complete the square: \(x^2+2x-3=(x+1)^2-4\). Let \(u=x+1\), \(du=dx\), and \(a=2\). The integral is \(\int\sqrt{u^2-4}\,du\), so the formula gives

$$ \int\sqrt{x^2+2x-3}\,dx=\frac{x+1}{2}\sqrt{x^2+2x-3}-2\ln\bigl(x+1+\sqrt{x^2+2x-3}\bigr)+C. $$

The domain is \(x\ge1\), where \(u\ge2\) and the radicand is non-negative. The shift only changes the variable inside; the structure is the same as in the basic formula.

Large-x Behavior as a Check

For large \(x\), \(\sqrt{x^2-a^2}\approx x-\frac{a^2}{2x}\), so the integral should behave like \(\frac{x^2}{2}-\frac{a^2}{2}\ln x\). The antiderivative agrees: \(\frac x2\sqrt{x^2-a^2}\approx\frac{x^2}{2}-\frac{a^2}{4}\) and \(\ln(x+\sqrt{x^2-a^2})\approx\ln(2x)\), giving \(\frac{x^2}{2}-\frac{a^2}{2}\ln x\) plus constants. This asymptotic test catches a wrong sign or a wrong coefficient on the logarithm without any differentiation, which is why it is worth running whenever a result looks suspicious.

Where This Fits in the Course

This tutorial belongs to the module “Trigonometric Substitution”. The tutorial just before it is “Deriving the Secant Substitution for x²−a²,” and the one that follows is “Integrating the Reciprocal Square Root of x²−a².” It is the secant counterpart to the sine substitution of the earlier tutorials, and its logarithmic answer sets the pattern for the reciprocal and polynomial-weighted forms that come next in this module.

Check Your Understanding

Use the derivation and examples above to answer these questions.

  1. Why does \(x=a\sec\theta\) simplify \(\sqrt{x^2-a^2}\)?
  2. Rewrite \(\tan^2\theta\sec\theta\) in terms of powers of \(\sec\theta\).
  3. Evaluate \(\int_1^2\sqrt{x^2-1}\,dx\).
  4. Which sides of the triangle give \(\tan\theta\)?
  5. Differentiate the antiderivative and confirm that the result is \(\sqrt{x^2-a^2}\).

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