1.2.4 · D3Calculus & Optimization Basics

Worked examples — Gradients and directional derivatives

2,437 words11 min readBack to topic

Before we start, three symbols we will lean on — defined in plain words:


The scenario matrix

Every worked example below is tagged with the cell of this matrix it covers. Together they fill the whole grid — you will never meet an unshown case.

Cell Scenario class What is special / what can trip you
A in Quadrant I (both partials ) plain baseline, positive dot product
B with a negative component (Q II / IV) signs must survive the dot product
C Both components negative (Q III) steepest ascent points "down-left"
D Direction not yet unit must normalize before dotting
E Walking along a contour () answer is exactly
F Walking opposite the gradient () most negative slope =
G Degenerate: a flat / critical point, every direction gives
H Limiting behaviour of the slope as rotates slope traces a cosine wave
I Word problem (temperature field) attach units, interpret sign
J Exam twist: find the direction with a given slope invert the cosine relation

Cell A — Quadrant I gradient (baseline)

Figure — Gradients and directional derivatives

Look at the figure: the blue arrow is ; the yellow arrow is your northward step; the number is the shadow (projection) of your step onto the gradient scaled by — that is what the dot product measures.


Cell B & J — a negative component, then the exam twist

Figure — Gradients and directional derivatives

Cell C — both components negative (Quadrant III)


Cell D — direction not yet a unit vector


Cell E & F — along the contour, and dead against the gradient

Figure — Gradients and directional derivatives

Cell G — the degenerate case:


Cell H — limiting behaviour as the direction rotates

Figure — Gradients and directional derivatives

Cell I — word problem with real units


Recall checkpoint

Recall Did every cell get covered?

Cell A (Q I) ::: Example A — , slope north. Cell B (one negative component) ::: Example B — , slope . Cell C (both negative, Q III) ::: Example C — , max slope . Cell D (non-unit direction) ::: Example D — normalize first, slope not . Cell E (along contour) ::: Example E — perpendicular step, slope . Cell F (opposite gradient) ::: Example F — slope . Cell G (zero gradient) ::: Example G — origin, every direction gives . Cell H (limiting cosine) ::: Example H — slope bounded in . Cell I (word problem, units) ::: Example I — ant cools at . Cell J (exam twist, invert cosine) ::: Example J — two directions at give slope .

Connections