Why Is the Gradient Orthogonal to a Level Set?
At a glance
- 1. Define the level set
Write the surface as all points where a differentiable function has constant value.
- 2. Choose a tangent curve
Represent any differentiable curve on the level set and differentiate the constant function value.
- 3. Apply the chain rule
The derivative becomes a dot product between the gradient and the curve’s tangent vector.
- 4. Interpret the result
A zero dot product means the gradient is perpendicular to every tangent direction.
A level set of a function is the collection of points where the function has a fixed value. For example, the surface is the level set of .
The key fact is that, at a regular point where the gradient is nonzero, is perpendicular to the level set. The proof is a direct application of the chain rule.
The geometric setup
Let be continuously differentiable, and fix a number . Its level set is
Suppose is a regular point, meaning that . By the implicit function theorem, the level set is locally a manifold near . A tangent direction at can be represented by the velocity of a differentiable curve that lies on the level set and passes through . Thus,
for all near .
Because is constant, its derivative is zero. The multivariable chain rule gives
Evaluating at gives
The vector is tangent to the level set, so the gradient has zero dot product with every tangent vector. Therefore, is orthogonal to the level set at .
Why the chain rule proves perpendicularity
Two vectors are orthogonal exactly when their dot product is zero. The equation
says that the gradient is perpendicular to the tangent vector of every curve on the level set.
At a regular point, the collection of velocities of all such curves forms the tangent space to the level set. Consequently, the gradient is a normal vector to that tangent space, and hence a normal vector to the level set itself.
This argument applies to level curves in , level surfaces in , and more generally level sets in .
Worked example: a sphere
Consider the sphere
Define
Then the sphere is the level set , and
At the point , which lies on the sphere because
the gradient is
A curve on the sphere passing through has a tangent vector satisfying
For instance, is tangent because
Thus the gradient points in the radial direction, while every tangent direction lies in the plane perpendicular to that radial direction.
The level-curve version in two dimensions
For a function , a level curve is given by
Suppose the curve is parametrized by
Since , differentiation gives
In vector form,
Here is normal to the curve, and is tangent to it.
If the curve can locally be written as with differentiable, the same fact follows by implicit differentiation. From ,
The tangent vector is , and
The necessary regularity condition
The qualification used above is essential: the gradient must be nonzero at the point under consideration. A point with
is called a regular point of the level set. Near such a point, the implicit function theorem ensures that the level set behaves like a curve or surface, and the gradient gives its normal direction.
If , the gradient is the zero vector. The zero vector is orthogonal in the dot-product sense to every vector, but it does not determine a geometric normal direction. Moreover, the level set may have a corner, crossing, cusp, or isolated point there.
For example, let
The level set is the pair of lines and , which cross at the origin. At ,
There is no single tangent line or single normal direction at the crossing, so the usual geometric statement cannot be made there.
Common mistakes
Confusing the gradient with a tangent vector
Where it is nonzero, the gradient points in the direction of greatest increase of . Along a level set, does not change, so at a regular point the gradient is normal, not tangent.
Forgetting that the function must be constant along the curve
The proof uses . If the curve does not remain on one level set, its derivative need not be zero, and its tangent need not be orthogonal to the gradient.
Treating a zero gradient as a useful normal
At a critical point, does not provide a nonzero normal direction. Check regularity before applying the geometric conclusion.
Using only one tangent direction
Showing orthogonality to one particular tangent vector is not enough to establish that the gradient is normal to the entire level set. The chain-rule argument works for every differentiable curve on the level set, and therefore every tangent direction.
A useful equivalent statement
For a regular level set , the tangent space at is
Thus the gradient is not merely one vector that happens to be perpendicular to a tangent: it describes the entire normal direction to the level set. In three dimensions, a normal line is spanned by , and a tangent plane consists precisely of vectors perpendicular to that gradient.
References
- Calculus, Michael Spivak
- Calculus: Early Transcendentals, James Stewart
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.