Conditions for differentiability for many variables

From Applied Science

For single variable functions we learn that being differentiable implies in being continuous. We also learn that being continuous doesn't imply in being differentiable because there are some exceptions to the rule. For multivariable functions differentiability also requires continuity, but we also have specific cases where we can calculate partial derivatives while the function is also discontinuous at a point.

[math]\displaystyle{ f(x) = |x| }[/math]. This single variable example shows that the limits exists at the origin, the function is continuous there and yet, we can't differentiate there because the rates of change to the left and to the right mismatch each other. Visually there is a sharp edge at the origin. [math]\displaystyle{ f(x,y) = \sqrt{x^2 + y^2} }[/math]. The same behaviour in two variables. The function is continuous at the origin, but the sharp edge means that we can't differentiate it there.

[math]\displaystyle{ f(x,y) = \begin{cases} 0 & \text{if} & (x,y) = (0,0) \\ \frac{xy}{x^2 + y^2} & \text{if} & (x,y) \neq (0,0) \end{cases} }[/math]

If we calculate [math]\displaystyle{ \frac{\partial f(0,0)}{\partial x} }[/math] and [math]\displaystyle{ \frac{\partial f(0,0)}{\partial y} }[/math] using the definition we do find valid results. But we also know, from calculating limits with different paths, that the function is discontinuous at the origin. With this example we have shown that the existence of partial derivatives doesn't guarantee that the function is continuous.

Differentiability

From a geometrical perspective, when a single variable function is differentiable it means that we can approximate it using a straight line in a small interval around a point. That's the idea of finding the tangent line. For two variables what is the equivalent to a line with one more dimension? It's a plane. Therefore, for a multivariable function to be differentiable it has to accept a linear approximation, a tangent plane around a point (beyond 3D the algebra exists, but we can't visualize the function). If it's rate of change in some direction is abrupt, much like a sharp edge, then we can't use a linear approximation there and the function is not differentiable at that point.

For one variable we have to prove that [math]\displaystyle{ \lim_{x \ \to \ x_0} f(x) = f(x_0) }[/math]. Where the left side is a limit and not just any limit, but the derivative's formal definition. With the linear approximation what we do is to see that the difference between a function and its derivative at a certain point is given by some error function. When the error is zero it means that the linear approximation and the function are equal to each other. For two and more variables the idea is the same: [math]\displaystyle{ \lim_{(x, \ y) \ \to \ (x_0,\ y_0)}f(x,\ y) = f(x_0,\ y_0) }[/math].

With multivariable functions the derivatives have direction, which means that partial derivatives won't suffice. We can't use the partial derivatives in the same way that we do with single variable functions because there are infinite paths leading to the same point and some paths may lead to different values. We need to use the directional derivative for the proof to work because directional derivatives carry the concept of rates of change in arbitrary directions.

[math]\displaystyle{ f(x,y) = \sqrt{x^2 + y^2} }[/math]. This function is continuous at the origin, but not differentiable. If we try infinitely many paths towards the origin, all of them result in the same value. However, if we consider paths parallel to the axis with partial derivatives, what we are going to see is that the function behaves exactly like [math]\displaystyle{ f(x) = |x| }[/math] in each direction. We are going to see [math]\displaystyle{ f(x,y) = \sqrt{x^2 + 0} }[/math] and [math]\displaystyle{ f(x,y) = \sqrt{0 + y^2} }[/math]. From there we calculate the derivates to the right and to the left as we'd do with [math]\displaystyle{ f(x) = |x| }[/math] and conclude that the rates of change to the right and to the left are different from each other. This should explain why partial derivatives aren't suitable to prove that if a multivariable function is differentiable, it's continuous too.

Prove that differentiability implies continuity