Partial Derivatives
College Math · Calculus IIIPreview
1. Introduction
Single-variable calculus studies functions that depend on one input, and the derivative captures their instantaneous rate of change. But the real world is rarely one-dimensional: the temperature in a room depends on three spatial coordinates, the profit of a company depends on dozens of decision variables, and the height of a mountain depends on two map coordinates. To analyze such functions we need a calculus of several variables.
A function of several variables, written , takes a point and returns a single number. The graph of is a surface floating above the -plane. The fundamental challenge is that at a single point a surface has infinitely many directions in which it can rise or fall — there is no single "slope." The resolution is the partial derivative: we freeze all variables but one and measure the rate of change in that single coordinate direction. From these building blocks we assemble the gradient, the directional derivative, the chain rule, tangent planes, implicit differentiation, and a complete theory of optimization for surfaces.
This article develops partial derivatives rigorously: precise limit definitions, differentiability versus mere existence of partials, Clairaut's theorem on mixed partials, the gradient as the direction of steepest ascent, the multivariable chain rule, linear approximation, the second-derivative (Hessian) test for classifying critical points, and Lagrange multipliers for constrained optimization. By the end you should be able to differentiate any reasonable multivariable function, optimize it, and understand why the machinery works.
The theory connects directly to applications in physics (gradient of potential energy gives force), economics (marginal utilities as partial derivatives), machine learning (gradient descent minimizes loss), and engineering (heat equation, fluid flow). Mastering partial derivatives is the gateway to the rest of multivariable calculus — multiple integrals, vector fields, and the theorems of Green, Stokes, and Gauss all build on the gradient and the chain rule developed here.
2. Core Concepts
2.1 The Partial Derivative: Definition
For , the partial derivative with respect to at the point is the ordinary derivative of the single-variable function obtained by holding fixed: Similarly, holding fixed, Geometrically, is the slope of the curve formed by slicing the surface with the vertical plane ; it is the slope of the tangent line to that cross-section. The notations , , , and are all interchangeable.
The practical upshot is that we never compute these limits by hand: to find we differentiate treating as a constant, using all the familiar single-variable rules (power, product, quotient, chain).
2.2 Higher-Order Partial Derivatives and Clairaut's Theorem
Because each partial is itself a function of , we can differentiate again. The four second-order partials are The "mixed" partials and differentiate once in each variable but in opposite orders. Remarkably, they almost always agree.
Clairaut's (Schwarz's) Theorem. If and are both continuous on an open set containing , then
Proof sketch. Fix small. The difference quotient can be computed by first differencing in then , or vice versa. As , the first route converges to and the second to . Continuity of the mixed partials forces the limits to agree.
This symmetry is what makes the Hessian matrix symmetric, a fact we exploit in the second-derivative test.
2.3 Differentiability and the Tangent Plane
A subtle point: the mere existence of and is weaker than differentiability. A function can have both partials at a point yet not even be continuous there (consider with ). We say is differentiable at if it admits a good linear approximation: where as . A clean sufficient condition: if and exist and are continuous near , then is differentiable there (such is called ). Differentiable functions are automatically continuous.
When is differentiable, the surface has a genuine tangent plane at :
The total differential packages the linear part: . If and each have measurement error , , then approximates the resulting error in — the foundation of error propagation in engineering.
2.4 The Gradient and Directional Derivatives
The partials assemble into a single vector, the gradient: The directional derivative of at a point in the direction of a unit vector measures the rate of change as we move along :
Proof that the gradient gives steepest ascent. For fixed , by Cauchy–Schwarz , with equality iff is parallel to . Thus the maximum rate of increase is , achieved when .
Three geometric facts follow:
- The gradient points in the direction of steepest ascent, with maximal rate .
- The steepest descent is along .
- The directional derivative is zero when : the gradient is orthogonal to level curves (and to level surfaces in 3D).
2.5 The Multivariable Chain Rule
If where and , then If instead and each depend on two variables , then for each independent variable we sum over every path: A tree diagram — draw a branch for every dependency and multiply along branches, add across branches — keeps the bookkeeping straight.
2.6 Implicit Differentiation
When defines implicitly as a function of and , differentiate both sides treating as a function of : provided . The gradient is normal to the level surface , giving the tangent plane .
2.7 Critical Points and the Second-Derivative Test
At an interior local maximum or minimum of a differentiable , the tangent plane must be horizontal, so . Points where (or where a partial fails to exist) are critical points. Not every critical point is an extremum — a saddle point rises in one direction and falls in another.
Second-Derivative (Hessian) Test. Let be a critical point of a function and define the discriminant evaluated at . Then:
- and local minimum;
- and local maximum;
- saddle point;
- test is inconclusive (investigate by other means).
The discriminant is the determinant of the Hessian; its sign records whether the two eigenvalues (the principal curvatures) have the same or opposite signs.
2.8 Lagrange Multipliers
To optimize subject to , extrema occur where and are parallel: The scalar is the Lagrange multiplier; it measures the rate of change of the optimal value with respect to the constraint level .
Continue reading with Premium
Upgrade to read the full article and unlock all Premium features.
Free
- Unlimited practice — all difficulties
- 3 hints / day
- Community solutions
- 2 timed mocks / month
Premium
- ✓Full article + all 57+ theory guides
- ✓Unlimited hints on practice problems
- ✓Unlimited timed mock exams & PDF worksheets