Higher-order partial differentiation



Given the function z=f(x,y), suppose that the partial derivatives fx(x,y) and fy(x,y) exist, and they also have partial derivatives. For example, the partial derivative of fx(x,y) with respect to y,

(fx)y(x,y)=y(fx)(x,y)=y(zx)(x,y),

is denoted as 2fyx(x,y) or fxy(x,y). Similarly, we may define fxx(x,y), fyx(x,y), fyy(x,y). These are called second partial derivatives.

Example. Let f(x,y)=log(x2+xy+2y2). Then,

fx(x,y)=2x+yx2+xy+2y2,fy(x,y)=x+4yx2+xy+2y2,fxx(x,y)=2x2+2xy3y2(x2+xy+2y2)2,fxy(x,y)=x2+8xy+2y2(x2+xy+2y2)2,fyx(x,y)=x2+8xy+2y2(x2+xy+2y2)2,fyy(x,y)=3x24xy8y2(x2+xy+2y2)2.

In the above example, we have fxy(x,y)=fyx(x,y). Is this generally the case? Short answer: Not always. In general, we have the following result.

Theorem (Changing the order of partial differentiation)

Suppose the function f(x,y) on an open region U has second derivatives fxy(x,y) and fyx(x,y) both of which are continuous. Then fxy(x,y)=fyx(x,y).

Proof. We show that fxy(a,b)=fyx(a,b) for every (a,b)U

Take a sufficiently small δ>0 so that |xa|<δ and |yb|<δ imply (x,y)U (Note: This is always possible because U is open). For all h,k such that 0<|h|<δ and 0<|k|<δ, let

F(h,k)=f(a+h,b+k)f(a+h,b)f(a,b+k)+f(a,b).

Define the univariate function u(y) of y by

u(y)=f(a+h,y)f(a,y).

Then we can write

F(h,k)=u(b+k)u(b).

u(y) is differentiable with respect to y and u(y)=fy(a+h,y)fy(a,y). By the Mean Value Theorem, there exists θ(0,1) such that

F(h,k)=u(b+θk)k=k[fy(a+h,b+θk)fy(a,b+θk)].

  Next, consider the univariate function of x: fy(x,b+θk). Again, by the Mean Value Theorem, there exists η(0,1) such that

(Eq:Fhk1)F(h,k)=hkfyx(a+ηh,b+θk).

If we repeat the above process by swapping the roles of x and y, we can show (exercise!) that there exist θ,η(0,1) such that

(Eq:Fhk2)F(h,k)=hkfxy(a+ηh,b+θk).

From Eqs. (Eq:Fhk1) and (Eq:Fhk2), it follows that

fyx(a+ηh,b+θk)=fxy(a+ηh,b+θk).

By the continuity of fxy(x,y) and fyx(x,y), as (h,k)(0,0),

fyx(a,b)=fxy(a,b).

The second derivatives of the function f(x,y) may have derivatives. For example,

fyxy(x,y)=yfyx(x,y).

If fxy(x,y) and fyx(x,y) are continuous, by the above theorem, fxy(x,y)=fyx(x,y). It follows that fxyy(x,y)=fyxy(x,y), that is,

3fy2x=3fyxy.

These are called third derivatives

Remark. We usually write

2fx2(x,y)

for fxx(x,y), rather than

2fxx(x,y).

Definition (Functions of class Cn)

Let f(x,y) be a function on an open region U and n be a non-negative integer.

  1. f(x,y) is said to be n-times continuously differentiable or of class Cn if it has all the partial derivatives up to the n-th order on U, all of which are continuous.
  2. f(x,y) is said to be infinitely differentiable, smooth, or of class C if it has the partial derivatives of all orders on U, all of which are continuous.
In general, the derivatives of a function of class Cn are determined by the number of partial differentiation with respect to x and y and are independent of the order of differentiation.

Example. If f(x,y) is of class C3, then fxxy(x,y)=fxyx(x,y)=fyxx(x,y).



Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic