Professional Documents
Culture Documents
Partial Derivatives
Partial Derivatives
Partial Derivatives:-
In mathematics, a partial derivative of a function of several variables is
its derivative with respect to one of those variables, with the others held constant
(as opposed to the total derivative, in which all variables are allowed to vary).
Partial derivatives are used in vector calculus and differential geometry.
𝜕𝑓 𝜕𝑓
Example:- Find the values of and at the point (4,5) if 𝑓(𝑥, 𝑦) = 𝑥 2 +
𝜕𝑥 𝜕𝑦
3𝑥𝑦 + 𝑦 − 1
𝜕𝑓
Solution:- We regard 𝑦 as a constant and differentiate with respect to 𝑥 :-
𝜕𝑥
𝜕𝑓 𝜕𝑓
= 2𝑥 + 3𝑦 ⇒ (𝑓𝑜𝑟 4,5) = 2.4 + 3.5 = 23
𝜕𝑥 𝜕𝑥
Page 1 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝜕𝑓 𝜕 2 𝜕𝑓
= (𝑥 + 3𝑥𝑦 + 𝑦 − 1) = 3𝑥 + 1 ⇒ (𝑓𝑜𝑟 4,5) = 13
𝜕𝑦 𝜕𝑦 𝜕𝑦
2𝑐𝑜𝑠𝑥
=
(𝑦 + 𝑐𝑜𝑠𝑥)2
= 3𝑥 cos(𝑦 + 3𝑧)
Cylindrical Coordinates:-
We obtain cylindrical coordinates for space by combining polar coordinates in
the xy- plane with the usual Z-axis
The value of 𝑥, 𝑦, 𝑟 and 𝜃 in cylindrical coordinates are related by the usual eqs.
:-
𝒙 = 𝒓 𝐜𝐨𝐬 𝜽 , 𝒚 = 𝒓 𝐬𝐢𝐧 𝜽
𝒚
𝒓𝟐 = 𝒙𝟐 + 𝒚𝟐 , 𝜽 = 𝐭𝐚𝐧−𝟏
𝒙
Page 2 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
Spherical Coordinates:-
Spherical coordinates locate points in space with two angle and a distance from
the origin.
Relation between spherical and Cartesian coordinates:-
𝒓 = 𝝆 𝐬𝐢𝐧 ∅ , 𝒙 = 𝒓 𝐜𝐨𝐬 𝜽 = 𝝆 𝐬𝐢𝐧 ∅ 𝐜𝐨𝐬 𝜽
𝒛 = 𝝆 𝐜𝐨𝐬 ∅ , 𝒚 = 𝒓 𝐬𝐢𝐧 𝜽 = 𝝆 𝐬𝐢𝐧 ∅ 𝐬𝐢𝐧 𝜽
𝝆 = √𝒙𝟐 + 𝒚𝟐 + 𝒛𝟐 = √𝒓𝟐 + 𝒛𝟐
𝜕𝑅̅ 𝜕𝑥 𝜕𝑦 𝜕𝑧
2- = 𝑖+ 𝑗+ 𝑘 = cos 𝜃 𝑖 + sin 𝜃 𝑗
𝜕𝑟 𝜕𝑟 𝜕𝑟 𝜕𝑟
𝜕𝑅̅ 𝜕𝑥 𝜕𝑦 𝜕𝑧
= 𝑖+ 𝑗+ 𝑘 = −𝑟 sin 𝜃𝑖 + 𝑟 cos 𝜃𝑗
𝜕𝜃 𝜕𝜃 𝜕𝜃 𝜕𝜃
𝜕𝑅̅ 𝜕𝑥 𝜕𝑦 𝜕𝑧
= 𝑖+ 𝑗+ 𝑘=𝑘
𝜕𝑧 𝜕𝑧 𝜕𝑧 𝜕𝑧
Page 3 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝒅𝒘 𝝏𝒇 𝒅𝒙 𝝏𝒇 𝒅𝒚
= . + .
𝒅𝒕 𝝏𝒙 𝒅𝒕 𝝏𝒚 𝒅𝒕
𝑑𝑓 𝜕𝑓 𝑑𝑥 𝜕𝑓 𝑑𝑦
= . + . … … … … … . . (∗)
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝜕𝑦 𝑑𝑡
𝜕𝑓 𝜕𝑓
𝑓(𝑥, 𝑦) = 𝑥𝑦 ⇒ =𝑦 , =𝑥
𝜕𝑥 𝜕𝑦
𝑑𝑥
𝑥 = cos 𝑡 = − sin 𝑡
𝑑𝑡
𝑑𝑦
𝑦 = sin 𝑡 = cos 𝑡
𝑑𝑡
𝑑𝑓
⇒ = −𝑦 sin 𝑡 + 𝑥 cos 𝑡 = −𝑠𝑖𝑛2 𝑡 + 𝑐𝑜𝑠 2 𝑡 = cos 2𝑡
𝑑𝑡
1
𝑓(𝑥, 𝑦) = 𝑥𝑦 = cos 𝑡 sin 𝑡 = sin 2𝑡
2
𝑑𝑓 𝑑 1
= ( sin 2𝑡) = cos 2𝑡
𝑑𝑡 𝑑𝑡 2
𝑑𝑓
In either case, the value of ( ) = cos 𝜋 = −1
𝑑𝑡
Page 4 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝒅𝒇 𝝏𝒇 𝒅𝒙 𝝏𝒇 𝒅𝒚 𝝏𝒇 𝒅𝒛
= . + . + .
𝒅𝒕 𝝏𝒙 𝒅𝒕 𝝏𝒚 𝒅𝒕 𝝏𝒛 𝒅𝒕
𝑑𝑓
Example:- Find the value of 𝑎𝑡 𝑡 = 0 if 𝑓(𝑥, 𝑦, 𝑧) = 𝑥𝑦 + 𝑧 and
𝑑𝑡
𝑥 = cos 𝑡 , 𝑦 = sin 𝑡 , 𝑧 = 𝑡.
Solution:-
𝑑𝑓 𝜕𝑓 𝑑𝑥 𝜕𝑓 𝑑𝑦 𝜕𝑓 𝑑𝑧
= . + . + .
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝜕𝑦 𝑑𝑡 𝜕𝑧 𝑑𝑡
𝑑𝑓
= (𝑦)(− sin 𝑡) + (𝑥)(cos 𝑡 ) + 1 = −𝑠𝑖𝑛2 𝑡 + 𝑐𝑜𝑠 2 𝑡 + 1
𝑑𝑡
𝑑𝑓 𝑑𝑓
= 1 + cos 2𝑡 , (𝑡 = 0) = 1 + cos 0 = 2
𝑑𝑡 𝑑𝑡
𝜕𝑓 𝜕𝑓 𝜕𝑥 𝜕𝑓 𝜕𝑦 𝜕𝑓 𝜕𝑧
= . + . + . …………………………………. (1)
𝜕𝑟 𝜕𝑥 𝜕𝑟 𝜕𝑦 𝜕𝑟 𝜕𝑧 𝜕𝑟
And
𝜕𝑓 𝜕𝑓 𝜕𝑥 𝜕𝑓 𝜕𝑦 𝜕𝑓 𝜕𝑧
= . + . + . ……………………………….... (2)
𝜕𝑠 𝜕𝑥 𝜕𝑠 𝜕𝑦 𝜕𝑠 𝜕𝑧 𝜕𝑠
Page 5 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
Example:-
𝜕𝑓 𝜕𝑓
Find and as functions of 𝑟 & 𝑠 if 𝑓(𝑥, 𝑦, 𝑧) = 𝑥 + 2𝑦 + 𝑧 2 ,
𝜕𝑟 𝜕𝑠
𝑟
𝑥= , 𝑦 = 𝑟 2 + ln 𝑠 and 𝑧 = 2𝑟
𝑠
𝜕𝑓 𝜕𝑓 𝜕𝑥 𝜕𝑓 𝜕𝑦 𝜕𝑓 𝜕𝑧
= . + . + .
𝜕𝑟 𝜕𝑥 𝜕𝑟 𝜕𝑦 𝜕𝑟 𝜕𝑧 𝜕𝑟
1 1
= (1). ( ) + (2). (2𝑟) + (2𝑧). (2) = + 12𝑟
𝑠 𝑠
From eq. of (2)
𝜕𝑓 𝜕𝑓 𝜕𝑥 𝜕𝑓 𝜕𝑦 𝜕𝑓 𝜕𝑧
= . + . + .
𝜕𝑠 𝜕𝑥 𝜕𝑠 𝜕𝑦 𝜕𝑠 𝜕𝑧 𝜕𝑠
𝑟 1 2 𝑟 2𝑠−𝑟
= (1) (− 2) + (2) ( ) + 2𝑧. (0) = − 2 =
𝑠 𝑠 𝑠 𝑠 𝑠2
Example:- Show that any differentiable function of the form 𝑤 = 𝑓(𝑠), where
𝑠 = 𝑦 + 𝑎𝑥 , is a solution of the partial differential equation
𝜕𝑤 𝜕𝑤
−𝑎 =0 (𝑎 ≠ 0 constant )
𝜕𝑥 𝜕𝑦
𝜕𝑤 𝑑𝑓 𝜕𝑠 𝑑𝑓
= . =𝑎 ……………… (1)
𝜕𝑥 𝑑𝑠 𝜕𝑥 𝑑𝑠
𝜕𝑤 𝑑𝑓 𝜕𝑠 𝑑𝑓
= . = … … … … … … … (2)
𝜕𝑦 𝑑𝑠 𝜕𝑦 𝑑𝑠
Page 6 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝜕𝑤 𝜕𝑤 𝜕𝑤 𝜕𝑤
=𝑎 ⇒ −𝑎 =0
𝜕𝑥 𝜕𝑦 𝜕𝑥 𝜕𝑦
Solution:-
𝜕𝑓 𝜕𝑓 𝜕𝑢 𝜕𝑓 𝜕𝑣 𝜕𝑓 𝜕𝑤
= . + . + .
𝜕𝑥 𝜕𝑢 𝜕𝑥 𝜕𝑣 𝜕𝑥 𝜕𝑤 𝜕𝑥
𝜕𝑓 𝜕𝑓 𝜕𝑓
= . (1) + . (0) + . (−1) …………………….. (1)
𝜕𝑢 𝜕𝑣 𝜕𝑤
𝜕𝑓 𝜕𝑓
= − … … … … … . . (1)
𝜕𝑢 𝜕𝑤
𝜕𝑓 𝜕𝑓 𝜕𝑢 𝜕𝑓 𝜕𝑣 𝜕𝑓 𝜕𝑤
= . + . + .
𝜕𝑦 𝜕𝑢 𝜕𝑦 𝜕𝑣 𝜕𝑦 𝜕𝑤 𝜕𝑦
𝜕𝑓 𝜕𝑓 𝜕𝑓
. (−1) + . (1) + . (0)
𝜕𝑢 𝜕𝑣 𝜕𝑤
𝜕𝑓 𝜕𝑓 𝜕𝑓
= − … … … … … … . (2)
𝜕𝑦 𝜕𝑣 𝜕𝑢
𝜕𝑓 𝜕𝑓 𝜕𝑢 𝜕𝑓 𝜕𝑣 𝜕𝑓 𝜕𝑤
= . + . + .
𝜕𝑧 𝜕𝑢 𝜕𝑧 𝜕𝑣 𝜕𝑧 𝜕𝑤 𝜕𝑧
𝜕𝑓 𝜕𝑓 𝜕𝑓
. (0) + . (−1) + . (1)
𝜕𝑢 𝜕𝑣 𝜕𝑤
𝜕𝑓 𝜕𝑓 𝜕𝑓
= − … … … … … … (3) sub eqs. 1,2 & 3 in to eq. (*)
𝜕𝑧 𝜕𝑤 𝜕𝑣
Page 7 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝜕𝑓 𝜕𝑓 𝜕𝑓 𝜕𝑓 𝜕𝑓 𝜕𝑓
− + − + − =0
𝜕𝑢 𝜕𝑤 𝜕𝑣 𝜕𝑢 𝜕𝑤 𝜕𝑣
𝜕𝑓 𝜕𝑓 𝜕𝑓
+ + =0
𝜕𝑥 𝜕𝑦 𝜕𝑧
Page 8 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝑢̅ = 𝑢1 𝑖 + 𝑢2 𝑗 + 𝑢3 𝑘.
S = is the parameter, measures the directed distance along this line from 𝑝0 to the
point 𝑝𝑠 (𝑥0 + 𝑠𝑢1 , 𝑦0 + 𝑠𝑢2 , 𝑧0 + 𝑠𝑢3 ).
𝑑𝑓
To calculate , we substitute the derivatives,
𝑑𝑠
𝑑𝑥 𝑑𝑦 𝑑𝑧
= 𝑢1 , = 𝑢2 , = 𝑢3 , in to the equation
𝑑𝑠 𝑑𝑠 𝑑𝑠
𝑑𝑓 𝜕𝑓 𝑑𝑥 𝜕𝑓 𝑑𝑦 𝜕𝑓 𝑑𝑧
= . + . + .
𝑑𝑠 𝜕𝑥 𝑑𝑠 𝜕𝑦 𝑑𝑠 𝜕𝑧 𝑑𝑠
And evaluate the partial derivatives of 𝑓 𝑎𝑡 𝑝0
𝑑𝑓 𝜕𝑓 𝜕𝑓 𝜕𝑓
= ( )𝑝0 𝑢1 + ( )𝑝0 𝑢2 + ( )𝑝0 𝑢3
𝑑𝑠 𝜕𝑥 𝜕𝑦 𝜕𝑧
𝜕𝑓 𝜕𝑓 𝜕𝑓
= [( )𝑝0 𝑖 + ( )𝑝0 𝑗 + ( )𝑝0 𝑘].[𝑢1 𝑖 + 𝑢2 𝑗 + 𝑢3 𝑘]
𝜕𝑥 𝜕𝑦 𝜕𝑧
𝜕𝑓 𝜕𝑓 𝜕𝑓
̅𝑓 = ( )𝑝 𝑖 + ( )𝑝 𝑗 + ( )𝑝 𝑘 This vector is called the gradient of 𝑓
Where ∇ 0𝜕𝑥 0 𝜕𝑦 0 𝜕𝑧
at the point 𝑝0 .
̅ 𝒇)𝒑 . 𝒖
(𝑫𝒖𝒇)𝒑𝟎 = (𝛁 ̅ = Directional derivative (scalar product)
𝟎
̅𝑓 ↓(1,1,0) = 2𝑖 − 2𝑗 − 𝑘
∇
2 3 6
(𝐷𝑢𝑓)𝑝0 = (2𝑖 − 2𝑗 − 𝑘). ( 𝑖 − 𝑗 + 𝑘)
7 7 7
4 6 6
= + −
7 7 7
4
=
7
Example:- Estimate how much 𝑓(𝑥, 𝑦, 𝑧)=x𝑒 𝑦 + 𝑦𝑧 will change if the point
𝑝(𝑥, 𝑦, 𝑧) is moved from 𝑝0 (2,0,0) straight toward 𝑝1 (4,1, −2) a distance of
𝑑𝑠 = 0.1 units
Page 10 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
= 2𝑖 + 𝑗 − 2𝑘
The direction of this vector is :-
̅̅̅̅̅̅
𝑝 0 𝑝1 𝑝0 𝑝1 2
̅̅̅̅̅̅ 1 2
𝑢̅ = = = 𝑖+ 𝑗− 𝑘
|𝑝
̅̅̅̅̅̅|
0 𝑝1 3 3 3 3
The gradient of 𝑓 at 𝑝0 is
̅𝑓 ↓(2,0,0) = (𝑒 𝑦 𝑖 + (𝑥𝑒 𝑦 + 𝑧)𝑗 + 𝑦𝑘) ↓(2,0,0)
∇
= 𝑖 + 2𝑗 .
Therefor,
2 1 2
(𝐷𝑢𝑓)𝑝0 = ∇𝑓 ↓𝑝0 . 𝑢̅ = (𝑖 + 2𝑗). ( 𝑖 + 𝑗 − 𝑘)
3 3 3
2 2 4
= + =
3 3 3
The change 𝑑𝑓 in 𝑓 that results from moving 𝑑𝑠 = 0.1 units a way from 𝑝0 in the
direction of 𝑢̅ is approx.
4
𝑑𝑓 = ∇𝑓 ↓𝑝0 . 𝑢̅ 𝑑𝑠 = (0.1) = 0.13
3
Page 11 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
̅ 𝒇| 𝐜𝐨𝐬(𝝅) = −|𝛁
𝑫𝒖𝒇 = |𝛁 ̅ 𝒇|.
̅ 𝒇|(−𝒖
3- 𝑫𝒖𝒇 = |𝛁 ̅ ) = −𝛁𝒇.𝒖
̅ = −𝑫𝒖𝒇.
̅𝑓| = 2√3
The derivatives of 𝑓 in this direction is |∇
1
The direction of most rapid decrease at (1,1,1) is −𝑢̅ = − (𝑖 + 𝑗 + 𝑘)
√3
̅𝑓| = −2√3
The derivative of 𝑓 in this direction is −|∇
Example:-
Page 12 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
̅𝑓 at (1,1) ,
b) The Function increases most rapidly at (1,1) in the direction of ∇
which is
̅𝑓
∇ 2𝑖 + 2𝑗 2 2 1 1
( ) ↓(1,1) = = 𝑖+ 𝑗= 𝑖+ 𝑗
̅𝑓|
|∇ √22 + 22 √8 √8 √2 √2
̅𝑓 , by
c) The derivative of 𝑓 is zero in the directions perpendicular to ∇
̅𝑓
∇
changing the comps. Of |∇̅
𝑓|
And changing the sign of the new first comp. This gives
1 1
𝑛̅ = − 𝑖+ 𝑗
√2 √2
̅𝑓. 𝑛̅ to see that it is zero
As a check , we calculate ∇
Page 13 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
1 1 2 2
̅𝑓. 𝑛̅ = (2𝑖 + 2𝑗). (−
∇ 𝑖+ 𝑗) = − + =0
√2 √2 √2 √2
The other direction of zero change in 𝑓 at (1,1) is
1 1
−𝑛̅ = 𝑖− 𝑗
√2 √2
Therefore,
1- ̅(2𝑓) = ∇
∇ ̅(2𝑒 𝑥 ) = 2𝑒 𝑥 𝑖 = 2∇ ̅𝑓 ,
2- ̅(𝑓 + 𝑔) = ∇
∇ ̅(𝑒 + 𝑦 − 𝑧) = 𝑒 𝑥 𝑖 + 𝑗 − 𝑘 = ∇
𝑥 ̅𝑓 + ∇
̅𝑔
3- ̅(𝑓𝑔) = ∇
∇ ̅(𝑦𝑒 𝑥 − 𝑧𝑒 𝑥 )
= (𝑦𝑒 𝑥 − 𝑧𝑒 𝑥 )𝑖 + 𝑒 𝑥 𝑗 − 𝑒 𝑥 𝑘
= (𝑦 − 𝑧)𝑒 𝑥 𝑖 + 𝑒 𝑥 (𝑗 − 𝑘)
= 𝑔∇̅𝑓 + 𝑓∇ ̅𝑔
Page 14 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
This a differentiable curve that lies on the surface (𝑠) defined by the equation
𝑓(𝑥, 𝑦, 𝑧) = 𝑐, and that this curve passes through the point 𝑝0 on the surface.
Then 𝑓(𝑥(𝑡), 𝑦(𝑡), 𝑧(𝑡)) = 𝑐 for every value of (t)
Taking the derivative of both sides of the equation for (𝑠) with respect to (t) gives
𝝏𝒇 𝒅𝒙 𝝏𝒇 𝒅𝒚 𝝏𝒇 𝒅𝒛
+ + --------------------------------- (1)
𝝏𝒙 𝒅𝒕 𝝏𝒚 𝒅𝒕 𝝏𝒛 𝒅𝒕
Or
̅ 𝒇. 𝑽
𝛁 ̅ = 𝟎 -------------------------------------------------- (2)
Where 𝑉̅ is the velocity vector of the curve
𝑑𝑥 𝑑𝑦 𝑑𝑧
𝑣̅ = 𝑖+ 𝑗+ 𝑘
𝑑𝑡 𝑑𝑡 𝑑𝑡
̅𝑓 = 𝑓𝑥𝑖 + 𝑓𝑦𝑗 + 𝑓𝑧𝑘
∇
(sub into eq (1) to obtain eq (2))
∴ We define this plane (in step 3) to be the tangent plane of the surface
𝑓 (𝑥, 𝑦, 𝑧) = 𝑐 at the point 𝑝0 .
its eq. is
𝒇𝒙(𝒑𝟎 )(𝒙 − 𝒙𝟎 ) + 𝒇𝒚(𝒑𝟎 )(𝒚 − 𝒚𝟎 ) + 𝒇𝒛(𝒑𝟎 )(𝒛 − 𝒛𝟎 ) = 𝟎 ---------- (3)
The line normal to the surface at 𝑝0 is defined to be the line normal to the
tangent plane at 𝑝0 .
Page 15 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
̅𝑓 may be taken at
Its parametric equations in terms of ∇
𝒙 = 𝒙𝟎 + 𝒇𝒙(𝒑𝟎 )𝒕 , 𝒚 = 𝒚𝟎 + 𝒇𝒚(𝒑𝟎 )𝒕 , 𝒛 = 𝒛𝟎 + 𝒇𝒛(𝒑𝟎 )𝒕 -------------- (4)
Example :-
Find equations for the tangent plane and normal line of the surface 𝑓(𝑥, 𝑦, 𝑧) =
𝑥2 + 𝑦2 + 𝑧 − 9 = 0
(a circular parabola) at the point 𝑝0 (1,2,4).
̅𝑓𝑝 = 2𝑥𝑖 + 2𝑦𝑗 + 𝑘
Solution :- The gradient is ∇ 𝑜
= 2𝑖 + 4𝑗 + 𝑘
The plane is therefore 𝒇𝒙(𝒑𝟎 )(𝒙 − 𝒙𝟎 ) + 𝒇𝒚(𝒑𝟎 )(𝒚 − 𝒚𝟎 ) + 𝒇𝒛(𝒑𝟎 )(𝒛 − 𝒛𝟎 ) = 𝟎
2(𝑥 − 1) + 4(𝑦 − 2) + (𝑧 − 4) = 0
Or 2𝑥 + 4𝑦 + 𝑧 = 14
The line normal to the surface at 𝑝0 is 𝑥 = 1 + 2𝑡 , 𝑦 = 2 + 4𝑡 , 𝑧 =4+𝑡
Example :- Find Parametric equation’s for the line that is tangent to the curve at
the given point of intersection of the surfaces
Page 16 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
̅𝑓 𝑎𝑛𝑑 ∇
Solution :- The tangent line perpendicular to both ∇ ̅𝑔 at 𝑝0 .
̅𝑓 × ∇
The vector 𝑣̅ = ∇ ̅𝑔 will therefore be parallel to the line
̅𝑓 = 2𝑥𝑖 + 2𝑦𝑗 = 2𝑖 + 2𝑗
∇
̅𝑔 = 𝑖 + 𝑘 = 𝑖 + 𝑘 ,
∇
Hence
̅= ∇
∇ ̅𝑓 × ∇
̅𝑔 = (2𝑖 + 2𝑗) × (𝑖 + 𝑘)
𝑖 𝑗 𝑘
=|2 2 0| = 2𝑖 − 2𝑗 − 2𝑘
1 0 1
We have vector parallel and point 𝑝0 (1,1,3). The line is
𝑥 = 1 + 2𝑡, 𝑦 = 1 − 2𝑡 , 𝑧 = 3 − 2𝑡
Page 17 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝑥2
Example:- Find a vector normal to the level curve + 𝑦2 = 2
4
𝑥2
Of the function 𝑓(𝑥, 𝑦) = ( ) + 𝑦 2 at the point 𝑝0 (−2,1).
4
= −𝑖 + 2𝑗
Is normal to the curve at the point (-2,1).
The tangent plane at this point is the line
𝑓𝑥𝑝0 (𝑥 − 𝑥0 ) + 𝑓𝑦𝑝0 (𝑦 − 𝑦0 ) + 𝑓𝑧𝑝0 (𝑧 − 𝑧0 ) = 0
−1(𝑥 + 2) + 2(𝑦 − 1) + 0 = 0
Or – 𝑥 − 2 + 2𝑦 − 2 = 0
Or 2𝑦 − 𝑥 = 4
Or 𝑥 − 2𝑦 = −4
For example
𝑑 3𝑦 2 𝑑2𝑦 5 𝑦
(1) ( ) +( ) + = 𝑒𝑥 (ordinary D.E , order 3rd , degree 2 )
𝑑𝑥 3 𝑑𝑥 2 𝑥 2 +1
Page 18 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝜕2 𝑦 𝜕2 𝑦
(3) = 𝑐2 (Partial D.E. , order 2nd , degree 1 )
𝜕𝑡 2 𝜕𝑥 2
𝝏𝟐 𝒇 𝝏𝟐 𝒇 𝝏𝟐 𝒇 𝝏𝟐 𝒇
, , ,
𝝏𝒙𝟐 𝝏𝒚𝟐 𝝏𝒙𝝏𝒚 𝝏𝒚𝝏𝒙
𝜕2 𝑓 𝜕 𝜕𝑓 𝜕2 𝑓 𝜕 𝜕𝑓
𝜕𝑦𝜕𝑥
= ( ) = − sin 𝑦 + 𝑒 𝑥 ,
𝜕𝑦 𝜕𝑥 𝜕𝑥𝜕𝑦
= ( ) = − sin 𝑦 + 𝑒 𝑥 ,
𝜕𝑥 𝜕𝑦
𝜕2 𝑓 𝜕 𝜕𝑓 𝜕2 𝑓 𝜕 𝜕𝑓
𝜕𝑥 2
= ( ) = 𝑦𝑒 𝑥 ,
𝜕𝑥 𝜕𝑥 𝜕𝑦 2
= ( ) = −𝑥 cos 𝑦
𝜕𝑦 𝜕𝑦
Page 19 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝜕3 𝑓 𝜕 𝜕2 𝑓 𝜕3 𝑓 𝜕 𝜕𝑓
𝜕𝑥 3
= ( ) = 𝑦𝑒 𝑥
𝜕𝑥 𝜕𝑥 2 𝜕𝑦 3
= ( ) = 𝑥 sin 𝑦
𝜕𝑦 𝜕𝑦 2
𝜕3 𝑓 𝜕 𝜕2 𝑓 𝜕3 𝑓 𝜕 𝜕2 𝑓
𝜕𝑦𝜕𝑥 2
= ( ) = 𝑒𝑥
𝜕𝑦 𝜕𝑥 2 𝜕2 𝑥𝜕𝑦
= (
𝜕𝑥 𝜕𝑥𝜕𝑦
) = 𝑒𝑥
If 𝑓(𝑥, 𝑦) and its partial derivative 𝑓𝑥 , 𝑓𝑦 , 𝑓𝑥𝑦 , 𝑓𝑦𝑥 are defined in a region
containing a point (𝑎, 𝑏) and are all continuous at (𝑎, 𝑏), then
𝒇𝒙𝒚 (𝒂, 𝒃) = 𝒇𝒚𝒙 (𝒂, 𝒃)
𝜕 𝜕𝑧 𝜕 𝜕 𝜕𝑦 𝜕 𝜕 𝜕
∴ 𝑧𝑥𝑦 = ( ) = 𝜕𝑦 (𝑓𝑢 + 𝑦𝑓𝑣 ) = 𝜕𝑦 𝑓𝑢 + 𝜕𝑦 𝑓𝑣 + 𝑦 𝜕𝑦 𝑓𝑣 = 𝜕𝑦 (𝑓𝑢 ) + 𝑦 𝜕𝑦 𝑓𝑣 +
𝜕𝑦 𝜕𝑥
𝑓𝑣 , ---------------------------------------------------------------------------------------- (2)
We use the chain rule again to calculate the two reaming derivative
𝜕 𝜕𝑢 𝜕𝑣
(𝑓𝑢 ) = 𝑓𝑢𝑢 + 𝑓𝑢𝑣 = 𝑓𝑢𝑢 (1) + 𝑓𝑢𝑣 (𝑥) ----------------------------------- (3)
𝜕𝑦 𝜕𝑦 𝜕𝑦
Page 20 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝜕 𝜕𝑢 𝜕𝑣
(𝑓𝑣 ) = 𝑓𝑣𝑢 + 𝑓𝑣𝑣 = 𝑓𝑣𝑢 (1) + 𝑓𝑣𝑣 (𝑥) ------------------------------------ (4)
𝜕𝑦 𝜕𝑦 𝜕𝑦
i) 𝑓 has a local maximum at (𝑎, 𝑏) if 𝒇𝒙𝒙 < 𝟎 and 𝒇𝒙𝒙 𝒇𝒚𝒚 − 𝒇𝟐 𝒙𝒚 > 𝟎
at (𝑎, 𝑏):
Page 21 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
ii) 𝑓 has a local minimum at (𝑎, 𝑏) if 𝒇𝒙𝒙 > 𝟎 and 𝒇𝒙𝒙 𝒇𝒚𝒚 − 𝒇𝟐 𝒙𝒚 > 𝟎
at (𝑎, 𝑏),
we must find some other way to determine the behavior of 𝑓 at (𝑎, 𝑏).
The expression
𝒇𝒙𝒙 𝒇𝒙𝒚
𝒇𝒙𝒙 𝒇𝒚𝒚 − 𝒇𝒙𝒚 𝟐 = | | is called Discriminant
𝒇𝒚𝒙 𝒇𝒚𝒚
Page 22 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝑓𝑥 = 𝑦 − 2𝑥 − 2 = 0 , 𝑓𝑦 = 𝑥 − 2𝑦 − 2 = 0 ⇒ 𝑥 = 2𝑦 + 2
6
𝑦 − 4𝑦 − 4 − 2 = 0 ⇒ 𝑦= = −2 , 𝑥 = −2
−3
And 𝑓𝑥𝑥 = −2 , 𝑓𝑦𝑦 = −2 , 𝑓𝑥𝑦 = 1
Page 23 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
3- On the segment 𝑨𝑩 , 𝒚 = 𝟗 − 𝒙
We have already accounted for the values of 𝑓 at the endpoint of 𝐴𝐵 , so we
have only to look at the interior point of 𝐴𝐵
𝑓(𝑥, 𝑦) = 2 + 2𝑥 + 2(9 − 𝑥) − 𝑥 2 − (9 − 𝑥)2 = −61 + 18𝑥 − 2𝑥 2
Setting
18 9
𝑓 ′ (𝑥, 9 − 𝑥) = 18 − 4𝑥 = 0 ⇒ 𝑥 = =
4 2
9 9 9 9 41
At this value of 𝑥 = 𝑦 = 9 − = , ⇒ 𝑓(𝑥, 𝑦) = 𝑓 ( , ) = −
2 2 2 2 2
The derivative is defined at every value of 𝑡 and equals to zero, when cos 2𝑡 = 0.
𝝅 𝟑𝝅 𝝅 𝟑𝝅
On the domain 𝟎 ≤ 𝒕 ≤ 𝝅, this means 𝟐𝒕 = , ⇒ 𝒕= , the candidates
𝟐 𝟐 𝟒 𝟒
for the extreme values of 𝑓.
On the curve are therefore critical point values:-
𝜋 𝜋 𝜋 𝜋
𝑓 ( ) = 6 cos sin = 3 sin = 3
4 4 4 2
3𝜋 3𝜋 3𝜋 3𝜋
𝑓 ( ) = 6 cos sin = 3 sin ( ) = −3
4 4 4 2
Page 25 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝑓(𝜋) = 3 sin 2𝜋 = 0
3𝜋 3𝜋 −3√2
And an absolute minimum value of -3 at the point 3 cos , 2 sin )=( , √2)
4 4 2
Example:- Find the point 𝑝(𝑥, 𝑦, 𝑧) on the plane 2𝑥 + 𝑦 − 𝑧 = 0 that lies closest
to origin
̅̅̅̅| = √(𝑥 − 0)2 + (𝑦 − 0)2 + (𝑧 − 0)2
Solution:- |𝑂𝑃
10−4𝑥
𝑦= sub. In (1)
4
20
5 10− 5
10𝑥 + 10 − 4𝑥 = 20 ⇒ 6𝑥 = 10 ⇒ 𝑥 = ⇒ 𝑦= 3
⇒ 𝑦=
3 4 6
We have min.
But – there are no points on the surface where both 𝑥 & 𝑦 are Zero. What went
Wrong ?
Page 27 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
𝑘(𝑦, 𝑧) = (𝑧 2 + 1) + 𝑦 2 + 𝑧 2 = 1 + 𝑦 2 + 2𝑧 2
𝑘𝑦 = 2𝑦 = 0 , 𝑘𝑧 = 2𝑧 = 0 ⇒ 𝑦=𝑧=0
⇒ 𝑥 2 = 𝑧 2 + 1 = 1 ⇒ 𝑥 = ∓1
Page 28 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
Theorem:- Suppose that 𝑓(𝑥, 𝑦, 𝑧) and its first partial derivatives are continuous
on a region that contains the differentiable
𝐶: 𝑅(𝑡) = 𝑥(𝑡) + 𝑦(𝑡)𝑗 + 𝑧(𝑡)𝑘
If 𝑝0 is a point on 𝐶 where 𝑓 has a local maximum or minimum relative to its
values,
̅𝑓 is perpendicular to 𝐶 at 𝑝0
∇
Page 29 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
Example:- Find the greatest and smallest values that the function 𝑓(𝑥, 𝑦) = 𝑥𝑦
𝑥2 𝑦2
takes on the ellipse + =1
8 2
So that if 𝑦 = 0 or 𝜆2 = 4 , 𝝀 = ∓𝟐
Case 1:- If 𝑦 = 0, then 𝑥=𝑦=0
But the point (0,0) is not on the ellipse
Hence, 𝑦 ≠ 0
Case 2 :- If 𝑦 ≠ 0 , then 𝜆 = ∓2 , and 𝑥 = ∓2𝑦
(∓2𝑦)2 𝑦2
Substituting this in the equation 𝑔(𝑥, 𝑦) = 0 gives + =1
8 2
4𝑦 2 𝑦2
Or + =1
8 2
Or 4𝑦 2 + 4𝑦 2 = 8 or 𝑦 2 = 1, 𝑦 = ∓1
At 𝑦 = 1 ⇒ 𝑥 = ∓2
At 𝑦 = −1 ⇒ 𝑥 = ∓2
Page 30 semanizam@uokirkuk.edu.iq
Mathematics II Partial Differentiation 2nd Year
The function (𝑥, 𝑦) = 𝑥𝑦 , takes an extreme values on the ellipse at the four points
(∓2,1), (∓2, −1)
The extreme values are 𝑥𝑦 = 2 & 𝑥𝑦 = −2
𝑔(𝑥, 𝑦) = 0 𝑥2 + 𝑦2 − 1 = 0
3 = 𝜆2𝑥 , 4 = 𝜆2𝑦
3 2
𝑥= , 𝑦= ⇒ the gradient eq. implies that sub. The above
2𝜆 𝜆
values in eq. ⇒
3 2 2 9 4
( )2 + ( ) = 1 Or + =1 Or 9 + 16 = 4𝜆2
2𝜆 𝜆 4𝜆2 𝜆2
𝟓
Or 4𝜆2 = 25 ⇒ 𝝀 = ∓ ,
𝟐
Thus
3 3 2 4
𝑥= =∓ , 𝑦= =∓
2𝜆 5 𝜆 5
And
3 4
𝑓(𝑥, 𝑦) = 3𝑥 + 4𝑦 has extreme values at the points (𝑥, 𝑦) = ∓( , )
5 5
(There are only two points instead of four because 𝑥 & 𝑦 have the same sign)
3 4 3 4 25
⇒ 𝑓( , ) = 3( ) + 4( ) = =5 Max
5 5 5 5 5
3 4 3 4 25
& ⇒ 𝑓 (− , − ) = 3 (− ) + 4 (− ) = − = −5 Min
5 5 5 5 5
Page 31 semanizam@uokirkuk.edu.iq