Partial Derivatives
For , the partial differentiates in while treating as a CONSTANT (and vice versa for ). All the one-variable rules apply unchanged. Example: gives and .
The vector points in the direction of STEEPEST increase, and its length is that steepest slope.
The directional derivative along a unit vector is the dot product — so no direction can beat , and the level curves are always perpendicular to the gradient.
The tangent plane to at is — the two partials are exactly the two tilts of the plane. For at : .
Gradient DESCENT — step opposite to reduce a loss — trains essentially every neural network. The fact that is the steepest way down, proved in this topic, is the reason a billion-parameter model can be trained at all: you never need the whole landscape, only the local gradient.
For , compute . Work: , : . Steepest slope: . And the slope heading straight along ? — less than , as it must be.
Proofs & Why It Matters
For a unit vector , the slope in direction is , where is the angle between and (this dot-product form follows from the chain rule applied to ).
Since with equality only at , the slope is maximized precisely when points along , and the maximal slope is .
Walk along a level curve with constant. Differentiate both sides in (chain rule): . The tangent to the level curve is always orthogonal to the gradient — which is why contour maps and steepest-descent paths cross at right angles.
The plane through with slopes in the -direction and in the -direction is by construction.
Differentiability of at says exactly that minus this plane is — the plane matches the surface to first order, which is what makes it THE tangent plane and the basis of linear approximation.
Going Deeper: Explanations & Worked Problems
The definition mirrors one-variable calculus exactly: — wiggle only, watch the output, divide, take the limit. Geometrically, slice the surface with the vertical plane ; the slice is an ordinary curve, and is its slope.
That is why every one-variable rule (product, quotient, chain) transfers verbatim: during the computation, is a constant like any other. Two subtleties are worth knowing early. First, the mixed partials usually agree: for smooth functions (Clairaut's theorem), so the order of differentiation is a free choice. Second, having both partials is weaker than true differentiability — the honest statement is that when the partials exist and are continuous, the tangent-plane approximation has error shrinking faster than , which is what every application (linearization, error propagation, Newton's method) actually uses.
Let at the point .
Step 1 — partials: (treat constant) and (treat constant).
Step 2 — evaluate: .
Step 3 — steepest ascent: the maximum slope at this point is , achieved walking in the direction of .
Step 4 — slope in a GIVEN direction (note , required!): .
Step 5 — coherence check: ✓, as no direction can beat the gradient direction; and walking perpendicular to , e.g. along , gives slope — that is the direction the level curve runs.
Find the tangent plane to at , then use it to estimate .
Step 1 — partials: and at the point.
Step 2 — assemble the plane: .
Step 3 — estimate: .
Step 4 — compare with the truth: . The linear estimate missed by — and the miss is exactly the curvature the plane cannot see: . For this surface the tangent-plane error is ALWAYS , a perfect illustration of "error shrinks like the square of the step."