You know how to find downhill when there's one direction to move in. What does "downhill" even mean once there's an and a ?
This is a bowl-shaped landscape seen from above — brighter means lower. Drag the point around. There's no single tangent line anymore, but there's still an arrow pointing the steepest way out.
That arrow is the gradient — now a vector, one component per input:
- — the gradient vector at the point .
- — the point in the plane where the gradient is evaluated.
- — the partial derivative of with respect to , holding fixed.
- — the partial derivative of with respect to , holding fixed.
- Hold the other variable fixed
Each partial derivative is computed exactly like Chapter 1's derivative — just holding the other variable fixed.
- Work it out for f(x,y) = x² + y²
Treating as a constant, ; treating as a constant, .
Drag the point and watch both components change together, and the arrow's length track the gradient's magnitude — longer means steeper.
- Compute each partial derivative at (3, 4)
- Compute the gradient's magnitude
The same 3:4:5 triangle from the vectors chapter, showing up again.
Drag the point until ∇f reads (approximately) (0, 0) — the flat spot at the bottom of the bowl.
In multiple dimensions, the gradient is a vector of partial derivatives — one per input — and it still points in the direction of steepest increase, zeroing out exactly at a flat spot like a minimum.