In mathematical analysis, the symmetry of second derivatives (also called the equality of mixed partials) is the fact that exchanging the order of partial derivatives of a multivariate function
f(x1,x2,…,xn)
does not change the result if some continuity conditions are satisfied (see below); that is, the second-order partial derivatives satisfy the identities
∂∂xi(∂f∂xj) = ∂∂xj(∂f∂xi).
In other words, the matrix of the second-order partial derivatives, known as the Hessian matrix, is a symmetric matrix.
Sufficient conditions for the symmetry to hold are given by Schwarz's theorem, also called Clairaut's theorem or Young's theorem.
In the context of partial differential equations, it is called the Schwarz integrability condition.
Contents
Formal expressions of symmetry
In symbols, the symmetry may be expressed as:
∂∂x(∂f∂y) = ∂∂y(∂f∂x)or∂2f∂x∂y = ∂2f∂y∂x.
Another notation is:
∂x∂yf=∂y∂xforfyx=fxy.
In terms of composition of 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 this is only true as operators over a domain of sufficiently differentiable functions. 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 are another valid domain.
In terms of the total derivative, the second derivative of a twice-differentiable function f:X→Y at a point p∈X is a linear map
D2fp:X→ℒ(X,Y)
Where ℒ(X,Y) is the normed vector space of linear maps from X to Y. By uncurrying, it may be identified with a bilinear form from X×X to Y. The symmetry of second derivatives then says that this symmetric, ie. D2fp(u)(v)=D2fp(v)(u) for all u,v∈X. Setting u and v to be the standard basis vectors 𝐞i and 𝐞j recovers the partial derivatives version. More generally, whenever f is r-times differentiable its derivative at a point p is a symmetric r-linear form Drfp:X⊗r→Y.
History
The result on the equality of mixed partial derivatives under certain conditions has a long history. The list of unsuccessful proposed proofs started with Euler's, published in 1740, although already in 1721 Bernoulli had implicitly assumed the result with no formal justification. Clairaut also published a proposed proof in 1740, with no other attempts until the end of the 18th century. Starting then, for a period of 70 years, a number of incomplete proofs were proposed. The proof of Lagrange (1797) was improved by Cauchy (1823), but assumed the existence and continuity of the partial derivatives ∂2f∂x2 and ∂2f∂y2. Other attempts were made by P. Blanchet (1841), Duhamel (1856), Sturm (1857), Schlömilch (1862), and Bertrand (1864). Finally in 1867 Lindelöf systematically analyzed all the earlier flawed proofs and was able to exhibit a specific counterexample where mixed derivatives failed to be equal.
Six years after that, Schwarz succeeded in giving the first rigorous proof. Dini later contributed by finding more general conditions than those of Schwarz. Eventually a clean and more general version was found by Jordan in 1883 that is still the proof found in most textbooks. Minor variants of earlier proofs were published by Laurent (1885), Peano (1889 and 1893), J. Edwards (1892), P. Haag (1893), J. K. Whittemore (1898), Vivanti (1899) and Pierpont (1905). Further progress was made in 1907-1909 when E. W. Hobson and W. H. Young found proofs with weaker conditions than those of Schwarz and Dini. In 1918, Carathéodory gave a different proof based on the Lebesgue integral.
Schwarz's theorem
Schwarz's theorem (or Clairaut's theorem on equality of mixed partials) states that for a function f:Ω→ℝ defined on a set Ω⊆ℝn, if 𝐩∈ℝn is a point such that some neighborhood of 𝐩 is contained in Ω and f has continuous second partial derivatives on that neighborhood of 𝐩, then for all i and j in {1,2…,n},
∂2∂xi∂xjf(𝐩)=∂2∂xj∂xif(𝐩).
The partial derivatives of this function commute at that point.
There exists a version of this theorem where f is only required to be twice differentiable at the 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.
An elementary proof for functions on open subsets of the plane is as follows (by a simple reduction, the general case for the theorem of Schwarz easily reduces to the planar case). Let f(x,y) be a differentiable function on an open rectangle Ω containing a point (a,b) and suppose that df is continuous with continuous ∂x∂yf and ∂y∂xf over Ω. Define
u(h,k)=f(a+h,b+k)−f(a+h,b),v(h,k)=f(a+h,b+k)−f(a,b+k),w(h,k)=f(a+h,b+k)−f(a+h,b)−f(a,b+k)+f(a,b).
These functions are defined for |h|,|k|<ε, where ε>0 and [a−ε,a+ε]×[b−ε,b+ε] is contained in Ω.
By the mean value theorem, for fixed h and k non-zero, θ, θ′, ϕ, ϕ′ can be found in the open interval (0,1) with
w(h,k)=u(h,k)−u(0,k)=h∂xu(θh,k)=h[∂xf(a+θh,b+k)−∂xf(a+θh,b)]=hk∂y∂xf(a+θh,b+θ′k)w(h,k)=v(h,k)−v(h,0)=k∂yv(h,ϕk)=k[∂yf(a+h,b+ϕk)−∂yf(a,b+ϕk)]=hk∂x∂yf(a+ϕ′h,b+ϕk).
Since h,k≠0, the first equality below can be divided by hk:
Proof of Clairaut's theorem using iterated integrals
The properties of repeated Riemann integrals of a continuous function F on a compact rectangle [a,b] × [c,d] are easily established. The uniform continuity of F implies immediately that the functions g(x)=∫cdF(x,y)dy and h(y)=∫abF(x,y)dx are continuous. It follows that
∫ab∫cdF(x,y)dydx=∫cd∫abF(x,y)dxdy;
moreover it is immediate that the iterated integral is positive if F is positive. The equality above is a simple case of Fubini's theorem, involving no measure theory. Titchmarsh (1939) proves it in a straightforward way using Riemann approximating sums corresponding to subdivisions of a rectangle into smaller rectangles.
To prove Clairaut's theorem, assume f is a differentiable function on an open set U, for which the mixed second partial derivatives fyx and fxy exist and are continuous. Using the fundamental theorem of calculus twice,
∫cd∫abfyx(x,y)dxdy=∫cd(fy(b,y)−fy(a,y))dy=f(b,d)−f(a,d)−f(b,c)+f(a,c).
Similarly
∫ab∫cdfxy(x,y)dydx=∫ab(fx(x,d)−fx(x,c))dx=f(b,d)−f(a,d)−f(b,c)+f(a,c).
The two iterated integrals are therefore equal. On the other hand, since fxy(x,y) is continuous, the second iterated integral can be performed by first integrating over x and then afterwards over y. But then the iterated integral of fyx − fxy on [a,b] × [c,d] must vanish. However, if the iterated integral of a continuous function F vanishes for all rectangles, then F must be identically zero; for otherwise F or −F would be strictly positive at some point and therefore by continuity on a rectangle, which is not possible. Hence fyx − fxy must vanish identically, so that fyx = fxy everywhere.
Sufficiency of twice-differentiability
A weaker condition than the continuity of second partial derivatives (which is implied by the latter) which suffices to ensure symmetry is that all partial derivatives are themselves differentiable. Another strengthening of the theorem, in which existence of the permuted mixed partial is asserted, was provided by Peano in a short 1890 note on Mathesis:
Distribution theory formulation
The theory of distributions (generalized functions) eliminates analytic problems with the symmetry. The derivative of an integrable function can always be defined as a distribution, and symmetry of mixed partial derivatives always holds as an equality of distributions. 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),
(D1D2f)[ϕ]=−(D2f)[D1ϕ]=−(D1f)[D2ϕ]=f[D2D1ϕ]=f[D1D2ϕ]=(D2D1f)[ϕ].
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 requirement of continuity is not essential. For commutativity of the second partials at a point, it is only necessary that the function be twice-differentiable at the point, in the sense of multivariable calculus. That is: the first partials of the function must be differentiable at the point. This is different, however, from just existence of the second partials. Continuity of the second partials is a common sufficient condition (but not a necessary one) to ensure twice-differentiability in this sense.
An example of non-symmetry is the function (due to Peano)
This can be visualized by the polar form f(rcos(θ),rsin(θ))=r2sin(4θ)4; it is everywhere continuous, but its derivatives at (0, 0) cannot be computed algebraically. Rather, the limit of difference quotients shows that fx(0,0)=fy(0,0)=0, so the graph z=f(x,y) has a horizontal tangent plane at (0, 0), and the partial derivatives fx,fy exist and are everywhere continuous. However, the second partial derivatives are not continuous at (0, 0), and the symmetry fails. In fact, along the x-axis the y-derivative is fy(x,0)=x, and so:
fyx(0,0)=limε→0fy(ε,0)−fy(0,0)ε=1.
In contrast, along the y-axis the x-derivative fx(0,y)=−y, and so fxy(0,0)=−1. That is, fyx≠fxy at (0, 0), although the mixed partial derivatives do exist, and at every other point the symmetry does hold.
The above function, written in polar coordinates, can be expressed as
f(r,θ)=r2sin4θ4,
showing that the function oscillates four times when traveling once around an arbitrarily small loop containing the origin. Intuitively, therefore, the local behavior of the function at (0, 0) cannot be described as a quadratic form, and the Hessian matrix thus fails to be symmetric.
In general, the interchange of limiting operations need not commute. Given two variables near (0, 0) and two limiting processes on
In Lie theory
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 commute with each other, and therefore the infinitesimal generators do also; the Lie bracket
is this property's reflection. In other words, the Lie derivative of one coordinate with respect to another is zero.
Application to differential forms
The Clairaut-Schwarz theorem is the key fact needed to prove that for every C∞ (or at least twice differentiable) differential form ω∈Ωk(M), the second exterior derivative vanishes: d2ω:=d(dω)=0. This implies that every differentiable exact form (i.e., a form α such that α=dω for some form ω) is closed (i.e., dα=0), since dα=d(dω)=0.
In the middle of the 18th century, the theory of differential forms was first studied in the simplest case of 1-forms in the plane, i.e. Adx+Bdy, where A and B are functions in the plane. The study of 1-forms and the differentials of functions began with Clairaut's papers in 1739 and 1740. At that stage his investigations were interpreted as ways of solving ordinary differential equations. Formally Clairaut showed that a 1-form ω=Adx+Bdy on an open rectangle is closed, i.e. dω=0, if and only ω has the form df for some function f in the disk. The solution for f can be written by Cauchy's integral formula
f(x,y)=∫x0xA(x,y)dx+∫y0yB(x,y)dy;
while if ω=df, the closed property dω=0 is the identity ∂x∂yf=∂y∂xf. (In modern language this is one version of the Poincaré lemma.)



