Interpretations of Partial Derivatives
Interpretations of Partial Derivatives
Suppose we let x vary while keeping y fixed (y = b) in f (x, y), we got a function g(x) = f (x, b). If g has a
derivative at a, we call it the partial derivative of f with respect to x at (a,b). We have
g(a + h) − g(a)
g ′ (a) = lim
h→0 h
f (x + h, b) − f (x, y)
fx (x, y) = lim
h→0 h
and so it become
f (x, y + h) − f (x, y)
fy (x, y) = lim
h→0 h
+ EXAMPLE. If f (x, y) = x3 + x2 y 3 − 2y 2 , find fx (2, 1) and fy (2, 1). Holding y constant and differentiating
with respect to x, we get
fy (x, y) = 3x2 y 2 − 4y
fy (2, 1) = 3 · 22 · 12 − 4 · 1 = 8
1
+ EXAMPLE. If f (x, y) = x3 + x2 y 3 − 2y 2 , find fx (1, 1) and fy (1, 1)
and interpret these numbers as slopes.
We have
!
x δf δf
+ EXAMPLE. If f (x, y) = sin , calculate and .
1+y ∂x ∂y
x3 + y 3 + z 3 + 6xyz = 1
∂z ∂z
3x2 + 3z 2 + 6yz + 6xy =0
∂x ∂x
Solving this for ∂z/∂x, we obtain
∂z y 2 + 2xz
=− 2
∂x z + 2xy
Similarly, implicit differentiation with respect to y gives
∂z y 2 + 2xz
=− 2
∂y z + 2xy
f (x + h, y, z) − f (x, y, z)
fx (x, y, z) = lim
h→0 h
+ EXAMPLE. Find fx , fy , and fz if f (x, y, z) = exy ln z.
fx = yexy ln z
Similarly,
exy
fy = xexy ln z and fz =
z
2
Higher Derivatives
If f is a function of 2 variables, then fx and fy are also functions of 2 variables. So we can consider the
second partial derivatives of f , that is (fx )x , (fx )y , (fy )x , and (fy )y .
∂2f ∂2z
∂ ∂f
(fx )x = fxx = f11 = = =
∂x ∂x ∂x2 ∂x2
2
∂2z
∂ ∂f ∂ f
(fx )y = fxy = f12 = = =
∂y ∂x ∂y ∂x ∂y ∂x
∂2f ∂2z
∂ ∂f
(fy )x = fyx = f21 = = =
∂x ∂y ∂x ∂y ∂x ∂y
∂2f ∂2z
∂ ∂f
(fy )y = fyy = f22 = = =
∂y ∂y ∂y 2 ∂y 2
Thus fxy (or ∂ 2 f /∂y ∂x) means that we first differentiate with respect to x and then with respect to y.
+ EXAMPLE. Find the second partial derivatives of
f (x, y) = x3 + x2 y 3 − 2y 2
Therefore
∂ ∂
fxx = (3x2 + 2xy 3 ) = 6x + 2y 3 fxy = (3x2 + 2xy 3 ) = 6xy 2
∂x ∂y
∂ ∂
fyx = (3x2 y 2 − 4y) = 6xy 2 fyy = (3x2 y 2 − 4y) = 6x2 y − 4
∂x ∂y
Clairaut’s Theorem Suppose f is defined on a disk D that contains the point (a, b). If the functions
fxy and fyx are both continuous in D, then
and using Clairaut’s Theorem it can be shown that fxyy = fyxy = fyyx .
+ EXAMPLE. Calculate fxxyz if f (x, y, z) = sin 3x + yz.
SOLUTION.
Laplace’s equation.
∂2u ∂2u
+ =0
∂x2 ∂y 2
As we zoom in toward a point on a surface of a differentiable function, the surface looks more and more like
a plane (its tangent plane) and we can approximate it by a linear function of 2 variables.
3
Tangent Planes
Suppose surface S of z = f (x, y) has continuous first partial deriva-
tives, let P (x0 , y0 , z0 ) ∈ S.
■ C1 and C2 be the curves obtained by intersecting the vertical
planes y = y0 and x = x0 with S.
■ Let T1 and T2 be the tangent lines to the curves C1 and C2 at P .
Then the tangent plane to the surface S at the point P contains
T1 and T2 . In fact, it consists of all possible tangent lines at P .
■ We know the plane has an equation of the form
z − z0 = a(x − x0 ) + b(y − y0 )
The tangent plane’s intersection with the plane y = y0 must be the tangent line T1 .
z − z0 = a(x − x0 ) where y = y0
Suppose f has continuous partial derivatives. An equation of the tangent plane to the surface z = f (x, y)
at the point P (x0 , y0 , z0 ) is
+ EXAMPLE. Find the tangent plane to the elliptic paraboloid z = 2x2 + y 2 at the point (1, 1, 3).
fx (x, y) = 4x fy (x, y) = 2y
fx (1, 1) = 4 fy (1, 1) = 2
z − 3 = 4(x − 1) + 2(y − 1)
z = 4x + 2y − 3
4
Linear Approximations
The equation of the tangent plane of f (x, y) = 2x2 + y 2 at
the point (1, 1, 3) is z = 4x + 2y − 3. Therefore, the linear Eg: At the point (1.1, 0.95), the linear
function of 2 variables approximation gives
L(x, y) = 4x + 2y − 3 f (1.1, 0.95) ≈ 4(1.1) + 2(0.95) − 3 = 3.3
is the linearization of f at (1, 1) and the approximation True value: f (1.1, 0.95) = 2(1.1)2 +
(0.95)2 = 3.3225.
f (x, y) ≈ 4x + 2y − 3
Definition
The linearization of f at (a, b). L(x, y) = f (a, b) + fx (a, b)(x − a) + fy (a, b)(y − b)
The linear approximation of f at (a, b). f (x, y) ≈ f (a, b) + fx (a, b)(x − a) + fy (a, b)(y − b)
Definition : Differentiable
Pretty ..dumb.
Theorem. If fx and fy exist near (a, b) and are continuous at (a, b), then f is differentiable at (a, b).
+ EXAMPLE. Show that f (x, y) = xexy is differentiable at (1,0) and find its
linearization there. Approximate f(1.1, -0.1).
The partial derivatives are
5
Differentials
■ For y = f (x), we define dx an independent variable. And dy =
f ′ (x) dx, represents the change in height when x changes dx.
■ For a differentiable z = f (x, y), we define the differentials dx and dy
to be independent variables.
∂z ∂z
dz = fx (x, y) dx + fy (x, y) dy = dx + dy
∂x ∂y
+ EXAMPLE.
(a) If z = f (x, y) = x2 + 3xy − y 2 , find the differential dz.
(b) If x changes from 2 to 2.05 and y changes from 3 to 2.96, comppare
the values of ∆z and dz.
SOLUTION
(a) Applying the formula,
∂z ∂z
dz = dy = dx + dy = (2x + 3y) dx + (3x − 2y) dy
∂x ∂y
The increment of z is
6
3 The Chain Rule
Definition : The Chain Rule (Case 1)
Suppose that z = f (x, y) is differentiable, where x = g(t) and y = h(t) are both differentiable. Then z
is a differentiable function of t and
dz ∂f dx ∂f dy
= +
dt ∂x dt ∂y dt
dz ∂f dx ∂f dy
= +
dt ∂x dt ∂y dt
= (2xy + 3y 4 )(2 cos 2t) + (x2 + 12xy 3 )(− sin t)
Suppose that z = f (x, y) is differentiable, where x = g(s, t) and y = h(s, t) are differentiable. We can
hold the the other variable fixed.
dz ∂f dx ∂f dy dz ∂f dx ∂f dy
= + = +
ds ∂x ds ∂y ds dt ∂x dt ∂y dt
∂z ∂f ∂x ∂f ∂y
= + = (ex sin y)(t2 ) + (ex cos y)(2st)
∂s ∂x ∂s ∂y ∂s
2 2
= t2 est sin (s2 t) + 2stest cos (s2 t)
∂z ∂f ∂x ∂f ∂y
= + = (ex sin y)(2st) + (ex cos y)(s2 )
∂t ∂x ∂t ∂y ∂t
2 2
= 2stest + s2 est cos s2 t
+ EXAMPLE. If g(s, t) = f (s2 − t2 , t2 − s2 ) and f is differentiable, show that g satisfies the equation
∂g ∂g
t +s =0
∂s ∂t
+ EXAMPLE. If z = f (x, y) has continuous second-order partial derivatives and x = r2 + s2 and y = 2rs, find
a. ∂z/∂r
b. ∂ 2 z/∂r2
SOLUTION.
a. The Chain Rule gives
∂z ∂f ∂x ∂f ∂y ∂z ∂z
= + = (2r) + (2s)
∂r ∂x ∂r ∂y ∂r ∂x ∂y
7
b. Applying the Product Rule, we get
!
∂2z ∂ ∂z ∂z
= 2r + 2s
∂r2 ∂r ∂x ∂y
! !
∂z ∂ ∂z ∂ ∂z
=2 + 2r + 2s
∂x ∂r ∂x ∂r ∂y
Implicit Differentiation
Suppose F (x, y) = 0, y = f (x) is differentiable. If F is differentiable, apply Case 1 of the Chain Rule to
differentiate both sides with respect to x.
∂F dx ∂F dy
+ =0
∂x dx ∂y dx
∂F
dy Fx
= − ∂x = −
dx ∂F Fy
∂y
dy Fx 3x2 − 6y x2 − 2y
=− =− =−
dx Fy 3y 2 − 6x y 2 − 2x
∂F ∂F
∂z ∂z ∂y
= − ∂x =−
∂x ∂F ∂y ∂F
∂z ∂z
∂z ∂z
+ EXAMPLE. Find and if x3 + y 3 + z 3 + 6xyz = 1.
∂x ∂y
∂z Fx x2 + 2yz
=− =−
∂x Fz z 2 + 2xy
∂z Fy y 2 + 2xz
=− =−
∂y Fz z 2 + 2xy