◀ Back to Note

Tony's Intertwingled Memex • Reference Manual

Visual Estimation of Partial Derivatives from Contour Maps

Formulas & Definitions
Core Definition

On a 2D contour map (level curve plot) representing a multivariable surface z=f(x,y)z = f(x, y)z=f(x,y), each curve connects points of equal constant height f(x,y)=cf(x, y) = cf(x,y)=c.

  • The sign of ∂f∂x\frac{\partial f}{\partial x}∂x∂f​ is determined by taking a step in the positive xxx-direction (to the right, holding yyy fixed): crossing into higher contour values means fx>0f_x > 0fx​>0; crossing into lower contour values means fx<0f_x < 0fx​<0.
  • The sign of ∂f∂y\frac{\partial f}{\partial y}∂y∂f​ is determined by taking a step in the positive yyy-direction (upward, holding xxx fixed): crossing into higher contour values means fy>0f_y > 0fy​>0; crossing into lower contour values means fy<0f_y < 0fy​<0.
  • Tangency: If stepping in the coordinate direction is tangent to a level curve, the instantaneous rate of change is zero (fx=0f_x = 0fx​=0 or fy=0f_y = 0fy​=0).
  • Magnitude (Steepness): Closely packed contour lines indicate a steep slope (large ∣fx∣|f_x|∣fx​∣ or ∣fy∣|f_y|∣fy​∣); widely spaced contour lines indicate a gradual slope (small magnitude).

Concept Explanation

Reading Signs: Step-and-Observe Technique

To evaluate partial derivatives without an explicit formula, use the Step-and-Observe Rule:

                       y ^
                         |          c = 30
                         |       /----------\
                         |      /   c = 20   \
                         |     |   /------\   |
                         |     |  | c = 10 |  |
                         |     |  |   *P   |  |  ---> Step right (+x): crosses 10 -> 20 -> 30  ==> f_x > 0
                         |     |  |        |  |
                         |     |   \------/   |
                         |      \------------/
                         +----------------------------> x
  1. For ∂f∂x(x0,y0)\frac{\partial f}{\partial x}(x_0, y_0)∂x∂f​(x0​,y0​):

    • Stand at the point (x0,y0)(x_0, y_0)(x0​,y0​) on the contour map.
    • Trace a horizontal ray to the right (increasing xxx, maintaining y=y0y = y_0y=y0​).
    • If the contour labels increase along this ray, ∂f∂x>0\frac{\partial f}{\partial x} > 0∂x∂f​>0.
    • If the contour labels decrease, ∂f∂x<0\frac{\partial f}{\partial x} < 0∂x∂f​<0.
    • If the ray points along the contour line itself (tangent), ∂f∂x=0\frac{\partial f}{\partial x} = 0∂x∂f​=0.
  2. For ∂f∂y(x0,y0)\frac{\partial f}{\partial y}(x_0, y_0)∂y∂f​(x0​,y0​):

    • Stand at the point (x0,y0)(x_0, y_0)(x0​,y0​).
    • Trace a vertical ray upward (increasing yyy, maintaining x=x0x = x_0x=x0​).
    • If the contour labels increase along this ray, ∂f∂y>0\frac{\partial f}{\partial y} > 0∂y∂f​>0.
    • If the contour labels decrease, ∂f∂y<0\frac{\partial f}{\partial y} < 0∂y∂f​<0.
    • If the ray points along the contour line itself (tangent), ∂f∂y=0\frac{\partial f}{\partial y} = 0∂y∂f​=0.

Estimating Numerical Magnitudes (Average Rate of Change)

When level curve spacing Δx\Delta xΔx or Δy\Delta yΔy can be measured, approximate the partial derivative using finite difference quotients:

