01 / 21

Surfaces &
Contour Maps

Learn to visualize functions of two variables as 3D surfaces and read their level curves to understand shape, slope, and critical points.

Multivariable Calculus

What Is a Surface?

A surface in 3D space is the graph of a function \( z = f(x, y) \). For every point \( (x, y) \) in the domain, the function assigns a height \( z \), creating a 2-dimensional "sheet" floating in \( \mathbb{R}^3 \).

\(x\)
\(z\)
\(y\)
\((x_0, y_0, f(x_0, y_0))\)
\((x_0, y_0)\)

What Is a Contour Map?

A contour map (or level curve diagram) shows curves in the \( xy \)-plane where the function has the same value. Each curve satisfies \( f(x,y) = c \) for some constant \( c \).

peak
\(c = 8\)
\(c = 4\)
\(c = 2\)
\(x\)
\(y\)

Why Contour Maps Matter

Contour maps compress a 3D surface into a 2D picture that reveals slope, extrema, and saddle points without needing 3D graphing tools.

Gradient Direction
The gradient \( \nabla f \) is always perpendicular to level curves, pointing toward increasing \( f \).
Rate of Change
Closely spaced curves mean \( |\nabla f| \) is large: the function changes rapidly.
Critical Points
Closed loops suggest a max or min; figure-8 patterns suggest a saddle point.

Formal Definition: Level Curves

A contour map displays a family of level curves \( \{L_c\} \) for equally spaced values of \( c \). Together, they encode the entire surface.

3D Surface
\(c = 4\)
\(c = 2\)
project Contour Map
\(c=4\)
\(c=2\)

Gradient Meets Level Curves

P
\(\nabla f\)
tangent
\(c = 2\)
\(c = 4\)
\(c = 6\)

This explains why water flows perpendicular to contour lines on a topographic map: it follows the gradient downhill.

Surfaces vs Contour Maps

Feature 3D Surface Contour Map
Dimension 3D plot in \( \mathbb{R}^3 \) 2D diagram in \( \mathbb{R}^2 \)
Shows height Vertical position of the sheet Labels on each curve (\( c \) values)
Slope info Visible as steepness of the surface Spacing between curves
Best for Global shape intuition Precise local analysis
Drawback Hard to read exact values Loses 3D shape intuition

How to Read a Contour Map

1
Identify the contour values. Each curve is labeled with its constant \( c \). Note the spacing (e.g., \( c = 0, 2, 4, 6 \)).
2
Check curve spacing. Tightly packed curves indicate steep slope; widely spaced curves indicate a flat region.
3
Look for closed loops. A closed innermost loop with increasing \( c \) values is a local max; with decreasing values, a local min.
4
Spot saddle points. Where contour lines form an hourglass or crossing pattern, the surface has a saddle point.
5
Draw the gradient. At any point, \( \nabla f \) points perpendicular to the level curve, toward higher values of \( c \).

Example 1: The Paraboloid

Consider \( f(x,y) = x^2 + y^2 \). Setting \( f(x,y) = c \) gives \( x^2 + y^2 = c \), which is a circle of radius \( \sqrt{c} \).

\(x\)
\(y\)
\(c = 1\)
\(c = 4\)
\(c = 9\)
\(c = 16\)
min

Example 2: The Saddle Surface

Now consider \( f(x,y) = x^2 - y^2 \). Setting \( f = c \) gives \( x^2 - y^2 = c \), a family of hyperbolas.

\(x\)
\(y\)
saddle
\(c = 2\)
\(c = 4\)
\(c = -2\)

Example 3: A Linear Surface

For \( f(x,y) = 2x + 3y \), each level curve \( 2x + 3y = c \) is a straight line. The surface is a tilted plane.

\(x\)
\(y\)
\(\nabla f = \langle 2,3 \rangle\)
\(c = -3\)
\(c = 0\)
\(c = 3\)
\(c = 6\)

Example 4: Reading a Map

From the contour map below, identify the local maximum, the saddle point, and the direction of steepest ascent from point \( P \).

MAX 10 8 6 SADDLE P
\(\nabla f\)

Common Surface Types

Paraboloid
\( z = x^2 + y^2 \)
Contours: concentric circles
One minimum at origin
Saddle
\( z = x^2 - y^2 \)
Contours: crossing hyperbolas
No max or min
Plane
\( z = ax + by + c \)
Contours: parallel lines
No critical points
Cone
\( z = \sqrt{x^2 + y^2} \)
Contours: evenly spaced circles
Vertex at origin
Gaussian
\( z = e^{-(x^2+y^2)} \)
Contours: circles, widely spaced near center
Max at origin

Level Surfaces in 3 Variables

For a function \( w = f(x,y,z) \) of three variables, we cannot graph in 4D. Instead, we study level surfaces: the sets \( f(x,y,z) = c \).

Sphere
\( x^2 + y^2 + z^2 = c \) produces concentric spheres of radius \( \sqrt{c} \).
Cylinder
\( x^2 + y^2 = c \) produces cylinders of radius \( \sqrt{c} \) centered on the \( z \)-axis.
Plane
\( ax + by + cz = d \) produces parallel planes in \( \mathbb{R}^3 \).

Common Mistakes

✕ Contour lines can cross
For a function, level curves at different \( c \) values never intersect (each point has exactly one output). If they seem to cross, you are looking at a saddle where \( c = 0 \) self-intersects.
✕ Closer = higher
Closer contour lines mean steeper slope, not necessarily higher elevation. The direction of increase depends on the labels, not the spacing.
✕ Gradient is tangent
The gradient \( \nabla f \) is perpendicular to level curves, not tangent. A common mix-up with the direction of steepest ascent.

Summary: Key Relationships

Contour Pattern Surface Feature Calculus Meaning
Closed loops (increasing inward) Hill / Peak Local maximum
Closed loops (decreasing inward) Bowl / Valley Local minimum
Crossing / hourglass Saddle \( D < 0 \) at critical point
Parallel lines Tilted plane Constant gradient
Tight spacing Steep cliff Large \( |\nabla f| \)
Wide spacing Flat plateau Small \( |\nabla f| \)

Question 1 of 5

The level curves of \( f(x,y) = x^2 + y^2 \) are:

Question 2 of 5

On a contour map, tightly packed level curves indicate that:

Question 3 of 5

The gradient \( \nabla f \) at a point \( P \) is related to the level curve through \( P \) by being:

Question 4 of 5

On a contour map, a point where level curves form an X-shaped crossing pattern typically indicates:

Question 5 of 5

The contour map of \( f(x,y) = 3x - 2y + 5 \) consists of: