Contour Maps in Multivariable Calculus

What Contour Maps Actually Are

A contour map is a 2D representation of a 3D surface. You take a function with two variables, slice it at different heights, and plot those slices on a flat plane. Each slice becomes a level curve. Stack enough of them together, and you get a map that tells you everything about the original surface.

You've seen these before. Topographical maps of mountains use the exact same principle. The circles and curves represent elevation. Where the lines are close together, the terrain is steep. Where they're spread out, it's flat.

Calculus textbooks call them contour maps. Engineers call them level curve plots. Geographers call them topographic maps. Same thing, different clothes.

The Math Behind Level Curves

For a function f(x, y), a level curve at height c is simply all points where f(x, y) = c. That's it. You're solving an equation with two variables, which gives you a curve.

Take f(x, y) = x² + y². The level curve at height 1 is x² + y² = 1, which is a circle with radius 1. At height 4, you get a circle with radius 2. Stack these circles, and you have a bird's-eye view of an upward-opening paraboloid.

The function value acts as your elevation. Higher values = higher up the surface.

How to Read a Contour Map

Most contour maps include labeled values on each curve. If a curve is labeled "10," every point on that curve has the same function value: 10.

Spacing Tells You Slope

This is the part most students miss. The distance between contour lines reveals the gradient of the surface.

A 90-degree cliff on a mountain would show up as contour lines so close they're practically on top of each other. A plateau would show almost no contour lines in that region.

Closed Curves and Peaks

When contour lines form closed loops, you're looking at a local maximum or minimum. A series of concentric closed curves getting smaller toward the center signals a peak. Getting larger toward the center signals a bowl or valley floor.

Common Contour Patterns You Need to Know

Circles: Radially Symmetric Functions

Functions like f(x, y) = x² + y² produce concentric circles. The symmetry is obvious from any direction. Any function that depends only on x² + y² will behave this way.

Hyperbolas: Saddle Points

The function f(x, y) = xy produces a classic saddle. Contour lines near the origin look like hyperbolas crossing at right angles. One direction increases, the other decreases. The surface goes up in two opposite diagonal directions and down in the other two.

Parallel Lines: Linear Functions

For f(x, y) = ax + by + c, contour lines are parallel straight lines. The spacing between them is uniform because the slope is constant everywhere. No surprises here.

Ellipses: Quadratic Forms

Functions like f(x, y) = x² + 4y² produce elliptical level curves. The ellipses get larger as you move away from the center. The shape reflects the different coefficients—the surface rises faster in the y-direction.

Contour Maps vs. 3D Surface Plots

You have two ways to visualize a multivariable function: 3D surface plots and contour maps. Each has strengths.

Feature 3D Surface Plot Contour Map
Spatial intuition Excellent—see the actual shape Poor—you're looking top-down
Reading exact values Difficult—estimate from axes Easy—values are labeled
Detecting steepness Requires experience to judge Obvious from line spacing
Works well for Simple surfaces, clear maxima Complex terrain, multiple peaks
Clutter Gets messy fast for rough surfaces Stays readable if lines are filtered

Use both. Switch between them. The contour map tells you where things change. The 3D plot tells you what the surface actually looks like.

Gradient and Contour Lines

The gradient ∇f points perpendicular to contour lines. Always. This is one of the most useful facts in multivariable calculus.

Think about hiking on a mountain. If you want to climb the fastest, you walk perpendicular to the contour lines. If you want to stay at the same elevation, you walk parallel to them.

Mathematically, if ∇f · T = 0 for any tangent vector T to a level curve, then ∇f is orthogonal to the curve. This isn't an approximation—it's exact geometry.

This property makes the gradient a natural steepest descent direction. Contour lines are equipotential curves. The gradient points the way.

How to Sketch a Contour Map

Here's how you actually draw one of these things by hand.

Step 1: Pick Your Function

Start with something simple. f(x, y) = 2x + y is a good first attempt.

Step 2: Choose Level Values

Pick 5-7 values spread across a reasonable range. For f(x, y) = 2x + y, try -6, -3, 0, 3, 6.

Step 3: Plot Each Level Curve

Solve 2x + y = c for each constant c. This gives you y = -2x + c, a line with slope -2. Each value of c shifts the line up or down.

Step 4: Check Your Work

Lines should be parallel and evenly spaced. If they're not, you made an algebra mistake.

Try a Nonlinear Function

For f(x, y) = x² - y², pick values like -4, -1, 0, 1, 4.

Sketch these and label them. You've got a contour map of a saddle surface.

Where Contour Maps Actually Show Up

Beyond homework problems, contour maps appear in real engineering and science work.

Any time you have a scalar field varying over space, contour maps are a standard visualization tool. The math stays the same regardless of what the function represents.

Common Mistakes to Avoid

Assuming uniform spacing means constant slope. This is only true for linear functions. For nonlinear functions, the actual slope changes even if the contour lines look evenly spaced on paper.

Ignoring the labels. Contour lines without values tell you direction of steepness but not magnitude. Always check what the numbers mean.

Confusing contour lines with paths of steepest ascent. Contour lines are horizontal—they're where the function doesn't change. The gradient is perpendicular to these lines and points in the steepest direction.

Drawing too many lines. A contour map with hundreds of overlapping lines is unreadable. Software like MATLAB or Desmos lets you pick specific levels. Use that feature.

Connecting to Partial Derivatives

Contour maps make partial derivatives visual. The slope in the x-direction is fₓ. The slope in the y-direction is fᵧ. Together, the gradient ∇f = ⟨fₓ, fᵧ⟩ tells you the direction and rate of steepest ascent.

Where contour lines crowd together, the partial derivatives are large in magnitude. Where they're sparse, the partial derivatives are small.

This is why contour maps are more than just pretty pictures—they encode derivative information in a geometric form.