Functions of Several Variables (Introduction)/Directional Derivatives, the Gradient, and the Chain Rule

Lesson 8.21,003 words

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.

The directional derivative is the slope of restricted to the line through along : the rise of the graph per unit step in direction .

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 chain rule composes derivatives by multiplying Jacobians in the order the maps are applied, each a linear map between the intermediate spaces.

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.

The directional rate is the projection of the gradient onto , largest when aligns with the gradient.

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 gradient at a point is orthogonal to the level curve through it and points toward higher values; a step along a level curve leaves unchanged.

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.

The theorem needs the whole segment from to inside the domain; a convex set contains it, and on a non-convex set the segment can escape.

For vector-valued the theorem holds in componentwise form: there are points on the segment (one per component, not a single shared ) with .

StatementScalar field Vector map
one shared point yes, on the segmentno (the example)
componentwise, one eachtrivially (single component)yes
on convex open set constantyesyes

The vanishing of at a critical point is classified by the second derivative, through the Hessian and Taylor's theorem.1

Footnotes

  1. 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 ╌╌