Partial Derivatives

Now let f ( x , y ) be a function of two variables. We consider the problem of finding derivatives of f ( x , y ) . For the present, we shall consider two kinds of derivatives: if ( x 0 , y 0 ) is a point, we shall call the derivative at x 0 of the function g ( x ) = f ( x , y 0 ) the partial derivative of f ( x , y ) with respect to x at ( x 0 , y 0 ) and write it as

f x ( x 0 , y 0 ) , or  f x ( x 0 , y 0 )

Likewise, the partial derivative of f ( x , y ) with respect to y at ( x 0 , y 0 ) , written as

f y ( x 0 , y 0 ) , or  f y ( x 0 , y 0 )

is the derivative of the function h ( y ) = f ( x 0 , y ) at y = y 0 . Thus we have

f x ( x 0 , y 0 ) = lim h 0 f ( x 0 + h , y 0 ) f ( x 0 , y 0 ) h , f y ( x 0 , y 0 ) = lim k 0 f ( x 0 , y 0 + k ) f ( x 0 , y 0 ) k

Then it should be evident what we mean by f x x , f x y , f y x , f y y ; for instance, f x y ( x 0 , y 0 ) = ( f x ) y ( x 0 , y 0 ) , or in words, the partial derivative with respect to y of the partial derivative with respect to x of f ( x , y ) . To find it, we must use

\begin{aligned} f_{xy}(x_0, y_0) &= \lim_{k \to 0} \frac{f_x(x_0, y_0+k) - f_x(x_0, y_0)}{k} \\ &= \lim_{k \to 0} \lim_{h \to 0} \frac{\frac{f(x_0+h, y_0+k) - f(x_0, y_0+k)}{h} - \frac{f(x_0+h, y_0) - f(x_0, y_0)}{h}}{k} \\ &= \lim_{k \to 0} \lim_{h \to 0} \frac{f(x_0+h, y_0+k) - f(x_0, y_0+k) - f(x_0+h, y_0) + f(x_0, y_0)}{hk} \cdot \end{aligned}

Our numerator is thus a combination of the values of the function at the four corners of the rectangle shown below, with the corresponding signs:

TikZ figure

Likewise,

f y x ( x 0 , y 0 ) = lim h 0 lim k 0 f ( x 0 + h , y 0 + k ) f ( x 0 + h , y 0 ) f ( x 0 , y 0 + k ) + f ( x 0 , y 0 ) h k

The fact that the two terms which are involved in taking limits are equal does not mean that the limits are equal; for we are not taking the same limit in both cases. For example, consider

lim h 0 lim k 0 h 2 k 2 h 2 + k 2 = lim h 0 h 2 h 2 = lim h 0 1 = 1

On the other hand,

lim k 0 lim h 0 h 2 k 2 h 2 + k 2 = lim k 0 k 2 k 2 = lim k 0 1 = 1

We do know, by the existence of f x , that we can apply the mean value theorem to f ( x , y ) when considered as a function of x for finding y . Thus we have

f ( x 0 + h , y 0 + k ) f ( x 0 , y 0 + k ) = h f x ( ξ , y 0 + k ) ,

where ξ is between x 0 and x 0 + h , and

f(x_0 + h, y_0) - f(x_0, y_0) = h f_x(\xi', y_0),

where \xi' is between x 0 and x 0 + h . Suppose for the moment that \xi = \xi'; then the numerator in the expressions whose limits are the mixed second partial derivatives is

h ( f x ( ξ , y 0 + k ) f x ( ξ , y 0 ) ) = h k f x y ( ξ , η )

for some η between y 0 and y 0 + k . Thus we would have, for instance,

f y x ( x 0 , y 0 ) = lim h 0 lim k 0 f x y ( ξ , η ) ,

where ( ξ , η ) is in our rectangle. Then if we knew that

lim h 0 lim k 0 f x y ( ξ , η ) = f x y ( x 0 , y 0 ) ,

we would have the result that

f x y ( x 0 , y 0 ) = f y x ( x 0 , y 0 )

However, this is not always true. It is left as an exercise to show that for the function

f(x, y) =\left\{\begin{aligned} &\frac{4xy(x^2 - y^2)}{x^2 + y^2}, && (x, y) \neq (0, 0) \\ \\ &0, && (x, y) = (0, 0) \end{aligned}\right\} ,

we have f x y ( 0 , 0 ) = + 4 , f y x ( 0 , 0 ) = 4 . But in this example, neither f x y nor f y x is continuous at ( 0 , 0 ) . If f x y is continuous at ( x 0 , y 0 ) , then we do have

lim h 0 lim k 0 f x y ( ξ , η ) = f x y ( x 0 , y 0 ) ,

and we would have shown f x y ( x 0 , y 0 ) = f y x ( x 0 , y 0 ) if we could be sure that \xi = \xi'. But we can arrange this:

Let

g ( x ) = f ( x , y 0 + k ) f ( x , y 0 )

Then

g ( x 0 + h ) g ( x 0 ) = f ( x 0 + h , y 0 + k ) f ( x 0 + h , y 0 ) f ( x 0 , y 0 + k ) + f ( x 0 , y 0 )

is exactly the numerator of the expression we are considering. Since g ( x ) is differentiable, with g'(x) = f_x(x, y_0 + k) - f_x(x, y_0), we have

g(x_0 + h) - g(x_0) = h g'(\xi),

where ξ is between x 0 and x 0 + h . Thus

\begin{aligned} f(x_0 + h, y_0 + k) - f(x_0 + h, y_0) - &f(x_0, y_0 + k) + f(x_0, y_0) \\[6pt] &= h\bigg(f_x(\xi, y_0+k) - f_x(\xi, y_0)\bigg). \end{aligned}

Now this is equal to h k f x y ( ξ , η ) for some η between y 0 and y 0 + k , and we can finish the proof as when we assumed \xi = \xi'. What we have proved is the following:

Theorem 1

Let f x y ( x 0 , y 0 ) and f y x ( x 0 , y 0 ) exist, and let either f x y or f y x be continuous at ( x 0 , y 0 ) . Then

f y x ( x 0 , y 0 ) = f x y ( x 0 , y 0 ) .

In practically all applications, we do have f y x = f x y , so you will see this property used freely in most books.

EXERCISES

Exercise 1.

Courant, p. 472, ex. 1, 2.