Calculus › Section N · Functions of several variables › Topic N.2

Limits and continuity in several variables

In the plane a point can be approached from infinitely many directions, and a limit must survive them all. This one change makes limits subtler — and continuity richer — than anything one variable prepared you for.

From two directions to infinitely many

In one variable, \(x\) can approach \(a\) only from the left or the right, and the limit exists when both one-sided limits agree. In the plane, a point \((x_0, y_0)\) can be approached along axes, along slanted lines, along curves that spiral in — infinitely many paths. The definition of a limit must therefore demand more: \(f(x, y)\) must approach \(L\) no matter how \((x, y)\) finds its way to \((x_0, y_0)\). That single change makes limits of several variables subtler than their one-variable cousins: a function can look perfectly tame along every straight path and still fail to have a limit.

Neighbourhoods and regions

The two-dimensional stand-in for an open interval is an open disk. The \(\delta\)-neighbourhood of \((x_0, y_0)\) is the set of all \((x, y)\) with \(\sqrt{(x - x_0)^2 + (y - y_0)^2} < \delta\); writing \(\le\) instead would include the boundary and make the disk closed. A point of a region is an interior point if some \(\delta\)-neighbourhood about it lies wholly inside the region, and a boundary point if every disk centred there meets both the region and its outside. A region is open if every point is interior, and closed if it contains all of its boundary points.

The definition of a limit

Let \(f\) be defined on an open disk centred at \((x_0, y_0)\), except possibly at the centre, and let \(L\) be a real number. Then

\lim_{(x, y) \to (x_0, y_0)} f(x, y) = L

if for every \(\varepsilon > 0\) there is a \(\delta > 0\) such that \(|f(x, y) - L| < \varepsilon\) whenever \(0 < \sqrt{(x - x_0)^2 + (y - y_0)^2} < \delta\). In pictures: on a punctured disk of radius \(\delta\), the surface stays within an \(\varepsilon\)-band around height \(L\). The strict inequality in front of the distance excludes the centre itself, so the value \(f(x_0, y_0)\) — or its absence — never matters.

The limit laws carry over

Sums, differences, products and quotients behave exactly as in one variable: the limit of a product is the product of the limits, and the limit of a quotient is the quotient of the limits whenever the limit of the denominator is not zero. So most limits are found by substitution, exactly as you would hope. The interesting cases are the 0/0 cases: when numerator and denominator both approach zero, the laws say nothing, and the answer depends on how the point is approached. Those cases are where two-variable limits earn their reputation.

Worked example: a limit by substitution

Find \(\lim_{(x, y) \to (2, 1)} \frac{3xy + y^2}{x^2 + y^2}\). The numerator tends to \(3(2)(1) + 1^2 = 7\) and the denominator to \(2^2 + 1^2 = 5\), which is not zero, so the quotient rule applies and the limit is \(\frac{7}{5}\). A quick sanity check: the nearby point \((2.01, 1.01)\) gives \(\frac{7.1104}{5.0602} \approx 1.405\), already closing in on \(\frac{7}{5} = 1.4\). Substitution is legitimate here because the function is continuous at the point, which is the subject of the second half of this topic.

Worked example: a squeeze proof

Show that \(\lim_{(x, y) \to (0, 0)} \frac{3xy^2}{x^2 + y^2} = 0\). Substitution gives 0/0, so the laws do not apply; instead, bound the function. Since \(|x| \le \sqrt{x^2 + y^2}\) and \(y^2 \le x^2 + y^2\),

\left|\frac{3xy^2}{x^2 + y^2}\right| \le \frac{3\sqrt{x^2 + y^2}\,(x^2 + y^2)}{x^2 + y^2} = 3\sqrt{x^2 + y^2}

Given \(\varepsilon > 0\), choose \(\delta = \varepsilon/3\). Then whenever \(0 < \sqrt{x^2 + y^2} < \delta\), the size of \(f\) is below \(3\delta = \varepsilon\). The squeeze works from every direction at once, which is why it proves what no number of test paths could.

The two-path test

The fastest way to show that a limit does not exist is to exhibit two paths that disagree. Take \(f(x, y) = \frac{xy}{x^2 + y^2}\) at \((0, 0)\). Along the x-axis, where \(y = 0\), the function is identically 0, so the path limit is 0. Along the line \(y = x\), the function is \(\frac{x^2}{2x^2} = \frac{1}{2}\) at every point except the origin, so the path limit is \(\frac{1}{2}\). Two paths, two answers: since a genuine limit must give the same value on every path, this limit does not exist.

