Overview
The directional derivative Dûf measures the rate of change
of f at a point in the direction of a unit vector û.
Dûf(r0) = ∇f(r0) · û
Here ∇f is the gradient vector, and û = (cos θ, sin θ).
The right-hand plot shows f restricted to the line through
r0 in the direction û, parameterised by arc length s.
The slope of this 1D curve at s = 0 is exactly Dûf.
When ∇f is displayed, the projection of ∇f onto û gives the
directional derivative geometrically.