Multivariable calculus

Limit of (x^2+y^2)/(sqrt(x^2+y^2+1)-1) Is 2

The limit of (x^2 + y^2) / (sqrt(x^2 + y^2 + 1) - 1) as (x, y) approaches the origin is 2. Substitution gives the indeterminate form 0/0. Multiplying top and bottom by the conjugate sqrt(x^2 + y^2 + 1) + 1 simplifies the quotient to exactly that expression, which is continuous at the origin with value 2.

f(x,y)=x2+y2x2+y2+11f(x,y) = \frac{x^2+y^2}{\sqrt{x^2+y^2+1} - 1}

The limit exists

lim(x,y)(0,0)x2+y2x2+y2+11=2\lim_{(x,y) \to (0,0)} \frac{x^2+y^2}{\sqrt{x^2+y^2+1} - 1} = 2
PathLimit along it
along y = 02
along y = x2
along x = 02

Substitution gives 0 over 0

At the origin the numerator is 00 and the denominator is 11=0\sqrt{1} - 1 = 0. That is an indeterminate form, which means the direct approach failed, not that the limit failed.

f(t,0)=t2t2+112f(t,0) = \frac{t^2}{\sqrt{t^2+1} - 1} \to 2
f(t,t)=2t22t2+112f(t,t) = \frac{2t^2}{\sqrt{2t^2+1} - 1} \to 2

The paths point at 22. As always, they supply a candidate and nothing more, so the next step is to get the value by an argument that covers every approach.

Multiply by the conjugate

A difference of a square root and a constant is cleared by multiplying by the matching sum, which turns the denominator into a difference of squares.

x2+y2x2+y2+11x2+y2+1+1x2+y2+1+1=(x2+y2)(x2+y2+1+1)(x2+y2+1)1\frac{x^2+y^2}{\sqrt{x^2+y^2+1}-1} \cdot \frac{\sqrt{x^2+y^2+1}+1}{\sqrt{x^2+y^2+1}+1} = \frac{\left(x^2+y^2\right)\left(\sqrt{x^2+y^2+1}+1\right)}{\left(x^2+y^2+1\right) - 1}
=(x2+y2)(x2+y2+1+1)x2+y2=x2+y2+1+1= \frac{\left(x^2+y^2\right)\left(\sqrt{x^2+y^2+1}+1\right)}{x^2+y^2} = \sqrt{x^2+y^2+1}+1

The final expression is continuous at the origin, so its limit is its value there.

lim(x,y)(0,0)(x2+y2+1+1)=1+1=2\lim_{(x,y) \to (0,0)} \left(\sqrt{x^2+y^2+1}+1\right) = \sqrt{1}+1 = 2

Setting u=x2+y2u = x^2+y^2 makes it a one variable statement: uu+11=u+1+12\frac{u}{\sqrt{u+1}-1} = \sqrt{u+1}+1 \to 2 as u0+u \to 0^+. No direction ever enters, which is why no path could have disagreed.

The mistake: reading 0/0 as a verdict

Indeterminate means undetermined by that particular calculation. A 00\frac{0}{0} form can end up as any number, as ±\pm\infty, or with no limit at all, depending entirely on the relative rates. Here both numerator and denominator vanish to first order in uu, and the ratio of their leading coefficients is 22.

There is a second trap, and it is a numerical one. Plot or tabulate this function very close to the origin and the values drift away from 22, because u+11\sqrt{u+1}-1 loses almost all of its significant digits to cancellation once uu is around 101210^{-12}. That is a defect of floating point arithmetic, not of the limit.

The conjugate form u+1+1\sqrt{u+1}+1 is the numerically honest way to evaluate the same quantity, and it stays at 22 to full precision. Rationalising is therefore two useful things at once: the step that proves the limit, and the rewrite that makes the function computable.

Path values are read near t = 1e-4. Closer in than that, sqrt(x^2+y^2+1) - 1 loses most of its significant digits to floating point cancellation, so a double precision evaluation drifts away from 2 even though the exact limit is 2. A 60 digit evaluation at r = 1e-6 returns 2.0000000000005, and the algebraically identical form sqrt(x^2+y^2+1) + 1 is stable at every radius.

Frequently asked questions

Is there a quicker route than the conjugate?

Yes, if you know that 1+u1+u2\sqrt{1+u} \approx 1 + \frac{u}{2} for small uu. The denominator is then about u2\frac{u}{2}, and the quotient is about uu/2=2\frac{u}{u/2} = 2. The conjugate multiplication is the same idea carried out exactly instead of approximately.

What is the limit of (sqrt(x^2+y^2+1)-1)/(x^2+y^2)?

It is 12\frac{1}{2}, the reciprocal of this page's answer. The same conjugate step turns it into 1x2+y2+1+1\frac{1}{\sqrt{x^2+y^2+1}+1}, which is continuous at the origin with value 12\frac{1}{2}.