Limits and continuity in several variables

In one-variable calculus you can only approach a point from the left or the right — two directions, two one-sided limits, and you are done. The moment a function depends on two variables, f(x,y)f(x,y), that comfortable picture collapses: a point in the plane can be approached along infinitely many paths — straight lines of every slope, parabolas, spirals — and the limit is only allowed to exist if every single one of those paths agrees on the same value. This article builds the formal definition of lim⁡(x,y)→(a,b)f(x,y)\lim_{(x,y)\to(a,b)} f(x,y), shows the standard trick for proving a limit does not exist (find two paths that disagree), and the standard trick for proving one does exist (bound the function using polar coordinates and squeeze it to zero). It closes with continuity, which simply asks that the limit at a point equal the function's actual value there. This is the gateway topic of the MA10001 multivariable-calculus unit: everything about partial derivatives and differentiability that follows assumes you can handle this multi-path subtlety correctly.

The core insight

A multivariable limit exists only if the function approaches the same value along every possible path of approach, so a single disagreeing path disproves it while proving existence needs a direction-independent bound.

The core idea

Setting up the definition. For a function f(x,y)f(x,y) defined near (a,b)(a,b) (though not necessarily at (a,b)(a,b)), the limit statement generalizes the familiar ε\varepsilon-δ\delta idea from one variable, except distance is now measured in the plane rather than along a line.

lim⁡(x,y)→(a,b)f(x,y)=L  ⟺  ∀ε>0, ∃δ>0 such that 0<(x−a)2+(y−b)2<δ  ⟹  ∣f(x,y)−L∣<ε\lim_{(x,y)\to(a,b)} f(x,y) = L \iff \forall \varepsilon>0,\ \exists \delta>0 \text{ such that } 0 < \sqrt{(x-a)^2+(y-b)^2} < \delta \implies |f(x,y)-L| < \varepsilon

where: ε\varepsilon is the tolerance on the output, δ\delta is the corresponding tolerance on how close (x,y)(x,y) must sit to (a,b)(a,b), and (x−a)2+(y−b)2\sqrt{(x-a)^2+(y-b)^2} is ordinary Euclidean distance in the plane, the two-variable stand-in for ∣x−a∣|x-a|.

Why "every path" matters. In R1\mathbb{R}^1 there are exactly two directions of approach, so two one-sided limits settle the question. In R2\mathbb{R}^2 there is a whole continuum of directions and even curved routes of approach, and the definition above only tests a small disc shrinking around (a,b)(a,b) — it says nothing about which route you take through that disc. That silence is precisely the point: the definition demands agreement along every route simultaneously. This gives a one-directional test that is used constantly in practice — if two specific paths through (a,b)(a,b) produce two different limiting values, the two-variable limit is immediately certified not to exist, since a genuine limit would have forced both paths to agree. The reverse implication does not hold: agreement along finitely many paths, however many you check, never proves existence, because infinitely many untested paths remain.

Continuity. Once the limit machinery is in place, continuity is a short add-on: a function is continuous at (a,b)(a,b) when the limit exists there and equals the function's actual value.

f is continuous at (a,b)  ⟺  lim⁡(x,y)→(a,b)f(x,y)=f(a,b)f \text{ is continuous at } (a,b) \iff \lim_{(x,y)\to(a,b)} f(x,y) = f(a,b)

where: the left side requires the limit to exist at all (agreement along every path), and the equality then pins that common value to f(a,b)f(a,b) itself, ruling out removable-looking gaps. As in single-variable calculus, sums, differences, products, quotients (away from zero denominators), and compositions of continuous functions stay continuous, so polynomials in x,yx,y are continuous everywhere and rational functions are continuous wherever the denominator does not vanish — you rarely need to grind through ε\varepsilon-δ\delta by hand once you know this.

Figure
Three approach paths toward the origin in the xy plane, a straight line, a parabola and a spiral, illustrating that a two variable limit must agree along all of them
Many paths, one target point (a, b) (a, b) line y = mx curve y = x^2 spiral path The limit exists only if f approaches the same value along every one of these routes
Derivation AThe polar squeeze bound proves a two-variable limit exists

