Multivariable Calculus • Multivariable Functions

Surfaces & Contour Maps — Visualizing surfaces and contour maps

Learn to translate three-dimensional surfaces into two-dimensional contour maps and back again.

Multivariable Calculus emblem with three-dimensional axes, a function, and an orbiting path.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

Long before GPS satellites or digital terrain models, people needed ways to represent three-dimensional landscapes on flat, two-dimensional paper. Explorers, military engineers, and scientists all faced the same challenge: how do you communicate the shape of a mountain, the depth of an ocean floor, or the curvature of a lens without building a physical model? The answer came in the form of contour maps — elegant diagrams that encode height (or any quantity) using curves of equal value. This idea evolved over centuries and eventually merged with the mathematical study of surfaces in multivariable calculus, giving us powerful tools for visualizing functions of two variables.

1584 • Pieter Bruinsz's Depth Lines

Dutch cartographer Pieter Bruinsz created one of the earliest known maps with lines of equal depth (isobaths) to chart the river Spaarne, foreshadowing modern contour maps.

1774 • Charles Hutton's Isohypses

British mathematician Charles Hutton drew lines of equal elevation around Schiehallion mountain in Scotland during a gravity experiment, producing one of the first true topographic contour maps.

1799 • Laplace & Surfaces in Calculus

Pierre-Simon Laplace published work in celestial mechanics that used surfaces defined by functions of two variables, connecting contour-style reasoning with formal calculus.

1843 • Standardized Topographic Mapping

National surveys in Europe and the United States began systematically producing contour maps for military and civilian use, making the technique widely accessible.

1950s–Today • Digital Surfaces & 3-D Visualization

Computer graphics transformed contour mapping into an interactive discipline. Software now generates real-time 3-D surfaces and contour overlays for weather, medicine, and engineering.

The central question this lesson addresses is: given a function z = f(x, y), how can we picture the surface it creates in three dimensions, and how can we flatten that picture into a contour map without losing essential information?

SECTION 2

Core Principles & Definitions

Before diving into visuals and calculations, let's nail down the key vocabulary and ideas that make surfaces and contour maps work. These four concepts form the foundation for everything that follows.

1

Surface in ℝ³

A surface 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 sheet of points in three-dimensional space.
2

Level Curve (Contour Line)

A level curve is the set of all points (x, y) where f(x, y) equals a constant c. On the surface, this curve sits at height c; on a contour map, it is projected flat onto the xy-plane.
3

Contour Map

A contour map is a collection of level curves for several equally spaced values of c drawn together on the xy-plane. It is a bird's-eye view of the surface that reveals hills, valleys, and saddle points.
4

Contour Interval

The contour interval is the constant difference in z-values between adjacent level curves. Choosing a smaller interval reveals more detail; choosing a larger interval simplifies the map.
✦

KEY TAKEAWAY

Think of a contour map like the rings you see when you slice a mountain horizontally at regular height intervals and then look straight down from above. Each ring is a level curve. Rings that are close together mean the slope is steep; rings that are far apart mean the terrain is gentle. It works exactly the same way for any function z = f(x, y), whether it represents altitude, temperature, or air pressure.

SECTION 3

Visual Explanation — From Surface to Contour Map

The diagram below shows how the paraboloid z = x² + y² generates level curves. On the left you see a side view of the bowl-shaped surface, sliced by horizontal planes at z = 1, 4, and 9. On the right, those slices are projected down onto the xy-plane as concentric circles, forming a contour map.

Side View of z = x² + y²Contour Map (Top View)zxz=1z=4z=9yxz=9z=4z=1originHorizontal slices of the surface become circles on the contour map
Left: the paraboloid z = x² + y² sliced at z = 1, 4, and 9. Right: those slices projected onto the xy-plane as concentric circles of radius 1, 2, and 3. For these particular heights the circles happen to land at evenly spaced radii. But if you compare equally spaced z-values in general (say z = 1, 2, 3, 4, …), the radii √z increase more and more slowly, so the circles bunch closer together at larger z — a sign that this bowl actually gets steeper farther from its vertex, not flatter.

Several important patterns emerge from this picture. First, every level curve for this function is a circle because the equation x² + y² = c defines a circle of radius √c. Second, notice that for these particular heights the radii work out to 1, 2, and 3 — evenly spaced circles. But if you instead compare equally spaced z-values in general (say z = 1, 2, 3, 4, …), the radii √z increase more and more slowly as z grows, so the circles bunch closer together at larger z. This tells us the paraboloid is actually flattest at the vertex and gets steeper as you move away from the center — the opposite of what you might guess just by looking at the bowl shape. In general, tightly packed contour lines signal a steep region, and widely spaced lines signal a flat region.

