01 / 20

Level Curves &
Gradient Orthogonality

Discover how level curves encode the shape of surfaces, and why the gradient vector always points perpendicular to them: the key to optimization, physics, and beyond.

Multivariable Calculus

What Is a Level Curve?

Given a function \(f(x, y)\), a level curve is the set of all points \((x, y)\) in the domain where \(f\) takes a constant value \(c\):

Think of a topographic map: each contour line connects points of equal elevation. Level curves are the multivariable calculus analogue: they slice a surface \(z = f(x,y)\) at constant heights and project those slices onto the \(xy\)-plane.

Visualizing Level Curves

\(c=4\)
\(c=3\)
\(c=2\)
\(c=1\)
min
\(x\)
\(y\)
\( \nabla f \)

The Gradient Vector

For a differentiable function \(f(x, y)\), the gradient is the vector of partial derivatives:

Direction
Points in the direction of steepest increase of \(f\).
Magnitude
Equals the rate of steepest increase: \(\|\nabla f\|\).

Why Is \( \nabla f \) Perpendicular?

Parametrise a level curve as \(\mathbf{r}(t) = \langle x(t), y(t) \rangle\) with \(f(\mathbf{r}(t)) = c\). Differentiate both sides using the chain rule:

Since the derivative of a constant is zero, the dot product of \(\nabla f\) and the tangent vector \(\mathbf{r}'(t)\) is zero. A zero dot product means the two vectors are orthogonal.

Core Theorem: Gradient Orthogonality

\(\mathbf{a}\)
\( \mathbf{r}'(t) \)
\( \nabla f \)
Level curve \(f=c\)

Extension to Level Surfaces

For a function of three variables \(F(x, y, z)\), the set \(F(x,y,z) = c\) defines a level surface. The gradient generalises naturally:

\(\nabla F(\mathbf{a})\) is normal to the level surface through \(\mathbf{a}\). This gives us the equation of the tangent plane:

Level Curves vs Gradient Field

Level Curves Gradient Field
What it is Curves where \(f = c\) Vector field \(\nabla f\)
Dimension Curves in \(\mathbb{R}^2\) Vectors at each point in \(\mathbb{R}^2\)
Tells you Where \(f\) is constant Direction of steepest ascent
Relationship Always orthogonal to each other
Spacing encodes Rate of change (closer = steeper) Magnitude \(\|\nabla f\|\)

How to Apply Gradient Orthogonality

1
Identify the function \(f(x,y)\) and the level curve value \(c\).
2
Compute the gradient: \(\nabla f = \langle f_x, f_y \rangle\).
3
Evaluate at the point \(\mathbf{a}\) on the level curve.
4
Use the result: \(\nabla f(\mathbf{a})\) is normal to the curve. Write tangent/normal lines, or find steepest-ascent direction.

Example 1: Circles

Let \(f(x,y) = x^2 + y^2\). Find the gradient at \((3, 4)\) and verify it is perpendicular to the level curve through that point.

1
Level curve value: \(f(3,4) = 3^2 + 4^2 = 9 + 16 = 25\), so the curve is \(x^2 + y^2 = 25\) (a circle of radius 5).
2
Gradient: \(\nabla f = \langle 2x, 2y \rangle\). At \((3,4)\): \(\nabla f = \langle 6, 8 \rangle\).
3
Tangent direction: Implicitly differentiate \(x^2+y^2=25\) to get \(\frac{dy}{dx} = -\frac{x}{y} = -\frac{3}{4}\). Tangent vector: \(\langle 4, -3 \rangle\).
4
Verify: \(\langle 6,8\rangle \cdot \langle 4,-3\rangle = 24 - 24 = 0\) ✓ Orthogonal!

Example 1: Diagram

\(x\)
\(y\)
0
\((3, 4)\)
\( \nabla f = \langle 6,8 \rangle \)
tangent
\( x^2 + y^2 = 25 \)

Example 2: Hyperbolic Curves

Let \(f(x,y) = xy\). Find the gradient at \((2, 3)\) and the tangent line to the level curve \(xy = 6\).

1
Gradient: \(\nabla f = \langle y, x \rangle\). At \((2,3)\): \(\nabla f = \langle 3, 2 \rangle\).
2
Normal direction: \(\langle 3, 2 \rangle\) is normal to the curve \(xy = 6\) at \((2,3)\).
3
Tangent line: The gradient \(\langle 3, 2 \rangle\) is the normal vector to the tangent line. Using the point-normal form \(A(x-x_0) + B(y-y_0) = 0\), we get: \(3(x-2) + 2(y-3) = 0\), which simplifies to \(3x + 2y = 12\).

Example 3: Tangent Plane to a Surface

Find the tangent plane to the surface \(F(x,y,z) = x^2 + y^2 + z^2 = 14\) at the point \((1, 2, 3)\).

1
Gradient: \(\nabla F = \langle 2x, 2y, 2z \rangle\). At \((1,2,3)\): \(\nabla F = \langle 2, 4, 6 \rangle\).
2
Normal vector: \(\mathbf{n} = \langle 2, 4, 6 \rangle\) (or simplified: \(\langle 1, 2, 3 \rangle\)).
3
Tangent plane: \(1(x-1) + 2(y-2) + 3(z-3) = 0\), which gives \(x + 2y + 3z = 14\).

Geometric Intuition

\(c=2\)
\(c=4\)
\(c=6\)
\((2,3)\)
\( \nabla f \)
tangent
\(f(x,y)=xy\)

Common Mistakes

✕ Gradient "Along" the Curve
The gradient does NOT point along the level curve. It points perpendicular to it, in the direction of steepest increase.
✕ Forgetting to Evaluate
Computing \(\nabla f\) symbolically but forgetting to plug in the point before using it as the normal vector.
✕ Confusing \(z = f(x,y)\) with \(F = c\)
For tangent planes, rewrite as \(F(x,y,z) = f(x,y) - z = 0\) so that \(\nabla F = \langle f_x, f_y, -1 \rangle\).

Question 1 of 5

If \(f(x,y) = x^2 + 4y^2\), what is \(\nabla f\) at the point \((1, 1)\)?

Question 2 of 5

The gradient \(\nabla f\) at a point on a level curve is always:

Question 3 of 5

For \(f(x,y) = xy\), the tangent line to the level curve \(xy = 6\) at \((2, 3)\) is:

Question 4 of 5

The tangent plane to \(x^2 + y^2 + z^2 = 14\) at \((1, 2, 3)\) is:

Question 5 of 5

Level curves that are closely spaced indicate that the function is changing: