SECTION 1
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.
1713 • Alexis Clairaut Born
1740 • Clairaut's Theorem Published
1823 • Schwarz's Rigorous Proof
1900s • Widespread Use in Physics
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.
SECTION 2
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
Notation Alert
KEY TAKEAWAY
SECTION 3
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.
SECTION 4
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.
CLAIRAUT'S THEOREM
fxy means: differentiate f with respect to x first, then with respect to y. fyx means: differentiate f with respect to y first, then with respect to x.
SUBSCRIPT NOTATION
Read subscript notation left to right: fxy differentiates with respect to x, then y. In fraction notation ∂²f/∂y∂x, read right to left: differentiate with respect to x first (innermost), then y.
EXAMPLE COMPUTATION
First we treat y as a constant and differentiate with respect to x. Then we treat x as a constant and differentiate the result with respect to y.
VERIFICATION (OTHER ORDER)
Now we differentiate with respect to y first, then x. The result is 6x²y + 2 — identical to fxy, confirming Clairaut's Theorem.
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.
SECTION 5
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 |
Verification of Clairaut's Theorem for common functions
SECTION 6
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.
Verify Clairaut's Theorem for f(x, y) = x²sin(y) + 3xy²
- 1
Step 1 — Find (differentiate with respect to x, treating y as constant)
Differentiate each term with respect to x: the derivative of x²sin(y) is 2x sin(y) (since sin(y) is constant with respect to x), and the derivative of 3xy² is 3y².fx = 2x sin(y) + 3y² - 2
Step 2 — Find f_xy (differentiate with respect to y)
Now differentiate fx with respect to y: the derivative of 2x sin(y) with respect to y is 2x cos(y), and the derivative of 3y² with respect to y is 6y.fxy = 2x cos(y) + 6y - 3
Step 3 — Find (differentiate with respect to y, treating x as constant)
Go back to the original function and differentiate with respect to y: the derivative of x²sin(y) is x²cos(y), and the derivative of 3xy² is 6xy.fy = x²cos(y) + 6xy - 4
Step 4 — Find f_yx (differentiate with respect to x)
Differentiate fy with respect to x: the derivative of x²cos(y) is 2x cos(y), and the derivative of 6xy is 6y.fyx = 2x cos(y) + 6y - 5
Step 5 — Compare and Conclude
We found fxy = 2x cos(y) + 6y and fyx = 2x cos(y) + 6y. Since both mixed partials are equal, Clairaut's Theorem is confirmed. Both expressions are continuous everywhere, so the continuity condition is satisfied.f_xy = f_yx = 2x cos(y) + 6y ✓
Pro Tip
SECTION 7
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. |
When does Clairaut's Theorem apply?
PRACTICAL RULE
SECTION 8
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 |
Clairaut's Theorem in 2 variables vs. higher dimensions
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.
SECTION 9
Practice Problems
Test your understanding with these five problems, arranged from conceptual to challenging. Try each problem on your own before checking the answer.
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
Lesson Summary
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.