SECTION 4

Mathematical Framework

Let's formalize the ideas we've been visualizing. The mathematics behind surfaces and contour maps relies on setting a function equal to a constant and analyzing the resulting curve.

SURFACE DEFINITION

z=f(x,y)z = f(x, y)

For each input pair (x, y) in the domain, f assigns a real number z. The collection of all points (x, y, z) forms the surface in three-dimensional space.

LEVEL CURVE EQUATION

f(x,y)=c,wherecisaconstantf(x, y) = c, where c is a constant

Setting f equal to a constant c produces a curve (or set of curves) in the xy-plane. This is a single level curve. A contour map is a family of level curves drawn for several values of c, typically evenly spaced.

CIRCLE EXAMPLE

x2+y2=c⟹circleofradius√cx² + y² = c ⟹ circle of radius √c

For the paraboloid z = x² + y², each level curve is a circle centered at the origin. As c increases, the radius √c grows, but more slowly — illustrating that equally spaced z-values do not always produce equally spaced contour lines.

GRADIENT AND STEEPNESS

∇f=(∂f/∂x,∂f/∂y)∇f = (∂f/∂x, ∂f/∂y)

The gradient vector — built from the rates of change of f in each coordinate direction — points in the direction of the steepest ascent on the surface and is always perpendicular to the level curves. Its magnitude |∇f| tells you how steep the surface is at that point. You will study the precise definition of ∇f using partial derivatives in a later chapter; for now, the key idea is that a large |∇f| corresponds to a steep surface.

💡

Spacing Rule of Thumb

If contour lines are close together, the surface is steep in that region. If they are far apart, the surface is relatively flat. This relationship holds reliably when the contour values c are equally spaced (a uniform contour interval). If the c-values are not equally spaced, the spacing between contour lines reflects both the steepness of the surface and the uneven spacing of the chosen values, so the two effects must be considered together.

SECTION 5

Common Surfaces & Their Contour Signatures

Different functions produce dramatically different contour maps. Learning to recognize the contour signature of standard surfaces is one of the most useful skills in multivariable calculus. The diagram below shows four classic surfaces and the shapes of their level curves.

Contour Signatures of Four Standard SurfacesParaboloidz = x² + y²Concentric circlesSaddlez = x² − y²Hyperbolas crossingPlanez = 2x + 3yParallel, equally spaced linesConez = √(x² + y²)Equally spaced circlesHow to Read Contour SpacingSTEEP — tightly packedLarge gradient |∇f|FLAT — widely spacedSmall gradient |∇f|Paraboloid circles get closer together ⟹ the bowl steepens away from the vertex.Cone circles stay equally spaced ⟹ constant slope everywhere.Saddle has hyperbolas that cross ⟹ surface curves up in one direction and down in another.Plane contours are parallel lines ⟹ uniform tilt with no curvature.
Four standard surfaces and their contour map patterns. The paraboloid gives circles that bunch closer together away from the vertex, the cone gives equally spaced circles, the saddle gives hyperbolas, and the plane gives parallel lines.
SurfaceFunctionLevel Curve ShapeSpacing Pattern
Paraboloidz = x² + y²CirclesGaps narrow as z increases (contours bunch together away from the vertex, since the surface steepens with distance from center)
Conez = √(x² + y²)CirclesEqually spaced (z is linear in radius, so equal c-steps give equal radius steps)
Saddlez = x² − y²Hyperbolas (two lines at c = 0)Hyperbolas open in perpendicular directions for c > 0 and c < 0; the c = 0 curve degenerates into two crossing lines
Planez = ax + byStraight linesEqually spaced and parallel

Summary of four classic surface types and their contour map characteristics

SECTION 6

Worked Example — Sketching a Contour Map

Let's work through the complete process of creating a contour map for the function f(x, y) = 9 − x² − y². This is an inverted paraboloid — an upside-down bowl — with its peak at z = 9.

