## An Existence Condition for the Differential

To this point we’ve seen what happens when a function does have a differential at a given point , but we haven’t yet seen any conditions that tell us that any such function exists. We know from the uniqueness proof that if it *does* exist, then given an orthonormal basis we have all partial derivatives, and the differential must be given by the formula

where is the partial derivative of in the th coordinate direction. This is clearly linear in the displacement , so all that remains is to see whether the inequality in the definition of the differential can be satisfied.

We must have all partial derivatives to write down this formula, but that can’t be sufficient for differentiability, because if it were then having all partial derivatives would imply continuity, and we know that it doesn’t. What *will* be sufficient is to ask that not only do all partial derivatives exist at , but that they themselves are continuous there. Note, though, that I’m not asserting that this condition is not necessary for a function to be differentiable. Indeed, it’s possible to construct differentiable functions whose partial derivatives all exist, but are not continuous at . This is an example of the way that analysis tends to be shot through with “counterexamples”, as Michael was talking about recently.

Okay, so let’s assume that all these partial derivatives exist and are continuous at . We have to show that for any there is some so that if we have the inequality

We’re going to take the difference and break it into terms, each of which will approximate one of the partial derivative terms.

First off, since each is continuous at , there is some so that if then . In fact, there’s a for each index , but we can just take the smallest of all these, and that one will work for each index. From this point on, we’ll assume that is actually less than . We’ll write , where is a unit vector and is a scalar so that . We’ll also write in terms of our orthonormal basis .

Now we can build up our displacement direction step-by-step as a sequence of vectors , , and so on, stepping in the th direction on the th step: (not summing on here). So we can break up the difference of function values as

So now each step only changes the th coordinate, and the points at each end both lie within the ball of radius around , since each is shorter than , which has unit length. To look closer at the step from to , we introduce a new function of one real variable:

for . This lets us write our step as . It turns out that everywhere in this closed interval, the function is differentiable! Indeed, we have

So as goes to zero, we find , which exists because we’re in a small enough ball around . Now the mean value theorem can be brought to bear, which says

for some . And now the difference of function values can be written

since .

Now , and so we find that the each of these differences of partial derivative evaluations is less than . And thus

which establishes the inequality we need.

[…] are both constant, they’re clearly continuous everywhere. Thus by the condition we worked out yesterday the differential of exists, and we […]

Pingback by Examples and Notation « The Unapologetic Mathematician | October 2, 2009 |

[…] at every point of , and these partial derivatives are themselves continuous throughout . We’ve seen that this will imply that such a function has a differential at each point of . This gives us a […]

Pingback by Smoothness « The Unapologetic Mathematician | October 21, 2009 |

[…] the partial derivatives of exist within the open interior — note that this is weaker than our existence condition for the differential of — and that the Jacobian determinant on . Then I say that the image […]

Pingback by A Lemma on Nonzero Jacobians « The Unapologetic Mathematician | November 13, 2009 |

Hi, I was trying to follow your posts on multivariate differentiation (your blog is a great resource!) but I got stumped by the condition “what will be sufficient is to ask that not only do all partial derivatives exist at x, but that they themselves are continuous there.”

Consider the function f(x,y) whose value is 0 at (0,0) and xy/(x^2+y^2) at other places. That function is not differentiable at (0,0). But the partial derivatives do seem to exist and be continuous there. When y=0, Dxf is 0 for all x. When x=0, Dyf if 0 for all y.

Where I’m going wrong?

Comment by Daniel Díaz Carrete | July 25, 2010 |

The function isn’t even continuous at the origin, so the partial derivatives can’t exist there. Further, you’re not calculating the partial derivatives, but rather the derivatives along two particular lines. The partial derivative is something that exists (or at least tries to exist) on the entire domain of . For example, in this case we have

You can easily verify that this is undefined at the origin, but you should also go back and see why the original function isn’t continuous there.

Comment by John Armstrong | July 25, 2010 |

Suppose we “patch” the function at the origin by specifying f(0,0)=0 and then apply the limit definition of the derivative to find the partial derivatives there. Both of them seem to exist and have value 0 at (0,0).

But if df/dx is 0 at (0,0) and 0 anywhere else along the line y=0, then it should be continuous at (0,0) shouldn’t it?

Applying the same reasoning to df/dy, we have that both partial derivatives exist at (0,0) and are continuous there. Shouldn’t the function be differentiable at the origin, then? And yet it isn’t even continuous there.

Comment by Daniel Díaz Carrete | July 25, 2010 |

It’s not continuous. There is no “patch” that will work. The derivatives simply do not exist there.

Comment by John Armstrong | July 25, 2010 |

But is multivariate continuity at a point neccessary for the existence of partial derivatives at that point?

In your post about partial derivatives you gave an example of a function which has partial derivatives at (0,0) but is not continuous there.

Comment by Daniel Díaz Carrete | July 25, 2010 |

You’re right, I was wrong to phrase it like that.

But in that example the partial derivatives exist but are not continuous there. And

yeswhen I say “continuous” in the post above I mean “continuous”, not just “continuous along whatever special curves I carefully select.”Comment by John Armstrong | July 25, 2010 |

[…] nos vamos a detener en demostrar este teorema. Dicha demostración aparece, por ejemplo, en este post del blog The Unapologetic Mathematician o en la página 168 del libro de Análisis Matemático de Carlos Ivorra (Teorema […]

Pingback by Confusión entre necesario y suficiente: el caso de la diferenciabilidad - Gaussianos | Gaussianos | July 19, 2011 |