Two paths are never enough

Consider \(f(x, y) = \frac{x^2y}{x^4 + y^2}\) at \((0, 0)\). Along every straight line \(y = mx\), the function equals \(\frac{mx}{x^2 + m^2}\), which tends to 0, and along the axes it is exactly 0. Every straight path agrees on 0 — and yet the limit does not exist. Approach along the parabola \(y = x^2\): the function equals \(\frac{x^4}{x^4 + x^4} = \frac{1}{2}\) at every point of the parabola except the origin. The lesson cuts both ways: disagreeing paths prove non-existence, but agreeing paths prove nothing. Only a definition-style or squeeze argument, valid for all paths at once, proves existence.

Continuity in several variables

A function \(f\) is continuous at \((x_0, y_0)\) if \(f(x_0, y_0)\) is defined and \(\lim_{(x, y) \to (x_0, y_0)} f(x, y) = f(x_0, y_0)\). Polynomials in \(x\) and \(y\) are continuous everywhere, rational functions are continuous wherever the denominator is nonzero, and combinations of continuous functions are continuous. Composites too: if \(h\) is continuous at \((x_0, y_0)\) and \(g\) is continuous at \(h(x_0, y_0)\), then \(g(h(x, y))\) is continuous at \((x_0, y_0)\) — which is why \(\sin(xy)\), \(e^{x+y}\) and \(\sqrt{25 - x^2 - y^2}\) are continuous wherever defined. A discontinuity is removable when the limit exists but the value is missing or different: redefine \(f\) at the point to equal the limit.

Worked example: testing continuity

Where is each function continuous? For \(f(x, y) = \frac{x + 2y}{x^2 + y^2}\), a rational function, the only trouble is where the denominator vanishes: at \((0, 0)\). It is continuous at every other point of the plane. For \(g(x, y) = \frac{1}{y - x^2}\), the denominator vanishes on the parabola \(y = x^2\), so \(g\) is continuous everywhere except on that curve. For the three-variable function \(h(x, y, z) = \frac{1}{x^2 + y^2 - z}\), the denominator vanishes on the paraboloid \(z = x^2 + y^2\), and \(h\) is continuous everywhere else in space. (In three variables the definitions are the same, with open spheres, or balls, in place of open disks.) The pattern: find where the formula breaks; continuity holds everywhere else.

Common mistakes to avoid

The gravest error is believing that agreement on two paths proves a limit exists; the parabola example above is the counterexample. The second is reading a 0/0 form as an answer: the laws are silent there, so simplify, squeeze, or test paths. The third is testing only straight-line paths, since curved paths can disagree where all lines agree. The fourth is assuming a limit fails because \(f\) is undefined at the point — the definition excludes the centre, so the limit may exist anyway. And a computer graph can suggest an answer, but only a proof valid for every path at once decides.

Key takeaways

A \(\delta\)-neighbourhood is an open disk, and \(\lim_{(x, y) \to (x_0, y_0)} f(x, y) = L\) means \(f\) stays within \(\varepsilon\) of \(L\) on a whole punctured disk — every path at once. Limit laws allow substitution away from 0/0 forms. Disagreeing paths prove a limit does not exist, but agreeing paths prove nothing; existence is shown by a squeeze or the definition. Continuity means defined value equals limiting value, and polynomials, rational functions, roots and composites such as \(\sin(xy)\) are continuous wherever defined. Continuity fails exactly where the formula breaks, such as on the parabola \(y = x^2\) for \(\frac{1}{y - x^2}\).

Flashcards

Flashcard

δ-neighbourhood

The open disk of radius δ centred at the point

Boundary excluded, like an open interval.

Test your understanding

Question 1 of 5

What is the limit of (3xy + y²)/(x² + y²) as (x, y) approaches (2, 1)?

Question 2 of 5

Along the x-axis, what does f(x, y) = xy/(x² + y²) approach as (x, y) → (0, 0)?

Question 3 of 5

Two different paths give two different path limits at a point. What can you conclude?

Question 4 of 5

Where is g(x, y) = 1/(y − x²) discontinuous?

Question 5 of 5

You test a limit along two paths and both give the same value. What can you conclude?

Standards: Beyond AP

← Previous topicNext topic →