The goal is to show that if a function can be rewritten in polar coordinates x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta as f=r⋅g(θ)f = r \cdot g(\theta) where g(θ)g(\theta) stays bounded for every angle θ\theta, then the limit as (x,y)→(0,0)(x,y)\to(0,0) is forced to be zero along every possible path at once, turning an infinite-path problem into a single one-variable squeeze argument that a student already knows how to run.

Step 1. Substitute x=rcos⁡θ, y=rsin⁡θx=r\cos\theta,\ y=r\sin\theta into f(x,y)f(x,y). Because (x,y)→(0,0)(x,y)\to(0,0) from any direction corresponds exactly to r→0+r\to0^+ with θ\theta free to be anything, this substitution replaces "approach from an unspecified direction" with "let rr shrink, for an arbitrary but fixed θ\theta." Nothing about the direction is assumed yet — θ\theta is left completely general.

Step 2. Isolate the rr-dependence and bound the angular part. Suppose the algebra reduces ff to the form r⋅g(θ)r \cdot g(\theta), and suppose further that ∣g(θ)∣≤M|g(\theta)| \le M for some constant MM and every θ\theta (a bound on things like cos⁡θ\cos\theta, sin⁡θ\sin\theta or their products is always available since ∣cos⁡θ∣≤1|\cos\theta|\le1 and ∣sin⁡θ∣≤1|\sin\theta|\le1). Then ∣f(x,y)∣=r ∣g(θ)∣≤Mr|f(x,y)| = r\,|g(\theta)| \le Mr.

Step 3. Apply the squeeze theorem in the single variable rr. Since 0≤∣f(x,y)∣≤Mr0 \le |f(x,y)| \le Mr and Mr→0Mr \to 0 as r→0+r \to 0^+ regardless of what θ\theta happens to be, the squeeze theorem forces ∣f(x,y)∣→0|f(x,y)| \to 0, hence f(x,y)→0f(x,y) \to 0.

Step 4. Read off why this settles every path at once. The bound MrMr never referenced θ\theta, so the conclusion f→0f\to0 holds simultaneously for straight lines, parabolas, spirals — anything approaching the origin — because all of them are just particular choices of how θ\theta varies as r→0r\to0. This is what makes the polar-squeeze method a genuine existence proof rather than a check of a handful of paths: it certifies agreement along the entire, uncountable family of approach routes in one stroke.

Worked example

Show that lim⁡(x,y)→(0,0)x2yx2+y2=0\displaystyle \lim_{(x,y)\to(0,0)} \frac{x^2y}{x^2+y^2} = 0, and use this to establish that f(x,y)=x2yx2+y2f(x,y) = \dfrac{x^2y}{x^2+y^2}, with f(0,0)=0f(0,0)=0, is continuous at the origin.

Step 1. Substitute x=rcos⁡θ, y=rsin⁡θx=r\cos\theta,\ y=r\sin\theta, so (x,y)→(0,0)(x,y)\to(0,0) becomes r→0+r\to0^+ with θ\theta arbitrary:

f(x,y)=r2cos⁡2θ⋅rsin⁡θr2=rcos⁡2θsin⁡θ.f(x,y) = \frac{r^2\cos^2\theta \cdot r\sin\theta}{r^2} = r\cos^2\theta\sin\theta.

Step 2. Bound the angular factor. Since ∣cos⁡2θsin⁡θ∣≤1|\cos^2\theta\sin\theta| \le 1 for every θ\theta (each factor is bounded by 11 in magnitude), we get ∣f(x,y)∣=r ∣cos⁡2θsin⁡θ∣≤r|f(x,y)| = r\,|\cos^2\theta\sin\theta| \le r.

Step 3. Squeeze. As r→0+r\to0^+ the bound r→0r\to0 independently of θ\theta, so by the squeeze theorem f(x,y)→0f(x,y)\to0 along every path simultaneously; the limit exists and equals 00.

Step 4. Check continuity. We are told f(0,0)=0f(0,0)=0, and Step 3 gave lim⁡(x,y)→(0,0)f(x,y)=0=f(0,0)\lim_{(x,y)\to(0,0)} f(x,y) = 0 = f(0,0), so ff is continuous at the origin. Away from the origin ff is a quotient of polynomials with nonzero denominator, hence continuous there too, so ff is continuous on all of R2\mathbb{R}^2.

Competitive stretch

Does lim⁡(x,y)→(0,0)x3yx6+y2\displaystyle \lim_{(x,y)\to(0,0)} \frac{x^3y}{x^6+y^2} exist?

