Tutorials › Calculus II › Definite Integrals With a^2 + x^2 Radicals

Trigonometric Substitution · Tutorial 175 of 998

Definite Integrals With a^2 + x^2 Radicals

Use x = a tan θ to change the limits to θ = arctan(b/a), evaluate sec θ and sec³ θ integrals, and confirm the results with the closed-form antiderivatives.

Intermediate 10 min read

What You'll Learn

  • Transform limits under x = a tan θ using θ = arctan(x/a).
  • Evaluate ∫sec θ dθ and ∫sec³ θ dθ between exact angles.
  • Match the results to the antiderivatives (x/2)√(a²+x²) + (a²/2) ln(...) and ln(x + √(a²+x²)).
  • Handle limits of opposite sign and check the original domain.
  • Apply the results to arc length of a parabola.

Definite Integrals Under the Tangent Substitution

The tangent substitution \(x=a\tan\theta\) is especially clean for definite integrals of \(\sqrt{a^2+x^2}\) and \(\frac{1}{\sqrt{a^2+x^2}}\), because the new limits are given by \(\theta=\arctan\frac xa\), and for many familiar limits this is a standard angle such as \(\frac\pi4\) or \(\frac\pi3\). Evaluating at those angles avoids back-substituting a radical and makes the final arithmetic exact.

Two Key Integrals: \(\displaystyle\int\frac{dx}{\sqrt{a^2+x^2}}=\ln\bigl(x+\sqrt{a^2+x^2}\bigr)+C\) and \(\displaystyle\int\sqrt{a^2+x^2}\,dx=\frac x2\sqrt{a^2+x^2}+\frac{a^2}{2}\ln\bigl(x+\sqrt{a^2+x^2}\bigr)+C.\)

How the Limits Transform

With \(x=a\tan\theta\), we have \(\sqrt{a^2+x^2}=a\sec\theta\) and \(dx=a\sec^2\theta\,d\theta\). Then

$$ \int_{x_1}^{x_2}\frac{dx}{\sqrt{a^2+x^2}}=\int_{\theta_1}^{\theta_2}\sec\theta\,d\theta,\qquad \int_{x_1}^{x_2}\sqrt{a^2+x^2}\,dx=a^2\int_{\theta_1}^{\theta_2}\sec^3\theta\,d\theta, $$

where \(\theta_i=\arctan\frac{x_i}{a}\). Because \(\tan\) maps \((-\frac\pi2,\frac\pi2)\) one-to-one onto the real line, every real limit has exactly one angle, and the integrals never meet a singularity. This is a significant simplification compared with the secant and sine substitutions, which restrict \(x\) to part of the real line. The antiderivatives are \(\int\sec\theta\,d\theta=\ln|\sec\theta+\tan\theta|\) and \(\int\sec^3\theta\,d\theta=\frac12(\sec\theta\tan\theta+\ln|\sec\theta+\tan\theta|)\).

Worked Examples

Worked Example: Reciprocal Radical, Radius One

Evaluate \(\int_0^1\frac{dx}{\sqrt{1+x^2}}\).

The limits become \(\theta=0\) and \(\theta=\arctan1=\frac\pi4\). At \(\theta=\frac\pi4\), \(\sec\theta=\sqrt2\) and \(\tan\theta=1\). Then

$$ \int_0^{\pi/4}\sec\theta\,d\theta=\ln(\sqrt2+1)-\ln(1+0)=\ln(1+\sqrt2)\approx0.881. $$

The closed form \(\ln(x+\sqrt{1+x^2})\) gives the same value: \(\ln(1+\sqrt2)-\ln1\).

Worked Example: Upper Limit √3

Evaluate \(\int_0^{\sqrt3}\frac{dx}{\sqrt{1+x^2}}\).

Here \(\theta_2=\arctan\sqrt3=\frac\pi3\), with \(\sec\frac\pi3=2\) and \(\tan\frac\pi3=\sqrt3\). Hence

$$ \int_0^{\sqrt3}\frac{dx}{\sqrt{1+x^2}}=\ln(2+\sqrt3)\approx1.317. $$

This equals the value of the secant integral from the earlier tutorial on \(\sqrt{x^2-a^2}\), but over a different region, which shows how tangent and secant integrals share the same logarithm.

Worked Example: Radical in the Numerator, Radius Two

Evaluate \(\int_0^2\sqrt{4+x^2}\,dx\).

With \(a=2\), the limits are \(\theta=0\) and \(\arctan1=\frac\pi4\). The integral equals \(4\int_0^{\pi/4}\sec^3\theta\,d\theta=2\bigl[\sec\theta\tan\theta+\ln(\sec\theta+\tan\theta)\bigr]_0^{\pi/4}\). At \(\frac\pi4\) the bracket is \(\sqrt2+\ln(\sqrt2+1)\), and at \(0\) it is \(0\). So

