Multivariable calculus

Limit of x^2y/(x^4+y^2): Lines Agree, Limit Still Fails

The limit of x^2 y/(x^4 + y^2) at the origin does not exist. Every straight line through the origin gives 0, so the line test finds nothing wrong. The parabola y = x^2 gives 1/2 at every point. One disagreeing path is enough, so the limit fails.

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

The limit does not exist

PathLimit along it
along y = 00
along y = x0
along the parabola y = x^20.5

Match the degrees, then choose the path

Start with lines, because they are what everyone tries first. Put y=mxy = mx into ff and simplify.

f(x,mx)=x2mxx4+m2x2=mx3x2(x2+m2)=mxx2+m2f(x, mx) = \frac{x^2 \cdot mx}{x^4 + m^2x^2} = \frac{mx^3}{x^2(x^2 + m^2)} = \frac{mx}{x^2 + m^2}

For any fixed m0m \neq 0 this goes to 0m2=0\frac{0}{m^2} = 0 as x0x \to 0. The xx-axis, where m=0m = 0, has numerator zero throughout, and so does the vertical line x=0x = 0. So every line agrees on 00, and a student who stops here concludes the limit is 00.

Look at the denominator to see why lines are hopeless. The two terms x4x^4 and y2y^2 balance when yy is comparable to x2x^2, not to xx. On a line, y2=m2x2y^2 = m^2x^2 swamps x4x^4 near the origin, so the fraction is really mx3m2x2\frac{mx^3}{m^2x^2}, which vanishes. Choose the path that makes both terms the same size instead.

f(t,t2)=t2t2t4+(t2)2=t42t4=12f(t, t^2) = \frac{t^2 \cdot t^2}{t^4 + (t^2)^2} = \frac{t^4}{2t^4} = \frac{1}{2}

The function is exactly 12\tfrac{1}{2} at every point of the parabola y=x2y = x^2, arbitrarily close to the origin. Since lines give 00 and this parabola gives 12\tfrac{1}{2}, the limit does not exist.

The rule of thumb for picking the killer path

Read the denominator and ask which curve makes its two terms comparable. Here x4x^4 and y2y^2 are equal in size along y=±x2y = \pm x^2, so those are the candidate paths. The family y=kx2y = kx^2 shows the whole spread of values.

f(t,kt2)=t2kt2t4+k2t4=k1+k2f(t, kt^2) = \frac{t^2 \cdot kt^2}{t^4 + k^2t^4} = \frac{k}{1 + k^2}
  • k=1k = 1 gives 12\tfrac{1}{2}, the largest value.
  • k=1k = -1 gives 12-\tfrac{1}{2}, the smallest.
  • k0k \to 0 recovers the value 00 that the lines produced.
  • Any two different values of kk already disprove the limit.

Polar coordinates are less helpful here than usual. The function becomes rcos2θsinθr2cos4θ+sin2θ\frac{r\cos^2\theta\sin\theta}{r^2\cos^4\theta + \sin^2\theta}, and for fixed θ\theta with sinθ0\sin\theta \neq 0 this tends to 00. Holding θ\theta fixed is just the line test wearing different clothes, so it misses the parabola too.

The mistake: believing that all lines is the same as all paths

This function exists in every textbook for one reason: it breaks the belief that checking lines is enough. Approaching along all straight lines gives 00, and yet the limit does not exist. There is no finite list of paths whose agreement proves existence.

The practical habit: after lines agree, do not write the limit down. Either find a curve that balances the denominator, or prove the limit with an inequality. For this function the search succeeds, because f|f| reaches 12\tfrac{1}{2} on points as close to the origin as you like.

The same trap appears with xy2x2+y4\frac{xy^2}{x^2 + y^4}, where the killer path is the sideways parabola x=y2x = y^2, and with x3yx6+y2\frac{x^3y}{x^6 + y^2}, where it is the cubic y=x3y = x^3. In each case the winning path is the one that makes the denominator's two terms the same order.

Frequently asked questions

Is the function bounded near the origin?

Yes. By the inequality x4+y22x2yx^4 + y^2 \geq 2|x^2 y|, you get f12|f| \leq \tfrac{1}{2} everywhere the function is defined. It is bounded and still has no limit, which shows boundedness alone proves nothing.

Why does the parabola work when the lines do not?

On a line y=mxy = mx the term y2=m2x2y^2 = m^2x^2 dominates x4x^4, so the denominator behaves like m2x2m^2x^2 and the degree-three numerator loses. On y=x2y = x^2 both denominator terms are x4x^4, matching the numerator's x4x^4, so the ratio is a nonzero constant.