01 / 21

Surfaces &
Contour Maps

Learn to visualize functions of two variables as 3D surfaces and interpret their level curves on a 2D contour map.

Calculus 3

What Is a Surface?

A surface in \(\mathbb{R}^3\) is the graph of a function \(z = f(x, y)\). For every point \((x, y)\) in the domain, the function assigns a height \(z\), producing a set of points \((x, y, f(x,y))\) that form a curved sheet in three-dimensional space.

Domain
A region \(D\) in the \(xy\)-plane where \(f\) is defined.
Range
The set of all output heights \(z = f(x,y)\) over \(D\).

Visualizing \(z = x^2 + y^2\): A Paraboloid

x y z vertex (0,0,0)
\(z=1\)
\(z=4\)
\(z=9\)
\(z=16\)

Why Contour Maps Matter

We often cannot draw 3D surfaces on paper or screens effectively. A contour map projects the surface down to the \(xy\)-plane, encoding height information as level curves: one curve for each constant value of \(z\).

Topographic Maps
Hikers use contour lines to read elevation from a flat map.
Weather Maps
Isobars show constant pressure; isotherms show constant temperature.
Optimization
Gradient descent moves perpendicular to contour lines to find minima of cost functions.

Level Curves: Formal Definition

Each value of \(c\) gives a different curve in the \(xy\)-plane. Together, these curves form the contour map of \(f\). Closely spaced curves indicate the surface is steep; widely spaced curves indicate it is flat.

Contour Map of \(z = x^2 + y^2\)

x y minimum
\(c=1\)
\(c=2\)
\(c=3\)
\(c=4\)

Surface vs. Contour Map

Surface Graph Contour Map
Dimension 3D: \((x, y, z)\) 2D: \((x, y)\) only
Height info Visible as vertical position Encoded by curve labels (\(c\) values)
Steepness Seen as angle of incline Seen as spacing between curves
Best for Overall shape intuition Precise quantitative reading

The Gradient and Contour Lines

The gradient vector \(\nabla f = \left\langle \frac{\partial f}{\partial x},\, \frac{\partial f}{\partial y} \right\rangle\) at a point is always perpendicular to the level curve through that point and points in the direction of steepest ascent.

\(\nabla f\)
tangent
\(c=4\)
\(c=2\)
\(c=1\)

How to Sketch a Contour Map

1
Choose values of \(c\). Pick evenly spaced constants (e.g., \(c = 0, 1, 2, 3, \ldots\)).
2
Set \(f(x,y) = c\). Solve or simplify the resulting equation in \(x\) and \(y\).
3
Identify the shape. Recognize circles, ellipses, lines, hyperbolas, etc.
4
Sketch and label. Draw each curve in the \(xy\)-plane. Label it with its \(c\) value.
5
Check spacing. Closer curves mean steeper surface; wider curves mean flatter.

Example 1: \(f(x,y) = 2x + 3y\)

Setting \(2x + 3y = c\) gives a family of parallel lines. Each line has slope \(-\frac{2}{3}\) and \(y\)-intercept \(\frac{c}{3}\).

x y
\(c=0\)
\(c=3\)
\(c=6\)
\(c=9\)

Example 2: \(f(x,y) = x^2 - y^2\)

This is a hyperbolic paraboloid (saddle surface). Setting \(x^2 - y^2 = c\) yields hyperbolas for \(c \neq 0\) and crossed lines for \(c = 0\).

x y saddle point
\(c=0\)
\(c=1\)
\(c=-1\)

Example 3: \(f(x,y) = \sqrt{x^2 + y^2}\)

This is a cone. Setting \(\sqrt{x^2 + y^2} = c\) gives circles of radius \(c\). Unlike the paraboloid, the contour circles are equally spaced: the cone has constant slope.

x y
\(c=1\)
\(c=2\)
\(c=3\)
\(c=4\)
apex

Paraboloid vs. Cone: Contour Spacing

Paraboloid Circles get closer: steepening Cone Circles equally spaced: constant slope

Common Contour Shapes

Circles
\(f = x^2 + y^2\) or \(f = \sqrt{x^2+y^2}\): radially symmetric surfaces.
Ellipses
\(f = ax^2 + by^2\) with \(a \neq b\): different rates of change along each axis.
Hyperbolas
\(f = x^2 - y^2\): saddle surfaces with opposite curvatures.
Lines
\(f = ax + by\): planes produce parallel, equally spaced lines.

Common Mistakes

✕ Contours Can Cross
Level curves for different values of \(c\) can never intersect: a point cannot have two different heights.
✕ Closer = Higher
Closely spaced curves mean the surface is steep, not necessarily higher. Height depends on the \(c\) labels.
✕ Ignoring Spacing
Drawing equally spaced contours for a paraboloid is wrong: the spacing encodes the changing slope.

Summary: Surfaces and Their Contours

Surface Equation Contour Shape Spacing
Plane \(ax + by + d\) Parallel lines Equal
Paraboloid \(x^2 + y^2\) Circles Gets closer
Cone \(\sqrt{x^2 + y^2}\) Circles Equal
Saddle \(x^2 - y^2\) Hyperbolas Varies
Elliptic Paraboloid \(ax^2 + by^2\) Ellipses Gets closer

Question 1 of 5

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

Question 2 of 5

On a contour map, closely spaced level curves indicate that the surface is:

Question 3 of 5

The gradient \(\nabla f\) at a point on a contour map is:

Question 4 of 5

The contour map of \(f(x,y) = x^2 - y^2\) at \(c = 0\) consists of:

Question 5 of 5

Which surface has equally spaced circular contour lines?