Historical Context & Motivation
The study of functions of several variables naturally leads to the question of how successive rates of change interact with one another. When you differentiate a function first with respect to one variable and then with respect to another, does the order in which you perform those operations matter? This deceptively simple question occupied some of the greatest mathematical minds of the eighteenth and nineteenth centuries, and its resolution—Clairaut's theorem—remains one of the most elegant and practically useful results in multivariable calculus.
The need for higher-order partial derivatives arose in diverse contexts: from modeling how heat flows through a solid bar to understanding the curvature of surfaces in three-dimensional space. Leonhard Euler and Alexis Clairaut, working in the mid-1700s, independently discovered that for 'well-behaved' functions the mixed second-order partials are equal regardless of differentiation order. However, making this intuition rigorous required the careful analytic machinery that would only mature a century later with the work of Karl Weierstrass and Hermann Schwarz.
The central question that motivated all of this development can be stated concisely: given a function f(x, y), when does differentiating first with respect to x and then y yield the same result as differentiating first with respect to y and then x? Clairaut's theorem provides the definitive answer—and understanding it is essential before you move on to topics like Taylor series in several variables, optimization via the second-derivative test, or partial differential equations.
Core Principles & Definitions
Before we can state Clairaut's theorem precisely, we need to establish the foundational vocabulary. You are already familiar with first-order partial derivatives—the rates of change of a multivariable function with respect to a single variable while holding all others constant. Higher-order partial derivatives are obtained by differentiating partial derivatives themselves, producing second-order, third-order, and beyond. Among these, the mixed partial derivatives are of special interest because they involve differentiation with respect to more than one variable in succession.
Higher-Order Partial Derivative
Mixed Partial Derivative
Continuity of Mixed Partials
Clairaut's Theorem (Equality of Mixed Partials)
Visual Explanation — Differentiation Tree
The following diagram shows the tree of all second-order partial derivatives for a function f(x, y). Starting from f at the top, the first level of branching produces the two first-order partials, and the second level produces the four second-order partials. Clairaut's theorem tells us that the two mixed partials in the center are equal whenever they are continuous, effectively reducing four independent quantities to three.
Notice that the two 'pure' second-order partials—fxx and fyy—measure concavity along each coordinate axis independently, while the mixed partials capture the cross-interaction between the two variables. This cross-interaction is what appears, for example, in the discriminant D = fxxfyy − (fxy)² of the multivariable second-derivative test for local extrema. Clairaut's theorem is what guarantees we don't need to worry about which mixed partial appears in that formula.
Mathematical Framework
Notation for Higher-Order Partials
For a function f(x, y), we have two standard notation systems. In Leibniz notation, the second-order partial obtained by differentiating first with respect to x and then with respect to y is written ∂²f/∂y∂x. In subscript notation, the same derivative is written fxy. A crucial point: in Leibniz notation the differentiation order reads right to left (first x, then y), whereas in subscript notation it reads left to right (first x, then y). Both notations denote the same operation.
Extension to Higher Orders and More Variables
Clairaut's theorem generalizes inductively. For a function f(x, y, z) with all relevant mixed partials continuous, any permutation of the differentiation variables yields the same result. For instance, fxyz = fxzy = fyxz = fyzx = fzxy = fzyx. The number of truly independent n-th order partials of a function of k variables is the multiset coefficient C(n + k − 1, n), rather than kn, a substantial simplification.
Detailed Breakdown — Computing Second-Order Partials
To solidify the mechanics, let us walk through the computation of all four second-order partial derivatives of a concrete function and verify Clairaut's theorem. The diagram below illustrates the process on a surface, showing how the slope along one axis changes as we shift along the other.
| Derivative | Meaning | For f = x²y + 3xy³ |
|---|---|---|
| fx | Slope of f in the x-direction | 2xy + 3y³ |
| fy | Slope of f in the y-direction | x² + 9xy² |
| fxx | Concavity in x-direction (acceleration of slope) | 2y |
| fyy | Concavity in y-direction | 18xy |
| fxy = fyx | Cross-curvature: how x-slope changes with y (or vice versa) | 2x + 9y² |
Worked Example
Let us work through a more involved example that features transcendental functions, demonstrating that Clairaut's theorem applies far beyond polynomials.
When Does Clairaut's Theorem Fail?
Clairaut's theorem is remarkably robust—so much so that students sometimes assume mixed partials are always equal. However, the continuity hypothesis is not vacuous. Understanding the boundary cases deepens your grasp of the theorem and helps you appreciate why mathematicians insisted on rigor.
| Scenario | Mixed Partials Equal? | Reason |
|---|---|---|
| Polynomials in x, y | Always ✓ | All partial derivatives of polynomials are polynomials, hence continuous everywhere. |
| Smooth functions (C∞) | Always ✓ | All derivatives of all orders exist and are continuous. |
| Piecewise-defined with discontinuous mixed partials at origin | May fail ✗ | Classic counterexample: f(x,y) = xy(x²−y²)/(x²+y²) at (0,0). Here f_xy(0,0) = 1 but f_yx(0,0) = −1. |
| Functions with isolated discontinuities in mixed partials | Fails at the point ✗ | Clairaut's theorem requires continuity on an open set containing the point. Failure at a single point is sufficient for inequality. |
| Rational, exponential, trig functions on their domains | Always ✓ | These are analytic on their domains, so all derivatives are continuous wherever the function is defined. |
Connections to Advanced Topics
Clairaut's theorem is not an isolated result—it serves as a linchpin connecting several branches of multivariable calculus and beyond. Understanding where higher-order and mixed partials appear downstream will help you appreciate why this theorem is worth internalizing thoroughly.
| This Lesson's Concept | Advanced Topic | How They Connect |
|---|---|---|
| fxy = fyx | Second Derivative Test | The discriminant D = f_xx f_yy − (f_xy)² classifies critical points. Clairaut's theorem ensures the (f_xy)² term is unambiguous. |
| Higher-order mixed partials | Taylor Series in Several Variables | The multivariable Taylor expansion involves terms like ∂ⁿf/∂xⁱ∂yʲ. Clairaut's theorem reduces the number of distinct coefficients. |
| Equality of mixed partials | Exact Differential Equations | An equation M dx + N dy = 0 is exact iff ∂M/∂y = ∂N/∂x, which is precisely the condition f_xy = f_yx for a potential function f. |
| Second-order partials f_xx, f_yy | Laplacian & PDEs | The Laplacian ∇²f = f_xx + f_yy appears in the heat equation, wave equation, and Poisson's equation—foundations of mathematical physics. |
| Symmetry of the Hessian matrix | Optimization & Linear Algebra | The Hessian H = [[f_xx, f_xy],[f_yx, f_yy]] is symmetric by Clairaut's theorem, guaranteeing real eigenvalues—critical for constrained optimization and convexity analysis. |
As you advance into topics like differential geometry, the symmetry of mixed partials generalizes into the statement that the Hessian matrix is symmetric. This seemingly modest property has profound consequences: it guarantees that the eigenvalues of the Hessian are real, which in turn makes the second-derivative test well-defined. In optimization theory, the entire classification of quadratic forms—and hence the theory of local minima, maxima, and saddle points—rests upon this symmetry.
Practice Problems
Summary
Higher-order partial derivatives are obtained by differentiating partial derivatives repeatedly. For a function f(x, y), the four second-order partials are the two pure partials fxx and fyy, which measure concavity along each axis, and the two mixed partials fxy and fyx, which capture cross-variable interactions.
Clairaut's theorem guarantees that if the mixed partials are continuous on an open region, then fxy = fyx throughout that region—the order of differentiation does not matter. This result reduces the number of independent second-order partials from four to three, simplifies the Hessian matrix to a symmetric matrix, and underpins the second derivative test, Taylor expansions in several variables, and the theory of exact differential equations. For standard elementary functions—polynomials, exponentials, trigonometric functions, and their compositions—the continuity hypothesis is always met, so you can freely interchange the order of partial differentiation.