Multivariable Calculus — Vectors & Gradients
Partial derivatives & the gradient
continues from lesson 2 — values defined earlier in the course stay live here
ELI5: a partial derivative wiggles one variable while holding the others still — the slope in just that direction. We measure them numerically below. Bundle the partials together and you get the gradient, the arrow pointing steepest uphill.
= ∂f/∂x at (2,3): should be 2x = 4
= ∂f/∂y at (2,3): should be 2y = 6
✓ pass both partials match the hand-calculated slopes
Real-world hook: the gradient is the workhorse of machine learning — "gradient descent" repeatedly steps downhill on the error landscape to train a model. It's also heat flow (down the temperature gradient) and a hiker's steepest path.
Try it yourself: for g(x, y) = x²·y, find ∂g/∂x at (3, 2). (By hand that's 2xy = 2·3·2.)
✏️ Your turn: find ∂g/∂x of x²y at (3, 2). The check compares your value to the true partial slope.
✓ pass green when it matches the measured partial derivative