Contour Map for f(x, y) = 9 − x² − y²

  1. 1

    Step 1 — Choose contour values

    We need to pick several values of c for which to draw level curves. The maximum value of f is 9 (at the origin) and the surface reaches z = 0 when x² + y² = 9, so reasonable choices are c = 0, 1, 4, and 9.
    Contour values: c = 0, 1, 4, 9
  2. 2

    Step 2 — Set f(x, y) = c and solve

    Set 9 − x² − y² = c, which rearranges to x² + y² = 9 − c. This is the equation of a circle centered at the origin with radius r = √(9 − c).
    Level curve equation: x² + y² = 9 − c, so r = √(9 − c)
  3. 3

    Step 3 — Compute the radius for each c

    For c = 0: r = √9 = 3. For c = 1: r = √8 ≈ 2.83. For c = 4: r = √5 ≈ 2.24. For c = 9: r = √0 = 0 (just the origin). Computing the gaps between successive radii: r₀ − r₁ = 3 − 2.83 ≈ 0.17, and r₁ − r₄ = 2.83 − 2.24 ≈ 0.59. The larger gap occurs between c = 1 and c = 4, not between c = 0 and c = 1.
    Radii: r₀ = 3, r₁ ≈ 2.83, r₄ ≈ 2.24, r₉ = 0
  4. 4

    Step 4 — Draw the contour map

    On the xy-plane, draw four concentric circles centered at the origin with the radii computed above. Label each circle with its c-value. The outermost circle is c = 0 and the innermost point is c = 9 (the summit of the hill).
    The contour map consists of four concentric circles centered at the origin, with the largest circle (r = 3) corresponding to c = 0 and the point at the center corresponding to c = 9.
  5. 5

    Step 5 — Interpret the map

    The contour spacings computed in Step 3 (r₀ − r₁ ≈ 0.17 versus r₁ − r₄ ≈ 0.59) show that the circles are more widely spread in the middle region of the map and more tightly packed near the outer edge and near the peak. However, these spacings must be interpreted carefully: the c-values chosen (0, 1, 4, 9) are not equally spaced, so the varying gaps between circles reflect the uneven c-values as much as they reflect steepness. To assess true steepness, we look at how rapidly f changes with distance from the origin. The surface f(x, y) = 9 − x² − y² has a gradient with magnitude 2√(x² + y²), which increases with distance from the center. This means the surface is actually steeper at the outer edge than near the peak — a fact that is obscured in this map because the non-uniform c-values bunch several contours near the outer rim.
    The surface f(x, y) = 9 − x² − y² is steeper farther from the center. The uneven c-values (0, 1, 4, 9) cause the contour spacing to reflect both the function's nonlinear scaling and the non-uniform choice of levels; when c-values are not equally spaced, contour spacing alone cannot be used to directly compare steepness across different regions of the map.

SECTION 7

Strengths & Limitations — 3-D Plots vs. Contour Maps

Both 3-D surface plots and 2-D contour maps represent the same information, but each format has trade-offs. Understanding when to use which tool is an important practical skill.

Feature3-D Surface Plot2-D Contour Map
Intuitive shape recognitionExcellent — you see the hills and valleys directlyRequires practice to interpret
Reading exact valuesDifficult — perspective distortion makes heights hard to compareEasy — each contour line is labeled with its z-value
Identifying steepnessModerate — steep areas are visible but hard to quantifyExcellent — closely packed lines mean steep slope (when contour interval is uniform)
Printing on paperLoses depth cues; can look clutteredIdeal — designed for flat media
Hidden regionsParts of the surface may be blocked from viewNo hidden regions — the entire domain is visible

Comparing 3-D surface plots with 2-D contour maps

✦

KEY TAKEAWAY

Think of a 3-D surface plot as a photograph of a mountain — it gives you the big picture at a glance. A contour map is like a blueprint — it may look less dramatic, but it lets you measure distances, slopes, and elevations precisely. Engineers and scientists often prefer the blueprint because precision matters more than visual impressiveness.

SECTION 8

Connection to Advanced Theory

Surfaces and contour maps are your gateway to several powerful ideas you'll encounter as you continue studying multivariable calculus. The table below connects what you've learned today with more advanced topics.

This LessonAdvanced Extension
Level curves f(x, y) = cLevel surfaces f(x, y, z) = c for functions of three variables — these generalize contour lines to 3-D
Gradient ∇f is perpendicular to level curvesDirectional derivatives and gradient descent algorithms used in machine learning to find optimal solutions
Closely packed contour lines indicate steepnessPartial derivatives ∂f/∂x and ∂f/∂y quantify steepness precisely; tangent planes give the best linear approximation of a surface
Saddle points where the c = 0 level curve degenerates into two crossing linesSecond derivative test classifies critical points as local maxima, local minima, or saddle points

How contour map ideas connect to advanced multivariable calculus

