The theorem
- ∂²f/∂x∂y = ∂²f/∂y∂x
∂²f/∂x∂y means ∂/∂x (∂f/∂y): first in y, then in x. The theorem says that the reverse order gives the same function. It is called Schwarz’s theorem, and Clairaut’s theorem in many American textbooks.
Holds when both mixed partials exist and are continuous near the point. Polynomials meet this everywhere, and so do functions built from eˣ, sin, cos and ln inside their domains.
The result is also called Schwarz’s theorem, Clairaut’s theorem or Young’s theorem.
Worked check: x³y²
- ∂f/∂y = 2x³y, and then ∂/∂x gives 6x²y.
- ∂f/∂x = 3x²y², and then ∂/∂y gives 6x²y.
At (3, 2) both are 108.
Where the condition fails
Take f(x, y) = xy(x² − y²)/(x² + y²), with f(0, 0) = 0. Along the axes, ∂f/∂y(x, 0) = x and ∂f/∂x(0, y) = −y. So at the origin ∂²f/∂x∂y = 1 and ∂²f/∂y∂x = −1. Both mixed partials exist there, but they are not continuous at the origin, and the theorem does not apply.
Why it is useful
- The second derivatives of f(x, y) are three numbers, not four: fxx, fyy and one mixed.
- A check on hand calculation: where the condition holds, two different mixed results mean a slip somewhere.
Common mistakes
- Reading the order backwards. ∂²f/∂x∂y is ∂/∂x of ∂f/∂y, while fxy is fx differentiated in y. The letters run in opposite directions. Where the condition holds, it makes no difference.
- Using it without the condition. At the origin in the example above it gives the wrong answer.
Related: partial derivative, gradient.