Functions of Several Variables and Level Curves
Learning Objectives
- Describe a function through its domain, its range, its graph as a surface in three dimensions, and its level curves.
- Read a contour map: locate peaks, valleys and steep regions, and sketch the level curves of a simple formula.
- Show that a limit at a point does not exist by exhibiting two paths with different limits, and explain why agreement along many paths still does not prove that the limit exists.
- Prove that a limit exists with a squeeze bound or polar coordinates, stating exactly what makes the argument valid.
- Define continuity at a point for a function of two variables and explain why continuity in each variable separately is not enough.
Context & Motivation
Almost nothing interesting depends on a single number. The temperature in a room depends on a position in space, the cost of a model depends on every one of its parameters, and the height of a hill depends on two coordinates. Single-variable calculus handles one input at a time. This lesson opens the multivariable half of the discipline with the object it studies, a function of several variables, and with the first tool for seeing it: the contour map. A contour map is the standard way to draw a loss function of two parameters.
Two variables are the sweet spot. Everything that is new in the multivariable setting already happens in the plane, and the plane can be drawn. What is new shows up first in limits. On the real line a point is approached from two sides. In the plane it is approached from infinitely many directions, along lines, parabolas and spirals, and a limit has to agree with all of them at once. That single change breaks several habits from limits-intuition-and-the-formal-definition and continuity-and-the-intermediate-value-theorem, and it is why partial-derivatives-and-the-multivariable-chain-rule is careful about its hypotheses.
Core Theory
Functions, domains and graphs
A function of two variables assigns one real number to each point of a set , its domain. When only a formula is given, the domain is every pair for which the formula makes sense. For the logarithm needs , so the domain is the open region to the right of a parabola, and the parabola itself is excluded. The range is the set of values takes.
The graph is the set of points in , a surface lying above the domain. It is faithful but hard to draw by hand, which is why we also use level curves.
Level curves and contour maps
The level curve of at height is the set of points of the domain where . Geometrically it is the shadow, projected down onto the -plane, of the slice where the graph meets the horizontal plane . Drawing several level curves at evenly spaced values of gives a contour map, the same device as a topographic map.
Reading a contour map relies on a few facts:
- Level curves of different heights never touch, because a point has only one value of . (A single level curve can cross itself: for the level is the pair of lines .)
- Where the curves crowd together, changes quickly over a short distance, so the surface is steep. Where they spread out, it is flat.
- Nested closed loops usually mean a peak or a valley at the center.
- A "level curve" need not be a curve. For , the level is a single point, and the level is empty.
For three variables the analogue is a level surface .
Limits when there are many paths
The formal definition is the one from the single-variable lesson with an interval replaced by a disk: means that for every there is a such that whenever is in the domain and .
Two consequences matter in practice.
The two-path test. If two paths into give different limits, or one gives none, the limit does not exist. This is a test for non-existence only. Agreement along the paths you tried proves nothing about the paths you did not try.
The squeeze. If near and , then the limit is . In polar coordinates around the point, and , a limit exists and equals if with a bound that depends only on and tends to . The bound must hold for every at once. A bound that is not uniform in proves nothing, and a dependence on that survives as (as in Example 3) shows the limit fails.
Continuity
is continuous at when is in the domain, the limit at exists, and the limit equals . Sums, products and compositions of continuous functions are continuous, and quotients are continuous where the denominator is nonzero. Polynomials are therefore continuous everywhere, and rational functions are continuous on their domains.
Worked Examples
Example 1: domain and level curves of a hemisphere
Take . The radicand must be nonnegative, so the domain is the closed disk , and the range is . The graph is the upper half of a sphere of radius .
Setting and squaring gives , valid for : a circle of radius . At it collapses to the origin, and for or it is empty. The point gives , so it lies on the circle of radius .
textc radius sqrt(9 - c^2) 0 3.000 1 2.828 2 2.236 3 0.000
Equal steps in give growing gaps between circles: , , then . The contours bunch near the rim of the disk, which is where the hemisphere is steepest.
Example 2: an elongated bowl
Let , a loss with a different sensitivity to each parameter. For , is the ellipse , with semi-axes along and along . The level passes through and , and the point sits on the level . The ellipses are stretched along because counts four times as much as in the formula, so the function climbs faster along . The next lessons reuse this function.
Example 3: a limit that depends on the path
Let , undefined at the origin. Along the line with ,
This is for , for , for and for . A value that does not depend on cannot approach a single number as for all slopes. In polar coordinates the same fact reads : the value is fixed by the direction and ignores . Numerically:
textpoint (e, e) (e, 0) (e, 2e) e = 1e-1 0.5 0.0 0.4 e = 1e-3 0.5 0.0 0.4 e = 1e-6 0.5 0.0 0.4
The limit at does not exist.
Example 4: a limit that does exist
Let . Since , we have and so
By the squeeze the limit is . In polar coordinates , bounded by for every at once, which is the uniform bound the method needs. Defining makes continuous at the origin.
Example 5: every line agrees, the limit still fails
Let . On the line ,
and on the -axis . Every line gives . Now follow the parabola :
The numbers confirm it: at the value on is about , on about , and on exactly . The limit does not exist. A test with lines only would have claimed it was .
Common Misconceptions & Pitfalls
- "If the limit is the same along every line, it exists." Example 5 is the counterexample. Straight lines are only a few of the paths into a point, so agreement along them is evidence, never a proof.
- "Continuous in and continuous in separately means continuous." Take the function of Example 3 and set . Then and , so both slices through the origin are continuous, yet jumps to along the diagonal.
- "Polar coordinates always settle a limit." The bound must be uniform in . Showing that for each fixed is the same mistake as testing lines: Example 5 gives along every fixed ray but fails along the parabola.
- "Level curves are always curves, and a contour map has one for every height." Levels can be a point, empty, or an entire region (for a constant function), and a map shows only the heights you chose to draw.
- "The domain is an interval." It is a region of the plane, and its boundary may or may not belong to it. At a boundary point not in the domain, a limit can exist while the function stays undefined.
Summary
A function of two variables sends each point of a region of the plane to a number. Its graph is a surface, and its level curves are the shadows of horizontal slices, drawn together as a contour map whose crowding signals steepness. Limits change character in several variables: a point is approached along infinitely many paths, so a different limit along two paths, or no limit along one, kills the limit, while existence needs a bound that holds uniformly, such as a squeeze or a polar bound independent of the angle. Checking lines alone is not enough, as shows. Continuity at a point means the limit exists and equals the value, and continuity in each variable separately does not imply it. Next, partial-derivatives-and-the-multivariable-chain-rule differentiates along the coordinate directions and asks what that does and does not guarantee.