Introduction
At a point in a scalar field, the directional derivative describes the rate of change in a chosen direction. If the direction is allowed to vary over all unit vectors, two natural questions arise: what is the greatest possible rate, and what is the least?
For a differentiable function, both answers are encoded in its gradient. The largest rate is the gradient’s magnitude, attained in the gradient’s direction. The smallest rate is the negative of that magnitude, attained in the opposite direction. The requirement that directions be unit vectors is essential: the rates are measured per unit distance.
Directional Rates and Unit Directions
Let \(f:\mathbb{R}^n\to\mathbb{R}\) be differentiable at a point \(\mathbf{p}\). A vector \(\mathbf{u}\) is a unit direction if its magnitude is \(1\). The directional derivative in that direction is the derivative of \(f\) as we move from \(\mathbf{p}\) along the line with direction \(\mathbf{u}\):
Since \(f\) is differentiable at \(\mathbf{p}\), the gradient formula applies:
Thus, finding the extreme directional rates is a problem about the dot product of the fixed vector \(\nabla f(\mathbf{p})\) with unit vectors. Differentiability matters: the conclusions below follow from the gradient formula, so they are not asserted merely because some directional derivatives happen to exist.
The Extreme-Rate Theorem
The theorem identifies not just the extreme values, but also their attaining directions. Its proof follows from a dot-product bound and its equality conditions.
Why These Are the Extreme Rates
Assume first that \(\mathbf{g}\ne\mathbf{0}\), and let \(\mathbf{u}\) be any unit vector. Decompose \(\mathbf{g}\) into its component along \(\mathbf{u}\) and its component perpendicular to \(\mathbf{u}\). The squared magnitude of the perpendicular component cannot be negative:
Here the equality uses \(\|\mathbf{u}\|=1\). Rearranging gives \((\mathbf{g}\cdot\mathbf{u})^2\le\|\mathbf{g}\|^2\), and therefore
Because \(D_{\mathbf{u}}f(\mathbf{p})=\mathbf{g}\cdot\mathbf{u}\), no unit direction can give a rate larger than \(\|\mathbf{g}\|\) or smaller than \(-\|\mathbf{g}\|\).
Now take \(\mathbf{u}=\mathbf{g}/\|\mathbf{g}\|\). This is a unit vector, since its magnitude is \(\|\mathbf{g}\|/\|\mathbf{g}\|=1\), and its directional derivative is
So the upper bound is attained. Taking \(\mathbf{u}=-\mathbf{g}/\|\mathbf{g}\|\) gives the rate \(-\|\mathbf{g}\|\), so the lower bound is attained as well.
The equality condition also identifies the directions. Equality in the squared-magnitude inequality requires the perpendicular component \(\mathbf{g}-(\mathbf{g}\cdot\mathbf{u})\mathbf{u}\) to be zero. Thus \(\mathbf{g}\) must be parallel to \(\mathbf{u}\). The positive dot product gives \(\mathbf{u}=\mathbf{g}/\|\mathbf{g}\|\) for the maximum, and the negative dot product gives \(\mathbf{u}=-\mathbf{g}/\|\mathbf{g}\|\) for the minimum.
If instead \(\mathbf{g}=\mathbf{0}\), then for every unit vector \(\mathbf{u}\), the gradient formula gives \(D_{\mathbf{u}}f(\mathbf{p})=\mathbf{0}\cdot\mathbf{u}=0\). Hence every unit direction attains both extreme rates. There is no unique steepest direction in this case.
Worked Examples
Worked Example: A Three-Variable Field
Find the largest and smallest directional derivatives of \(f(x,y,z)=x^2-y+\frac{z^2}{2}\) at \((1,0,2)\), and identify the unit directions attaining them.
First compute the gradient:
Its magnitude is
Therefore, the maximum rate is \(3\), attained in the unit gradient direction, and the minimum is \(-3\), attained in the opposite direction:
Check that the first vector is a unit vector: its squared magnitude is \(4/9+1/9+4/9=1\); the negative vector has the same magnitude. Substituting into the gradient formula gives
As an additional check, move along an arbitrary unit vector \(\mathbf{u}=(u_1,u_2,u_3)\) from the point. The value of the function along that line is
The coefficient of \(t\) is the directional derivative, \(2u_1-u_2+2u_3=(2,-1,2)\cdot\mathbf{u}\), consistent with the gradient formula. In particular, substituting the two directions above into this coefficient gives \(3\) and \(-3\).
Worked Example: A Two-Variable Quadratic
For \(f(x,y)=x^2+3y^2\), find the extreme directional rates at \((1,-1)\), with the unit directions where they occur.
The gradient and its value at the given point are
The magnitude is
Normalize the gradient to get the maximizing direction:
Its squared magnitude is \(1/10+9/10=1\), so it is a unit vector. The minimizing direction is its negative, \(\mathbf{u}_{\min}=(-1/\sqrt{10},3/\sqrt{10})\), also of unit magnitude. The theorem gives the extreme rates \(2\sqrt{10}\) and \(-2\sqrt{10}\). Direct substitution checks them:
Worked Example: A Zero Gradient
Find the largest and smallest directional derivatives of \(f(x,y)=x^2+y^2\) at the origin, and determine which unit directions attain them.
The gradient is \(\nabla f(x,y)=(2x,2y)\), so \(\nabla f(0,0)=(0,0)\) and its magnitude is \(0\). For every unit vector \(\mathbf{u}=(u_1,u_2)\),
Consequently, the maximum and minimum are both \(0\), and every unit vector attains both. To check directly, the function along the unit direction is \(f(tu_1,tu_2)=t^2(u_1^2+u_2^2)=t^2\), since \(u_1^2+u_2^2=1\). Its derivative at \(t=0\) is \(2t|_{t=0}=0\), as required.
A Common Pitfall: Forgetting to Normalize
The theorem concerns unit directions, not arbitrary vectors. For the gradient \((2,-1,2)\) from the first example, it would be incorrect to use the gradient itself as a direction and report a directional rate of \(9\): the calculation \((2,-1,2)\cdot(2,-1,2)=9\) uses a vector of magnitude \(3\), not a unit vector.
After normalization, the direction is \((2/3,-1/3,2/3)\), and the rate is \(3\), not \(9\). The correction is to divide a nonzero direction vector by its magnitude before interpreting its dot product with the gradient as a rate per unit distance. Equivalently, a nonunit vector scales the dot product and therefore does not represent the same unit-distance rate.
Interpreting the Result
The magnitude of the gradient is the size of the steepest first-order change at the point. The gradient’s orientation specifies which way that greatest increase occurs; reversing the orientation produces the greatest decrease. If the gradient is zero, the first-order directional rate vanishes in every direction, even though the function need not be constant near the point, as the quadratic example shows.
To apply the result reliably, first verify that the function is differentiable at the point, then evaluate the gradient there. Its magnitude gives the extreme rates. If the gradient is nonzero, divide it by its magnitude for the maximizing direction and negate that unit vector for the minimizing direction. Finally, check that the proposed directions have magnitude \(1\) and that their dot products with the gradient equal the claimed rates.
Check Your Understanding
Use the gradient formula and the unit-direction condition to answer these questions.
- If \(\nabla f(\mathbf{p})=(3,4)\), what are the maximum and minimum directional rates at \(\mathbf{p}\)?
- For the gradient in question 1, what unit directions attain those two rates?
- Why must a direction be normalized before using it to interpret a dot product as a rate per unit distance?
- If \(\nabla f(\mathbf{p})=\mathbf{0}\) and \(f\) is differentiable at \(\mathbf{p}\), what directional rate occurs in every unit direction?
- What differentiability condition is needed to use \(D_{\mathbf{u}}f(\mathbf{p})=\nabla f(\mathbf{p})\cdot\mathbf{u}\) in this theorem?