2010 Lecture 005
2010 Lecture 005
y = y(u, v),
(I.T. Leong)
=
=
w
x
w
x
x
w y
w z
+
+
;
u
y u
z u
x w y w z
+
.
v
y v
z v
2010 c 9
22 F
1 / 28
y = y(u, v, w),
(I.T. Leong)
=
=
=
S
x
S
x
S
x
x
S y
S z
+
+
;
u
y u
z u
x S y S z
+
;
v
y v
z v
x
S y
S z
.
w
y w
z w
2010 c 9
22 F
2 / 28
in two ways.
= 1 for any
(I.T. Leong)
2010 c 9
22 F
3 / 28
in two ways.
= 1 for any
2 x 2 2 = sin cos ,
x =
= ( sin cos ) = sin cos ,
x +y +z
(I.T. Leong)
2010 c 9
22 F
3 / 28
in two ways.
= 1 for any
2 x 2 2 = sin cos ,
x =
= ( sin cos ) = sin cos ,
S
y
S
z
x +y +z
y
x2 +y2 +z2
2 z2 2
x +y +z
(I.T. Leong)
= sin sin ,
( sin sin )
= cos ,
( cos )
= cos .
2010 c 9
22 F
3 / 28
in two ways.
= 1 for any
2 x 2 2 = sin cos ,
x =
= ( sin cos ) = sin cos ,
S
y
x +y +z
y
= sin sin ,
x2 +y2 +z2
S
z
= cos ,
z =
x2 +y2 +z2
S x
S y
And S
= x + y
(I.T. Leong)
S
z
( sin sin )
( cos )
= cos .
2010 c 9
22 F
3 / 28
in two ways.
= 1 for any
2 x 2 2 = sin cos ,
x =
= ( sin cos ) = sin cos ,
x +y +z
y
= sin sin ,
= ( sin sin ) = sin sin ,
x2 +y2 +z2
S
z
2 z 2 2 = cos ,
z =
= ( cos ) = cos .
x +y +z
S x
S y
S z
And S
= x + y + z
= (sin cos )2 + (sin sin )2 + (cos )2
S
y
and
(I.T. Leong)
2010 c 9
22 F
3 / 28
in two ways.
= 1 for any
2 x 2 2 = sin cos ,
x =
= ( sin cos ) = sin cos ,
x +y +z
y
= sin sin ,
= ( sin sin ) = sin sin ,
x2 +y2 +z2
S
z
2 z 2 2 = cos ,
z =
= ( cos ) = cos .
x +y +z
S x
S y
S z
And S
= x + y + z
= (sin cos )2 + (sin sin )2 + (cos )2
S
y
and
2010 c 9
22 F
3 / 28
Theorem. Chain Rule of 2-variables. Suppose that f (x, y)nd is real valued
function defined on the domain D which is part of R2 , and that x = x(t) and
y = y(t) is a curve in the domain D. One can think of the a particle moving in
domain D, and its position is given by (x(t), y(t)) changing with respect to t, so
it traces out a path in domain D given by r(t) = x(t)i + y(t)j. Then we obtain a
real-valued function g(t) = f (x(t), y(t)). Then the chain rule tells us that
d
f
dx
f
dy
g (t) = ( f (x(t), y(t)) ) =
(r(t))
+ (r(t))
=
dt
x
dt
y
dt
fx (r(t))x (t) + fy (r(t))y (t).
(I.T. Leong)
2010 c 9
22 F
4 / 28
(I.T. Leong)
2010 c 9
22 F
5 / 28
(I.T. Leong)
2010 c 9
22 F
6 / 28
(I.T. Leong)
f ( r(t) )f ( r(0) )
t
= lim
t0
f (a+th,b+tk)f (a,b)
.
t
2010 c 9
22 F
6 / 28
(I.T. Leong)
2010 c 9
22 F
6 / 28
In order to simplify the notation more, one requires the directional vector u to
be an unit vector.
Definition (Directional derivative) The resulting derivative g (0) is called the
directional derivative Du f of f along the direction u, and hence we write
Du f = f u to represent the rate of the change of f in the unit direction u.
Remark. In general, if f = f (x1 , , xn ) is a function of n variables, one define
f
(I.T. Leong)
2010 c 9
22 F
7 / 28
where is the angle between the vectors f (P) and v. Hence Dv (P) attains
(I.T. Leong)
2010 c 9
22 F
8 / 28
3j+6k
= 12i + 14j 12k, 2i
= 90
7 .
22 + 32 + 62
(b) Dv f (P) is maximum(minimum) v (v) is parallel to
f (P) = 12i + 14j 12k.
f (P)
(c) The maximum magnitude of Dv f (P) is given by f f (P) =
Dv f = f
(I.T. Leong)
v
v
f (P)2
f (P)
2010 c 9
22 F
9 / 28
Example. Let C : r(t) = x(t)i + y(t)j + z(t)k be a curve lying on the level
surface S : f (x, y, z) = c for some c, i.e. c = f (r(t)) = f ( x(t), y(t), z(t) ) for all t.
Prove that gradient vector f of f is always perpendicular to the tangent
f (r(t)) r (t)
Proof. Define the composite function g(t) = f ( x(t), y(t), z(t) ), it follows from
the given condition that g(t) = f ( x(t), y(t), z(t) ) = c is a constant function, so
one can differentiate the identity c = g(t) == f ( x(t), y(t), z(t) ), so
0 = g (t ) =
f
x
dx
dt
f
y
dy
dt
f
z
dx
dt
Remark. For any given level surface S defined by a scalar function f , the
tangent plane of S at any P of S is spanned by the tangent vector of the curve
contained in S. The result above tells us that the normal direction to the
tangent plane of S at any point P of S is parallel to f (P).
(I.T. Leong)
2010 c 9
22 F
10 / 28
(I.T. Leong)
2010 c 9
22 F
11 / 28
(I.T. Leong)
2010 c 9
22 F
12 / 28
Implicit Functions
Given a relation between two variables expressed by an equation of the form
f (x, y) = k, we often want to solve for y.
interval, we expect to find one and only one value y = (x) that satisfies the
relation. The function is thus implicit in the relation; geometrically, the locus
of the equation f (x, y) = k is a level curve in the (x, y)-plane that serves as the
graph of the function y = (x).
(I.T. Leong)
2010 c 9
22 F
13 / 28
6 Implicit Functions
it as
radius k if(a,k +>0,
we can view
the
graph
of equally
two different
k
k would
serve
well as a functions,
seed for + ;
a2), with k < a <
2
2
point
y = (xlikewise,
) = anyk
x (a,
. k a ) would serve for .
y = +(x)
(0, k)
x2 + y2 = k
x
( k, 0)
x
y = (x)
(0, k)
(k, 0). Asthe figure on the right shows, (k, 0)
This leaves only the points
take
either
P
(
0,
+
k) or P 0, k) as a fixed
point of the level
+
cannot
be a seed for a function of x,( because the circle
has no y-value at all when
x
>
k
and
gives
two
y-values
near
y
=
0
when
x
<
k
and
x
is arbitrarily close
curve, so that
suchthat
defines a function respectively
the locus
we can
ot seeds
14 / 28
satisfy
6 Implicit Functions
thefunctions.
+ k a ), with
k < a < k would serve equally well as a seed for + ;
(x, (x))(a,
lies on the level curve,
f (x, (x))
= k for all x dom(f ).
likewise, any point (a, k a2) would serve
for .
2
y = +(x)
(0, k)
x2 + y2 = k
( k, 0)
x
x
y = (x)
the locus
Thing
ot seeds
(0, k)
x > takes
k and gives
two y-values
near y =
x < can
k and
x is arbitrarily
function can
on only
one value,
though
write
down close
0 when we
bigger domain
to meet the second condition
(ii). Moreover,
the function
(a, b) = (0, 0)but
nothing can grow out of
there is a point on the locusnamely
2
2
2
the entire
locus xany
+ y derivative
= 0 is just thisatsingle
y = + kit,because
x does
not have
x =point.
k, which checked directly.
Although there is nothing wrong with having two different parts of the locus be
of two different implicit Math
functions,
we do require that only one implicit
200 in 2010
2010 c 9
theLeong)
graph
(I.T.
22 F
15 / 28
(I.T. Leong)
2010 c 9
22 F
16 / 28
(I.T. Leong)
f
y (P)
= 0, then
2010 c 9
22 F
16 / 28
(I.T. Leong)
2010 c 9
22 F
16 / 28
(I.T. Leong)
2010 c 9
22 F
16 / 28
(I.T. Leong)
2010 c 9
22 F
16 / 28
(I.T. Leong)
f
x (P)
= 0.
2010 c 9
22 F
16 / 28
Remark. Recall that the level surface associated to a scalar function f and a
fixed number k, is the set { (x, y, z) f (x, y, z) = k }. In general, this set is not
expected to have any nice condition. However, we has the following important
Implicit Function Theorem II. Let S : F(x, y, z) = k be a level surface defined by
a differentiable scalar function F, and suppose that P(a, b, c) is a point on the
F
z (P)
(x, y, g(x, y)) + (x, y, g(x, y)) (x, y) = (k) = 0, and the result
x
z
x
x
follows.
(I.T. Leong)
2010 c 9
22 F
17 / 28
(I.T. Leong)
2010 c 9
22 F
18 / 28
Example. Suppose that the implicit function given by the level surface
S : F(x, y, z) = 0 defines the following explicit functions: x = x(y, z), y = y(x, z)
and z = x(x, y), where F is a differentiable function. Then
x y z
=
.
y z x
Solution. It follows from the implicit function theorem that
Fy
x
= , for all
y
Fx
Fz
z
Fx
y
= , and
= , for all (x, y, z) in S.
(x, y, z) in S. Similarly, we have
z
F
x
(
) (y ) (
)Fz
Fy
x y z
Fz
Fx
It follows that
=
= 1, for all (x, y, z)
y z x
Fx
Fy
Fz
in S.
(I.T. Leong)
2010 c 9
22 F
19 / 28
Theorem. Let r(t) = (x(t), y(t), z(t)) be a curve on the level surface
S : f (x, y, z) = c, prove that the tangent vector r (t) of the curve r(t) is normal
to the gradient f at the point of S. Consequently, f is the normal vector of
c = f ( x(t), y(t), z(t) ) for all the t in the domain of r with the help of chain rule,
d
d
f dx
f dy f dz
so 0 = (c) = ( f (x(t), y(t), z(t)) ) =
+
+
=
dt
dt
x dt
y dt
z dt
dx dy dz
f ( , , ) = f r (t), so f is normal to the tangent vector r (t) of the
dt dt dt
curve.
(I.T. Leong)
2010 c 9
22 F
20 / 28
z = z(x, y) is in fact the graph of the level surface S associated to the equation
F(x, y, z) = 0, or sometimes we just denote it by S : F(x, y, z) = 0. It follows that
F(x, y, z(x, y)) = 0, for all (x, y) in the (unspecified) domain of z(x, y), in fact we
just think of the equality as an identity in x and y. So differentiate with respect
to x and y respectively by means of chain rule, we have
F x F z
z
0=
(0) = ( F(x, y, z(x, y)) ) =
+
= Fx + Fz , so one has
x
x
x x
z x
x
Fy (x, y, z(x, y))
Fy
z
Fx (x, y, z(x, y))
Fx
z
(x, y) =
= and (x, y) =
= .
x
Fz (x, y, z(x, y))
Fz
y
Fz (x, y, z(x, y))
Fz
One should notice that the assumption Fz = 0 for all (x, y) in the domain of
z = z(x, y) is necessary, which one can obtain explicitly if Fz is known.
(I.T. Leong)
2010 c 9
22 F
21 / 28
z
6x
=
,
x
2z + 8y 1
4y + 8z
z
=
. To locate the extremum value of z = z(x, y), one
y
2z + 8y 1
need its two partial derivatives zx and zy vanish, i.e. (6x, 4y + 8z) = (0, 0)
and
2010 c 9
22 F
22 / 28
number lambda.
Remarks. (i) The last condition just means that these two vectors f (P) and
(I.T. Leong)
2010 c 9
22 F
23 / 28
(I.T. Leong)
2010 c 9
22 F
24 / 28
(I.T. Leong)
2010 c 9
22 F
24 / 28
fx (x, y, z)
f = g
fy (x, y, z)
f (x, y, z)
z
= gx (x, y, z) (1)
= gy (x, y, z) (2)
= gz (x, y, z) (3)
and
g(x, y, z) = k.
(I.T. Leong)
(4)
2010 c 9
22 F
24 / 28
fx (x, y, z)
f = g
fy (x, y, z)
f (x, y, z)
z
= gx (x, y, z) (1)
= gy (x, y, z) (2)
= gz (x, y, z) (3)
and
g(x, y, z) = k.
(4)
Evaluate f at all the points (x, y, z) that result from step (a). The largest of
these values is the maximum value of f ; the smallest is the minimum
value(I.T.of
f.
Leong)
2010 c 9
22 F
24 / 28
, i.e.
1 = x + 2y + 3z =
3
+ 2 + 3
= 7,
2
2
(x, y, z) = ( 2 , , 3
2 ) = (1/14, 1/7, 3/14).
Remark. Why does the point (x, y, z) = (1/14, 1/7, 3/14) give the minimum of
f ? One can consider the moving point (x, y, z) = (3t + 1, 0, t) lying on the
plane x + 2y + 3z = 1, then
f (2t + 1, 0, t) = (2t + 1)2 + 02 + (t)2 = (2t + 1)2 + t2 t2 which does not
have any maximum value. However, one can prove that the absolute minimum
value of f does exist by means of Cauchys inequality, and we skip the proof of
(I.T. Leong)
2010 c 9
22 F
25 / 28
Example. Let r(t) = (a + ht, b + kt) be the line in xy-plane passing through the
point P(a, b). Let f be a function defined in a domain D containing P with
continuous second order partial derivatives, and that P is a critical point of f
i.e. f (P) = 0. Let g(t) = f (r(t)), (i) evaluate the second derivatives of g at
t = 0; and (ii) the sign of g (0) provided that fxx (a, b) > 0 and
(fxy (a, b))2 fxx (a, b)fyy (a, b) > 0 for (h, k) = (0, 0).
Solution. (i) It follows from chain rule that
g (t) = fx (a + ht, b + kt)h + fy (a + ht, b + kt)k, and hence g (t) = fxx (a + ht, b +
kt)h2 + fxy (a + ht, b + kt)hk + fyx (a + ht, b + kt)kh + fyy (a + ht, b + kt)k2 .
At t = 0, g (0) = fxx (a, b)h2 + 2fxy (a, b)hk + fyy (a, b)k2 = Ah2 + 2Bhk + Ck2 . (ii)
As A = fxx (a, b) > 0, and B2 AC > 0, then for s R, the quadratic function
1
A
(A2 s2 + 2AB + B2 ) + C B2 /A =
B2 AC
1
2
A > 0. It
A (As + B) +
12
h
2
0 < ( k ) = k (Ah + 2Bhk + Ck2 ),
for all (h, k) R2 with k = 0. If k =
(I.T. Leong)
follows that
and hence g (0) = Ah2 + 2Bhk + Ck2 > 0
0, then g (0) = Ah2 > 0 for all h = 0.
Math 200 in 2010
2010 c 9
22 F
26 / 28
(I.T. Leong)
2010 c 9
22 F
27 / 28
(I.T. Leong)
2010 c 9
22 F
28 / 28