Multivariable Calculus · Lesson 1 of 3 · ~6 min

Functions of two variables

Predict

The bowl $f(x, y) = x^2 + y^2$ gives each point one height. What shape is a level curve, the set where $f = c$?

Check it: drag level c and watch the ink curve.
Try
Try itDrag the probe around the ink circle and watch f(x,y). Then drag level c up to $4$.
Notice

Anywhere on the ink circle, f(x,y) reads about $1$: many inputs, one output. Raise $c$ and the circle grows, but equal steps of $c$ pack the rings tighter near the rim.

Explain

A function $z = f(x, y)$ gives each point of the plane one number. A level set fixes that number: $\{(x, y) : f(x, y) = c\}$ collects every input that maps to $c$. Draw levels at equal steps of $c$ and you get a contour map.

For the bowl, $x^2 + y^2 = c$ is a circle of radius $\sqrt{c}$: radii $1, 1.41, 1.73, 2$ for $c = 1, 2, 3, 4$. So the rings crowd outward. Tight rings mean steep ground: many levels crossed in a short walk.

About this instrument

What it represents: the exact level sets of $f = x^2 + y^2$ and $f = x^2 - y^2$ on $[-2, 2]^2$, drawn with the survey-map convention: thin hairlines at every $0.25$ of height, every fifth level heavier.

What it leaves out: the curves are traced by sampling $f$ on a $64 \times 64$ grid and interpolating linearly inside each cell — marching squares — so each drawn curve is a chain of short straight segments, not the true smooth curve. Between the drawn levels the function still takes every intermediate value; the map shows a sample of levels, never all of them.

Source: W. E. Lorensen and H. E. Cline, Marching Cubes: A High Resolution 3D Surface Construction Algorithm (SIGGRAPH 1987) — the 3D ancestor of the 2D marching-squares pass this instrument runs.

Apply
Checkpoint — prove it to yourself

The probe sits on the bowl's ink curve at $c = 1$. What is true at every point of that curve?

On the bowl's map the circles crowd together toward the rim. What does that crowding mean?

Transfer: on the saddle $f = x^2 - y^2$, what is the level set for $c = 0$?

Key idea

Level curves turn a surface into a map. Each curve is one output shared by many inputs. Tight spacing between curves means steep ground.

← All lessons