Chapter 3
Chapter 3
Department of Mathematics
Hong Kong Baptist University
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
{f (x1 , x2 , · · · , xn ) : (x1 , x2 , · · · , xn ) ∈ D}
Unless specified, the domain refers to the largest set of points (x1 , x2 , · · · , xn ) for
which f (x1 , x2 , · · · , xn ) makes sense as a real number.
If the level curves are drawn for equally spaced values of C, then we can tell the
steepness of the surface from the denseness of the curves.
f (x1 , x2 , · · · , xn ) = C
for constants C.
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
lim f (x, y) = L?
(x,y)→(a,b)
lim f (x) = L,
x→a
Note:
▶ It is not necessary that a lies in the domain of f .
and L1 ̸= L2 , then
lim f (x, y)
(x,y)→(a,b)
▶
2xy
lim
(x,y)→(0,0) x2 + y 2
▶
2x2 y
lim
(x,y)→(0,0) x4 + y 2
▶
x2 y
lim
(x,y)→(0,0) x2 + y2
f (x) L
lim = , provided M ̸= 0.
x→x0 g(x) M
lim F(f (x)) = F(L), provided F(t) is continuous at L.
x→x0
The functions in Example 1 and 2 above are continuous wherever they are defined,
that is, at all points except (0, 0). Furthermore, there is no way to define f (0, 0) so
that those functions become continuous at (0, 0).
The function in Example 3 is not defined at (0, 0), but it has a continuous extension
to that point since the limit lim(x,y)→(0,0) f (x, y) exists. That is, f becomes continuous
if we define f (0, 0) = lim(x,y)→(0,0) f (x, y) = 0. In other words, the function
2
x y ,
(x, y) ̸= (0, 0)
f (x, y) = x + y2
2
0, (x, y) = (0, 0).
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
The partial derivatives of f represent the rate of change of the function value with
∂f
respect to one variable. For example, (x, y) is the ordinary derivative of f (x, y)
∂x
considered as a function of x, with y held fixed.
All the standard differentiation rules for sums, products, reciprocals and quotients
continue to apply to partial derivatives.
∂z ∂z
fx (a, b) = fy (a, b) = .
∂x (a,b) ∂y (a,b)
This property does NOT extend to partial derivatives. A multivariate function whose
partial derivatives exist at a point is NOT necessarily continuous at that point.
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
⃗ = T⃗1 × T⃗2 .
n
T⃗1 = i + fx (a, b)k = 〈1, 0, fx (a, b)〉 T⃗2 = j + fy (a, b)k = 〈0, 1, fx (a, b)〉.
p
▶ The corresponding point P = (π/ 3, −1, − 3/ 2)
▶
∂z 1 ∂z π
=− and =
∂x P 2 ∂y P 6
▶ The normal vector
π 1
⃗=−
i+ j− k
n
2 6
▶ The standard form of the normal line is
p
π 3
x− 3
y+1 z+ 2
1
= π =
− 2 6
−1
▶ The point-normal equation of the tangent plane is
p
1 π π 3
− (x − ) + (y + 1) − (z + )=0
2 3 6 2
The graph of f has no tangent plane at (0, 0) (also no normal). The graph of f is not
locally flat at (0, 0) (will not appear flat no matter how much we zoom in).
For some z = f (x, y), there exists vertical tangent lines and tangent planes.
The surface z = f (x, y) has a nonvertical tangent plane at P = (a, b, f (a, b)) if and
only if f (x, y) is differentiable at P.
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
i.e.
f (x, y) ≈ L(x, y) = f (a, b) + fx (a, b)(x − a) + fy (a, b)(y − b).
p
E.g. Let f (x, y) = 2x2 + e2y , find the linear approximation at (2, 0).
The above formula gives
4 1
L(x, y) = 3 + (x − 2) + y.
3 3
f (a + h, b + k) − L(a + h, b + k)
lim p =0
(h,k)→(0,0) h2 + k 2
f (a + h, b + k) − (f (a, b) + hfx (a, b) + kfy (a, b))
= lim p = 0.
(h,k)→(0,0) h2 + k 2
Theorem
If fx , fy both exist and are continuous in a neighborhood of (a, b), then f is differentiable
at (a, b).
We will skip the multivariate mean value theorem and the proof of the above
theorem.
where x = (x1 , x2 , · · · , xn ).
Let § ª
L(Rn , Rm ) = F : Rn → Rm : F is a inear tranformation ,
then ∂f
i
Df(x) = : Rn → L(Rn , Rm ),
∂xj
while ∂f
i
Df(a) = ∈ L(Rn , Rm ),
∂xj a
i.e.,
▶
∂f ∂f1
1
∂x ∂y ey xey − π sin(πy)
∂f2 ∂f2
Df(x) = = 2x 0
∂x ∂y
∂f3 ∂f3
1 −ey
∂x ∂y
▶
∂f ∂f1
1
∂x ∂y 1 1
∂f ∂f2
Df(a) = ∂x2 = 2 0
∂y
∂f3 ∂f3
1 −1
∂x ∂y a
Theorem
If the partial derivatives in the Jacobian matrix are continuous, the f is differentiable at
x.
Thus,
L(x) = f(a) + A(x − a)
is the linearization of f around a. (Note A = Df(a))
E.g. (Same on page 39) The approximate value for f(1.02, 0.01) is
2 1 1 2 0.03
0.02
f(a) + Df(a) · (x − a) = 1 + 2 0 · = 1 + 0.04 .
0.01
0 1 −1 0 0.01
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
dz ∂z dx ∂z dy
= + .
dt ∂x dt ∂y dt
∂z ∂z ∂x ∂z ∂y ∂z ∂z ∂x ∂z ∂y
= + and = + .
∂s ∂x ∂s ∂y ∂s ∂t ∂x ∂t ∂y ∂t
Originally,
∂z ∂z ∂x ∂z ∂y ∂z ∂z ∂x ∂z ∂y
= + , = +
∂s ∂x ∂s ∂y ∂s ∂t ∂x ∂t ∂y ∂t
Equivalently,
∂(f ◦ g)(s, t) ∂(f ◦ g)(s, t)
D(f ◦ g)(t) =
∂s ∂t
∂x ∂x
∂f (x, y) ∂f (x, y)
= ∂s ∂t
∂y ∂y
∂x ∂y ∂s ∂t
= Df (g(t)) · Dg(t)
holds in general.
1 0
Let f : R3 → R2 be given by f (x, y, z) = (x2 ey , y2 z). Find D(f ◦ g)(1, 2).
▶
2xey x 2 ey 0
Df (x, y, z) =
0 2yz y2
▶
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
Recall that if f : R2 → R, the partial derivatives at (a, b), i.e., fx (a, b) and fy (a, b), are
defined to be the slopes in the x- and y-directions. That’s the rates of change along
the directions of unit vectors i and j respectively.
▶ Since we can also regard L(Rn , R) as an n-vector space, you may say
∇f : Rn → Rn .
▶ Since we are interested in the direction of change of the input, and not the
length of the change vector, we use a unit vector.
f (x, y) = x2 sin 2y
E.g. Recalculate the e.g. on the above page using this formula.
u 3 4
▶ Normalize u: = i− j
|u| 5 5
▶ ∇f (a, b) = ∇f (1, π/ 2) = (2 sin π, 2 cos π)
3 4 8
▶ Du f (1, π/ 2) = (2 sin π, 2 cos π) · ( , − ) =
5 5 5
∂f ∂f
= u+ v
∂x (a,b) ∂y (a,b)
= ∇f (a, b) · u,
Du f (a) = u · ∇f (a).
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
x2 xn
ex ≈ 1 + 1 × x + 1 × +···+ .
2! n!
1
P2 (a + h, b + k) = L(a + h, b + k) + fxx (a, b)h2 + 2fxy (a, b)hk + fyy (a, b)k 2 .
2!
F(2) (0)
P2 (t) = F(0) + F(1) (0)t + t2 ,
2!
where
▶ Note that if fxy and fyx are both continuous, then fxy = fyx .
3 Partial Derivatives
4 Tangent Planes
9 Implicit Functions
Definition
An equation of the form
F(x, y) = c
E.g. (Cont’d)
The analytic version of IFT: Suppose we want to solve F(x, y) = 0 for y as a function
of x, i.e., y = y(x). If we have F(x0 , y0 ) = 0, then IFT says it is possible to solve for x
near a if Fy (x0 , y0 ) ̸= 0 holds.
The geometric version of IFT: Since Fy (x0 , y0 ) ̸= 0, near (x0 , y0 ), the curve
F(x, y) = 0 has nonvertical tangent lines near (x0 , y0 ). Thus, some part of the curve
near (x0 , y0 ) must be the graph of a function of x.
▶ It only gives local information near (a, b). Even worse, it does not tell us how
close we need to be for the conclusions of the theorem to hold.
so that
∂z Fx (a, b, c)
= −
∂x P0 Fz (a, b, c)
∂z Fy (a, b, c)
= − ,
∂y P0 Fz (a, b, c)
▶ Let F(x, y, z) = x2 + y2 + z2 − 1.
∂z ∂z x
2x + 2z = 0, so =−
∂x ∂x z
∂z ∂z y
2y + 2z = 0, so =− .
∂y ∂y z
▶ Note that the geometric version of this is that for points with c = 0 are on the
equator and the tangent planes are vertical.
The above can be written as the following system with 2 equations having 4
variables:
F(x, y, z, w) = 0
G(x, y, z, w) = 0.
If we can write z(x, y) and w(x, y), and F, G are differentiable, then the partial
derivatives of z and w can be found by implicit differentiation of F, G w.r.t x and y.
∂z ∂w
Note that calculation for finding , at P will itself guarantee z(x, y) and w(x, y)
∂x ∂x
exist.
From linear algebra, if the determinant of the matrix on the left hand side is
∂z ∂w
nonzero, we can solve , by multiplying the inverse on both sides.
∂x P ∂x P
i.e.,
If Ax = b,
then A−1 Ax = A−1 b,
where
Fz (P) Fw (P)
A= with det(A) ̸= 0.
Gz (P) Gw (P)
▶
Fz Fw xyez − cos(w − z) cos(w − z)
= .
Gz Gw (x + 1)(y + 2)(w + 4) (x + 1)(y + 2)(z + 3)
▶ Since
−1 1
det = −14 ̸= 0,
8 6
it has a unique inverse matrix, i.e.,
−1 6 −1
.
14 −8 −1
det(A) = −14
▶
0 1
∂z −24 6 12
P
= x1 = =−
∂x −14 7
▶
−1 0
∂w 8 −24 12
P
= x2 = =−
∂x −14 7
▶ Thus,
∂z
∂x P
12/ 7
∂w =−
∂x P
12/ 7
yi = yi (x1 , x2 , · · · , xm ) for i = 1, 2, · · · , n.