GEG 311 - 3 Calculus of Several Variablespdf2
GEG 311 - 3 Calculus of Several Variablespdf2
𝜕𝑧 f x + ∆x, y − f(𝑥, 𝑦)
= lim
𝜕𝑥 ∆x→0 ∆x
𝜕𝑧 f x, y + ∆y − f(𝑥, 𝑦)
= lim
𝜕𝑦 ∆y→0 ∆y
PARTIAL DERIVATIVES
Find the partial derivative of the multivariable function such
that,
𝑧 = [3𝑦 2 ]. 𝑥 2
𝜕𝑧 2
𝑑 2
= 𝑧𝑥 = 3𝑦 . 𝑥
𝜕𝑥 𝑑𝑥
= 6𝑥𝑦 2
Similarly,
𝜕𝑧 2
𝑑 3
= 𝑧𝑦 = 3𝑥 . 𝑦
𝜕𝑦 𝑑𝑦
= 9𝑥 2 𝑦 2
PARTIAL DERIVATIVES
Exercises: Find the partial derivatives for the following;
(i) 𝑧 = 5𝑥 3 − 3𝑥 2 𝑦 2 + 7𝑦 5
(ii) z= 2𝑥 3 𝑦 2 𝑐𝑜𝑠𝑥𝑦
(iii) z=6𝑒 𝑥𝑦
SECOND-ORDER PARTIAL DERIVATIVES
Meaning that the function has been partially differentiated
w.r.t one of the independent variable twice while the other
is held constant. For, 𝑧 = 𝑓(𝑥, 𝑦)
𝜕 𝜕𝑧 𝜕2𝑧
𝑓𝑥𝑥 = (𝑓𝑥 )𝑥 = ( )= 2
𝜕𝑥 𝜕𝑥 𝜕𝑥
Similarly, 𝜕 𝜕𝑧 𝜕2𝑧
𝑓𝑦𝑦 = (𝑓𝑦 )𝑦 = ( )= 2
𝜕𝑦 𝜕𝑦 𝜕𝑦
and for cross (or mixed) partial derivatives,
𝜕 𝜕𝑧 𝜕2𝑧
𝑓𝑥𝑦 = (𝑓𝑥 )𝑦 = ( )=
𝜕𝑦 𝜕𝑥 𝜕y𝜕𝑥
and
𝜕 𝜕𝑧 𝜕2𝑧
𝑓𝑦𝑥 = (𝑓𝑦 )𝑥 = ( )=
𝜕𝑥 𝜕𝑦 𝜕x𝜕𝑦
SECOND-ORDER PARTIAL DERIVATIVES
Examples: Find (a) first, (b) second, and (c) cross partial
derivatives for;
𝑖 𝑧 = 7𝑥 3 − 9𝑥 2 𝑦 2 + 2𝑦 5
(ii) z= 3𝑥 2 𝑦 3 ,
and evaluate their values at x=4,y=1
Solution:
𝜕𝑧
(i) (a) = 21𝑥 2 − 18𝑥𝑦 2 ; 𝜕𝑧 = −18𝑦𝑥 2 + 10𝑦 4
𝜕𝑥 𝜕𝑦
(b) 𝜕2 𝑧 𝜕2 𝑧
= 42x-18 𝑦2; = -18 𝑥 2 + 40𝑦 3 ;
𝜕𝑥 2 𝜕𝑦 2
𝜕2 𝑧 𝜕
(c) = (21𝑥 2 − 18𝑥𝑦 2 )=-36xy;
𝜕𝑥𝜕𝑦 𝜕𝑦
𝜕2 𝑧 𝜕
= (−18𝑦𝑥 2 + 10𝑦 4 )=-36xy;
𝜕𝑦𝜕𝑥 𝜕𝑥
SECOND-ORDER PARTIAL DERIVATIVES
Solution continues:
(ii)(a) (𝜕𝑧 )(4,1) = [6𝑥𝑦 3 ](4,1) = 24;
𝜕𝑥
𝜕𝑧
( )(4,1) = [9𝑥 2 𝑦 2 ](4,1) = 144
𝜕𝑦
𝜕2 𝑧
(b) ( 2 )(4,1) = [6𝑦 3 ](4,1) = 6;
𝜕𝑥
𝜕2 𝑧
( 2 )(4,1) = [18𝑥 2 𝑦 2 ](4,1) = 288;
𝜕𝑦
𝜕 𝜕𝑧
(c) ( )(4,1) = [18𝑥𝑦 2 ](4,1) = 72;
𝜕𝑦 𝜕𝑥
𝜕 𝜕𝑧
( ) = [18𝑥𝑦 2 ](4,1) = 72;
𝜕𝑥 𝜕𝑦 (4,1)
SECOND-ORDER PARTIAL DERIVATIVES
Exercises: Find (a) first, (b) second, and (c) cross partial
derivatives for;
𝑖 𝑧 = (2𝑥 3 +9𝑥 2 𝑦 2 )5
(ii) z= 3𝑥 0.3 𝑦 0.5
(3𝑥+11𝑦)3
(iii) z=
2𝑥}6𝑦
TOTAL AND PARTIAL DIFFERENTIAL
Differential of a function: For a function given by
y = 4𝑥 3 + 5𝑥 2 − 7
𝑑𝑦
Then, = 12𝑥 2 + 10𝑥;
𝑑𝑥
Therefore, the differential can be written as,
dy= 12𝑥 2 + 10𝑥 dx
Total and Partial Differentials
If 𝐳 = f x, y , the total differential dz is expressed as,
dz= 𝑧𝑥 dx + 𝑧𝑦 dy
𝑥−𝑦
Example: Given z =
𝑥+1
TOTAL AND PARTIAL DIFFERENTIAL
𝑥−𝑦
Solution: z =
𝑥+1
−10 0 1 𝑥1 −10
0 −4 2 𝑥2 = −4
1 2 −8 𝑥3 0
Solving,
𝑥ҧ 1 1.04
𝑥ҧ 2 = 1.22
𝑥ҧ 3 0.43
Now, the second partial derivatives − the Hessian - is
−10 0 1
𝐇 = 0 −4 2
1 2 −8
𝑇ℎ𝑖𝑠 𝑖𝑠 ℎ𝑎𝑣𝑖𝑛𝑔 𝑡ℎ𝑒 𝑠𝑎𝑚𝑒 𝑒𝑙𝑒𝑚𝑒𝑛𝑡𝑠𝑎𝑠 𝑖𝑛 𝑡ℎ𝑒 𝐽𝑎𝑐𝑏𝑖𝑎𝑛.
HIGHER-ORDER HESSIANS
Finally, applying the Hessian test, i.e.
𝐻1 =−10 <0,
−10 0
𝐻2 = >0
0 −4
𝐻3 = 𝐇 = −276<0
Since the principal minors alternate correctly in sign, the Hessian
is negative definite and the function is maximized at 𝑥ҧ 1= 1.04,ഥ𝑥2=
1.22, andഥ𝑥3= 0.43.
CONSTRAINED OPTIMIZTION - BORDERED HESSIANS
To optimize a function f(x, y) subject to a constraint g(x, y), we form
a new function F x, y, 𝜇 = f x, y + 𝜇[𝑘 − 𝑔 𝑥, 𝑦 ],where the first-
order conditions are 𝐹𝑥 = 𝐹𝑦 = 𝐹𝜇 = 0.
The second-order conditions can be expressed in terms of bordered
Hessian 𝐇ഥ,
𝐹𝑥𝑥 𝐹𝑥𝑦 𝑔𝑥 0 𝑔𝑥 𝑔𝑦
ഥ = 𝐹𝑦𝑥
𝐇 𝐹𝑦𝑦 𝑔𝑦 or 𝑔𝑥 𝐹𝑥𝑥 𝐹𝑥𝑦
𝑔𝑥 𝑔𝑦 0 𝑔𝑦 𝐹𝑦𝑥 𝐹𝑦𝑦
𝐹𝑥𝑥 𝐹𝑥𝑦
which is simply the plain Hessian
𝐹𝑦𝑥 𝐹𝑦𝑦
bordered by the 1st-derivatives of the constraint with zero
on the principal diagonal.
CONSTRAINED OPTIMIZTION - BORDERED HESSIANS
For a function of 𝑛 variables 𝑓(𝑥1, 𝑥2, … , 𝑥𝑛), subject to
g 𝑥1, 𝑥2, … , 𝑥𝑛 , 𝐹 𝐹 𝑔
11 12 ⋯ 1
𝐹21 𝐹22 ⋯ 𝑔2
ഥ = −−
𝐇 −− −−
𝐹𝑛1 𝐹𝑛2 ⋯ 𝑔𝑛
𝑔1 𝑔2 ⋯ 0
where 𝐇 ഥ = 𝐻 ഥ 𝑛 , because of the 𝑛 × 𝑛 principal minor being
bordered.
ഥ2 , 𝐻
If all the principal minors are negative, i.e., if 𝐻 ഥ 3 , . . ., 𝐻ഥ 𝑛 <0,
the bordered Hessian is positive definite, and satisfies the sufficient
condition for a relative minimum. If the principal minors alternate
ഥ 2 >0, 𝐻
consistently in sign from positive to negative, i.e., if 𝐻 ഥ 3 <0,
𝐻ഥ 4 >0, etc., the bordered Hessian is negative definite, and satisfies
the sufficient condition for a relative maximum.