Directional derivative and gradient
Given a scalar field like temperature, pressure, or electric potential in space, a single number rarely tells the whole story — how fast that quantity changes depends entirely on which way you move. Walk toward a mountain's summit and altitude rises steeply; walk along a contour line and it does not change at all. The directional derivative answers "how fast, in this specific direction," and the gradient is the one vector that carries the complete answer for every possible direction at once. Once you have at a point, you can read off the directional derivative in any direction by a single dot product, find the direction of fastest increase, and find the normal to a level surface — three separate-looking questions collapsing into one calculation. This is the workhorse tool of MA10002 vector calculus, and it feeds directly into divergence, curl and the Laplacian in the topics that follow.
The gradient packs every directional rate of change of into one vector, so that gives the rate along any unit direction, with itself pointing along steepest ascent and standing normal to the level surface through the point.
The core idea
For a scalar field with continuous partial derivatives, the gradient is the vector field built from the three partial derivatives,
where: are the standard unit vectors along , and each partial derivative is evaluated holding the other two variables fixed. The gradient is a vector at every point — it has a magnitude and a direction, unlike itself which is a plain scalar. Given a unit vector with , the directional derivative of at a point along is the dot product of the gradient with that direction,
where: is a scalar — the instantaneous rate of change of per unit distance moved from in direction . If you are only given a direction vector that is not already a unit vector, normalize it first: , otherwise the "rate per unit distance" reading is wrong. Writing the dot product as , where is the angle between and , two geometric facts fall out immediately. First, is largest when , so points along the direction of steepest ascent, and that maximum rate of increase equals ; the direction of steepest descent is . Second, is normal to the level surface passing through the point, because moving along the surface keeps constant, forcing the directional derivative along any tangent direction to vanish — and the only way for every tangent is for to be perpendicular to the whole tangent plane.
Directional derivative from first principles
The dot-product formula is not a definition pulled out of thin air — it follows from the ordinary limit definition of a derivative combined with the multivariable chain rule, and seeing that derivation once removes any temptation to plug in a non-unit vector or to reach for the wrong sign on steepest descent.
The goal is to show, starting only from the limit definition "rate of change per unit distance moved," that the directional derivative of a differentiable scalar field at a point in a unit direction reduces to the single dot product , so that computing it never requires re-deriving a limit — only evaluating three partial derivatives and one dot product.
Step 1. Parametrize the line through in direction by arc length : . Because is a unit vector, is exactly distance travelled from , which is what makes the coming rate a "rate per unit distance."
Step 2. Define the directional derivative as the ordinary single-variable derivative of along this line, evaluated at : . This is just "how fast does change as I walk along the line," matching the plain-English meaning.
Step 3. Apply the multivariable chain rule to differentiate with respect to . Since , , are constants, the chain rule gives , with every partial derivative evaluated at the moving point .
Step 4. Evaluate at , where . The right-hand side becomes , which is exactly the dot product of the vector with . Naming that vector gives , the formula used throughout this topic. Verified: the same steps with replaced by collapse to , confirming the ordinary partial derivative is the special case of a directional derivative along a coordinate axis.
Worked example
Problem. For , find the directional derivative at the point in the direction of the vector , and state the direction and magnitude of the maximum rate of increase of at .
Step 1. Compute the gradient symbolically. , , , so .
Step 2. Evaluate at : , , . So .
Step 3. Normalize the direction. , so .
Step 4. Take the dot product. . The directional derivative is — this particular direction happens to be tangent to the level surface of through .
Competitive stretch
The same gradient answers the second half of the problem without any new computation. Since already points along steepest ascent, the maximum rate of increase at is simply its magnitude, , attained in the unit direction . Notice this is a completely different direction from above — one direction gave zero change, the other gives the fastest possible increase, and both came from the same gradient vector.
Common traps
- Plugging a non-unit vector directly into without normalizing first — the result then is not a rate per unit distance.
- Mixing up the gradient (a vector) with the directional derivative (a scalar, its projection onto a chosen direction).
- Forgetting the sign on steepest descent: gives steepest ascent, and gives steepest descent.
- Assuming the gradient lies tangent to the level surface — it is exactly the opposite: is normal to the level surface at that point.
Ask the tutor: Want to try a fresh scalar field and check your own gradient, directional derivative, and steepest-ascent direction against a worked walkthrough?
Why does the direction vector have to be a unit vector before I dot it with the gradient?
The dot product scales with , so using a non-unit inflates or shrinks the answer by that magnitude and it stops meaning "rate of change per unit distance moved." Normalizing to strips out that scaling so the number you get is a genuine rate, comparable across problems and directly usable as a maximum-increase value when is chosen along itself.
If the directional derivative comes out to zero, does that mean the gradient is zero too?
No, and Worked example above is exactly this case: is clearly nonzero, yet for the specific direction . A zero directional derivative just means that particular direction is perpendicular to the gradient at that point, i.e. it lies tangent to the level surface through . Only when itself is the zero vector is the directional derivative zero in every direction.
How is the gradient being normal to the level surface useful beyond this topic?
It is the standard way to get the normal vector for a tangent plane to a surface at a point — you compute there and use it directly as the plane's normal, which is exactly the trick used later for divergence theorem and surface-integral setups. It also explains, without extra machinery, why contour lines on a topographic map are always crossed at right angles by the direction of steepest slope.