01 / 21

Clairaut's
Theorem

Discover why the order of mixed partial derivatives doesn't matter: when both are continuous, \( f_{xy} = f_{yx} \).

Multivariable Calculus

What Are Partial Derivatives?

For a function \( f(x, y) \), a partial derivative measures the rate of change with respect to one variable while holding all others constant.

\( f_x \)
Differentiate with respect to \( x \), treating \( y \) as a constant.
\( f_y \)
Differentiate with respect to \( y \), treating \( x \) as a constant.

Mixed Partial Derivatives

A mixed partial derivative is obtained by differentiating with respect to two different variables in sequence. There are two possible orders:

\( f_{xy} \)
First differentiate w.r.t. \( x \), then w.r.t. \( y \):
\( f_{xy} = \frac{\partial}{\partial y}\!\left(\frac{\partial f}{\partial x}\right) \)
\( f_{yx} \)
First differentiate w.r.t. \( y \), then w.r.t. \( x \):
\( f_{yx} = \frac{\partial}{\partial x}\!\left(\frac{\partial f}{\partial y}\right) \)

Two Paths to the Same Place

\( f(x, y) \)
\( \partial/\partial x \)
\( f_x \)
\( \partial/\partial y \)
\( \partial/\partial y \)
\( f_y \)
\( \partial/\partial x \)
\( f_{xy} = f_{yx} \)
(when both are continuous)

Both routes: \(\partial/\partial x\) then \(\partial/\partial y\), or \(\partial/\partial y\) then \(\partial/\partial x\), lead to the same mixed partial.

Clairaut's Theorem: Formal Statement

$$ f_{xy}(a,b) = f_{yx}(a,b) $$

Why Continuity Matters

Clairaut's theorem requires that the mixed partials be continuous. Without this condition, the theorem can fail. Consider the classic counterexample:

For this function, \( f_{xy}(0,0) = -1 \) but \( f_{yx}(0,0) = 1 \). The mixed partials exist everywhere but are not continuous at the origin.

Notation Distinction

The two notations for mixed partials read in opposite order. This is the most common source of confusion:

Subscript Notation Leibniz Notation
First w.r.t. \(x\), then \(y\) \( f_{xy} \) \( \dfrac{\partial^2 f}{\partial y\,\partial x} \)
First w.r.t. \(y\), then \(x\) \( f_{yx} \) \( \dfrac{\partial^2 f}{\partial x\,\partial y} \)
Reading order Left to right Right to left (inside out)

How to Apply Clairaut's Theorem

1
Verify the hypothesis. Confirm that \( f(x,y) \) has continuous second-order partial derivatives on the region of interest. For polynomials, trig, and exponentials: this is automatic.
2
Choose the easier order. Since \( f_{xy} = f_{yx} \), pick whichever differentiation order is simpler to compute.
3
Compute the first partial. Differentiate \( f \) with respect to one variable, treating the other as constant.
4
Compute the second partial. Differentiate the result with respect to the other variable.
5
Verify (optional). As a check, compute the other order and confirm both results match.

Example 1: Polynomial

1
Find \( f_x \): Differentiate w.r.t. \( x \):
\( f_x = 3x^2 y^2 + 2y^4 \)
2
Find \( f_{xy} \): Differentiate \( f_x \) w.r.t. \( y \):
\( f_{xy} = 6x^2 y + 8y^3 \)

Example 2: Transcendental Function

1
Find \( f_x \): \( f_x = e^{x} \sin y \)
2
Find \( f_{xy} \): \( f_{xy} = e^{x} \cos y \)

Example 3: Three Variables

1
Find \( f_x \): \( f_x = 2xyz^3 \)
2
Find \( f_{xz} \): \( f_{xz} = 6xyz^2 \)
3
Find \( f_{xzy} \): \( f_{xzy} = 6xz^2 \)

Geometric Intuition

\( x \)
\( f \)
\( y \)
\( (a, b, f(a,b)) \)
\( x \)-slice
\( y \)-slice
Mixed partials measure how the slope in one direction changes as you move in another.

When Does It Apply?

In practice, almost every function you encounter in a standard calculus course satisfies the hypotheses of Clairaut's theorem. You can freely swap the order of differentiation for:

✓ Polynomials
All partial derivatives of polynomials are continuous everywhere.
✓ Trig / Exponential
\( \sin x, \cos x, e^x, \ln x \) and their compositions have continuous partials on their domains.
✓ Rational Functions
Continuous on their domain (where the denominator is nonzero).

Higher-Order Extensions

Clairaut's theorem generalizes: for any order of differentiation, any rearrangement of the same set of partial derivatives gives the same result, provided all relevant mixed partials are continuous.

Third Order
\( f_{xxy} = f_{xyx} = f_{yxx} \)
Fourth Order
\( f_{xxyy} = f_{xyxy} = f_{xyyx} = \cdots \)

Common Mistakes

✕ Notation Confusion
Misreading \( \frac{\partial^2 f}{\partial y\,\partial x} \) as "first \(y\), then \(x\)." The Leibniz notation operates right to left: first \(x\), then \(y\).
✕ Assuming Always True
Applying Clairaut's theorem to piecewise functions without checking that the mixed partials are continuous at the point of interest.
✕ Wrong Variable Held Constant
When computing \( f_x \), accidentally differentiating a \(y\)-term as if it were an \(x\)-term, or treating \(y\) as a function of \(x\).

Summary Table

Concept Details
Theorem Statement \( f_{xy} = f_{yx} \) when both are continuous
Key Hypothesis Continuity of mixed partial derivatives
Applies To Polynomials, trig, exponentials, rationals on their domain
Fails When Mixed partials exist but are discontinuous (piecewise functions)
Notation Trap Leibniz reads right-to-left; subscript reads left-to-right
Extension Any reordering of \(n\)-th order mixed partials is equal

Question 1 of 5

If \( f(x,y) = x^2 y^3 \), what is \( f_{xy} \)?

Question 2 of 5

What is the essential hypothesis of Clairaut's theorem?

Question 3 of 5

In Leibniz notation, \( \dfrac{\partial^2 f}{\partial y\,\partial x} \) means:

Question 4 of 5

For \( g(x,y) = e^{2x}\ln y \), what is \( g_{yx} \)?

Question 5 of 5

By Clairaut's theorem, how many distinct third-order mixed partial derivatives does a smooth function \( f(x,y) \) have?