$$ \int_0^2\sqrt{4+x^2}\,dx=2\sqrt2+2\ln(1+\sqrt2)\approx4.592. $$

The integrand rises from \(2\) to \(2\sqrt2\approx2.83\), so an average near \(2.3\) over length \(2\) gives about \(4.6\), matching the result.

Worked Example: Radical in the Numerator, Radius One

Evaluate \(\int_0^{\sqrt3}\sqrt{1+x^2}\,dx\).

The limits are \(0\) and \(\frac\pi3\). Then \(\int_0^{\pi/3}\sec^3\theta\,d\theta=\frac12\bigl[\sec\theta\tan\theta+\ln(\sec\theta+\tan\theta)\bigr]_0^{\pi/3}=\frac12\bigl[2\sqrt3+\ln(2+\sqrt3)\bigr]\). Therefore

$$ \int_0^{\sqrt3}\sqrt{1+x^2}\,dx=\sqrt3+\frac12\ln(2+\sqrt3)\approx2.390. $$

The closed form \(\frac x2\sqrt{1+x^2}+\frac12\ln(x+\sqrt{1+x^2})\) at \(x=\sqrt3\) gives \(\frac{\sqrt3}{2}\cdot2+\frac12\ln(\sqrt3+2)\), the same value.

Worked Example: Limits of Opposite Sign

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

The integrand is even, so the integral equals \(2\int_0^1\sqrt{1+x^2}\,dx\). With limits \(0\) and \(\frac\pi4\): \(\frac12\bigl[\sqrt2+\ln(1+\sqrt2)\bigr]\) for the half integral. Therefore

$$ \int_{-1}^{1}\sqrt{1+x^2}\,dx=\sqrt2+\ln(1+\sqrt2)\approx2.296. $$

With limits of opposite sign, the angles are \(-\frac\pi4\) and \(\frac\pi4\), both inside \((-\frac\pi2,\frac\pi2)\), so the substitution is valid across \(x=0\).

Worked Example: A Mixed-Sign Interval for the Reciprocal

Evaluate \(\int_{-1}^{2}\frac{dx}{\sqrt{1+x^2}}\).

With \(F(x)=\ln(x+\sqrt{1+x^2})\), we get \(F(2)=\ln(2+\sqrt5)\) and \(F(-1)=\ln(\sqrt2-1)\). Hence

$$ \int_{-1}^{2}\frac{dx}{\sqrt{1+x^2}}=\ln\frac{2+\sqrt5}{\sqrt2-1}=\ln\bigl[(2+\sqrt5)(\sqrt2+1)\bigr]\approx2.325. $$

The simplification uses \(\frac{1}{\sqrt2-1}=\sqrt2+1\). The angles are \(\arctan(-1)=-\frac\pi4\) and \(\arctan2\approx1.107\), and the secant integral between them agrees.

Application: Arc Length of a Parabola

