Historical Context & Motivation
When you first learn about derivatives, you work with functions of a single variable — slope at a point on a curve. But real-world quantities often depend on more than one input. The temperature in a room depends on position and time; the pressure of a gas depends on temperature and volume. Mathematicians in the 1700s began asking: when you take partial derivatives with respect to different variables, does the order in which you differentiate change the answer?
This question led to one of the most elegant and practical results in multivariable calculus: Clairaut's Theorem. Named after the French mathematician Alexis Claude Clairaut, it guarantees that — under reasonable conditions — mixed partial derivatives are equal regardless of the order of differentiation. The theorem saves enormous effort in computation and forms the backbone of many advanced results in physics and engineering.
The central question Clairaut answered is deceptively simple: if you have a function f(x, y) and you first differentiate with respect to x, then with respect to y, do you get the same result as differentiating first with respect to y, then x? As we will see, the answer is yes — provided the mixed partials are continuous.
Core Principles & Definitions
Before diving into the theorem itself, let's make sure the foundational vocabulary is solid. A partial derivative measures how a multivariable function changes when you vary one input while holding all the others constant. If f(x, y) is a function of two variables, the partial derivative with respect to x is written ∂f/∂x, and it treats y as a constant during differentiation.
Partial Derivative
Mixed Partial Derivative
Continuity Condition
Equality of Mixed Partials
Visual Explanation
The diagram below illustrates the two paths to a mixed partial derivative. Starting from the original function f(x, y), you can follow either branch — differentiating first with respect to x or first with respect to y — and Clairaut's Theorem guarantees that both paths lead to the same result.
Notice that the two boxes at the bottom contain different-looking expressions — ∂²f/∂y∂x on the left and ∂²f/∂x∂y on the right — yet Clairaut's Theorem tells us they evaluate to the same function. This symmetry is not obvious from the notation alone, which is why the theorem is so powerful: it lets you choose whichever differentiation order is computationally easier, knowing the result will be the same.
Mathematical Framework
Let's formalize what Clairaut's Theorem says and break down the notation. Understanding the precise statement will help you apply it with confidence.
The key condition is that the second-order mixed partial derivatives must be continuous in a neighborhood of the point where you are evaluating them. In practice, this means the function should be "smooth" — no sharp corners, jumps, or undefined patches. Polynomial, exponential, trigonometric, and logarithmic functions (where defined) all meet this requirement.
Detailed Breakdown & Surface Visualization
To build deeper intuition, consider what mixed partial derivatives measure geometrically. The first partial ∂f/∂x tells you the slope of the surface z = f(x, y) in the x-direction. When you then take ∂/∂y of that slope, you are measuring how fast that x-slope changes as y varies. Clairaut's Theorem says this cross-rate of change is the same whether you measure the x-rate of the y-slope or the y-rate of the x-slope.
For the function f(x, y) = x²y shown in the diagram, the first partials are fx = 2xy and fy = x². The mixed partials are fxy = 2x and fyx = 2x — indeed equal, just as the theorem predicts.
| Function f(x, y) | f_xy | f_yx | Equal? |
|---|---|---|---|
| x³y² + 2xy | 6x²y + 2 | 6x²y + 2 | ✓ Yes |
| sin(xy) | cos(xy) − xy sin(xy) | cos(xy) − xy sin(xy) | ✓ Yes |
| ex+y | ex+y | ex+y | ✓ Yes |
| x²y³ − 4xy | 6xy² − 4 | 6xy² − 4 | ✓ Yes |
Worked Example
Let's work through a complete example using Clairaut's Theorem to verify that the mixed partials of a function are equal, and then use the theorem to simplify a computation.
When Clairaut's Theorem Applies (and When It Doesn't)
Clairaut's Theorem is remarkably reliable, but it's important to understand its boundaries. The theorem requires continuity of the mixed partial derivatives. For the vast majority of functions you encounter in a calculus course — polynomials, rational functions (where defined), trigonometric, exponential, and logarithmic functions — this condition is automatically met.
| Situation | Does the theorem apply? | Why? |
|---|---|---|
| Polynomial function | ✓ Always | All partial derivatives of polynomials are continuous everywhere. |
| Trigonometric function | ✓ Always | Sine, cosine, and their derivatives are continuous everywhere. |
| e raised to a polynomial | ✓ Always | Exponential functions and their derivatives are continuous everywhere. |
| Piecewise-defined function | ⚠ Maybe | Must check continuity of mixed partials at the boundary between pieces. |
| Function with a discontinuity | ✗ No (at that point) | If the mixed partials are discontinuous, the theorem fails and f_xy ≠ f_yx is possible. |
Extension to Higher Dimensions & Advanced Theory
Clairaut's Theorem extends naturally beyond two variables. If you have a function f(x, y, z), the theorem tells you that any pair of mixed partials can be swapped. For instance, fxz = fzx, fyz = fzy, and fxy = fyx, provided the relevant mixed partials are continuous. Moreover, for third-order and higher derivatives, you can rearrange the differentiation order freely.
| Concept | Clairaut's Theorem (2 variables) | Extended Version (3+ variables) |
|---|---|---|
| Statement | f_xy = f_yx | f_xy = f_yx, f_xz = f_zx, f_yz = f_zy, etc. |
| Number of mixed pairs | 1 pair | 3 pairs for 3 variables, 6 for 4, etc. |
| Higher-order extension | f_xxy = f_xyx = f_yxx | Any permutation of differentiation gives the same result |
| Applications | 2D optimization, exact equations | Thermodynamics (Maxwell relations), electromagnetism, PDEs |
In physics, Clairaut's Theorem plays a central role in thermodynamics through the Maxwell relations, which connect quantities like temperature, entropy, pressure, and volume. It also appears in differential equations, where testing whether a differential equation is exact requires checking the equality of certain mixed partials — a direct application of Clairaut's Theorem. These connections will become important if you go on to study AP Physics, engineering, or advanced mathematics.
Practice Problems
Test your understanding with these five problems, arranged from conceptual to challenging. Try each problem on your own before checking the answer.
Lesson Summary
Clairaut's Theorem states that for a function f(x, y) with continuous second-order mixed partial derivatives, the order of differentiation does not matter: f_xy = f_yx. This means ∂²f/∂y∂x = ∂²f/∂x∂y. The theorem applies to all polynomials, trigonometric, exponential, and logarithmic functions (where they are defined), which covers virtually every function encountered in standard calculus courses.
Named after the French mathematician Alexis Claude Clairaut (1713–1765), the theorem allows you to choose the computationally easier differentiation order when finding mixed partials, and it serves as a consistency check for verifying partial derivative computations. It extends to functions of three or more variables and forms the foundation for advanced results in thermodynamics (Maxwell relations), differential equations (exactness tests), and mathematical analysis.