Step 1. Try every straight line y=mxy=mx first. Then f(x,mx)=x3⋅mxx6+m2x2=mx4x2(x4+m2)=mx2x4+m2→0f(x,mx) = \dfrac{x^3 \cdot mx}{x^6+m^2x^2} = \dfrac{mx^4}{x^2(x^4+m^2)} = \dfrac{mx^2}{x^4+m^2} \to 0 as x→0x\to0, for every fixed slope mm (including m=0m=0). So all straight-line paths, without exception, agree on the value 00.

Step 2. That agreement is the trap the traps section below warns about — try the curved path y=x3y=x^3 instead. Then f(x,x3)=x3⋅x3x6+x6=x62x6=12f(x,x^3) = \dfrac{x^3\cdot x^3}{x^6+x^6} = \dfrac{x^6}{2x^6} = \dfrac12 for all x≠0x\neq0, so f→12f\to\dfrac12 along this path.

Step 3. Compare. Straight lines give 00; the curve y=x3y=x^3 gives 12\dfrac12 — two different values. The limit does not exist, even though it looked settled after checking infinitely many straight lines.

Common traps

  • Checking only straight-line paths y=mxy=mx and declaring the limit exists. Agreement along all lines is necessary but never sufficient, as the competitive stretch example shows — a matched-degree curved path (here y=x3y=x^3, matching the x6x^6 in the denominator) can still disagree.
  • Treating "the limit along one path equals f(a,b)f(a,b)" as proof of continuity. Continuity needs the limit to exist (all paths agreeing) and to equal f(a,b)f(a,b); one path is never enough evidence.
  • Letting the polar bound secretly depend on θ\theta. Writing something like ∣f∣≤r/cos⁡θ|f|\le r/\cos\theta and calling it a valid squeeze bound is invalid, since that bound blows up as θ→π/2\theta\to\pi/2 instead of shrinking uniformly with rr.
  • Assuming every rational function of x,yx,y is continuous everywhere. It is continuous only where the denominator is nonzero; at zeros of the denominator the limit must be investigated separately, exactly as in the worked examples above.

Ask the tutor: if you want to test whether a specific two-variable limit exists, or practice choosing the right second path or polar bound, ask the AI tutor to work through it with you step by step.

Why isn't checking a lot of straight-line paths good enough to prove a limit exists?

Because "a lot" is still finitely many, and the definition demands agreement along the entire infinite family of approach routes, straight and curved alike. Two-variable functions can be perfectly well-behaved along every line through a point y=mxy=mx (giving the same value for every slope mm) yet still fail along a matched-degree curve like y=x3y=x^3 or y=x2y=x^2, as the competitive stretch example shows. The only way to prove existence in general is a direction-independent bound, typically via the polar-coordinate squeeze, because that argument covers every angle θ\theta at once rather than one path at a time.

How do I decide which second path to try when disproving a limit?

Look at the algebraic structure of the function, especially matching degrees between numerator and denominator. If the denominator has a term like x2+y2x^2+y^2 (degree 2) and the numerator is also degree 2 overall, straight lines y=mxy=mx often all give the same answer while a genuinely curved path breaks the tie. A reliable first move is y=0y=0 (often trivially giving 00), then y=xy=x, then, if those agree, a curve shaped like the dominant term in the denominator, such as y=x2y=x^2 when you see x4+y2x^4+y^2, since that curve makes both terms comparable in size instead of one swamping the other.

Once I've shown a limit exists via the polar squeeze, do I still need to separately prove continuity?

Yes, but it is a short final step, not a new proof. The squeeze argument only establishes lim⁡(x,y)→(a,b)f(x,y)=L\lim_{(x,y)\to(a,b)} f(x,y) = L. Continuity additionally requires that ff actually be defined at (a,b)(a,b) and that f(a,b)f(a,b) equal that same LL. For a piecewise definition like f(x,y)=x2y/(x2+y2)f(x,y)=x^2y/(x^2+y^2) with f(0,0)f(0,0) set to 00 by hand, you must check the given value 00 against the computed limit 00 — if they matched by construction the function is continuous, but if the definition had instead set f(0,0)=1f(0,0)=1, the same limit computation would prove a discontinuity rather than continuity.

Before this

Where this leads