# Symmetry of second derivatives

In mathematics, the symmetry of second derivatives refers to the possibility of interchanging the order of taking partial derivatives of a function

f(x1, x2, ..., xn)

of n variables. If the partial derivative with respect to xi is denoted with a subscript i, then the symmetry is the assertion that

fij

is an n × n symmetric matrix. This matrix 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 normal circumstances the Hessian matrix is indeed symmetric; but from the point of view of mathematical analysis this isn't a safe statement, without some hypothesis on f that goes further than simply stating the existence of the second derivatives at a particular point. Clairaut's theorem gives a sufficient condition on f for this to occur.

In symbols, the symmetry says that, for example,

[itex]\frac {\partial}{\partial x} \left( \frac { \partial f }{ \partial y} \right) =
      \frac {\partial}{\partial y} \left( \frac { \partial f }{ \partial x} \right)[itex]


This equality can also be written as

[itex]\partial_{xy} f = \partial_{yx} f.[itex]

Alternatively, the symmetry can be written as an algebraic statement involving the differential operator Di which takes the partial derivative with respect to xi:

Di . Dj = Dj . Di.

From this relation it follows that the ring of differential operators with constant coefficients, generated by the Di, 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 xi as a domain. In fact smooth functions is possible.

One can also apply the theory of distributions to get round any analytic problems with the symmetry. Firstly the derivative of any function can be defined (provided it is integrable), as a distribution. Secondly the use of integration by parts throws the symmetry question back onto the test functions, which are smooth and certainly satisfy the symmetry. One concludes that, in the sense of distributions, the symmetry always holds. (Another approach, where the Fourier transform of a function is defined, is to note that on transforms the partial derivatives become multiplication operators that commute much more obviously).

The fact remains that in the worst case there are counterexamples. In the case of two variables, near (0, 0) one can consider two limiting processes on

f(h, k) − f(h, 0) − f(0, k) + f(0, 0)

corresponding to making h → 0 first, and to making k → 0 first. These processes need not commute: it can matter, looking at the first-order terms, which is applied first. This leads to the construction of pathological examples in which the symmetry of second derivatives is not true. [Could someone write up such an example here or in its own article, and add that to the list of mathematical examples?] Given that the derivatives as Schwartz distributions are symmetric, this kind of example belongs in the 'fine' theory of real analysis.

A more sophisticated argument is this: consider the first-order differential operators Di to be infinitesimal operators on Euclidean space. That is, Di in a sense generates the one-parameter group of translations parallel to the xi-axis. These groups certainly all commute with each other, and therefore we expect that the infinitesimal generators do also; the Lie bracket

[Di, Dj] = 0

is the way that is reflected. When one comes to ask whether this is try as applied to spaces of functions on Euclidean space, this question is an elementary part of the theory of differentiable vectors in representation theory; that is, a suitable subspace of a function space on which the Lie algebra representation deriving from a representation of a Lie group has desirable and transparent properties.

## Counterexample

Consider the function

[itex]f(x,y) = \frac{xy(x^2 - y^2)}{x^2+y^2}[itex]

with [itex]f(0,0) = 0[itex]. Then the mixed partial derivatives of f exist, and are continuous everywhere except at [itex](0,0)[itex]. Moreover

[itex]\frac {\partial}{\partial x} \left( \frac { \partial f }{ \partial y} \right) \ne
      \frac {\partial}{\partial y} \left( \frac { \partial f }{ \partial x} \right)[itex]


at [itex](0,0)[itex].

• Art and Cultures
• Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
• Space and Astronomy