A point in the plane can be approached from infinitely many directions and along infinitely many curves, so a limit in several variables has far more ways to fail than a limit on the real line, where there are only a left and a right.
The previous lesson ended with the tool this one needs: the distance from to is , whatever direction separates them. This lesson uses that number to define limits and continuity in two variables, shows how a limit can depend on the path, and gives a reliable way to prove that one exists. It assumes the one variable limit from Calculus I.
Closeness is distance
In one variable, is a tolerance game: name any tolerance on the output, and some tolerance on the input keeps within it. The several variable version keeps the game and changes only how the input tolerance is measured. Instead of , use the distance to the point:
means that for every there is a such that forces .
Geometrically, the points within of form an open disc, and the condition removes its centre. So the limit is a promise about a punctured disc: every point in it, in every direction, has a value within of . The value at itself plays no part and need not exist, as at the hole of .
Producing a works the same way as before, with one new habit: bound everything by the distance . Two facts do most of the work. Each coordinate difference is at most the distance, and , since a leg of a right triangle is never longer than its hypotenuse. And a dot product is at most the product of lengths, , since .
Take . The quantity is the dot product of with , so , and works. The bound is sharp: at distance in the direction , the point gives , exactly .
Every path must agree
If the limit is , then every point of the punctured disc has its value within of , and in particular every point of any path that runs into . So the values along every path must tend to : along the axis, along any line, along a parabola, along a spiral. This gives the standard way to show that a limit does not exist. Find two paths into the point along which the function tends to different values, or one path along which it tends to nothing, and no can satisfy the definition.
This is the left and right limit test of one variable, with infinitely many sides. It runs in one direction only: agreement along two paths, or ten, or every line, proves nothing, because a path not yet tried may disagree. Paths disprove; they never prove.
A limit that depends on the direction
Take , defined everywhere except the origin. Along the axis, and the function is at every point, so it tends to . Along the axis it is also . Along the diagonal it is at every point, however close to the origin. Two paths, two different values, and the limit does not exist.
All the lines at once tell the whole story. Along with ,
which does not depend on at all: the function is constant along each line through the origin, with the constant set by the slope. The slope gives , gives , and as runs over the real numbers the constant covers every value from to . So every punctured disc around the origin, however small, contains points where and points where , and no tolerance smaller than can be met around any candidate .
Polar coordinates make the same point in one line. Writing and , where is the distance to the origin and the angle of the direction, gives . The distance has cancelled completely, so the value depends only on the direction. The level curves of are the lines through the origin, all crowding into the hole with every height from to .
Example. Show that has no limit at the origin.
Along the value is , again constant on each line. The axis, , gives . The line gives . The axis, which is not of the form and must be checked on its own, has and value . Three different values along three paths, so there is no limit. In polar coordinates the function is , which again has lost .
Now you. Find the value that approaches along the line , and use it to show that the function has no limit at the origin.
Answer
Along the value is . The axis gives and the line gives , so two paths disagree and the limit does not exist.
Every line is not enough
After the examples above it is tempting to check all the lines through the point and, if they agree, declare the limit. The function
shows why that fails. On the axis and the axis it is . Along with ,
and as the numerator goes to while the denominator goes to , so the limit is . Every line into the origin gives . Numerically, along the values at , and are , and , heading steadily for zero.
Now approach along the parabola instead:
at every point, however close. At the value is exactly . So there are points with in every punctured disc around the origin, and the limit does not exist, even though it is along every straight line. Along the value is : is constant on parabolas the way is constant on lines.
Straight lines are simply the wrong family of paths for this function, and no finite list of families is always the right one. To prove a limit exists, something must control every point of a punctured disc at once.
Polar coordinates and the squeeze
The tool that controls a whole disc is a bound that depends on the distance alone. Suppose that near
where is the distance to and as . Given , choose so that whenever , which the one variable limit of guarantees. Then every point of the punctured disc of radius has , whatever its direction. This is the squeeze theorem of Calculus I, with trapped between and , and both walls closing in on as the distance shrinks.
At the origin, polar coordinates are the natural way to find such a bound, because is the distance. Substitute , , simplify, and try to write as at most something in alone. Since and , any leftover trigonometric factors can be bounded by . The one requirement is that the final bound contain no : a bound that shrinks for each fixed direction but not uniformly across all of them proves nothing.
Example. Prove that as , and find a for each .
In polar coordinates the numerator is and the denominator is , so the function equals . Its size is at most , since the trigonometric factors are at most . The bound contains no and tends to , so the limit is , and works. As a check, at the function is , and the bound there is .
Now you. Prove that at the origin, and give a that works for .
Answer
In polar coordinates the function is , at most with no left, so the limit is . Any with works, for instance .
Counting degrees predicts the outcome. In the numerator and denominator both have degree , the powers of cancel exactly, and a pure function of is left, which is what makes the value depend on the direction. In the example the numerator has degree , one spare power of survives, and it drives the whole expression to zero. The rule is a guide, not a theorem, and misleads it. In polar coordinates
and for each fixed with this tends to as . But when is as small as , the denominator shrinks to the size of and the fraction reaches ; those are the points of the parabola . No bound in alone exists, which is exactly the failure the requirement above rules out.
Where continuous functions come from
A function of two variables is continuous at when is defined and : the limit exists and the function takes the value it predicts. It is continuous on a region when it is continuous at every point of it. Continuity is recognised on sight the same way as in one variable: by building functions from simple ones with operations that preserve it.
The building blocks are the constants and the two coordinate functions and . The function is continuous everywhere because , so works; likewise .
Sums, products and quotients follow from the limit laws, and their one variable proofs go through unchanged, because they only ever manipulate output tolerances and never mention how the input distance is measured. The product shows the pattern. If and , write
Near the point stays within of , so , and both terms can be made as small as wanted by making and small, each of which some achieves; take the smaller of the two values. So products of continuous functions are continuous, and repeating the product and sum rules shows that every polynomial in and is continuous everywhere. A quotient is continuous wherever its denominator is not zero, so every rational function is continuous except where the denominator vanishes. That includes everywhere but the origin, where no value fills the hole.
Composition is the rule that reaches everything else. Suppose is continuous at , and is a function of one variable continuous at . Given , continuity of provides an such that keeps . Continuity of then provides a such that keeps . Chaining the two, keeps . So , , on the half-plane , and on its disc are all continuous, since each is a continuous function of one variable applied to a polynomial.
The consequence is the same as in Calculus I: most limits are evaluated by substitution. Where nothing divides by zero the limit is the value, so with no in sight. The effort goes into the points where the formula breaks, and composition often handles those too.
Example. What value at the origin makes continuous there?
Write with and . Calculus I gives as , so setting makes continuous at . The polynomial is continuous with , so by the composition rule tends to , and defining makes it continuous. At , where , the value is .
Now you. What value at the origin makes continuous there?
Answer
With the function is . The Taylor polynomial gives the limit as , so the value is . At the function is .
One variable at a time, and what comes next
A tempting shortcut is to test continuity one variable at a time: freeze , check the resulting function of , then freeze and check the function of . The function , given the value at the origin, shows that this is not enough. Freeze with and the result is a rational function of with a denominator that never vanishes, continuous everywhere. Freeze and the result is the constant , also continuous. The same holds with the roles swapped. So the function is continuous in each variable separately at every point, including the origin, and yet it is not continuous at the origin, since along it stays at while its value there is .
The explanation is the theme of this lesson. Freezing a variable looks only along the two axes, two paths out of infinitely many, and paths can disprove continuity but never prove it. In three variables nothing changes but the distance formula: a ball replaces the disc.
Where continuity does hold, the next step is to measure slopes, and the idea that failed here as a test of continuity works well as a way of taking them. Freeze every variable but one, and the surface becomes a curve with an ordinary slope that Calculus I can compute. That is the partial derivative, the subject of the next lesson. It inherits the weakness exposed in this section: two slopes along the axes see only two directions, and will turn up again as a function that has them both at a point where it is not even continuous.