Lecture 8
Lecture 8
We say that f 0 (a, b) = (fx (a, b), fy (a, b)) is the derivative of f . Note that f 0 (a, b) is a vector
quantity.
We say that f 0 (a, b, c) = (fx (a, b, c), fy (a, b, c), fz (a, b, c)) is the derivative of f . Note that
f 0 (a, b, c) is a vector quantity.
Partial Derivatives
Differentiability
Theorem: Let f : D ✓ R3 ! R be a di↵erentiable function at P (a, b, c), then f is continuous
at P (a, b, c).
|f (a + h, b + k, c + I) f (a, b, c)|
=|f (a + h, b + k, c + I) f (a, b, c) ↵ · H + ↵ · H|
|f (a + h, b + k, c + I) f (a, b, c) ↵ · H| + |↵ · H|
kHk✏(H) + k↵kkHk ! 0 as kHk ! 0.
Partial Derivatives
Differentiability
Example : Consider the function
(
xy
x2 +y 2
if (x, y) 6= (0, 0)
f (x, y) =
0 if (x, y) = (0, 0)
We have seen that the partial derivatives fx and fy exist at (0, 0) and fx (0, 0) = fy (0, 0) = 0.
However, f is not continuous at (0, 0). In view of the previous result we conclude that f is not
di↵erentiable at (0, 0)
Partial Derivatives
Differentiability
Example : Consider the function
xy (x2 y 2 )
(
if (x, y) 6= (0, 0)
f (x, y) = x2 +y 2
0 if (x, y) = (0, 0)
First, show that the partial derivatives exist and fx (0, 0) = fy (0, 0) = 0. Write ↵ = (fx (0, 0), fy (0, 0)) =
(0, 0) and H = (0, 0) and consider
Differentiability
Theorem: Let f : D ✓ R3 ! R be a di↵erentiable function at P (a, b, c), then f is continuous
at P (a, b, c).
Corollary: If the partial derivatives fx and fy of a function f (x, y) are continuous throughout
an open region R, then f is di↵erentiable at every point of R.
The Chain Rule
Suppose that the first partial derivatives of f (x, y) are defined throughout an open region R
containing the point (x0 , y0 ) and that fx and fy are continuous at (x0 , y0 ). Then the change
z = f (x0 + x, y0 + y) f (x0 , y0 )
in the value of f that results from moving from (x0 , y0 ) to another point (x0 + x, y0 + y) in R
satisfies an equation of the form
Theorem. Suppose that z = f (x, y) is a di↵erentiable function of x and y, where x = g(t) and
y = h(t) are di↵erentiable functions of t. Then z is a di↵erentiable function of t and
dz @f dx @f dy
= +
dt @x dt @y dt
Proof:
@f @f
z= x+ y + "1 x + "2 y
@x @y
where "1 and "2 ! 0 as ( x, y) ! (0, 0).
(continued….)
The Chain Rule
Theorem. Suppose that z = f (x, y) is a di↵erentiable function of x and y, where x = g(t) and
y = h(t) are di↵erentiable functions of t. Then z is a di↵erentiable function of t and
dz @f dx @f dy
= +
dt @x dt @y dt
Proof:
@f @f
z= x+ y + "1 x + "2 y
@x @y
where "1 and "2 ! 0 as ( x, y) ! (0, 0).
(continued….)
The Chain Rule
Theorem. Suppose that z = f (x, y) is a di↵erentiable function of x and y, where x = g(t) and
y = h(t) are di↵erentiable functions of t. Then z is a di↵erentiable function of t and
dz @f dx @f dy
= +
dt @x dt @y dt
Proof:
dz z
= lim
dt t!0 t
@f x @f y ⇣ ⌘ x ⇣ ⌘ y
= lim + lim + lim "1 lim + lim "2 lim
@x t!0 t @y t!0 t t!0 t!0 t t!0 t!0 t
@f dx @f dy dx dy
= + +0· +0·
@x dt @y dt dt dt
@f dx @f dy
= + .
@x dt @y dt
The Chain Rule
Solution:
dw @w dx @w dy @w dz
= + +
dt @x dt @y dt @z dt
= (y)( sin t) + (x)(cos t) + (1)(1)
= (sin t)( sin t) + (cos t)(cos t) + 1
= sin2 t + cos2 t + 1 = 1 + cos 2t
The Chain Rule
Solution:
@z @z @x @z @y
= + = (ex sin y) t2 + (ex cos y) (2st)
@s @x @s @y @s
2 st2 st2
= t e sin s t + 2ste cos s2 t
2
@z @z @x @z @y
= + = (ex sin y) (2st) + (ex cos y) s2
@t @x @t @y @t
2 2
= 2stest sin s2 t + s2 est cos s2 t
The Chain Rule
Example: Write out the Chain Rule for the case where w = f (x, y, z, t)
and x = x(u, v), y = y(u, v), z = z(u, v), and t = t(u, v).
Solution:
@w @w @x @w @y @w @z @w @t
= + + +
@u @x @u @y @u @z @u @t @u
@w @w @x @w @y @w @z @w @t
= + + +
@v @x @v @y @v @z @v @t @v
The Chain Rule
1. Write out the Chain Rule for the case where w = f (x, y, z, t) and x =
x(u, v), y = y(u, v), z = z(u, v), and t = t(u, v)
dy Fx
=
dx Fy
Proof:
Suppose that
1. The function F (x, y) is di↵erentiable and
2. The equation F (x, y) = 0 defines y implicitly as a di↵erentiable function of x, say y = h(x)
Since w = F (x, y) = 0, the derivative dw/dx must be zero. Computing the derivative from the
Chain Rule , we find
dw dx dy
0= = Fx + Fy
dx dx dx
dy
= F x · 1 + Fy · .
dx
If Fy = @w/@y 6= 0, we can solve this equation for dy/dx to get
dy Fx
=
dx Fy
The Chain Rule
dy Fx
=
dx Fy
dy Fx 2x y cos xy 2x + y cos xy
= = = .
dx Fy 2y x cos xy 2y x cos xy
The Chain Rule
• Suppose that the equation F (x, y, z) = 0 defines the variable z implicitly as a function
z = f (x, y).
• Then for all (x, y) in the domain of f , we have F (x, y, f (x, y)) = 0.
• Assuming that F and f are di↵erentiable functions, we can use the Chain Rule to di↵erentiate
the equation F (x, y, z) = 0 with respect to the independent variable x :
@F @x @F @y @F @z
0= + +
@x @x @y @x @z @x
@z
= F x · 1 + Fy · 0 + Fz · ,
@x
@z
=) Fx + Fz =0
@x
• A similar calculation for di↵erentiating with respect to the independent variable y gives
@z
F y + Fz =0
@y
• Whenever Fz 6= 0, we can solve these last two equations for the partial derivatives of z =
f (x, y) to obtain
@z Fx @z Fy
= and = .
@x Fz @y Fz
The Chain Rule
@z Fy 3y 2 + 6xz y 2 + 2xz
= = 2
=
@y Fz 3z + 6xy z 2 + 2xy