# Symmetry of second derivatives

In mathematics, the **symmetry of second derivatives** (also called the **equality of mixed partials**) refers to the possibility under certain conditions (see below) of interchanging the order of taking partial derivatives of a function

of *n* variables. If the partial derivative with respect to is denoted with a subscript , then the symmetry is the assertion that the second-order partial derivatives satisfy the identity

so that they form an *n* × *n* symmetric matrix. This is sometimes known as **Young's theorem**.^{[1]}

In the context of partial differential equations it is called the
**Schwarz integrability condition**.

## Hessian matrix

This matrix of second-order partial derivatives of *f* is called the **Hessian matrix** of *f*. The entries in it off the main diagonal are the **mixed derivatives**; that is, successive partial derivatives with respect to different variables.

In most "real-life" circumstances the Hessian matrix is symmetric, although there are a great number of functions that do not have this property. Mathematical analysis reveals that symmetry requires a hypothesis on *f* that goes further than simply stating the existence of the second derivatives at a particular point. Schwarz' theorem gives a sufficient condition on *f* for this to occur.

## Formal expressions of symmetry

In symbols, the symmetry says that, for example,

This equality can also be written as

Alternatively, the symmetry can be written as an algebraic statement involving the differential operator *D*_{i} which takes the partial derivative with respect to *x*_{i}:

*D*_{i}.*D*_{j}=*D*_{j}.*D*_{i}.

From this relation it follows that the ring of differential operators with constant coefficients, generated by the *D*_{i}, is commutative. But one should naturally specify some domain for these operators. It is easy to check the symmetry as applied to monomials, so that one can take polynomials in the *x*_{i} as a domain. In fact smooth functions are possible.

## Schwarz' theorem

In mathematical analysis, *Schwarz' theorem* (or *Clairaut's theorem*^{[2]}) named after Alexis Clairaut and Hermann Schwarz, states that if

has continuous second partial derivatives at any given point in , say, then

The partial derivations of this function are commutative at that point. One easy way to establish this theorem (in the case where *n* = 2, *i* = 1, and *j* = 2, which readily entails the result in general) is by applying Green's theorem to the gradient of f.

## Distribution theory formulation

The theory of distributions eliminates analytic problems with the symmetry. The derivative of any integrable function can be defined as a distribution; in this sense of differentiation, symmetry of mixed partial derivatives always holds. The use of formal integration by parts to define differentiation of distributions puts the symmetry question back onto the test functions, which are smooth and certainly satisfy this symmetry. In more detail (where *f* is a distribution, written as an operator on test functions, and *φ* is a test function),

Another approach, which defines the Fourier transform of a function, is to note that on such transforms partial derivatives become multiplication operators that commute much more obviously.

## Requirement of continuity

The symmetry may be broken if the function fails to satisfy the premises of Clairaut's theorem, such as if the derivatives are not continuous.

An example of non-symmetry is the function:
Template:NumBlk
Although this function is everywhere continuous, its algebraic derivatives are undefined at the origin point.
Elsewhere along the *x*-axis the *y*-derivative , and so:

Vice versa, along the *y*-axis the *x*-derivative ,
and so .
That is, at (0, 0), although the mixed partial derivates of this function do exist and are symmetric at every other point.

In general, the interchange of limiting operations need not commute. Given two variables near (0, 0) and two limiting processes on

corresponding to making *h* → 0 first, and to making *k* → 0 first. It can matter, looking at the first-order terms, which is applied first. This leads to the construction of pathological examples in which second derivatives are non-symmetric. This kind of example belongs to the theory of real analysis where the pointwise value of functions matters. When viewed as a distribution the second partial derivative's values can be changed at an arbitrary set of points as long as this has Lebesgue measure . Since in the example the Hessian is symmetric everywhere except , there is no contradiction with the fact that the Hessian, viewed as a Schwartz distribution, is symmetric.

## In Lie theory

Consider the first-order differential operators *D*_{i} to be infinitesimal operators on Euclidean space. That is, *D*_{i} in a sense generates the one-parameter group of translations parallel to the *x*_{i}-axis. These groups commute with each other, and therefore the infinitesimal generators do also; the Lie bracket

- [
*D*_{i},*D*_{j}] = 0

is this property's reflection. In other words, the Lie derivative of one coordinate with respect to another is zero.

## References

- ↑ http://are.berkeley.edu/courses/ARE210/fall2005/lecture_notes/Young%27s-Theorem.pdf
- ↑ James, R.C. (1966)
*Advanced Calculus*. Belmont, CA, Wadsworth.

## Books

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}