🌱 Tony's Memex Tony's Intertwingled Memex
Digital Garden | OER Curriculum
Home / Digital Garden / Level Curves and Contour Maps

Level Curves and Contour Maps

Core Definition

The level curves (or contour lines) of a function of two variables z=f(x,y)z = f(x, y) are the 2D curves in the xyxy-plane defined by the equation:

f(x,y)=cf(x, y) = c
where cc is a constant in the range of ff.

A collection of level curves drawn for several equally spaced values of cc on the same coordinate axes is called a contour map.

Concept Explanation

Geometric Intuition: Horizontal Slicing

Visualizing a 3D surface z=f(x,y)z = f(x, y) on a flat 2D page or screen is challenging. A contour map resolves this by slicing the surface with horizontal planes z=cz = c parallel to the xyxy-plane:

  1. Intersect the surface z=f(x,y)z = f(x, y) with the horizontal plane z=cz = c.
  2. The intersection curve in 3D is {(x,y,c)∈R3∣f(x,y)=c}\{(x, y, c) \in \mathbb{R}^3 \mid f(x, y) = c\}.
  3. Project this curve vertically down into the xyxy-plane. The resulting planar curve f(x,y)=cf(x, y) = c is the level curve at height cc.
         z ^           Surface z = f(x, y)
           |             ___---***---___
           |          _-'               '-_
     z = c +---------+---------------------+---------  Horizontal Plane z = c
           |          '-_               _-'
           |             ---___***___---
           |
           +----------------------------------------> y
          /            Project down onto xy-plane:
         /                    (  *  )  <-- Level Curve f(x,y) = c
        v x

Contour Line Spacing and Surface Steepness

The spacing between adjacent level curves on a contour map provides direct visual information about the slope (rate of change) of the function:

  • Tightly Spaced Lines: The surface height changes rapidly over a short horizontal distance   ⟹  \implies Steep slope.
  • Widely Spaced Lines: The surface height changes slowly over a large horizontal distance   ⟹  \implies Gentle / Flat slope.
  • Parallel Straight Lines: The surface is a tilted plane z=ax+by+dz = ax + by + d.
  • Concentric Circles: The surface has radial circular symmetry around an extrema (e.g., circular paraboloid or cone).
  • Concentric Ellipses: The surface has different rates of curvature along orthogonal axes (elliptic paraboloid).
  • Hyperbolas with Asymptotic Crossings: The surface contains a saddle point (hyperbolic paraboloid).
    Gentle Slope (Wide Spacing):            Steep Slope (Tight Spacing):
         |     |     |     |                     ||||||||
       c = 1 c = 2 c = 3 c = 4             c=1 c=2 c=3 c=4 c=5 c=6

Engineering Applications

  • Civil & Surveying Engineering: Topographical quadrangle maps use elevation contour lines to route highways, identify drainage basins, and design railway grades.
  • Meteorology: Isobars (lines of constant barometric pressure) and isotherms (lines of constant temperature) track storm fronts and wind velocity gradients.
  • Electrical Engineering: Equipotential lines in electrostatic fields represent paths where voltage is constant; electric field lines always cross equipotentials perpendicularly.
  • Thermodynamics: Isothermal and adiabatic expansion curves on PP-VV diagrams characterize thermodynamic power cycles.

Example Problems

Example 1: Circular Level Curves of a Paraboloid

Let f(x,y)=x2+y2f(x, y) = x^2 + y^2.

  1. Find and sketch the level curves for c=1,4,9,16c = 1, 4, 9, 16.
  2. Describe what the spacing between these curves reveals about the steepness of the surface as distance from the origin increases.
Solution
  1. Equations of Level Curves:
    • For c=1c = 1: x2+y2=1x^2 + y^2 = 1 (circle centered at (0,0)(0,0) with radius r=1r = 1)
    • For c=4c = 4: x2+y2=4x^2 + y^2 = 4 (circle with radius r=2r = 2)
    • For c=9c = 9: x2+y2=9x^2 + y^2 = 9 (circle with radius r=3r = 3)
    • For c=16c = 16: x2+y2=16x^2 + y^2 = 16 (circle with radius r=4r = 4)
  2. Spacing & Steepness Analysis:
    • The radii grow linearly (r=c=1,2,3,4r = \sqrt{c} = 1, 2, 3, 4), while the height cc grows quadratically (1,4,9,161, 4, 9, 16).
    • If we inspect equal height increments Δc=1\Delta c = 1, the radial step Δr=c+1−c\Delta r = \sqrt{c+1} - \sqrt{c} becomes progressively smaller as cc increases.
    • Because equal vertical steps require smaller and smaller horizontal distances, the circles crowd closer together at larger radii, indicating that the bowl becomes increasingly steep away from the origin.

Example 2: Hyperbolic Level Curves of a Saddle Surface

Find and identify the level curves for f(x,y)=x2−y2f(x, y) = x^2 - y^2 for c=−4,0,4c = -4, 0, 4.

Solution
  1. For c=0c = 0:
    x2−y2=0  ⟹  (x−y)(x+y)=0  ⟹  y=xandy=−xx^2 - y^2 = 0 \implies (x - y)(x + y) = 0 \implies y = x \quad \text{and} \quad y = -x
    The level curve consists of two intersecting diagonal lines through the origin.
  2. For c=4c = 4:
    x2−y2=4  ⟹  x24−y24=1x^2 - y^2 = 4 \implies \frac{x^2}{4} - \frac{y^2}{4} = 1
    This is a horizontal hyperbola opening left and right along the xx-axis with vertices at (±2,0)(\pm 2, 0).
  3. For c=−4c = -4:
    x2−y2=−4  ⟹  y24−x24=1x^2 - y^2 = -4 \implies \frac{y^2}{4} - \frac{x^2}{4} = 1
    This is a vertical hyperbola opening upward and downward along the yy-axis with vertices at (0,±2)(0, \pm 2). Together, these contours reveal a classic saddle pass (hyperbolic paraboloid).

Connections & References