Now let be a function of two variables. We consider the problem of finding derivatives of . For the present, we shall consider two kinds of derivatives: if is a point, we shall call the derivative at of the function the partial derivative of with respect to at and write it as
Likewise, the partial derivative of with respect to at , written as
is the derivative of the function at . Thus we have
Then it should be evident what we mean by ; for instance, , or in words, the partial derivative with respect to of the partial derivative with respect to of . 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:
Likewise,
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
On the other hand,
We do know, by the existence of , that we can apply the mean value theorem to when considered as a function of for finding . Thus we have
where is between and , and
f(x_0 + h, y_0) - f(x_0, y_0) = h f_x(\xi', y_0),where \xi' is between and . Suppose for the moment that \xi = \xi'; then the numerator in the expressions whose limits are the mixed second partial derivatives is
for some between and . Thus we would have, for instance,
where is in our rectangle. Then if we knew that
we would have the result that
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 . But in this example, neither nor is continuous at . If is continuous at , then we do have
and we would have shown if we could be sure that \xi = \xi'. But we can arrange this:
Let
Then
is exactly the numerator of the expression we are considering. Since 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 and . 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 for some between and , and we can finish the proof as when we assumed \xi = \xi'. What we have proved is the following:
Let and exist, and let either or be continuous at . Then
In practically all applications, we do have , so you will see this property used freely in most books.
EXERCISES
Courant, p. 472, ex. 1, 2.