Lecture 5 - Partial Derivatives and Chain Rule
Lecture 5 - Partial Derivatives and Chain Rule
Lecture 5 - Partial Derivatives and Chain Rule
x y
To consider the slope in x-direction, we treat y as a
constant. (here y =1 since we are at (2, 1, -1):
𝑓 𝑥, 𝑦 = −𝑥 2 − 𝑦 2 + 4
x
y
𝑓𝑥 𝑥, 𝑦 = −2𝑥
𝑓𝑥 2,1 = −2 2 = −4
𝑓 𝑥, 𝑦 = −𝑥 2 − 𝑦 2 + 4
x y 𝑓𝑦 𝑥, 𝑦 = −2𝑦
𝑓𝑦 2,1 = −2 1 = −2
for z = f (x, y)
𝜕𝑓 𝜕𝑧
𝑓𝑥 𝑥, 𝑦 = 𝑥, 𝑦 = = 𝐷𝑥 𝑓
𝜕𝑥 𝜕𝑥
𝜕𝑓 𝜕𝑧
𝑓𝑦 𝑥, 𝑦 = 𝑥, 𝑦 = = 𝐷𝑦 𝑓
𝜕𝑦 𝜕𝑦
We have computed
𝜕𝑓 𝜕𝑓 𝜕𝑧
𝑓𝑥 2,1 = 2,1 = ቤ = ቤ
𝜕𝑥 𝜕𝑥 (2,1) 𝜕𝑥 (2,1)
Using product rule, we have
Function of More than Two Variables
𝑤 = 𝑓(𝑥, 𝑦, 𝑧)
𝜕𝑤
For , treat y and z as constants
𝜕𝑥
𝜕𝑤
For , treat x and z as constants
𝜕𝑦
𝜕𝑤
For , treat x and y as constants
𝜕𝑧
Function of More than Two Variables
Second Order Partial Derivatives
When we differentiate f(x, y) twice, we produce its second
order derivatives.
𝜕 𝜕𝑓 𝜕2𝑓 𝜕2𝑧
(𝑓𝑥 )𝑥 = 𝑓𝑥𝑥 = = 2= 2
𝜕𝑥 𝜕𝑥 𝜕𝑥 𝜕𝑥
𝜕 𝜕𝑓 𝜕2𝑓 𝜕2𝑧
(𝑓𝑥 )𝑦 = 𝑓𝑥𝑦 = = =
𝜕𝑦 𝜕𝑥 𝜕𝑦𝜕𝑥 𝜕𝑦𝜕𝑥
1st 2nd
2nd 1st
𝜕 𝜕𝑓 𝜕2𝑓 𝜕2𝑧
(𝑓𝑦 )𝑥 = 𝑓𝑦𝑥 = = =
𝜕𝑥 𝜕𝑦 𝜕𝑥𝜕𝑦 𝜕𝑥𝜕𝑦
𝜕 𝜕𝑓 𝜕 2𝑓 𝜕 2𝑧
(𝑓𝑦 )𝑦 = 𝑓𝑦𝑦 = = 2= 2
𝜕𝑦 𝜕𝑦 𝜕𝑦 𝜕𝑦
The chain rule
𝑑𝑦
and = 𝑓 ′ 𝑔 𝑡 . 𝑔′ 𝑡
𝑑𝑡
𝑑𝑦 𝑑𝑦 𝑑𝑥
Or =
𝑑𝑡 𝑑𝑥 𝑑𝑡
Function of two variable
Function of three variable
Implicit Differentiation Revisited
Recall for function of 1 variable
𝑑𝑦
𝑥2 + 𝑦2 =4 find
𝑑𝑥
𝑑 2 2
𝑑
(𝑥 + 𝑦 ) = (4)
𝑑𝑥 𝑑𝑥
𝑑𝑦
2𝑥 + 2𝑦 =0
𝑑𝑥
𝑑𝑦 2𝑥 𝑥
=− =−
𝑑𝑥 2𝑦 𝑦
Implicit Differentiation Revisited
Since F(x,y) = 0
𝑑𝑤
must be zero
𝑑𝑥
𝑑𝑦
𝐹𝑥 + 𝐹𝑦 =0
𝑑𝑥
𝑑𝑦 𝐹𝑥
=−
𝑑𝑥 𝐹𝑦