Lectures 26-27: Functions of Several Variables (Continuity, Differentiability, Increment Theorem and Chain Rule)
Lectures 26-27: Functions of Several Variables (Continuity, Differentiability, Increment Theorem and Chain Rule)
(xy)
Examples 1: (i) Consider the function f : R2 R, where f (x, y) = sin|x|+|y|
when (x, y) 6= (0, 0)
and f (0, 0) = 0. We will show that this function is continuous at (0,0). Note that
| f (x, y) f (0, 0) |
| x y |2
| x | + | y | (or | x y | )
|x|+|y|
Therefore, whenever a sequence (xn , yn ) (0, 0), i.e, xn 0 and yn 0, we have f (xn , yn )
f (0, 0). Hence f is continuous at (0, 0). In fact, this function is continuous on the entire R2 .
(ii) Consider the function f : R2 R, where f (x, y) = xy
2
This function is continuous at (0, 0), because, | xy
2
x +y 2
x +y 2
|x2 +y 2 |
x2 +y 2
2
(iii) Let f (x, y) = x22xy
, (x, y) 6= (0, 0). We will show that this function does not have a limit at
+y 2
2m
(0, 0). Note that f (x, mx) 1+m
2 as x 0 for any m. This shows that the function does not
have a limit at (0, 0).
2
(iv) Let f (x, y) = x4x+yy 2 when (x, y) 6= (0, 0) and f (0, 0) = 0. Note that f (x, mx) 0 as x 0.
But the function is not continuous at (0, 0) because f (x, x2 ) 12 as x 0. Similarly we can show
4
2
that the function f (x, y) defined by f (x, y) = xx4 y
when (x, y) 6= (0, 0) and f (0, 0) = 0 is not
+y 2
2
continuous at (0, 0) by taking y = mx and allowing x 0.
Partial derivatives : The partial derivative of f with respect to the first variable at X0 =
(x0 , y0 , z0 ) is defined by
f
f (x0 + h, y0 , z0 ) f (x0 , y0 , z0 )
|X0 = lim
h0
x
h
provided the limit exists. Similarly we define
f
y |X0
and
f
z |X0
2M
It is clear from the previous example that the concept of differentiability of a function of several
variables should be stronger than mere existence of partial derivatives of the function.
Differentiability : When f : R R, x R we define
0
f (x + h) f (x)
h0
h
f (x) = lim
()
provided the limit exists. In case f : R3 R and X = (x1 , x2 , x3 ) R3 the above definition of
the differentiability of functions of one variable (*) cannot be generalized as we cannot divide by
an element of R3 . So, in order to define the concept of differentiability, what we do is that we
rearrange the above definition (*) to a form which can be generalized.
Let f : R R. Then f is differentiable at x if and only if there exists R such that
| f (x + h) f (x) h |
0 as h 0.
|h|
0
3
Definition : Let f : R3 R and X = (x1 , x2 , x3 ). We say that f is differentiable at X if there
exists = (1 , 2 , 3 ) R3 such that the error function
(H) =
f (X + H) f (X) H
kHk
tends to 0 as H 0.
In the above definition H is the scalar product. Note that the derivative f 0 (X) = (1 , 2 , 3 ).
Theorem 26.1: Let f : R3 R, X R3 . If f is differentiable at X then f is continuous at X.
Proof : Suppose f is differentiable at X. Then there exists = (1 , 2 , 3 ) R3 such that
| f (X + H) f (X) H | = k H k (H) and (H) 0 as H 0.
Hence
3
X
| f (X + H) f (X) | k H k (
| i |)+ k H k (H)
i=1
How do we verify that a given function is differentiable at a point in R3 ? The following result
helps us to answer this question.
Theorem 26.2: Suppose f is differentiable at X. Then the partial derivatives
f
z |X
f
f
x |X , y |X
and
f (X) = (1 , 2 , 3 ) = (
f
f
f
| ,
| ,
| ).
x X y X z X
f (X + H) f (X) 1 t
f (X + H) f (X) 1 t
0 as t 0, i.e.,
0
|t|
t
f
x |X .
Example 3 : Let
f (x, y) = xy
f
y |X
and 3 =
f
x |X .
x2 y 2
at (x, y) 6= (0, 0)
x2 + y 2
= 0 at (0, 0)
f
To verify that f is differentiable at (0, 0), let us choose = ( f
x , y ) |
(0,0)
p
hk
f (0 + H) f (0) (0, 0) H
||
h2 + k 2 0 as H 0.
|
kHk
h2 + k 2
Example 2 illustrates that the partial derivatives of a function at a point may exist but the
function need not be differentiable at that point. The previous theorem says that if the function is
4
differentiable at X then the derivative f 0 (X) can be expressed in terms of the partial derivatives
of f at X. Since finding partial derivatives is easy because they are based on one variable and
it is related to the derivative, one naturally asks the following question: Under what additional
assumptions on the partial derivatives the function becomes differentiable. The following criterion
answer this question.
Theorem 26.3: If f : R3 R is such that all its partial derivatives exist in a neighborhood of X0
and continuous at X0 then f is differentiable at X0 .
We omit the proof of this result. We will see in a tutorial class that the converse of the previous
result is not true.
Chain Rule: We have seen that the chain rule which deals with derivative of a function of a
function is very useful in one variable calculus. In order to derive a similar rule for functions of
several variables we need the following theorem called Increment Theorem. For simplicity we
will state this theorem only for two variables.
We will employ the notation fx =
f
x
and fy =
f
x .
(H)
(H)
(H)
(x2 + y 2 ) = (x
)x + (y
)y.
kHk
kHk
kHk
(H)
Define 1 (H) = x (H)
kHk and 2 (H) = y kHk . Note that
| 1 (H) | = | x
(H)
| | (H) | 0 as H 0.
kHk
1 , 2 0 as x, y 0
x
y
x
y
f
= fx
+ fy
+ 1
+ 2
.
t
t
t
t
t
Allow t 0, which implies that 1 , 2 0 because x, y 0. Therefore, we get
f dx
f dy
x dt + y dt .
df
dt