Limits and Continuity in Several Variables
Does a function of two variables settle down to a single value? This must hold as we approach a point from every possible direction at once. This question is subtler than it looks. In single-variable calculus, a point on the line can only be approached from the left or the right. So checking a limit means checking two directions. In for , a point can be approached along infinitely many paths. These include straight lines of every slope, parabolas, spirals, and sequences that zig-zag erratically. The limit exists only if the function converges to the same value along all of them simultaneously. This distinction is not a technicality. It is the central new phenomenon of multivariable calculus. Functions that look perfectly innocent, built from ratios of polynomials, can fail to have a limit at the origin. This happens precisely because different paths of approach disagree. Understanding this failure mode is essential. So is building a rigorous apparatus to detect and rule it out. This is the foundation on which differentiability, the chain rule, and all of vector calculus are built. The payoff for getting this right is large. Continuity in several variables is what makes optimization problems well-posed. Without it, the Extreme Value Theorem fails. "Find the maximum of on this closed bounded region" becomes meaningless. Continuity is also what allows us to compute limits of vector-valued functions componentwise. This reduces an problem to ordinary scalar problems. But first we must establish that this reduction is valid. This article gives the precise – definition of a multivariable limit. It explains why "path tests" only ever disprove limits and never prove them. It proves the componentwise criterion for vector-valued functions. It also proves the Extreme Value Theorem for continuous functions on compact subsets of . Throughout, we build on Euclidean Space and Norms and Open and Closed Sets in R^n. We also set the stage for Partial Derivatives and Differentiability and the Total Derivative.
- A limit in means: for every there is such that — one must work for all directions.
- Approaching along different paths (lines, parabolas, curves) that give different limiting values proves the limit does not exist; agreement along finitely many paths never proves it does.
- Continuity at means is defined at and ; it is equivalent to the topological "preimage of open is open" definition.
- A vector-valued function is continuous iff each real-valued component is continuous — this is the componentwise criterion.
- The Extreme Value Theorem: a continuous real-valued function on a nonempty compact subset of attains a global maximum and minimum.
- Key idea: in several variables, "the limit exists" is a statement about uniform agreement over an entire (n-1)-sphere of directions at once, not a finite check of cases.
Where this lives today
Multivariable continuity is the load-bearing wall beneath essentially all of applied analysis. In optimization theory and machine learning, the Extreme Value Theorem is the reason a loss function continuous on a compact constraint set (e.g. a probability simplex, or a bounded parameter box) is guaranteed to have a global minimum to search for — without compactness, gradient descent could chase a supremum that is never attained. In physics, continuity of fields — temperature , electric potential, fluid velocity — is the baseline assumption needed before one can even ask whether a Partial Derivatives exists at a point, since differentiability at a point requires continuity there as a prerequisite. In numerical analysis, root-finding and fixed-point algorithms in (e.g. multivariable Newton's method) rely on continuity to guarantee that small input perturbations produce small output perturbations, making iterative schemes stable. In economics, continuity of utility and production functions over compact commodity or feasibility sets is exactly what guarantees (via this same Extreme Value Theorem) that an optimal consumption bundle or profit-maximizing production plan exists at all. In topology and geometric analysis, the componentwise criterion generalizes to continuity of maps into product spaces, a cornerstone fact used constantly when working with vector fields, parametrized curves and surfaces, and coordinate charts on manifolds.
Ask the tutor: Why does agreement of a multivariable limit along every straight line through a point still fail to guarantee the limit exists?
Let , let be a limit point of (i.e., every ball around contains a point of other than ), and let . We say
for some if for every there exists such that
where denotes the Euclidean norm on the appropriate space ( on the left, on the right). If , we say is continuous at if
meaning: for every there is such that and imply (note the ball around need not be punctured here, since trivially satisfies the conclusion). We say is continuous on if it is continuous at every point of .
Intuition
In one variable, "" means slides in along the real line from the left or from the right — two directions, period. In , the set of points within distance of (minus itself) is a punctured ball, and can approach from any direction on the unit sphere, or along a curve that spirals through infinitely many directions as it closes in. The – definition demands one radius that simultaneously controls 's behavior on the entire punctured ball — not just along one ray. This is why "plug in along a line " is such a seductive but dangerous technique. If tends to a limit depending on , we instantly know the true limit does not exist, because a single -ball must give one value for all approach directions, and here different lines already disagree. But if for every (and even every polynomial path), that alone does not prove the two-variable limit is : there might be some non-algebraic curve — for instance — hiding in the ball where misbehaves, invisible to any straight-line test. The first figure shows the punctured disk around that the definition quantifies over, together with several paths of approach. The second figure is the classic function , which is constant along every line through the origin but tends to along the parabola — the canonical illustration that "all lines agree" is not enough.
Central results
Let , let be a limit point of , and let be written in coordinates as where each . Let . Then
Consequently, if , is continuous at if and only if every component function is continuous at .
We use the elementary inequality relating the Euclidean norm on to its coordinates: for ,
The left inequality holds because . The right inequality holds because , using that all terms are nonnegative. () Suppose . Fix and let . By hypothesis there is such that (with ) implies . For such , apply the left inequality in to the vector , whose -th coordinate is :
Thus for every this same works, so . () Suppose for every . Let . Set . For each , by hypothesis there is such that , implies . Let
(a finite minimum of positive numbers is positive). If and , then for every , so for every . Apply the right inequality in to :
Since was arbitrary and we exhibited a working , we conclude . The continuity statement follows immediately: continuity at is exactly the limit statement with , i.e. for each , so continuous at for all each is continuous at .
∎Let , a limit point of , , . Then if and only if for every sequence in with , we have .
() Suppose and let with . Let ; choose from the definition of the limit. Since , there is such that ; since also we have , so for all . Hence . (, contrapositive) Suppose , i.e. the – condition fails: there exists such that no works, meaning for every there is some with but . Apply this with for each to obtain a point with and . Then (since ) but (since never drops below ). This is a sequence violating the right-hand side, proving the contrapositive.
∎If and are two sequences in with and where , then does not exist. This follows immediately from the Path/Sequential Characterization lemma: if the limit existed, both sequential limits would have to equal , forcing , a contradiction.
Let be nonempty and compact (equivalently, by the Heine–Borel Theorem, closed and bounded), and let be continuous on . Then is bounded on , and there exist points such that
That is, attains a global maximum and a global minimum value on .
We give the standard sequential-compactness proof.
Step 1: is sequentially compact. By the Heine–Borel theorem (established alongside Open and Closed Sets in R^n), a subset of is compact if and only if it is closed and bounded, and closed-and-bounded subsets of are sequentially compact: every sequence in has a subsequence converging to a point of . We use this fact.
Step 2: is bounded above on . Suppose for contradiction is not bounded above. Then for each there exists with . By sequential compactness, has a subsequence converging to some . Since is continuous at and , the sequential characterization of continuity (the special case of the Path/Sequential Characterization lemma above) gives , a finite real number. But , so , contradicting convergence to the finite value . Hence is bounded above on . The same argument applied to shows is bounded below.
Step 3: The supremum is attained. Let , which is a finite real number by Step 2 and the completeness of (a nonempty set bounded above has a supremum). By the definition of supremum, for each there exists with
This produces a sequence in with (squeeze: and both bounds ). By sequential compactness of , some subsequence converges to a point . By continuity of at ,
But is a subsequence of , which converges to ; every subsequence of a convergent sequence converges to the same limit, so as well. By uniqueness of limits in , . Thus the supremum is attained at .
Step 4: The infimum is attained. Apply Steps 2–3 to , which is continuous on since is (a constant multiple of a continuous function is continuous — immediate from the – definition with rescaled). This produces with , i.e. .
∎Worked examples
Example 1 (a limit that genuinely exists, verified rigorously — not just "by inspection"). Let
Claim: . Path tests first (necessary but not sufficient — used here to build confidence, not as proof). Along : . Along : . Along : as , for every fixed . All lines agree on . This is consistent with, but does not prove, the claim. Rigorous proof via the – definition. We bound using polar-type estimates. Write . Since and ,
Also . Hence for ,
Given , choose . If , then , so
This holds for every direction of approach simultaneously — the bound depends only on the distance to the origin, not on the angle — so the – condition is verified and
Example 2 (a limit that does not exist, with a full two-path disproof plus a check that the "all lines agree" trap is avoided). Let
Step 1: check lines. Along ( fixed, ):
for every fixed (including , giving identically ). So every straight-line path gives limit . If we stopped here we would (wrongly) conjecture the limit is . Step 2: try the curve , matching the denominator's degree structure. For ,
So along the parabola , is constant at , for all — in particular as . Step 3: apply the Two-Path Test corollary. Take , so and . Take , so and . Since , the corollary to the Path/Sequential Characterization lemma applies directly:
This example is the sharpest possible illustration of the danger in Example 1's method: infinitely many straight-line checks (an entire pencil of lines) all agreeing is still not a proof, because the true obstruction lives along a curve tangent to every line at the origin.
The theorem implicitly used in practice — "if tends to along every straight line through , then " — is false, and Example 2 already disproves it. Let us isolate exactly which hypothesis is missing and restate the false claim precisely to see the gap. False claim: If for every , (and also ), then . Why this looks plausible: it is tempting to think that since every direction from the origin is some line (or the vertical line ), checking "all " checks "all directions," hence should check "all paths." Where it fails: the definition of requires one single that controls on the full punctured ball , uniformly over the entire ball at once. Checking a line only samples the restriction of to that one ray; the that works for that ray can depend on , and as (or the shape of the approach curve) varies continuously, no single need work for all of them simultaneously — especially for curves, like parabolas, that are not lines at all and hence aren't sampled by the family . Concretely, using from Example 2: every line gives limit (verified above), satisfying every hypothesis of the false claim with . Yet the true limit does not exist, since for while . The hypothesis silently dropped is that the family of paths tested — lines through the origin — does not exhaust "all possible modes of approach": it misses curves such as that hug the origin in a way no line does. The moral: a path test can only be used to disprove a limit (via the rigorously proven Two-Path Test corollary); it can never be used to prove one, because "all lines" is not "all sequences/paths."
Scope, edge cases & common traps
| Situation | What to check | Common mistake |
|---|---|---|
| Suspect limit exists | Bound by a function of alone (polar-type or algebraic estimate), then do – | Treating agreement along several lines as a proof |
| Suspect limit fails to exist | Find two paths (sequences) to giving different limiting values | Only trying lines , missing curves like or |
| Vector-valued | Apply componentwise criterion to reduce to scalar limits | Forgetting the criterion requires the same point and same limit point status for all components — it does not let you take limits along different paths per component |
| Extreme Value Theorem | Confirm domain is both closed and bounded (compact), and continuous on all of | Applying EVT on an open or unbounded set (e.g. open disk, or on all of ), where no maximum exists |
| Continuity at a boundary/limit point not in domain | The definition of continuity requires | Confusing "limit exists at " with " is continuous at " when isn't even defined there, or when is defined but disagrees with the limit (removable discontinuity) |
The mathematician behind it
Origins · 1 minKarl Weierstrass and how this was discovered
Karl Weierstrass is the figure most responsible for the – formalism that makes rigorous multivariable limits possible at all. Working as a Gymnasium teacher for over a decade before his mathematical talent was recognized, Weierstrass later became a professor in Berlin, where his lectures — never published by him directly, but transcribed and circulated by students — set the standard for rigor that all of modern real and complex analysis still follows. He insisted that "limit," "continuity," and "convergence" be defined by explicit, checkable inequalities rather than appeals to infinitesimals or geometric intuition, banishing centuries of ambiguity about what a limit "really is." His construction of a continuous, nowhere-differentiable function (built from a lacunary trigonometric series) shocked contemporaries who believed continuity implied differentiability except at isolated points, and it is a direct descendant of the same – machinery used here — a striking early demonstration that continuity alone, without further hypotheses, is a far weaker property than intuition suggests.
Why isn't checking limits along the x-axis and y-axis enough, like it was implicitly enough in one variable?
In one variable, a point on truly has only two sides, so checking the left-hand and right-hand limits genuinely exhausts all ways of approaching a point. In for , the "boundary" of a small ball around a point is an entire sphere (a circle in , an actual sphere in ), containing infinitely many directions, plus infinitely many curved paths that are not straight lines at all. Checking the two axes samples only two of infinitely many rays, and rays alone don't sample curved paths like parabolas or spirals. The only way to prove a multivariable limit exists is to directly verify the – definition (often via an inequality bounding by a function of alone), since that definition quantifies over the entire punctured ball uniformly.
Is it true that continuity in each variable separately implies continuity as a function of both variables together?
No, and this is one of the most important cautionary facts in the subject. Define for and . Fixing , for all , which is continuous in ; fixing , for all , continuous in . So is continuous in each variable separately at the origin. But along the line , for all , which does not tend to . So is not (jointly) continuous at . Joint continuity is a strictly stronger condition than separate continuity in each variable.
Does the componentwise criterion mean I can compute limits of vector-valued functions one coordinate at a time using ordinary single-variable rules?
Partially — the criterion legitimately reduces the vector limit problem to scalar limit problems, but each of those scalar problems is still a genuine multivariable limit (since the domain point is still in ), not a single-variable limit unless . For example, for mapping , the criterion says exists iff both and exist — and each of those must still be handled with genuinely multivariable techniques (continuity of elementary functions, algebraic limit laws, or – estimates), just one coordinate at a time instead of all at once.
Why does the Extreme Value Theorem fail on an open set, like the open unit disk?
Consider on the open unit disk , which is bounded but not closed (it's missing its boundary circle). This is continuous everywhere on , but as approaches the boundary circle from inside, ; since the boundary points are excluded from the domain, is unbounded on and certainly attains no maximum. The proof of the Extreme Value Theorem crucially used sequential compactness to guarantee that a maximizing sequence has a subsequence converging to a point of itself; on a non-closed set, that limit point can escape the domain, which is exactly the failure mode here.
If a function is continuous at every point of an open set, is it automatically bounded there?
No — continuity is a purely local, pointwise property and carries no global information by itself. The function is continuous at every point of the punctured plane (an open set), yet is unbounded near the origin. The Extreme Value Theorem's boundedness conclusion crucially requires the domain to be compact (closed and bounded); it is precisely the compactness hypothesis, not continuity alone, that forces a continuous function to be globally bounded and to attain its extrema.
What is the relationship between the – definition and the "open sets" definition of continuity I may have seen?
For , the – definition given here is provably equivalent to the topological definition: is continuous on iff is open in for every open . The equivalence is proved by unwinding definitions: given – continuity, for open and , pick a ball (possible since is open), get from continuity, and check ; the converse runs the same argument backward using that balls are open sets. This equivalence, built on Open and Closed Sets in R^n, is why "continuous" can be characterized either analytically (via inequalities) or topologically (via preimages of opens), and both formulations are used throughout analysis and topology.