In practical fields, contour map reasoning shows up everywhere. Meteorologists draw isobars (lines of equal pressure) to analyze weather patterns. Economists sketch indifference curves (lines of equal utility) to model consumer behavior. Machine learning engineers use contour plots of error functions to visualize how their models improve during training. The visual intuition you build today will serve you across all of these domains.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words why the contour lines of a plane z = 3x + 2y are straight, equally spaced, and parallel to each other.
Show answer
Setting 3x + 2y = c and solving for y gives y = (c − 3x)/2, which is a family of lines with the same slope (−3/2) for every value of c. The slope does not change, so the lines are parallel. Because the function is linear (no squared terms), equal increases in c produce equal shifts in the line's y-intercept, making the spacing uniform. There is no curvature in the function, so there is no curvature in the contour lines.

Question 2: BASIC CALCULATION

Find the equation and radius of the level curve f(x, y) = x² + y² at z = 16.
Show answer
Setting x² + y² = 16 gives the equation of a circle centered at the origin. The radius is r = √16 = 4. This level curve represents all points in the xy-plane that lie directly below the surface at height z = 16. Every point on this circle is at a distance of 4 units from the origin.

Question 3: INTERMEDIATE

For f(x, y) = x² − 4y², describe the shape of the level curves for c = 0, c = 4, and c = −4. What type of surface is this?
Show answer
For c = 0: x² − 4y² = 0, which factors as (x − 2y)(x + 2y) = 0, giving two lines y = x/2 and y = −x/2 that cross at the origin. This single level curve (c = 0) degenerates into two intersecting lines; level curves for different values of c are always disjoint and do not cross one another. For c = 4: x² − 4y² = 4, which is a hyperbola opening left and right. For c = −4: x² − 4y² = −4, or 4y² − x² = 4, which is a hyperbola opening up and down. The surface is a hyperbolic paraboloid (saddle surface). The crossing within the c = 0 curve marks the saddle point at the origin, and the hyperbolas on either side curve in perpendicular directions.

Question 4: APPLIED

A weather map shows isobars (curves of equal atmospheric pressure) around a storm center. Near the storm's eye, the isobars are extremely close together. Farther out, they spread apart. Using your knowledge of contour maps, explain what this spacing tells a meteorologist about wind speed near the storm versus far from it.
Show answer
Isobars are level curves of the pressure function P(x, y). Closely spaced isobars mean that the pressure changes rapidly over a short distance, which corresponds to a large gradient |∇P|. In meteorology, a steep pressure gradient drives fast winds, so tight isobars near the eye indicate very high wind speeds. Farther from the center, the isobars are spaced apart, meaning the pressure gradient is smaller and winds are calmer. This is exactly analogous to tightly packed elevation contours on a topographic map indicating a steep hillside.

Question 5: CRITICAL THINKING

Consider two functions: f(x, y) = x² + y² (a paraboloid) and g(x, y) = √(x² + y²) (a cone). Both produce circular contour lines. Explain why the spacing between the circles differs for the two functions even though the shapes of the individual level curves look the same. Relate your answer to the concept of the gradient.
Show answer
For the paraboloid, the level curve at height c has radius √c. As c increases by equal steps (say 1, 2, 3, …), the radii grow as √1, √2, √3, …, which increase more and more slowly, so the circles bunch closer together. The gradient of f is ∇f = (2x, 2y) with magnitude 2√(x² + y²), which grows with distance from the origin, meaning the surface steepens as you move outward — consistent with the contours packing tighter there even though the contour interval is constant. For the cone, the level curve at height c has radius c. Equal steps in c produce equal steps in radius, so the circles are evenly spaced. The gradient of g is ∇g = (x/√(x² + y²), y/√(x² + y²)) with constant magnitude 1, confirming a uniform slope everywhere. This demonstrates that contour spacing depends not just on the shape of the level curves but on how the function value scales with position.

SUMMARY

Lesson Summary

Summary

A surface is the graph of a function z = f(x, y) in three-dimensional space. To visualize it on a flat page, we create a contour map — a collection of level curves obtained by setting f(x, y) = c for several constants c. Each level curve is a "horizontal slice" of the surface projected onto the xy-plane. The contour interval — the constant step between successive c-values — controls the map's detail.

The spacing between contour lines carries critical information: tightly packed lines indicate steep regions while widely spaced lines indicate flat regions — provided the contour interval is uniform. The gradient vector ∇f is always perpendicular to the level curves and points in the direction of steepest ascent; you will define it precisely using partial derivatives in a later chapter. Different function types produce recognizable contour signatures: circles for paraboloids and cones, hyperbolas for saddle surfaces, and parallel lines for planes. Mastering these visual patterns prepares you for partial derivatives, gradient-based optimization, and real-world applications from weather forecasting to machine learning.

Varsity Tutors • Multivariable Calculus • Surfaces & Contour Maps