Multivariable calculus

Limit of x^2/(x^2+y^2) at (0,0) Does Not Exist

The limit of x^2/(x^2 + y^2) at the origin does not exist. Along the x-axis the function equals 1 at every point, along the y-axis it equals 0, and along y = x it equals 1/2. In polar coordinates it is cos squared of theta, which depends only on the direction of approach.

f(x,y)=x2x2+y2f(x,y) = \frac{x^2}{x^2 + y^2}

The limit does not exist

PathLimit along it
along y = 01
along x = 00
along y = x0.5

Three paths, three answers

The numerator uses only xx, so travelling along the yy-axis kills it while the denominator survives. Travelling along the xx-axis makes numerator and denominator identical.

f(t,0)=t2t2=1,f(0,t)=0t2=0f(t, 0) = \frac{t^2}{t^2} = 1, \qquad f(0, t) = \frac{0}{t^2} = 0

Two constants, 11 and 00, so the limit is already dead. The diagonal adds a third value for good measure.

f(t,t)=t2t2+t2=12f(t, t) = \frac{t^2}{t^2 + t^2} = \frac{1}{2}

In general f(x,mx)=11+m2f(x, mx) = \frac{1}{1 + m^2}, which is 11 for the flat line and shrinks toward 00 as the line gets steep. Every value in (0,1](0, 1] shows up on some line, and 00 shows up on the yy-axis.

Polar form: the fraction of the squared distance

The denominator is r2r^2, the squared distance from the origin, so the whole function measures what share of that distance comes from the xx direction.

f=r2cos2θr2=cos2θf = \frac{r^2\cos^2\theta}{r^2} = \cos^2\theta

Nothing depends on rr. Sitting on a ray at angle θ\theta and sliding all the way to the origin, the function never changes. Every value in [0,1][0, 1] is attained on points as close to the origin as you like, so there is no candidate limit at all.

This is the cleanest diagnostic in the subject. If the polar form has no rr in it, the limit exists only when the θ\theta expression is constant, and here it plainly is not.

The mistake: cancelling the y^2 because it is small

The reasoning sounds plausible: near the origin yy is tiny, so x2+y2x2x^2 + y^2 \approx x^2, so f1f \approx 1. It fails because xx is tiny at the same time, and what matters is the ratio y/xy/x, not the size of yy on its own.

At the point (106,106)(10^{-6}, 10^{-6}) both coordinates are small, and y2y^2 is exactly as large as x2x^2, so nothing can be dropped. Approaching a point in two variables means controlling a ratio, not just shrinking each coordinate.

  • Dropping a term is only legal when its ratio to the kept term goes to zero along every approach.
  • Here y2/x2y^2/x^2 can be anything at all near the origin.
  • When both terms are the same order along some path, keep them both.

Frequently asked questions

Does the limit exist if I approach along a circle around the origin?

A circle centred at the origin never gets closer to it, so it is not a valid path. Paths must have (x,y)(0,0)(x,y) \to (0,0). A spiral such as r=eθr = e^{-\theta} with θ\theta \to \infty does approach, and on it f=cos2θf = \cos^2\theta keeps oscillating between 00 and 11, confirming the failure.

Is x^2/(x^2+y^2) continuous away from the origin?

Yes. For (x,y)(0,0)(x,y) \neq (0,0) the denominator is positive, so the quotient of two polynomials is continuous. The origin is the only point where the function has no limit, and no assigned value there can fix it.