Directional Derivatives, the Gradient, and the Chain Rule
The directional derivative measures the rate of change of a scalar field along a chosen heading and equals the derivative applied to that direction. The gradient collects these into a vector that points along steepest ascent and sits orthogonal to level sets.
╌╌╌╌
The derivative is a full linear transformation. Two narrower questions extract less from it and are often what one needs: the rate of change of along a single direction, and, for a scalar field, the direction of fastest increase. The first answer is the directional derivative, a single number; the second is the gradient, the vector that assembles the directional derivatives.
The directional derivative
Fix an open neighborhood of and a scalar field . To measure the rate of change of as we leave along a unit vector , restrict to the line and differentiate the resulting one-variable function at .
When is differentiable at , the directional derivative is not a new computation — it is the derivative read along . Taking in the definition of gives, for any and small ,
so the limit exists and
The partial derivatives are the special case : is the directional derivative along the -th coordinate axis.
Directional derivatives do not imply differentiability. As with partials, the existence of every directional derivative at a point is weaker than differentiability — it does not even force continuity.
This is stronger than the axis counterexample for partial derivatives: sampling along every straight line still misses its behavior along curves, and only differentiability controls all approaches at once.
Tangent plane. For , the directional derivatives assemble the tangent plane to the graph at :
For at , so , and the tangent plane is , i.e. .
The chain rule
Derivatives of composites are computed by matrix multiplication of the Jacobians, in the order the maps are applied.
The dimensions line up: and , so their product is a well-defined linear map . In coordinates, with ,
which reproduces the row-times-column rule of matrix multiplication.
The other differentiation rules also hold. The derivative operator is linear — and — and there is a product rule for a scalar times a vector field.
Abbreviated, , with the understanding that scales the vector and is a scalar scaling it too.
The geometry of the gradient
For a scalar field , the derivative is the single row vector
and the directional derivative becomes an inner product, . Two geometric facts follow from that one identity.
Steepest ascent. Writing the inner product with the angle between and the unit direction ,
This is largest when , i.e. when points along . The gradient points in the direction of fastest increase of , and its length is that maximal rate. The opposite direction, , is the direction of steepest descent.
Orthogonality to level sets. Let be a level set. If is a differentiable curve lying in with , then is constant, and differentiating with the chain rule,
Since can be any tangent vector to at , the gradient is orthogonal to . The tangent plane to at is therefore .
The mean value theorem in several variables
The one-variable mean value theorem — for some interior — does not carry over intact to vector-valued maps.
For a scalar field the theorem does hold, along the segment joining two points. Call between and if for some .
The segment must actually lie inside , which is guaranteed when is
convex: every segment between two of its points stays in the set. A useful
consequence: on a convex open set, everywhere forces to be constant,
because each component satisfies . This is
the several-variable version of zero derivative means constant,
and it needs the
convexity hypothesis to connect the points.
For vector-valued the theorem holds in componentwise form: there are points on the segment (one per component, not a single shared ) with .
| Statement | Scalar field | Vector map |
|---|---|---|
| one shared point | yes, on the segment | no (the example) |
| componentwise, one each | trivially (single component) | yes |
| on convex open set constant | yes | yes |
The vanishing of at a critical point is classified by the second derivative, through the Hessian and Taylor's theorem.1
Footnotes
- Shkoller, MAT125B Lecture Notes, §2.6 (directional derivative, Definition 2.23, and Example 2.24), §2.7 (chain rule Theorem 2.27 and product rule Theorem 2.31), §2.8 (geometry of the gradient), and §2.9 (mean value theorem for scalar fields, Theorem 2.37, and the vector-valued failure). ↩
╌╌ END ╌╌