How to compute a directional derivative
5 min read
Short answer
The directional derivative of at a point in the direction of a unit vector is . It is the rate of change of as you move through the point in direction , and it is largest () when points along the gradient.
Why the dot product
The gradient collects the rates of change along the axes. A direction is a mix of axis directions, so the rate in direction is the same mix of the partial derivatives: , which is exactly . By the dot-product formula, this equals , so it is biggest when .
Steps
- Compute and evaluate it at the point.
- Turn the direction into a unit vector by dividing by its length.
- Take the dot product.
Special directions: along the rate is (steepest increase); opposite to it, ; perpendicular to it, 0 (you are walking along a level curve).
Worked example
Let . Find the rate of change at in the direction of , and the maximum possible rate there.
, so .
The direction has length 5, so . The maximum rate is , in the direction .
Try it yourself
For at , find the directional derivative in the direction . Explain the result.
Show the answer
and , so . The direction is tangent to the circle , a level curve, so does not change.
Keep going with practice
Directional derivatives and the gradient are part of Vidi's Multivariable & Vector Calculus course, with interactive contour plots.