Alternative Definition for the Differentiability of Single-Variable Functions 

 

Show the alternative definition for differentiability of single-variable functions

 

Differentiability of Two-Variable Functions

 

Let z=f(x,y). We say f is differentiable at the point (x,y) if there exist two numbers a and b, and a function ε(h,k) such that:
f(x+h,y+k)=f(x,y)+ah+bk+|(h,k)|=h2+h2ε(h,k)
and**

lim(h,k)(0,0)ε(h,k)=0.

** Note that the magnitude (or the absolute value) of a vector (h,k) is: |(h,k)|=h2+k2

If such an approximation is valid, let k=0, divide both sides by h0 and take the limit h0, then we will have:
limh0f(x+h,y)f(x,y)h=fx(x,y)=a+limh0h2hε(h,0)=0fx(x,y)=a.
Similarly, we can show: fy(x,y)=b

Definition 1. We say a function f is differentiable at the point (x,y) if its partial derivatives fx(x,y) and fy(x,y) exist and there exists a function ε such that:
f(x+h,y+k)=f(x,y)+fx(x,y)h+fy(x,y)k+h2+k2ε(h,k)
and
lim(h,k)(0,0)ε(h,k)=0.

The above definition means that if f(x,y) is differentiable, it can be approximated by its linearization and the growth of the error in this approximation, h2+k2ε(h,k), is nothing compared to the growth of ρ, where ρ=h2+k2 is the distance of the point (x+h,y+k) from the point (x,y).

Example 1
Show that f is differentiable at each point (x,y) if f(x,y)=2x+3y2
Solution
First let’s compute fx(x,y) and fy(x,y)
fx(x,y)=2,fy(x,y)=6y

Now let’s form f(x+h,y+k):
f(x+h,y+k)=2(x+h)+3(y+k)2=2x+2h+3(y2+2yk+k2)=2x+3y2f(x,y)+2fx(x,y)h+6yfy(x,y)k+3k2
If we call ε(h,k)=3k2h2+k2, then we have shown
f(x+h,y+k)=f(x,y)+fx(x,y)h+fy(x,y)k+h2+k2ε(h,k).
The last step is to show lim(h,k)(0,0)ε(h,k)=0. To this end, we can use polar coordinates
h=rcosθ,k=rsinθ
Now (h,k)(0,0) is equivalent to r0. Therefore:
lim(h,k)(0,0)ε(h,k)=lim(h,k)(0,0)3k2h2+k2=limr03rsin2θrcos2θ+sin2θ=1=limr03rsinθ=0.
[Because rrsinθr and limr0r=0, if we use the squeeze theorem, we could conclude limr03rsinθ=0.]

Therefore, we have proved that f(x,y) is differentiable at each (x,y).

From the definition of differentiability it is clear that if a function is differentiable at (x,y) then it is continuous there. Therefore, if a function is not continuous, it cannot be differentiable.

Take the limit (h,k)(0,0) from both sides, and remember that fx(x,y) and fy(x,y) are the values of fx and fy at (x,y) not two functions of h or k, 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 f(x,y) is not differentiable at (0,0) if f(x,y)={xyx2+y2if (x,y)(0,0)0if (x,y)=(0,0)

Solution

In Example 5 of the Section on Limits and Continuity, we showed that lim(x,y)(0,0)f(x,y) does not exist. Therefore, f is discontinuous at (0,0). A discontinuous function cannot be differentiable.

Also in Example 2 of the Section on Linear Approximation, we showed that fx(0,0)=fy(0,0)=0 and the linearization of f does not provide a good approximation for f at (0,0). 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 f exist in some neighborhood of x0 and are continuous at x0, then f is differentiable at x0.

Example 3

Use Theorem 1 to show that f is differentiable everywhere if f(x,y)={x2y2x2+y2if (x,y)(0,0)0if (x,y)=(0,0)

Figure 1. Graph of z=x2y2x2+y2
Solution

To find fx and fy, we have to consider two cases: (1) (x,y)=(0,0) and (2) (x,y)(0,0).

Case (1): To calculate fx(0,0) and fy(0,0), we need to use the definition of partial derivatives (similar to Example 2 of the Section on Linear Approximation):
fx(0,0)=limh0f(0+h,0)f(0,0)h=limh000h=0,
fy(0,0)=limk0f(0,0+k)f(0,0)k=limk000k=0,

Case (2): If (x,y)(0,0), we can differentiate f with respect to x while treating y as a constant to find fx(x,y) and differentiate f(x,y) with respect to y, while treating x as a constant to find fy(x,y) (although because of symmetry of x and y, to find fy(x,y), we just need to replace x by y and y by x in the formula of fx(x,y)). We have
fx(x,y)=2xy2(x2+y2)2x(x2y2)(x2+y2)2=2xy4(x2+y2)2,fy(x,y)=2yx4(x2+y2)2.
Therefore:
fx(x,y)={2xy4(x2+y2)2if (x,y)(0,0)0if (x,y)=(0,0)
and
fy(x,y)={2x4y(x2+y2)2if (x,y)(0,0)0if (x,y)=(0,0)
It is clear that when (x,y)(0,0), fx(x,y) and fy(x,y) 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 fx and fy are continuous at (0,0). To this end, again we can use polar coordinates:
x=rcosθ,y=rsinθ.
In polar coordinates (x,y)(0,0) is equivalent to r0:
lim(x,y)(0,0)2xy4(x2+y2)2=limr02r5cosθsin4θr4(cos2θ+sin2θ)2=1=limr02rcosθsin4θ=0.

So we have shown lim(x,y)(0,0)fx(x,y)=fx(0,0)=0, that is fx is continuous at (0,0). In a similar way, you can show that lim(x,y)(0,0)fy(x,y)=fy(0,0)=0. Therefore f has continuous first partial derivatives at each (x,y). So according to Theorem 1, f 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 f:URnR is differentiable at (x1,,xn), if its first partial derivatives fxi(x1,,xn) (for i=1,,n) exist and there exists a function ε(h1,,hn) such that:
f(x1+h1,,xn+hn)=f(x1,,xn)+fx1h1++fxnhn(i)+h12++hn2 ε(h1,,hn)
and
lim(h1,,hn)(0,,0)ε(h1,,hn)=0.
The partial derivatives are evaluated at (x1,,xn).

  • Equation (i) can also be written as f(x+h)=f(x)+i=1nfxihi+|h|ε(h), with x=(x1,,xn), h=(h1,,hn), and limh0ε(h)=0.

 

Continuous Differentiability and Functions of Class Cp

A function that has continuous first partial derivatives is called continuously differentiable or a function of class C1. 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 C2. In the same manner we can define function of class C3, C4, and so on. A function that has continuous partial derivatives of all orders is called a C function. A function that is continuous is referred to a function of class C0.

Definition 3.Let f be defined on an open set URn. We say f is of class Cp in U if all the partial derivatives of f of order p are continuous everywhere in U.


[1] Mathematically, this is often written as error=o(|h|)