SECTION 1
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.
1740s • Euler & Clairaut's Observations
1807 • Fourier's Heat Equation
1867 • Schwarz's Rigorous Proof
1880s • Young's Generalization
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.
SECTION 2
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)
KEY TAKEAWAY
SECTION 3
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.
SECTION 4
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.
SECOND-ORDER PURE PARTIALS
These measure concavity along the x- and y-directions respectively—analogous to the second derivative f″(x) in single-variable calculus.
SECOND-ORDER MIXED PARTIALS
These measure how the slope in one direction changes as you move in the perpendicular direction. The notation ∂²f/∂y∂x means: differentiate f with respect to x first (rightmost variable), then differentiate the result with respect to y.
CLAIRAUT'S THEOREM (SYMMETRY OF MIXED PARTIALS)
The hypothesis of continuity is essential. Without it, one can construct pathological functions (see Section 7) where the mixed partials differ. In practice, polynomials, exponentials, trigonometric functions, and their compositions all satisfy this condition everywhere they are defined.
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.
SECTION 5
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² |
Summary of all second-order partials for f(x, y) = x²y + 3xy³
Notation Warning
SECTION 6
Worked Example
Let us work through a more involved example that features transcendental functions, demonstrating that Clairaut's theorem applies far beyond polynomials.
Find all second-order partial derivatives of f(x, y) = eˣ sin(y) + x²y³ and verify Clairaut's theorem.
- 1
Step 1 — Compute
Differentiate f(x, y) = eˣ sin(y) + x²y³ with respect to x, treating y as a constant. The derivative of eˣ sin(y) with respect to x is eˣ sin(y) since sin(y) is a constant factor. The derivative of x²y³ with respect to x is 2xy³.fx = eˣ sin(y) + 2xy³ - 2
Step 2 — Compute
Differentiate f with respect to y, treating x as a constant. The derivative of eˣ sin(y) with respect to y is eˣ cos(y). The derivative of x²y³ with respect to y is 3x²y².fy = eˣ cos(y) + 3x²y² - 3
Step 3 — Compute f_xx (pure second partial)
Differentiate fx = eˣ sin(y) + 2xy³ with respect to x again. We get eˣ sin(y) + 2y³.fxx = eˣ sin(y) + 2y³ - 4
Step 4 — Compute f_yy (pure second partial)
Differentiate fy = eˣ cos(y) + 3x²y² with respect to y again. The derivative of eˣ cos(y) with respect to y is −eˣ sin(y), and the derivative of 3x²y² with respect to y is 6x²y.fyy = −eˣ sin(y) + 6x²y - 5
Step 5 — Compute f_xy (mixed partial: first x, then y)
Differentiate fx = eˣ sin(y) + 2xy³ with respect to y. The derivative of eˣ sin(y) with respect to y is eˣ cos(y), and the derivative of 2xy³ with respect to y is 6xy².fxy = eˣ cos(y) + 6xy² - 6
Step 6 — Compute f_yx (mixed partial: first y, then x)
Differentiate fy = eˣ cos(y) + 3x²y² with respect to x. The derivative of eˣ cos(y) with respect to x is eˣ cos(y), and the derivative of 3x²y² with respect to x is 6xy².fyx = eˣ cos(y) + 6xy² - 7
Step 7 — Verify Clairaut's Theorem
Both mixed partials equal eˣ cos(y) + 6xy². Since eˣ cos(y) and 6xy² are continuous everywhere on ℝ², Clairaut's theorem is satisfied and the equality fxy = fyx holds on all of ℝ².✓ fxy = fyx = eˣ cos(y) + 6xy² everywhere
SECTION 7
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. |
When Clairaut's theorem applies and when it may fail
The Classic Counterexample
PRACTICAL GUIDELINE
SECTION 8
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. |
How higher-order and mixed partials feed into advanced mathematics
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.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Summary
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.