3 - Partial Derivatives
3 - Partial Derivatives
3. Partial Derivatives
(Chapter 14)
Nguyễn Anh Tú
[email protected]
3 Partial Derivatives
4 Chain Rule
7 Lagrange Multipliers
D = {(x, y )| 9 − x 2 − y 2 ≥ 0} = {(x, y )| x 2 + y 2 ≤ 9}
which is the disk with center (0, 0) and radius 3. The range of g
is p
{z| z = 9 − x 2 − y 2 , (x, y ) ∈ D} = [0, 3].
• Find the domain of f (x, y , z) = ln(z − y ) + xy sin z.
Solution: The expression for f (x, y , z) is defined as long as
z − y > 0, so the domain of f is
Examples: Sketch
p the graphs of f (x, y ) = 2 − x + 2y and
g (x, y ) = − 4 − x 2 − y 2 .
f (x1 , x2 , ..., xn ) = c1 x1 + c2 x2 + · · · + cn xn .
and
f (x, y ) → L as (x, y ) → (a, b).
Nguyễn Anh Tú [email protected] 3. Partial Derivatives Fall 2022 17 / 75
Limits
• If the limit exists, then f (x, y ) must approach L no matter how
(x, y ) approaches (a, b)
• For functions of a single variable, when we let x approach a,
there are only two possible directions of approach, from the left
or from the right.
• For functions of two variables the situation is not as simple
because we can let (x, y ) approach (a, b) from an infinite
number of directions.
xy
Example: If f (x, y ) = x 2 +y 2
, does lim(x,y )→(0,0) f (x, y ) exist?
Solution: If y = 0, then f (x, 0) = 0/x 2 = 0. Therefore,
1
f (x, y ) → as (x, y ) → (0, 0) along y = x.
2
Thus, lim(x,y )→(0,0) f (x, y ) doesn’t exist.
Nguyễn Anh Tú [email protected] 3. Partial Derivatives Fall 2022 19 / 75
Example
xy 2
If f (x, y ) = x 2 +y 4
, does lim(x,y )→(0,0) f (x, y ) exist?
Solution: For x = 0 and y ̸= 0,
0
f (x, y ) = f (0, y ) = =0
y4
y4 1
f (x, y ) = f (y 2 , y ) = =
2y 4 2
x 2y x2
0≤ = |y | ≤ |y | → 0 as (x, y ) → (0, 0).
x2 + y2 x2 + y2
By the Squeeze Theorem,
x 2y
lim = 0.
(x,y )→(0,0) x 2 + y 2
lim f (x, y , z) = L
(x,y ,z)→(a,b,c)
Partial Derivatives
fx (a, b) = g ′ (a).
• Thus
g (a + h) − g (a)
fx (a, b) = g ′ (a) = lim
h→0 h
and so
f (a + h, b) − f (a, b)
fx (a, b) = lim
h→0 h
f (x, y ) = x 2 + 3xy + y − 1.
Chain Rule
dz ∂f dx ∂f dy
= +
dt ∂x dt ∂y dt
∂z ∂f ∂x ∂f ∂y ∂z ∂f ∂x ∂f ∂y
= + = +
∂s ∂x ∂s ∂y ∂s ∂t ∂x ∂t ∂y ∂t
• Notice that the formula has one term for each of intermediate
variables x and y
w = x 2 + y 2, x = r − s, y = r + s.
Solution:
∂w ∂w ∂x ∂w ∂y
= + = (2x)(1) + (2y )(1)
∂r ∂x ∂r ∂y ∂r
= 2(r − s) + 2(r + s) = 4r ;
∂w ∂w ∂x ∂w ∂y
= + = (2x)(−1) + (2y )(1)
∂s ∂x ∂s ∂y ∂s
= −2(r − s) + 2(r + s) = 4s.
w = f (x − ct) + g (x + ct)
∂ 2w 2
2∂ w
= c .
∂t 2 ∂x 2
Solution: Using the Chain Rule we get
∂w ∂w
= −cf ′ (x − ct) + cg ′ (x + ct), = f ′ (x − ct) + g ′ (x + ct),
∂t ∂x
∂ 2w 2 ′ 2 ′ ∂ 2w
= c f (x − ct) + c g (x + ct), = f ′′ (x − ct) + g ′′ (x + ct).
∂t 2 ∂x 2
Thus w satisfies the given partial differential equation.
Nguyễn Anh Tú [email protected] 3. Partial Derivatives Fall 2022 44 / 75
Section 5
Theorem
If f is a differentiable function of x and y , then f has a directional
derivative in any direction and if u = ⟨a, b⟩ then
or,
∇f = ⟨fx , fy , fz ⟩
• We have
Du f (x, y , z) = ∇f (x, y , z)·u
∇f (a, b) = 0,
i.e.
fx (a, b) = 0 fy (a, b) = 0.
(This is an analogue of Fermat’s theorem for function of one
variable.)
Definition
An interior point (a, b) of the domain of a function f (x, y ) is called a
critical point of f if ∇f (a, b) = 0, or if one the partial derivative of
f at (a, b) does not exist.
Nguyễn Anh Tú [email protected] 3. Partial Derivatives Fall 2022 57 / 75
Example
Find the extreme values of f (x, y ) = x 2 + y 2 − 2x − 6y + 14.
Solution:
• Since fx = 2x − 2 and fy = 2y − 6, the only critical point is
(1, 3).
• Writing
f (x, y ) = (x − 1)2 + (y − 3)2 + 4,
we see that f has absolute minimum at (1, 3).
• Thus f has absolute minimum value 4 and no maximum value.
Example Find the local maximum and minimum values and saddle
points of f (x, y ) = x 4 + y 4 − 4xy + 1.
Solution: We first locate the critical points. Solving
fx = 4x 3 − 4y = 0, fy = 4y 3 − 4x = 0
Lagrange Multipliers
or equivalently,
V = xyz
yz = λ(2z + y ) (5)
xz = λ(2z + x) (6)
xy = λ(2x + 2y ) (7)
2xz + 2yz + xy = 12 (8)