Multivariable calculus

Limit of xy/sqrt(x^2+y^2) at the Origin

The limit of xy / sqrt(x^2 + y^2) as (x, y) approaches the origin is 0. In polar coordinates the function is r cos(theta) sin(theta), which is at most r/2 in size. Equivalently, 2|xy| is at most x^2 + y^2, so the quotient is bounded by half the distance to the origin.

f(x,y)=xyx2+y2f(x,y) = \frac{xy}{\sqrt{x^2 + y^2}}

The limit exists

lim(x,y)(0,0)xyx2+y2=0\lim_{(x,y) \to (0,0)} \frac{xy}{\sqrt{x^2 + y^2}} = 0
PathLimit along it
along y = 00
along y = x0
along y = -2x0

Paths give the candidate

Start with three straight lines. Each one makes the numerator quadratic in tt while the denominator stays linear, so a factor of tt is left over.

f(t,0)=0t=0f(t,0) = \frac{0}{|t|} = 0
f(t,t)=t22t=t20f(t,t) = \frac{t^2}{\sqrt{2}\,|t|} = \frac{|t|}{\sqrt{2}} \to 0
f(t,2t)=2t25t=2t50f(t,-2t) = \frac{-2t^2}{\sqrt{5}\,|t|} = \frac{-2|t|}{\sqrt{5}} \to 0

Notice the absolute value appearing from t2=t\sqrt{t^2} = |t|. Forgetting it is harmless when the limit is zero, but on a problem where the answer differs for t>0t > 0 and t<0t < 0 it is the difference between a limit and no limit.

Two ways to bound it

In polar coordinates the numerator is degree two in rr and the denominator is degree one, leaving one factor of rr.

f=rcosθrsinθr=rcosθsinθ=r2sin2θf = \frac{r\cos\theta \cdot r\sin\theta}{r} = r\cos\theta\sin\theta = \frac{r}{2}\sin 2\theta
fr2=x2+y220\left|f\right| \le \frac{r}{2} = \frac{\sqrt{x^2+y^2}}{2} \to 0

The same bound comes out without any change of coordinates. Start from (xy)20\left(|x| - |y|\right)^2 \ge 0, which rearranges to 2xyx2+y22|xy| \le x^2 + y^2.

f=xyx2+y2x2+y22x2+y2=x2+y22\left|f\right| = \frac{|xy|}{\sqrt{x^2+y^2}} \le \frac{x^2+y^2}{2\sqrt{x^2+y^2}} = \frac{\sqrt{x^2+y^2}}{2}

Either route squeezes ff between r2-\frac{r}{2} and r2\frac{r}{2}, both of which tend to 00. Use whichever you find faster; the polar version is mechanical, the algebraic version avoids trigonometry entirely.

The mistake: bounding the square root the wrong way

A tempting move is to replace x2+y2\sqrt{x^2+y^2} in the denominator with x+y|x| + |y|, since the two look interchangeable. They are not equal, and the inequality runs one way only: x2+y2x+y\sqrt{x^2+y^2} \le |x| + |y|.

Putting the larger quantity into a denominator makes the fraction smaller, so that substitution produces a lower bound on f|f|. A lower bound is useless for a squeeze, which needs an upper bound tending to zero. Swapping the direction of an inequality inside a fraction is the single most common way these arguments quietly break.

If you do want to use x+y|x| + |y|, put it in the numerator instead. From xy(x+y)24|xy| \le \frac{\left(|x|+|y|\right)^2}{4} you would get an upper bound, though it is messier than the one above.

Frequently asked questions

How does this differ from xy/(x^2+y^2)?

Only in the power of the denominator, and that changes everything. With the square root, polar coordinates leave a surviving factor of rr and the limit is 00. Without it, the quotient is cosθsinθ\cos\theta\sin\theta with no rr at all, so the value depends on direction: 00 along the axes and 12\frac{1}{2} along y=xy = x, and the limit does not exist.

Where does the inequality 2|xy| <= x^2 + y^2 come from?

Expand (xy)2=x22xy+y20\left(|x| - |y|\right)^2 = x^2 - 2|xy| + y^2 \ge 0 and move the middle term across. It is the arithmetic mean and geometric mean inequality for the two numbers x2x^2 and y2y^2, and it is worth memorising, since it settles a large fraction of limit problems at the origin.