Alternative Definition for the Differentiability of Single-Variable Functions
Show the alternative definition for differentiability of single-variable functions
Hide the alternative definition
Let’s start with a function of single variable . The derivative of at the point is
if this limit exists. Let’s define as
Although is not defined at , but*
*In general, for a function suppose . Because if we define as , then .
We can write (if ):
or
Let’s define by:
Therefore, if is differentiable, there exists a function such that
and as .
Recall that is the linearization of at the point . Therefore is the error in this approximation. Eq. (i) means that if exists, the function can be approximated by its linear approximation and the growth of the error is nothing compared to , that is error as [1], where is the distance of the point from the point .
Conversely, suppose there exists a number and a function such that
Dividing both sides by :
and taking the limit as :
This means the derivative of at the point exists and is equal to :
Therefore, we can define the differentiability of a function at the point as the existence of a number and a function that satisfy Eq. (i). We can extend the definition for functions of two or more variables.
Differentiability of Two-Variable Functions
Let . We say is differentiable at the point if there exist two numbers and , and a function such that:
and**
** Note that the magnitude (or the absolute value) of a vector is:
If such an approximation is valid, let , divide both sides by and take the limit , then we will have:
Similarly, we can show:
Definition 1. We say a function is differentiable at the point if its partial derivatives and exist and there exists a function such that:
and
The above definition means that if is differentiable, it can be approximated by its linearization and the growth of the error in this approximation, , is nothing compared to the growth of , where is the distance of the point from the point .
Example 1
Show that is differentiable at each point if
Solution
First let’s compute and
Now let’s form :
If we call , then we have shown
The last step is to show . To this end, we can use polar coordinates
Now is equivalent to . Therefore:
[Because and , if we use the squeeze theorem, we could conclude .]
Therefore, we have proved that is differentiable at each .
From the definition of differentiability it is clear† that if a function is differentiable at then it is continuous there. Therefore, if a function is not continuous, it cannot be differentiable.
†Take the limit from both sides, and remember that and are the values of and at not two functions of or , so they are just two constants.
differentiability continuity
Also according to Definition 1, if a function is differentiable, its first partial derivatives exist. Therefore, if any of the first partial derivatives of a function does not exist at a point, the function is not differentiable at that point.
differentiability existence of first partial derivatives
Example 2
Show that is not differentiable at if
Solution
In Example 5 of the Section on Limits and Continuity, we showed that does not exist. Therefore, is discontinuous at . A discontinuous function cannot be differentiable.
Also in Example 2 of the Section on Linear Approximation, we showed that and the linearization of does not provide a good approximation for at . So the existence of the partial derivatives does not guarantee that the function is differentiable or even continuous.
Using Definition 1 to verify whether a function is differentiable is often hard. Here we introduce a theorem that can be applied to most functions to show that they are differentiable.
Theorem 1. If the first partial derivatives of a function exist in some neighborhood of and are continuous at , then is differentiable at .
Example 3
Use Theorem 1 to show that is differentiable everywhere if
Figure 1. Graph of
Solution
To find and , we have to consider two cases: (1) and (2) .
Case (1): To calculate and , we need to use the definition of partial derivatives (similar to Example 2 of the Section on Linear Approximation):
Case (2): If , we can differentiate with respect to while treating as a constant to find and differentiate with respect to , while treating as a constant to find (although because of symmetry of and , to find , we just need to replace by and by in the formula of ). We have
Therefore:
and
It is clear that when , and are continuous, because the numerators and denominators are continuous functions and the the ratio of two continuous functions is a continuous function if the denominator is nonzero (recall Theorem 3 in the Section on Limits and Continuity). We just need to show that and are continuous at . To this end, again we can use polar coordinates:
In polar coordinates is equivalent to :
So we have shown , that is is continuous at . In a similar way, you can show that . Therefore has continuous first partial derivatives at each . So according to Theorem 1, is differentiable everywhere.
Differentiability of Functions in n-Space
At the end of this section, we can extend the concept of differentiability of functions of several variables:
Definition 2. We say a function is differentiable at , if its first partial derivatives (for ) exist and there exists a function such that:
and
The partial derivatives are evaluated at .
Equation (i) can also be written as with , , and
Continuous Differentiability and Functions of Class
A function that has continuous first partial derivatives is called continuously differentiable or a function of class . A function that not only its first partial derivatives are continuous but also all its second partial derivatives are continuous is called twice continuously differentiable or a function of class . In the same manner we can define function of class , , and so on. A function that has continuous partial derivatives of all orders is called a function. A function that is continuous is referred to a function of class .
Definition 3.Let be defined on an open set . We say is of class in if all the partial derivatives of of order are continuous everywhere in .