We saw for z=f(x,y) that its partial derivatives fx(x,y) and fy(x,y) are functions of x and y. Therefore we can consider their partial derivatives (fx)x(x,y), (fx)y(x,y), (fy)x(x,y), and (fy)y(x,y). These partial derivatives are called the second partial derivatives of f.

 

  • Note that 2fyx means we first differentiate with respect to x and then with respect to y, while for 2fxy we first differentiate with respect to y and then with respect to x.

 

Read more on common notations and higher than two partial derivaitves

 

  • Note that we differentiate in the order of the symbols x and y in the denominator from right to left. For example, fxxyyx=5fxy2x2 means
    fxxyyx=5fxy2x2=x(y(y(x(fx))))
    However we will learn that the order we carry out differentiations does not matter in  almost all cases.


Example 1
If f(x,y)=x2y3, find its second partial derivatives
Solution
fx=2xy32fx2=2y3,2fyx=6xy2,
fy=3x2y22fxy=6xy2,2fy2=6x2y.
As we can see 2fxy=2fyx.
Example 2
Find fxxz, fxzx and fzxx if f(x,y,z)=cosx ey2z.
Solution
fxxz=zxx(cosx ey2z)=zx(sinx ey2z)=z(cosx ey2z)=2cosx ey2z
fxzx=xzx(cosx ey2z)=xz(sinx ey2z)=x(2sinx ey2z)=2cosx ey2z
fzxx=xxz(cosx ey2z)=xx(2cosx ey2z)=x(2sinx ey2z)=2cosx ey2z

As we can see:
3fzx2=3fxzx=3fx2z


The equality of fxy and fyx in Example 1, and equality of fxxz, fxzx and fzxx in Example 2 are not coincidence:

Theorem 1 (Symmetry of Second Derivatives): If the mixed partial derivatives 2fxy and 2fyx of a function f(x,y) are continuous on an open set U, then for every (x,y)U:
2fxy(x,y)=2fyx(x,y)

The above theorem leads to this result that for any number of differentiations or variables involved the order of differentiation is immaterial provided the assumption of the continuity of the functions holds true.

Read more on equality of mixed partial derivatives

 

  • If the assumption of continuity of the partial derivatives is not satisfied, the symmetry of partial derivatives may be broken. The following is an example of non-symmetry situation.

 

Example 3
Find fxy(0,0) and fyx(0,0) if f(x,y) is given by:
f(x,y)={xy(x2y2)x2+y2(x,y)(0,0)0(x,y)=(0,0)
Solution
Note that f(x,y) is continuous everywhere (see Fig. 1(a)). The continuity of f at (0,0) can be shown, for example, by using polar coordinates.

To calculate fxy(0,0) and fyx(0,0), we need to use the definition
fxy(0,0)=fxy(0,0)=limk0fx(0,0+k)fx(0,0)kfyx(0,0)=fyx(0,0)=limh0fy(0+h,0)fy(0,0)k
So we need to know fx(0,y) and fy(x,0):
fx(0,y)=limh0f(h,y)f(0,y)h=limh0hyh2y2h2+y20h=limh0yh2y2h2+y2=y,

fy(x,0)=limk0f(x,k)f(x,0)k=limk0xkx2k2x2+k20k=limk0xx2k2x2+k2=x.
As special cases, it is easy to show that fx(0,0)=0 and fy(0,0)=0It can be shown that fx and fy are continuous functions everywhere (see Fig. 1(b) and (c)). Now we are ready to calculate fxy(0,0) and fyx(0,0):
fxy(0,0)=fxy(0,0)=limk0fx(0,k)fx(0,0)k=limk0k0k=1fyx(0,0)=fyx(0,0)=limh0fy(h,0)fy(0,0)k=limh0h0h=1.
So fxy(0,0)fyx(0,0) which is caused by the discontinuity of fxy at (0,0). At every other point, fxy(x,y)=fyx(x,y). Functions fxy and fyx are graphed in Fig. 1(d))

(a) Graph of f(x,y) (b) Graph of fx(x,y)
(c) Graph of fy(x,y) (d) Graph of fxy(x,y) or fyx(x,y) when (x,y)(0,0)

Figure 1