4.4.8 · D2Multivariable Calculus

Visual walkthrough — Directional derivative — definition, formula

2,390 words11 min readBack to topic

Step 0 — The pictures we must be able to read first

Before anything, three plain-word ideas, each pinned to a picture.

Figure — Directional derivative — definition, formula

In the picture: the floor is the pale grid, your feet sit at the coral dot , the lavender arrow is your facing (drawn length 1), and the surface floating above is the hill . Everything below is about one number: how fast the hill rises as you step along that lavender arrow.


Step 1 — Freeze the whole hill down to a single straight walk

The spot we reach after walking a distance is

Because has length 1, moving by the number really does move you metres — that is the whole reason we demanded a unit vector.

Figure — Directional derivative — definition, formula

Step 2 — Name the height-along-the-walk: the helper

Term by term:

  • — the input: distance walked so far (can be negative — that means walking backwards).
  • — the floor spot under me at that moment.
  • — the height there.
  • — the single output number: my current altitude.
Figure — Directional derivative — definition, formula

Step 3 — The slope at the start is the directional derivative

Every piece:

  • — the rise: altitude gained after walking metres.
  • the division by — makes it rise per metre, i.e. a slope.
  • — shrink the step to an instant, so we get the instantaneous steepness right where I stand, not an average over a long walk.
  • — the ordinary derivative of the plain curve , evaluated at the start .
Figure — Directional derivative — definition, formula

So the mission is now concrete: compute . We don't want to grind the limit each time — so we use a tool that already knows how to differentiate a composed multivariable function.


Step 4 — Why the chain rule, and nothing else

Track how each floor-coordinate depends on . First write out the moving spot in components, recalling : so the two moving coordinates are Each is a straight line in , so its speed is constant: Term by term: is how fast my east-coordinate grows per metre walked; the same for north. Together — the components of the facing arrow are literally "east-speed" and "north-speed" of the walk.

Figure — Directional derivative — definition, formula

Step 5 — Turn the crank: the chain rule sum

This is just the general chain rule from Step 4 with and plugged in. The recipe in words: (how much changes when this coordinate moves) (how fast this coordinate moves), summed over every coordinate. The are the partial derivatives — pure east and pure north steepness, which the parent note already met.

Figure — Directional derivative — definition, formula

Step 6 — Stand still at the start: evaluate at

Now bundle the two partials into one arrow — the gradient — and notice the right-hand side is precisely "matching components multiplied and added," which is the dot product:

This is general: for the same argument gives a sum over coordinates, .


Step 7 — Read the formula geometrically (the face)

We bring in because it is exactly the dial that measures "how much is my facing aligned with the steepest direction?" — value when aligned, when perpendicular, when opposite.

Figure — Directional derivative — definition, formula

Step 8 — The degenerate cases (never leave a gap)

Figure — Directional derivative — definition, formula

The one-picture summary

Figure — Directional derivative — definition, formula

One panel chains the whole story: hill straight slice 1-D curve tangent slope chain-rule sum . Follow the arrows and you have re-derived the directional derivative from a single step on a hillside.

Recall Feynman retelling — the whole walkthrough in plain words

I'm standing on a hill and I face some way (a 1-metre arrow ). I don't try to understand the whole hill; I just walk straight that way and write down my height as a plain graph — distance walked on the bottom, altitude up the side. That graph is . "How steep is the ground the way I face?" is just the slope of at the start, which is . To find that slope without grinding a limit, I notice my walk moves me a bit east and a bit north at speeds and . The chain rule says my climb rate is (east-steepness east-speed) (north-steepness north-speed). Bundling the two steepnesses into one arrow (the gradient) and the two speeds into , that sum is the dot product . Finally, since is 1 metre long, this equals : I climb fastest facing straight up the gradient (), climb nothing walking sideways (), and descend fastest facing backwards (). At a flat summit the gradient is zero, so every direction is level.

Recall Quick self-test

Why does reducing to help? ::: It turns the 2-D hill into a 1-D curve, so ordinary single-variable calculus (a tangent slope) applies. In , what does each represent? ::: The speed at which coordinate changes per metre walked along . Why is (no )? ::: Because is a unit vector, . If , what is for every ? ::: Zero — a flat spot, level in all directions. When can the dot-product formula fail? ::: When is not differentiable at (a kink/ridge), so no tangent plane exists.


Parent: Directional derivative — definition, formula (index 4.4.8) · Prereqs: Gradient vector, Partial derivatives, Multivariable chain rule, Dot product and cosine of angle, Level curves and level sets, Tangent planes and differentiability