Canonical: https://knowlpedia.com/real-analysis/schwarz-clairaut-theorem/

# Schwarz–Clairaut theorem

Under continuity, mixed second partial derivatives agree.

**Schwarz–Clairaut theorem:** Let \(U\subseteq\mathbb R^n\) be an [open set](https://knowlpedia.com/topology/open-set/) and let \(f:U\to\mathbb R\). Fix indices \(i,j\in\{1,\dots,n\}\). If the [mixed second partial derivatives](https://knowlpedia.com/real-analysis/mixed-partial-derivative/) \(\frac{\partial^2 f}{\partial x_i\partial x_j}\) and \(\frac{\partial^2 f}{\partial x_j\partial x_i}\) exist on a neighborhood of \(a\in U\) and are continuous at \(a\), then
\[
\frac{\partial^2 f}{\partial x_i\partial x_j}(a)=\frac{\partial^2 f}{\partial x_j\partial x_i}(a).
\]

## Consequences

This justifies treating the [Hessian matrix](https://knowlpedia.com/real-analysis/hessian-matrix/) of a sufficiently smooth function as symmetric, and it is a standard hypothesis in second-order local analysis such as the [second derivative tests](https://knowlpedia.com/real-analysis/second-derivative-tests/).