For the parabola \(y=\frac{x^2}{2}\), the arc length element is \(\sqrt{1+y'^2}\,dx=\sqrt{1+x^2}\,dx\). The length from \(x=0\) to \(x=1\) is therefore \(\int_0^1\sqrt{1+x^2}\,dx=\frac12\bigl[\sqrt2+\ln(1+\sqrt2)\bigr]\approx1.148\). This is slightly longer than the straight chord from \((0,0)\) to \((1,\frac12)\), which has length \(\sqrt{1.25}\approx1.118\), as an arc must be.

A Reliable Procedure

1
Choose the form.
Identify \(\sqrt{a^2+x^2}\) or its reciprocal and read off \(a\).
2
Transform the limits.
Compute \(\theta_i=\arctan\frac{x_i}{a}\).
3
Rewrite the integrand.
Use \(\sec\theta\,d\theta\) for the reciprocal, and \(a^2\sec^3\theta\,d\theta\) for the radical.
4
Evaluate at the angles.
Insert exact values of \(\sec\theta\) and \(\tan\theta\).
5
Check.
Compare with the closed-form antiderivative or a numerical estimate.

Common Mistakes

The most common error is to transform the integrand but leave the limits in terms of \(x\), producing nonsense. Another is to forget the factor \(a^2\) in front of the \(\sec^3\) integral. A third is to evaluate \(\ln(x+\sqrt{a^2+x^2})\) at \(x=0\) as zero when \(a\ne1\), which ignores the constant \(\ln a\). A fourth is to treat the domain as restricted, when in fact the radical is defined for all real \(x\).

A Numerical Spot Check

Test \(\int_0^1\frac{dx}{\sqrt{1+x^2}}=0.881\) with Simpson's rule on three points: the heights are \(1\), \(\frac{1}{\sqrt{1.25}}\approx0.8944\), and \(\frac{1}{\sqrt2}\approx0.7071\). Then \(\frac{0.5}{3}(1+4\cdot0.8944+0.7071)\approx0.8808\), which agrees with the exact value to three digits.

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_0^1\frac{dx}{\sqrt{1+x^2}}\). Hint: the angle limits are \(0\) and \(\frac\pi4\). Answer: \(\ln(1+\sqrt2)\)
  2. Evaluate \(\int_0^{\sqrt3}\sqrt{1+x^2}\,dx\). Hint: use \(\frac12[\sec\theta\tan\theta+\ln(\sec\theta+\tan\theta)]\) at \(\frac\pi3\). Answer: \(\sqrt3+\frac12\ln(2+\sqrt3)\)
  3. Evaluate \(\int_0^2\sqrt{4+x^2}\,dx\). Hint: include the factor \(a^2=4\). Answer: \(2\sqrt2+2\ln(1+\sqrt2)\)
  4. Evaluate \(\int_{-1}^{2}\frac{dx}{\sqrt{1+x^2}}\). Hint: use \(F(x)=\ln(x+\sqrt{1+x^2})\). Answer: \(\ln\bigl[(2+\sqrt5)(\sqrt2+1)\bigr]\)
Takeaway: Under \(x=a\tan\theta\), limits become \(\arctan\frac{x}{a}\), the reciprocal radical becomes \(\int\sec\theta\,d\theta\), and the radical becomes \(a^2\int\sec^3\theta\,d\theta\). The tangent substitution has no domain restrictions. Evaluating at exact angles keeps the arithmetic clean, and comparing with the closed form or a quick numerical estimate confirms the result.

Why the Closed Form and the Angle Form Agree

The two ways of evaluating each integral are the same calculation expressed in different variables. In the angle form, one evaluates \(\sec\theta\) and \(\tan\theta\) at the transformed limits. In the closed form, one evaluates \(x\) and \(\sqrt{a^2+x^2}\) at the original limits. The relations \(\tan\theta=\frac xa\) and \(\sec\theta=\frac{\sqrt{a^2+x^2}}{a}\) connect the two. Because \(\frac{\sec\theta+\tan\theta}{1}=\frac{x+\sqrt{a^2+x^2}}{a}\), the logarithms differ only by the constant \(\ln a\), which cancels in any definite integral. This cancellation is why the lower limit \(x=0\) contributes \(\ln a\) in the closed form even though the angle form contributes zero.

Checking the Original Domain

A final step in any substitution problem is to confirm that the transformed integral is equivalent to the original one. Here the check is straightforward. The map \(x=a\tan\theta\) is continuous and strictly increasing from \((-\frac\pi2,\frac\pi2)\) onto \((-\infty,\infty)\), and \(\sqrt{a^2+x^2}=a\sec\theta\) holds because \(\sec\theta>0\) on this range. The integrand is continuous everywhere, so no limit is improper, and no singularity is crossed. For contrast, the sine substitution requires \(|x|\le a\), and the secant substitution requires \(|x|\ge a\), and both need explicit domain checks.

Interpreting the Arc-Length Application

The value \(\frac12[\sqrt2+\ln(1+\sqrt2)]\approx1.148\) for the arc of the parabola between \(x=0\) and \(x=1\) is compared with two bounds. The chord from \((0,0)\) to \((1,\frac12)\) has length \(\sqrt{1.25}\approx1.118\), and the path along the horizontal and vertical legs of the corner has length \(1.5\). The arc length lies between them, as it must. The formula also shows how a transcendental number such as \(\ln(1+\sqrt2)\) arises naturally from a simple geometric curve.

Large-Interval Behavior

For a long interval \([0,b]\) with large \(b\), the integral \(\int_0^b\frac{dx}{\sqrt{a^2+x^2}}\approx\ln\frac{2b}{a}\) grows only logarithmically, while \(\int_0^b\sqrt{a^2+x^2}\,dx\approx\frac{b^2}{2}+\frac{a^2}{2}\ln\frac{2b}{a}+\frac{a^2}{4}\) grows quadratically. These estimates come from the closed forms and are useful for sanity-checking results with large limits.

Where This Fits in the Course

This tutorial belongs to the module “Trigonometric Substitution”. The tutorial just before it is “Integrals With x√(a^2 + x^2) in the Denominator,” and the one that follows is “Proper Rational Functions And Partial Fraction Forms.” It brings the tangent substitution to definite integrals, where the transformed limits make the arithmetic exact. It also closes the group of trigonometric substitutions in this module, so a good next step is to practice choosing among the sine, tangent, and secant substitutions from the radicand alone, before moving on to partial fractions and completing the square.

Check Your Understanding

Use the method and examples above to answer these questions.

  1. What are the new limits when \(x\) runs from \(0\) to \(a\) under \(x=a\tan\theta\)?
  2. Why does the substitution cause no trouble for limits of opposite sign?
  3. Evaluate \(\int_0^1\frac{dx}{\sqrt{1+x^2}}\).
  4. Which trigonometric integral does \(\sqrt{a^2+x^2}\,dx\) become?
  5. Find the arc length of \(y=\frac{x^2}{2}\) on \([0,1]\).

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