∂f∂x≈ΔzΔx=cnext−ccurrentΔx\frac{\partial f}{\partial x} \approx \frac{\Delta z}{\Delta x} = \frac{c_{\text{next}} - c_{\text{current}}}{\Delta x}∂x∂f​≈ΔxΔz​=Δxcnext​−ccurrent​​
∂f∂y≈ΔzΔy=cnext−ccurrentΔy\frac{\partial f}{\partial y} \approx \frac{\Delta z}{\Delta y} = \frac{c_{\text{next}} - c_{\text{current}}}{\Delta y}∂y∂f​≈ΔyΔz​=Δycnext​−ccurrent​​

  • High Density (Tightly Spaced Lines): Δx\Delta xΔx is small for a fixed change in elevation Δz  ⟹  ∣ΔzΔx∣\Delta z \implies \left|\frac{\Delta z}{\Delta x}\right|Δz⟹​ΔxΔz​​ is large (cliff, steep gorge, rapid stress concentration).
  • Low Density (Widely Spaced Lines): Δx\Delta xΔx is large for the same Δz  ⟹  ∣ΔzΔx∣\Delta z \implies \left|\frac{\Delta z}{\Delta x}\right|Δz⟹​ΔxΔz​​ is small (plateau, flat valley floor).

Engineering Applications

  • Environmental & Water Resources Engineering: Topographic contour maps determine stormwater flow directions. Water flows perpendicular to level curves down the steepest descent gradient, while ∂E∂x=0\frac{\partial E}{\partial x} = 0∂x∂E​=0 along retention berms.
  • Materials & Mechanical Stress Auditing: Photoelastic fringe contour maps and FEA stress maps reveal critical stress concentrations where contour fringes crowd together near geometric notches.
  • Meteorology & Aviation: Atmospheric isobar maps (lines of constant pressure) indicate wind velocity; tightly spaced isobars signify intense pressure gradients ∂P∂x\frac{\partial P}{\partial x}∂x∂P​ that drive severe turbulence.

Example Problems

Example 1: Estimating Derivatives on Concentric Circular Contours

A circular hill has height modeled by level curves x2+y2=cx^2 + y^2 = cx2+y2=c, with contour intervals of 10 m10\text{ m}10 m at c∈{10,20,30,40}c \in \{10, 20, 30, 40\}c∈{10,20,30,40}. At the point (0,3)(0, 3)(0,3) on the circle x2+y2=9≈10x^2 + y^2 = 9 \approx 10x2+y2=9≈10:

  1. Determine the signs of ∂f∂x(0,3)\frac{\partial f}{\partial x}(0, 3)∂x∂f​(0,3) and ∂f∂y(0,3)\frac{\partial f}{\partial y}(0, 3)∂y∂f​(0,3).
  2. Explain the geometric condition that causes one of these derivatives to vanish.
Solution
  1. Analyze Directional Steps:

    • In the xxx-direction: At (0,3)(0, 3)(0,3), the horizontal line y=3y = 3y=3 is tangent to the circle x2+y2=9x^2 + y^2 = 9x2+y2=9. A small step Δx\Delta xΔx causes no first-order change in distance from the origin (r2=(Δx)2+32≈9+O((Δx)2)r^2 = (\Delta x)^2 + 3^2 \approx 9 + \mathcal{O}((\Delta x)^2)r2=(Δx)2+32≈9+O((Δx)2)). Thus, the instantaneous slope is zero:
      ∂f∂x(0,3)=0\frac{\partial f}{\partial x}(0, 3) = 0∂x∂f​(0,3)=0
    • In the yyy-direction: Stepping upward from y=3y = 3y=3 to y=4y = 4y=4 increases the distance from the origin (r=yr = yr=y), moving toward higher-valued outer contour rings (c=20,30c = 20, 30c=20,30). Thus, the function is increasing and the partial derivative is positive:
      ∂f∂y(0,3)>0\frac{\partial f}{\partial y}(0, 3) > 0∂y∂f​(0,3)>0
  2. Geometric Tangency: Because the level curve is horizontal at the top of the circle (0,3)(0, 3)(0,3), the coordinate direction +x+x+x is collinear with the level curve tangent. Since function values are constant along level curves, directional variation along the tangent is identically zero.


Connections & References

  • Contour Foundations: Level Curves and Contour Maps
  • Algebraic Core: Partial Derivatives
  • Geometric Slicing: Geometric Interpretation of Partial Derivatives
  • Course Sessions: Session 09 - Partial Derivatives