Partial Derivatives and the Gradient
One-line statement: A partial derivative measures the rate of change of a multivariable function with respect to one variable while holding all others fixed; the gradient assembles these partials into a vector pointing in the direction of steepest increase. Key result in words: is perpendicular to level sets and its magnitude gives the maximum directional rate of change. Where it applies: Optimization, physics (fields, forces), machine learning (gradient descent), thermodynamics, differential geometry. Who/when: Concept matured through Euler, Clairaut, and Jacobi in the 18th–19th centuries; vector notation ∇ popularized by Hamilton and Gibbs.
Differentiation in many dimensions splits into two complementary objects. Partial derivatives are scalar slopes along coordinate axes. The gradient is the vector that organizes them so that, for any unit direction , the rate of change of in that direction is simply . The single dot product collapses an infinite family of directional questions into one linear algebra operation — and immediately reveals that the steepest ascent direction is itself.
Formal Statement
Let and let . The partial derivative of with respect to at is
Derivation hint: This is the ordinary single-variable difference quotient applied to the restricted function at ; all other slots are frozen.
Symbols: is the scalar field; is the -th input coordinate; is the evaluation point; is the perturbation along axis . Equivalent notations: , , .
For a differentiable , the gradient is the vector of all first partials:
Derivation hint: Stack the scalars from [1] (one per coordinate axis) into an ordered tuple; the result is a vector in the same space as the inputs.
Symbols: ("del" or "nabla") is the gradient operator; is a vector field assigning a vector to each point. In Cartesian coordinates .
The rate of change of at in the direction of a unit vector is
Derivation hint: Apply the chain rule to and evaluate ; the chain rule produces .
Symbols: is a unit vector (); is the directional derivative. The dot-product form holds only when is differentiable (existence of partials alone is insufficient).
Let be differentiable at with . Then: 1. The maximum value of over all unit equals , attained when .
Derivation hint: From [3], ; this is maximized at . 2. is orthogonal to the level set at .
Derivation hint: Parametrize a curve lying in the level set, so ; differentiate using the chain rule to get .
Why It Holds / Derivation
Step 1 — Reduce to one variable. Fix and a unit direction . Define , a function of the single real variable .
Step 2 — Apply the multivariable chain rule. If is differentiable at , then
Derivation hint: The components of are with derivative ; sum the chain-rule contributions.
Step 3 — Recognize the dot product. The sum in [6] is precisely , establishing [3].
Step 4 — Maximize over directions. Write the dot product as
Derivation hint: Use the geometric definition of dot product with ; is the angle between and . where is the angle between and . Since , the maximum occurs at (steepest ascent) and the minimum at (steepest descent). This proves [4]. The orthogonality claim [5] follows because tangent directions to the level set correspond to where the directional derivative vanishes.
∎Equations [3]–[5] assume is differentiable at , meaning admits a good linear approximation. The mere existence of all partial derivatives does not guarantee differentiability, and in such pathological cases the formula can fail. A standard sufficient condition: if all partials exist and are continuous in a neighborhood of (i.e. ), then is differentiable there.
Jacobi systematized partial differentiation through his work on the theory of multiple-variable transformations, introducing the Jacobian determinant that bears his name and embedding partial derivatives into a rigorous matrix framework. His treatment of functional dependence and changes of variable made the array of partial derivatives — what we now call the Jacobian matrix, whose single-output special case is the gradient — a first-class mathematical object. Jacobi's emphasis on the structured organization of derivatives directly anticipated the modern vector gradient and the broader machinery of differential calculus on .
Building Intuition
Picture as the elevation of a mountainous terrain over a map. A partial derivative is the slope you feel if you walk due east, ignoring north–south tilt — it is one specific compass-aligned slope. But terrain doesn't care about compass directions; the steepest uphill might point northeast. The gradient is the arrow on your map that points directly uphill in the steepest possible direction, and its length tells you how steep that climb is. Crucially, the gradient is built only from the east–west and north–south slopes, yet it correctly identifies the best diagonal direction — because any direction's slope is a weighted blend of the axis slopes, and that blend is exactly a dot product. Water flowing downhill always runs anti-parallel to the gradient, and contour lines on a topographic map (level sets) always cross the gradient at right angles.
Worked Examples
Given: , evaluate at . Find , the steepest-ascent direction, and the directional derivative toward .
Step 1 — Partial derivatives.
Derivation hint: Treat constant for (so vanishes), and constant for .
Step 2 — Gradient at the point.
Step 3 — Steepest ascent magnitude.
Derivation hint: Euclidean norm of .
Step 4 — Directional derivative toward .
Derivation hint: Dot product of gradient with the unit vector, per [3].
Answer: (units: output-per-unit-length). The chosen is nearly aligned with the steepest direction , hence .
Given: A metal plate has temperature (in °C, in cm). A bug sits at . Which way is it coolest, and how fast does temperature drop there?
Step 1 — Gradient. , so This points toward increasing temperature.
Step 2 — Coolest direction = negative gradient.
Derivation hint: Steepest decrease is anti-parallel to the gradient; normalize whose norm is .
Step 3 — Rate of decrease.
Derivation hint: Norm of .
Answer: . By Fourier's law, heat flux flows in direction , from hot toward cold.
Common Misconceptions
- The gradient is not a slope (scalar); it is a vector. Its magnitude is the maximal slope.
- Do not confuse (gradient, input on a scalar field) with the divergence or curl , which act on vector fields and produce different objects.
- Mixed partials need not be equal in pathological cases. Clairaut's theorem guarantees only when those mixed partials are continuous.
- Existence of partials ≠ continuity ≠ differentiability. All four properties (partials exist, continuity, differentiability, ) are genuinely distinct.
- The dot-product formula requires to be a unit vector; using a non-unit vector silently rescales the rate.
Consider
Derivation hint: Along , depends on , so the limit at the origin is path-dependent. Both partials exist at the origin: and likewise . Yet is not continuous at — approaching along gives , but along the axes . Hence the partials existing tells us nothing about continuity, let alone differentiability. The naive formula would falsely predict zero change in every direction.
Connections
The gradient is the transpose / vector form of the <span class="wiki-link-missing">Jacobian Matrix</span> for the special case of a scalar-valued function. It is the central ingredient of the Multivariable Chain Rule, which expresses . It underlies the Method of Lagrange Multipliers, where constrained optima require (gradients parallel). In vector calculus, generalizes to the Divergence and Curl operators, and the gradient is the first member of the differential-operator family unified by the Exterior Derivative. The condition defines Critical Points and the Second Derivative Test.
Real-World Applications
Historical Development
Subtleties & Limits
Several conceptual subtleties extend beyond the introductory picture. (1) Coordinate dependence: the naive component definition of is correct only in orthonormal Cartesian coordinates; in curvilinear or non-Euclidean settings the gradient requires the metric tensor, , distinguishing the gradient vector from the differential (a covector). This distinction — vectors versus covectors — is invisible in with the standard metric but essential in differential geometry and general relativity. (2) Non-smoothness: for non-differentiable convex functions (e.g. in machine learning) the gradient is replaced by the subgradient, and optimization theory must handle set-valued generalizations. (3) Infinite dimensions: generalizing the gradient to function spaces leads to the Fréchet and Gâteaux derivatives, with delicate existence questions central to the calculus of variations and PDE theory.
See Also
Jacobian Matrix · Directional Derivative · Total Differential · Hessian Matrix · Tangent Planes and Linear Approximation · Vector Fields