Lecture Note-Calculus of Function of Several Variables-2024
Lecture Note-Calculus of Function of Several Variables-2024
Note: It is often written as 𝑧 = 𝑓(𝑥, 𝑦) to make explicit the value taken on by 𝑓 at the general
point (𝑥, 𝑦). The variables 𝑥 and 𝑦 are independent variables and is the dependent variable.
Definition: Limit
Let 𝑓 be a function of two variables whose domain 𝐷 includes points arbitrarily close to (𝑎, 𝑏).
Then we say that the limit of 𝒇(𝒙, 𝒚) as (𝒙, 𝒚) approaches (𝒂, 𝒃) is 𝐿 and we write
lim 𝑓(𝑥, 𝑦) = 𝐿
(𝑥,𝑦)→(𝑎,𝑏)
if for every number 𝜀 > 0 there is a corresponding number 𝛿 > 0 such that
|𝑓(𝑥, 𝑦) − 𝐿| < 𝜀 whenever (𝑥, 𝑦) ∈ 𝐷 and 0 < √(𝑥 − 𝑎)2 + (𝑦 − 𝑏)2 < 𝛿.
if for every number 𝜀 > 0 there is a corresponding number 𝛿 > 0 such that
|𝑓(𝑥, 𝑦, 𝑧) − 𝐿| < 𝜀 whenever (𝑥, 𝑦, 𝑧) ∈ 𝐷 and 0 < √(𝑥 − 𝑎)2 + (𝑦 − 𝑏)2 + (𝑧 − 𝑐)2 < 𝛿.
3𝑥 2 𝑦
Example 1: Show that lim =0
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
𝑥2 3𝑥 2 |𝑦|
Since 𝑦 2 ≥ 0 and 𝑥 2 ≤ 𝑥 2 + 𝑦 2 , we have 𝑥 2 +𝑦 2 ≤ 1, then 𝑥 2 +𝑦 2 ≤ 3|𝑦| = 3√𝑦 2 ≤ 3√𝑥 2 + 𝑦 2
𝜀
Thus, if we choose 𝛿 = 3 and let 0 < √𝑥 2 + 𝑦 2 < 𝛿, then
3𝑥 2 𝑦 𝜀
| 2 2
− 0| ≤ 3√𝑥 2 + 𝑦 2 ≤ 3𝛿 = 3 ( ) = 𝜀
𝑥 +𝑦 3
Hence, by definition of limit,
3𝑥 2 𝑦
lim =0
(𝑥,𝑦)→(0,0) 𝑥 2 + 𝑦 2
𝑥 3 +𝑦 3 7
Example 2: Show that lim = 5.
(𝑥,𝑦)→(−1,2) 𝑥 2 +𝑦 2
𝑥
Example 3: Find the limit lim ln (𝑦).
(𝑥,𝑦)→(𝑒,1)
𝑥 3 +𝑦 3 7
Example 4: Show that lim = 5.
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
𝑥 3 +𝑦 3 𝑥3
{Hint: Apply Squeeze theorem with 0 ≤ |𝑥 2 +𝑦 2| ≤ |𝑥 2 | ≤ |𝑥|.}
Note: If 𝑓(𝑥, 𝑦) ⟶ 𝐿1 as (𝑥, 𝑦) ⟶ (𝑎, 𝑏) along a path 𝐶1 and 𝑓(𝑥, 𝑦) ⟶ 𝐿2 as (𝑥, 𝑦) ⟶ (𝑎, 𝑏)
along a path 𝐶2 , where 𝐿1 ≠ 𝐿2 , then lim 𝑓(𝑥, 𝑦) does not exist.
(𝑥,𝑦)→(𝑎,𝑏)
𝑥 2 −𝑦 2
Example 5: Show that lim does not exist.
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
𝑥 2 −𝑦 2
Solution: Let 𝑓(𝑥, 𝑦) = 𝑥 2 +𝑦 2
𝑥2
- Let’s approach (0,0) along the 𝑥-axis. Then 𝑦 = 0 gives 𝑓(𝑥, 0) = 𝑥 2 = 1 for all 𝑥 ≠ 0,
so 𝑓(𝑥, 𝑦) ⟶ 1 as (𝑥, 𝑦) ⟶ (0,0) along the 𝑥-axis.
−𝑦 2
- Let’s approach (0,0) along the 𝑦-axis. Then 𝑥 = 0 gives 𝑓(0, 𝑦) = = −1 for all 𝑦 ≠
𝑦2
0, so 𝑓(𝑥, 𝑦) ⟶ −1 as (𝑥, 𝑦) ⟶ (0,0) along the 𝑦-axis.
3𝑦 2 3
- Let’s approach (0,0) along the line 𝑥 = 2𝑦, then we have 𝑓(2𝑦, 𝑦) = 5𝑦 2 = 5 for all 𝑦 ≠
3
0, so 𝑓(𝑥, 𝑦) ⟶ 5 as (𝑥, 𝑦) ⟶ (0,0) along the line 𝑥 = 2𝑦.
Since 𝑓 has different limits along different lines, the given limit does not exist.
Solution:
0
- Let’s approach (0,0) along the 𝑥-axis. Then 𝑦 = 0 gives 𝑓(𝑥, 0) = 𝑥 2 = 0 for all 𝑥 ≠ 0,
so 𝑓(𝑥, 𝑦) ⟶ 0 as (𝑥, 𝑦) ⟶ (0,0) along the 𝑥-axis.
0
- Let’s approach (0,0) along the 𝑦-axis. Then 𝑥 = 0 gives 𝑓(0, 𝑦) = 𝑦 2 = 0 for all 𝑦 ≠ 0,
so 𝑓(𝑥, 𝑦) ⟶ −1 as (𝑥, 𝑦) ⟶ (0,0) along the 𝑦-axis.
- Although we have obtained identical limits along the axes, that does not show that the
given limit is 0. Let’s now approach along another line, say 𝑦 = 𝑥, then we have
𝑥2 1 1
𝑓(𝑥, 𝑥) = = for all 𝑥 ≠ 0, so 𝑓(𝑥, 𝑦) ⟶ as (𝑥, 𝑦) ⟶ (0,0) along the line 𝑦 = 𝑥.
2𝑥 2 2 2
Since we have obtained different limits along different paths, the given limit does not exist.
𝑥𝑦 2
Example 7: If 𝑓(𝑥, 𝑦) = 𝑥 2 +𝑦 2, does lim 𝑓(𝑥, 𝑦) exist?
(𝑥,𝑦)→(0,0)
Solution:
- Let’s approach (0,0) along any non-vertical line through the origin. Then 𝑦 = 𝑚𝑥,
𝑚2 𝑥
where 𝑚 is the slope. Then 𝑦 = 𝑚𝑥 gives 𝑓(𝑥, 𝑚𝑥) = 1+𝑚4 𝑥 2 = 0, so 𝑓(𝑥, 𝑦) ⟶ 0 as
(𝑥, 𝑦) ⟶ (0,0) along the line 𝑦 = 𝑚𝑥.
- Thus, 𝑓 has the same limiting value along every non-vertical line through the origin. But
that does not show that the given limit is 0, for if we now let (𝑥, 𝑦) ⟶ (0,0) along the
𝑦4 1 1
parabola 𝑥 = 𝑦 2 , we have 𝑓(𝑦 2 , 𝑦) = 2𝑦 4 = 2 for all 𝑦 ≠ 0, so 𝑓(𝑥, 𝑦) ⟶ 2 as (𝑥, 𝑦) ⟶
(0,0) along 𝑥 = 𝑦 2.
Since different paths lead to different limiting values, the given limit does not exist.
Note:
(i) The Squeeze Theorem also holds for limits of functions of several variables.
(ii) lim 𝑥 = 𝑎 lim 𝑦 = 𝑏 & lim 𝑐 = 𝑐
(𝑥,𝑦)→(𝑎,𝑏) (𝑥,𝑦)→(𝑎,𝑏) (𝑥,𝑦)→(𝑎,𝑏)
𝜕𝑓 𝑓(𝑎 + ℎ, 𝑏) − 𝑓(𝑎, 𝑏)
(𝑎, 𝑏) = lim
𝜕𝑥 ℎ→0 ℎ
𝜕𝑓
And the partial derivative of 𝒇 at (𝒂, 𝒃) with respect to 𝒚 , denoted by 𝜕𝑦 (𝑎, 𝑏), is
defined as
𝜕𝑓 𝑓(𝑎, 𝑏 + ℎ) − 𝑓(𝑎, 𝑏)
(𝑎, 𝑏) = lim
𝜕𝑦 ℎ→0 ℎ
Note: The symbol 𝝏 is pronounced “𝒅𝒆𝒍”.
Solution:
(𝑥+ℎ)𝑦
𝜕𝑓 𝑓(𝑥 + ℎ, 𝑦) − 𝑓(𝑥, 𝑦) ((𝑥 + ℎ)𝑦 + 𝑒 ) − (𝑥𝑦 + 𝑒 𝑥𝑦 )
= lim = lim
𝜕𝑥 ℎ→0 ℎ ℎ→0 ℎ
ℎ𝑦
𝑒 −1
= 𝑦 + 𝑒 𝑥𝑦 lim = 𝑦 + 𝑦𝑒 𝑥𝑦
ℎ→0 ℎ
𝜕𝑓 𝑓(𝑥, 𝑦 + ℎ) − 𝑓(𝑥, 𝑦) (𝑥(𝑦 + ℎ) + 𝑒 𝑥(𝑦+ℎ) ) − (𝑥𝑦 + 𝑒 𝑥𝑦 )
= lim = lim
𝜕𝑦 ℎ→0 ℎ ℎ→0 ℎ
ℎ𝑥
𝑒 −1
= 𝑥 + 𝑒 𝑥𝑦 lim = 𝑥 + 𝑥𝑒 𝑥𝑦
ℎ→0 ℎ
Example 3:
𝑥 3 𝑦−𝑥𝑦 3
, (𝑥, 𝑦) ≠ (0,0)
Example 4: Let𝑓(𝑥, 𝑦) = { 𝑥 2 +𝑦 2
0 , (𝑥, 𝑦) = (0,0)
Show that 𝑓𝑥 (0,0) = 𝑓𝑦 (0,0) = 0. .
Solution:
𝜕𝑓 𝑓(0 + ℎ, 0) − 𝑓(0,0) 0−0
(0,0) = lim = lim =0
𝜕𝑥 ℎ→0 ℎ ℎ→0 ℎ − 0
Similarly,
𝜕𝑓 𝑓(0, 0 + ℎ) − 𝑓(0,0) 0−0
(0,0) = lim = lim =0
𝜕𝑦 ℎ→0 ℎ ℎ→0 ℎ − 0
Partial Derivatives and Continuity: A function 𝑓(𝑥, 𝑦) can have partial derivatives with
respect to both 𝑥 and 𝑦 at a point without the function being continuous there. This is different
from functions of a single variable, where the existence of a derivative implies continuity.
Example 7: For the function as shown below, both partial derivatives exist at (0,0) but
discontinuous at (0,0).
Solution: 𝑓𝑥 (0,0) = 𝑓𝑦 (0,0) = 0. But lim 𝑓(𝑥, 𝑦) = 0 ≠ 1 = 𝑓(0,0), implying that 𝑓 is
(𝑥,𝑦)→(0,0)
discontinuous at (0,0).
Continuity of Partial Derivatives Implies Differentiability
If the partial derivatives 𝑓𝑥 and 𝑓𝑦 of a function𝑓(𝑥, 𝑦) are continuous throughout an open
region R, then 𝑓is differentiable at every point of R.
Caution: Notice that the order in which 𝑥 and 𝑦 appear in the expression 𝑓𝑥𝑦 is opposite to
𝜕2 𝑓
the order in which they appear in :
𝜕𝑦𝜕𝑥
𝜕 2𝑓 𝜕 𝜕𝑓
= ( ) 𝑎𝑛𝑑 𝑓𝑥𝑦 = (𝑓𝑥 )𝑦
𝜕𝑦𝜕𝑥 𝜕𝑦 𝜕𝑥
In general, for a function of 𝑛-variables given by 𝑓: 𝐷 ⊆ ℝ𝑛 → ℝ , 𝑤 = 𝑓(𝑥1 , 𝑥2 , ⋯ , 𝑥𝑘 , ⋯ , 𝑥𝑛 )
The 2nd order partial derivatives of 𝑓 is denoted by
𝜕 2𝑓
𝑓𝑥𝑖 𝑥𝑗 = , 1 ≤ 𝑖, 𝑗 ≤ 𝑛
𝜕𝑥𝑗 𝜕𝑥𝑖
The 3rd order partial derivatives of 𝑓 is denoted by
𝜕 3𝑓
𝑓𝑥𝑖 𝑥𝑗𝑥𝑘 = , 1 ≤ 𝑖, 𝑗, 𝑘 ≤ 𝑛
𝜕𝑥𝑘 𝜕𝑥𝑗 𝜕𝑥𝑖
Note:
𝜕 𝜕 𝜕𝑓 𝜕3 𝑓
𝑓𝑥𝑦𝑧 = 𝜕𝑧 (𝜕𝑦 (𝜕𝑥 )) = 𝜕𝑧𝜕𝑦𝜕𝑥
𝜕4 𝑓
𝑓𝑦𝑦𝑦𝑥 = 𝜕𝑥𝜕𝑦 3
𝜕5 𝑓
𝑓𝑥𝑥𝑦𝑦𝑦 = 𝜕𝑦 3 𝜕𝑥 2
Example 10:
Example 11: Let 𝑓(𝑥, 𝑦) = sin(𝑥𝑦 2 ). Find all second order partial derivatives of 𝑓.
Solution: 𝑓𝑥𝑥 = −𝑦 4 sin(𝑥𝑦 2 ) , 𝑓𝑥𝑦 = 2𝑦 cos(𝑥𝑦 2 ) − 2𝑥𝑦 3 sin(𝑥𝑦 2 ),
𝑓𝑦𝑥 = 2𝑦 cos(𝑥𝑦 2 ) − 2𝑥𝑦 3 sin(𝑥𝑦 2 ) and 𝑓𝑦𝑦 = 2𝑥 cos(𝑥𝑦 2 ) − 4𝑥 2 𝑦 2 sin(𝑥𝑦 2 ).
Example 12: Let 𝑓(𝑥, 𝑦, 𝑧) = 1 − 2𝑥𝑦 2 𝑧 + 𝑥 2 𝑦. Find 𝑓𝑦𝑥𝑦 and 𝑓𝑦𝑥𝑦𝑧 .
Solution: 𝑓𝑦𝑥𝑦 = −4𝑧, 𝑓𝑦𝑥𝑦𝑧 = 4 .
Example 13:
Theorem: Let R be a rectangle consisting of all points (𝑥, 𝑦) for which 𝑎 ≤ 𝑥 ≤ 𝑏 and 𝑐 ≤ 𝑦 ≤
𝑑. Suppose that 𝑓 is a function of two variables defined on R such that 𝑓 and 𝑓𝑥 are continuous
𝑑
on R. Then ∫𝑐 𝑓(𝑥, 𝑦)𝑑𝑦 is a differentiable function of 𝑥, and
𝑑 𝑑 𝑑
𝜕𝑓
∫ 𝑓(𝑥, 𝑦)𝑑𝑦 = ∫ (𝑥, 𝑦)𝑑𝑦
𝑑𝑥 𝑐 𝑐 𝜕𝑥
𝑑 2 𝑒 𝑥𝑦
Example 17: Find 𝑑𝑥 ∫1 𝑑𝑦
𝑦
𝑑 2 𝑒 𝑥𝑦 2 𝜕 𝑒 𝑥𝑦 2 𝑒 𝑥𝑦 2 1
Solution: 𝑑𝑥 ∫1 𝑑𝑦 = ∫1 ( ) 𝑑𝑦 = ∫1 𝑒 𝑥𝑦 𝑑𝑦 = | = 𝑥 (𝑒 2𝑥 − 𝑒 𝑥 )
𝑦 𝜕𝑥 𝑦 𝑥 1
𝑑𝑤
Example 1: Let 𝑤 = 𝑥 2 𝑒 𝑦 , 𝑥 = sin 𝑡 and 𝑦 = 𝑡 3 . Find 𝑑𝑡
𝑑𝑤 𝜕𝑤 𝑑𝑥 𝜕𝑤 𝑑𝑦 3 3
Solution: = + 𝜕𝑦 = 2𝑥𝑒 𝑦 cos 𝑡 + 𝑥 2 𝑒 𝑦 (3𝑡 2 ) = 2(sin 𝑡)𝑒 𝑡 cos 𝑡 + 3𝑡 2 (sin 𝑡)2 𝑒 𝑡
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝑑𝑡
𝜕𝑧 𝜕𝑧
Example 3: Let 𝑧 = 𝑥 ln 𝑦 , 𝑥 = 𝑢2 + 𝑣 2 and 𝑦 = 𝑢2 − 𝑣 2 . Find 𝜕𝑢 and 𝜕𝑣
𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦 𝑥 𝑢2 +𝑣 2
Solution: 𝜕𝑢 = 𝜕𝑥 𝜕𝑢 + 𝜕𝑦 𝜕𝑢 = (ln 𝑦)(2𝑢) + (𝑦) (2𝑢) = 2𝑢 ln(𝑢2 − 𝑣 2 ) + 2𝑢 𝑢2 −𝑣2
𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦 𝑥 2 2
𝑢2 + 𝑣 2
= + = (ln 𝑦)(2𝑣) + ( ) (−2𝑣) = 2𝑣 ln(𝑢 − 𝑣 ) − 2𝑣 2
𝜕𝑣 𝜕𝑥 𝜕𝑣 𝜕𝑦 𝜕𝑣 𝑦 𝑢 − 𝑣2
Example 4:
𝜕𝑧 𝜕𝑧
Exercise: Let 𝑧 = 𝑓(𝑢 − 𝑣, 𝑣 − 𝑢). Show that 𝜕𝑢 + 𝜕𝑣 = 0.
𝜕𝑧 𝜕𝑧
Exercise: Let 𝑧 = 𝑓(𝑠 2 − 𝑡 2 , 𝑡 2 − 𝑠 2 ). Show that 𝑡 𝜕𝑠 + 𝑠 𝜕𝑡 = 0.
𝑑𝑧
Exercise: If 𝑧 = 𝑥 2 𝑦 + 3𝑥𝑦 4 where 𝑥 = sin 2𝑡 and 𝑦 = cos 𝑡. Find .
𝑑𝑡
𝜕𝑤 𝜕𝑤
Exercise: If 𝑤 = 𝑒 𝑥 sin 𝑦 + 3𝑥𝑦 4 where 𝑥 = 𝑠𝑡 2 and 𝑦 = 𝑠 2 𝑡. Find and .
𝜕𝑠 𝜕𝑡
Case2: 𝑥 = 𝑔(𝑟, 𝑠), 𝑦 = ℎ(𝑟, 𝑠) and 𝑧 = 𝑘(𝑟, 𝑠)are differentiable functions of 𝑡, then 𝑤 =
𝑓(𝑥, 𝑦) = 𝑓(𝑔(𝑟, 𝑠), ℎ(𝑟, 𝑠), 𝑘(𝑟, 𝑠)) is differentiable function of 𝑡 and
𝜕𝑤 𝜕𝑤 𝜕𝑤 𝜕𝑤 𝜕𝑦 𝜕𝑤 𝜕𝑧 𝜕𝑤 𝜕𝑤 𝜕𝑤 𝜕𝑤 𝜕𝑦 𝜕𝑤 𝜕𝑧
= + + 𝑎𝑛𝑑 = + +
𝜕𝑟 𝜕𝑥 𝜕𝑟 𝜕𝑦 𝜕𝑟 𝜕𝑦 𝜕𝑟 𝜕𝑠 𝜕𝑥 𝜕𝑠 𝜕𝑦 𝜕𝑠 𝜕𝑦 𝜕𝑠
𝑑𝑤
Example 5: Let 𝑤 = 𝑥 cos 𝑦𝑧 2 , 𝑥 = sin 𝑡 , 𝑦 = 𝑡 2 and 𝑧 = 𝑒 𝑡 . Find 𝑑𝑡
𝑑𝑤 𝜕𝑤 𝑑𝑥 𝜕𝑤 𝑑𝑦 𝜕𝑤 𝑑𝑧
Solution: = + 𝜕𝑦 +
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝑑𝑡 𝜕𝑧 𝑑𝑡
𝑑𝑤
⇒ = cos 𝑦𝑧 2 (𝑐𝑜𝑠𝑡 𝑡) − 𝑥𝑧 2 (sin 𝑦𝑧 2 )(2𝑡) − 2𝑥𝑦𝑧(sin 𝑦𝑧 2 )(𝑒 𝑡 )
𝑑𝑡
= cos(𝑡 2 𝑒 2𝑡 ) (𝑐𝑜𝑠𝑡 𝑡) − 2𝑡𝑒 2𝑡 sin 𝑡 (sin(𝑡 2 𝑒 2𝑡 ))(2𝑡) − 2𝑡 2 𝑒 2𝑡 (sin(𝑡 2 𝑒 2𝑡 ))
𝜕𝑤 𝜕𝑤
Example 7: 𝑤 = √𝑥 + 𝑦 2 𝑧 3 , 𝑥 = 1 + 𝑢2 + 𝑣 2 , 𝑦 = 𝑢𝑣, 𝑧 = 3𝑢, 𝑓𝑖𝑛𝑑 𝑎𝑛𝑑 .
𝜕𝑢 𝜕𝑣
𝜕𝑤 𝜕𝑤
Example 8: 𝑤 = 𝑥 2 𝑦 + 𝑦𝑒 𝑧 , 𝑥 = 𝑠 + 𝑡, 𝑦 = 𝑠𝑡 3 , 𝑧 = 𝑠 3 + 3𝑡 2 , 𝑓𝑖𝑛𝑑 𝜕𝑟 𝑎𝑛𝑑 𝜕𝑠 .
Example 9: Suppose that 𝑤 = 𝑓(𝑥, 𝑦), 𝑥 = 𝑔(𝑢, 𝑣), 𝑦 = ℎ(𝑢, 𝑣), 𝑢 = 𝑗(𝑡) and 𝑣 = 𝑘(𝑡). Find a
𝑑𝑤
formula for .
𝑑𝑡
Solution:
𝑑𝑤 𝜕𝑤 𝜕𝑥 𝑑𝑢 𝜕𝑤 𝜕𝑥 𝑑𝑣 𝜕𝑤 𝜕𝑦 𝑑𝑢 𝜕𝑤 𝜕𝑦 𝑑𝑣
= + + +
𝑑𝑡 𝜕𝑥 𝜕𝑢 𝑑𝑡 𝜕𝑥 𝜕𝑣 𝑑𝑡 𝜕𝑦 𝜕𝑢 𝑑𝑡 𝜕𝑦 𝜕𝑣 𝑑𝑡
𝜕𝑤 𝜕𝑤
Example 10: If 𝑤 = 𝑓(𝑥) and 𝑥 = 𝑔(𝑟, 𝑠). Find a formula for 𝜕𝑟 𝑎𝑛𝑑 .
𝜕𝑠
Solution:
𝜕𝑤 𝑑𝑤 𝜕𝑥 𝜕𝑤 𝑑𝑤 𝜕𝑥
= 𝑎𝑛𝑑 =
𝜕𝑟 𝑑𝑥 𝜕𝑟 𝜕𝑠 𝑑𝑥 𝜕𝑠
b. 𝑤 = 𝑥𝑦 + 𝑦𝑧 + 𝑥𝑧, 𝑥 = 𝑢 + 𝑣, 𝑦 = 𝑢 − 𝑣 𝑎𝑛𝑑 𝑧 = 𝑢𝑣
c. 𝑤 = 𝑥 2 − 2𝑦 − 7𝑧, 𝑥 = 𝑣 cos(𝜋 − 𝑢) , 𝑦 = 𝑢 sin(𝜋 − 𝑣) 𝑎𝑛𝑑 𝑧 = 𝑢𝑣
𝑥 𝑧
ln 𝑢 ln 𝑢
d. 𝑤 = 𝑒 𝑦 + 𝑒 𝑥 , 𝑥 = , 𝑦 = ln 𝑢 𝑎𝑛𝑑 𝑧 =
𝑣 𝑢𝑣
e. 𝑤 = ln(𝑥 + 𝑦 + 𝑧 ) , 𝑥 = 𝑢𝑒 sin 𝑢 , 𝑦 = 𝑢𝑒 𝑣 cos 𝑢 𝑎𝑛𝑑 𝑧 = 𝑢𝑒 𝑣
2 2 2 𝑣
𝜕𝐹 𝜕𝐹
𝜕𝑧 𝐹𝑥 𝜕𝑧 𝜕𝑦 𝐹𝑦
= − 𝜕𝑥 = − 𝑎𝑛𝑑 =− =−
𝜕𝑥 𝜕𝐹 𝐹𝑧 𝜕𝑦 𝜕𝐹 𝐹𝑧
𝜕𝑧 𝜕𝑧
𝑑𝑦
Example 1: If 𝑥 3 + 𝑦 3 = 6𝑥𝑦. Find 𝑑𝑥 .
𝑑𝑦 3𝑥 2 −6𝑦
Solution: 𝐹(𝑥, 𝑦) = 𝑥 3 + 𝑦 3 − 6𝑥𝑦, 𝐹𝑥 = 3𝑥 2 − 6𝑦 and 𝐹𝑦 = 3𝑦 2 − 6𝑥, then 𝑑𝑥 = − 3𝑦 2 −6𝑥
𝜕𝑧 𝜕𝑧
Example 2: If 𝑥 3 + 𝑦 3 + 𝑧 3 + 6𝑥𝑦𝑧 = 1. Find 𝜕𝑥 and 𝜕𝑦
𝜕𝑧 𝑥 2 +2𝑦𝑧 𝜕𝑧 𝑦 2 +2𝑥𝑧
Solution: 𝜕𝑥 = − 𝑧 2 +2𝑥𝑦 and 𝜕𝑦 = − 𝑧 2 +2𝑥𝑦
𝑑𝑤
Example 3: Suppose that 𝑤 = 𝑓(𝑥, 𝑦) and 𝑦 = 𝑔(𝑥). Find a formula for .
𝑑𝑥
𝑑𝑤 𝜕𝑤 𝜕𝑤 𝑑𝑦
Solution: = + 𝜕𝑦 𝑑𝑥 .
𝑑𝑥 𝜕𝑥
Exercise:
𝑑𝑦
1. By using implicit differentiation find 𝑑𝑥 if 𝑦 2 − 𝑥 2 − sin(𝑥𝑦) = 0.
𝑑𝑦
2. Find 𝑑𝑥 | if 𝑥𝑒 𝑦 + sin(𝑥𝑦) + 𝑦 − ln 2 = 0.
(0, ln 2)
𝜕𝑧 𝜕𝑧
3. Find 𝜕𝑥 𝑎𝑛𝑑 if
𝜕𝑦
a) 𝑦𝑧 − ln 𝑧 = 𝑥 + 𝑦
1 1 1
b) +𝑦+𝑧 =0
𝑥
c) sin(𝑥 + 𝑦) + sin(𝑦 + 𝑧) + sin(𝑥 + 𝑧) = 0 𝑎𝑡 (𝜋, 𝜋, 𝜋)
d) 𝑥𝑒 𝑦 + 𝑦𝑒 𝑧 + ln 𝑥 − 3 ln 2 = 0 𝑎𝑡 (1, ln 2 , ln 3)
1 2 1 2
Solution: |𝑢| = √( ) + ( ) = 1 it is a unit vector, then
√2 √2
1 1
𝑓 (1 + ℎ, 2 + ℎ) − 𝑓(1, 2)
𝐷𝑢 𝑓(1, 2) = lim √2 √2
ℎ→0 ℎ
2 2
1 1
(1 + ℎ) + (2 + ℎ) − (12 + 22 )
= lim √2 √2
ℎ→0 ℎ
2 1 4 1
(1 + ℎ + ℎ2 ) + (4 + ℎ + ℎ2 ) − 5
√2 2 √2 2 3√2ℎ + ℎ2
= lim = lim = 3√2
ℎ→0 ℎ ℎ→0 ℎ
Theorem:
If 𝑓 is a differentiable function of 𝑥 and 𝑦, then has a directional derivative in the direction of
any unit vector 𝑢 = 〈𝑢1 , 𝑢2 〉 = 𝑢1 𝑖̂ + 𝑢2 𝑗̂ and
𝐷𝑢 𝑓(𝑥, 𝑦) = 𝑓𝑥 (𝑥, 𝑦)𝑢1 + 𝑓𝑦 (𝑥, 𝑦)𝑢2
1 1
Example 2: Find the derivative of 𝑓(𝑥, 𝑦) = 6 − 3𝑥 2 − 𝑦 2 and 𝑢 = 𝑖̂ − 𝑗̂. Find
√2 √2
𝐷𝑢 𝑓(1,2).
Solution: 𝑓𝑥 (𝑥, 𝑦) = −6𝑥 and 𝑓𝑦 (𝑥, 𝑦) = −2𝑦. Therefore, 𝑓𝑥 (1,2) = −6 and 𝑓𝑦 (1,2) = −4. So
1 1 6 4
𝐷𝑢 𝑓(1,2) = 𝑓𝑥 (1,2) ( ) + 𝑓𝑦 (1,2) (− )=− + = −√2
√2 √2 √2 √2
Note: The directional derivatives of 𝑓(𝑥, 𝑦, 𝑧) in the direction of unit vector 𝒂 = 𝑎1 𝑖̂ + 𝑎2 𝑗̂ +
𝑎3 𝑘̂, is given by:
𝐷𝑢 𝑓(𝑥, 𝑦, 𝑧) = 𝑓𝑥 (𝑥, 𝑦, 𝑧)𝑎1 + 𝑓𝑦 (𝑥, 𝑦, 𝑧)𝑎2 + 𝑓𝑧 (𝑥, 𝑦, 𝑧)𝑎3
2
Example 3: Let 𝑓(𝑥, 𝑦, 𝑧) = 𝑥𝑒 𝑦 𝑧 and let 𝒂 = 𝑖̂ + 𝑗̂ + √2𝑘̂. Find the derivative of 𝑓 at (2,1,0)
𝒂
in the direction of 𝒂. [Hint: first find the unit vector 𝑢 = ‖𝒂‖]
2. In which direction does the function 𝑓(𝑥, 𝑦) = 𝑥𝑦 2 + 𝑥 3 𝑦 increase the fastest from the
point (1 , 2)? In which direction does it decrease the fastest?
4. Is there a direction 𝑢
⃗ in which the rate of change of 𝑓(𝑥, 𝑦) = 𝑥 2 − 3𝑥𝑦 + 4𝑦 2 at (1 , 2)
equals 14?
Exercise
Exersice: Find the tangent plane and normal line of the following surfaces at the given points.
1. 𝑥 2 + 𝑦 2 + 𝑧 − 9 = 0 , at 𝑃0 = (1, 2, 4).
2. 𝑧 2 − 2𝑥 2 − 2𝑦 2 − 12 = 0 , at 𝑃0 = (1, −1, 4).
3. 𝑧 = 𝑥 cos 𝑦 − 𝑦𝑒 𝑥 , at 𝑃0 = (0, 0, 0).
4. 𝑥𝑦𝑧 = 12 , at 𝑃0 = (2, −2, −3).
To estimate the change in the value of a function 𝑓 when we move a small distance 𝑑𝑠 from a
point 𝑃0 in a particular direction 𝑢 , use the formula
𝑑𝑓 = (∇𝑓(𝑃0 ) ∙ 𝑢)𝑑𝑠
Example 4: Estimate how much the value of 𝑓(𝑥, 𝑦) = 𝑥𝑒 𝑦 will cahnge if the point 𝑃(𝑥, 𝑦)
moves 0.1 unit from 𝑃0 = (2, 0) straight toward 𝑃1 = (4, 1).
Solution: 𝑑𝑠 = 0.1
⃗⃗⃗⃗⃗⃗⃗⃗
𝑃0 𝑃1 = 2𝑖 + 𝑗
⃗⃗⃗⃗⃗⃗⃗⃗
𝑃0 𝑃1 2 1
𝑢= = 𝑖+ 𝑗
⃗⃗⃗⃗⃗⃗⃗⃗
|𝑃 0 𝑃1 | √5 √5
∇𝑓(2, 0) = (𝑒 𝑦 𝑖̂ + 𝑥𝑒 𝑦 𝑗̂)| = 𝑖̂ + 2 𝑗̂
(2, 0)
4
∇𝑓(2, 0) ∙ 𝑢 =
√5
Then
4
𝑑𝑓 = (∇𝑓(2, 0) ∙ 𝑢)𝑑𝑠 = ( ) (0.1) units.
√5
𝑥2 𝑥2
𝑑𝑓 = 𝑓𝑥 (𝑥, 𝑦)𝑑𝑥 + 𝑓𝑦 (𝑥, 𝑦)𝑑𝑦 + 𝑓𝑧 (𝑥, 𝑦)𝑑𝑧 = 2𝑥 ln(𝑦 − 𝑧) 𝑑𝑥 + 𝑑𝑦 − 𝑑𝑧
𝑦−𝑧 𝑦−𝑧
Example 3: An isoseles tiangle 𝑇 has dimensions as shown below. Approximatly what change
occures in the area of 𝑇 if the length of the equal sides are increased by 1𝑚𝑚 and the vertex
angle increased by 0.04 𝑟𝑎𝑑.
𝜋
3𝑐𝑚 6 3𝑐𝑚
Solution:
1 2
𝐴(𝑥, 𝜃) = 𝑥 sin 𝜃
2
𝜋 𝜋
𝑥0 = 3, 𝜃0 = , ∆𝑥 = 0.1𝑐𝑚 ∆𝜃 = 0.04 𝑟𝑎𝑑 𝑎𝑛𝑑 𝑃0 = (3, )
6 6
𝜕𝐴 𝜕𝐴
𝑑𝐴 = 𝑑𝑥 + 𝑑𝜃
𝜕𝑥 𝜕𝜃
𝜕𝐴 𝜋 𝜕𝐴 𝜋
⇒ 𝑑𝐴 = (3, ) (0.1𝑐𝑚) + (3, ) (0.04 𝑟𝑎𝑑) = 0.306𝑐𝑚2
𝜕𝑥 6 𝜕𝜃 6
Solution: 𝐿(𝑥, 𝑦) = 4𝑥 − 𝑦 − 2
Example 2: Approximate the following numbers
a) √(4.05)2 + (2.93)2
Solution: Put 𝑓(𝑥, 𝑦) = √𝑥 2 + 𝑦 2 and find 𝐿 at (4, 3)
b) √(3.02)2 + (4.03)2 + (11.98)2
Solution: Put 𝑓(𝑥, 𝑦, 𝑧) = √𝑥 2 + 𝑦 2 + 𝑧 2 and find 𝐿 at (3, 4, 12)
c) (1.02)3.01
Solution: Put 𝑓(𝑥, 𝑦) = 𝑥 𝑦 and find 𝐿 at (1, 3)
Exercise
𝐴(9, 0)
𝑦=9−𝑥
𝑂(0, 0) 𝐵(9, 0)
Exercise:
1.
2.
Example 2:
Example 4:
12. The temperature of a point (𝑥, 𝑦, 𝑧) on the unit sphere is given by 𝑇(𝑥, 𝑦, 𝑧) = 𝑥𝑦 + 𝑦𝑧.
What is the hottest point on the sphere?
𝑠𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑔(𝑥, 𝑦) = 𝑐
1) Find all values of 𝑥, 𝑦 𝑎𝑛𝑑 𝜆 such that
𝑓𝑥 (𝑥, 𝑦) = 𝜆 𝑔𝑥 (𝑥, 𝑦)
∇𝑓(𝑥, 𝑦) = 𝜆 ∇𝑔(𝑥, 𝑦) 𝑎𝑛𝑑
{ ⇒ {𝑓𝑦 (𝑥, 𝑦) = 𝜆 𝑔𝑦 (𝑥, 𝑦) 𝑎𝑛𝑑
𝑔(𝑥, 𝑦) = 𝑐
𝑔(𝑥, 𝑦) = 𝑐
2) Evaluate 𝑓 at all points (𝑥, 𝑦) that results from step (1). The largest of these values is the
maximum value of 𝑓; the smallest is the minimum value of 𝑓.
Note:
For functions of three variables
𝑀𝑎𝑥./𝑀𝑖𝑛. 𝑓(x, y, z)
𝑠𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑔(𝑥, 𝑦, 𝑧) = 𝑐
1) Find all values of 𝑥, 𝑦, 𝑧 𝑎𝑛𝑑 𝜆 such that
𝑓𝑥 (𝑥, 𝑦, 𝑧) = 𝜆 𝑔𝑥 (𝑥, 𝑦, 𝑧)
∇𝑓(𝑥, 𝑦, 𝑧) = 𝜆 ∇𝑔(𝑥, 𝑦, 𝑧) 𝑎𝑛𝑑 𝑓𝑦 (𝑥, 𝑦, 𝑧) = 𝜆 𝑔𝑦 (𝑥, 𝑦, 𝑧)
{ ⇒
𝑔(𝑥, 𝑦, 𝑧) = 𝑐 𝑓𝑧 (𝑥, 𝑦, 𝑧) = 𝜆 𝑔𝑧 (𝑥, 𝑦, 𝑧) 𝑎𝑛𝑑
{ 𝑔(𝑥, 𝑦, 𝑧) = 𝑐
2) Evaluate 𝑓 at all points (𝑥, 𝑦, 𝑧) that results from step (1). The largest of these values is
the maximum value of 𝑓; the smallest is the minimum value of 𝑓.
For functions of three variables with two constraints
𝑀𝑎𝑥./𝑀𝑖𝑛. 𝑓(x, y, z)
𝑠𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑔(𝑥, 𝑦, 𝑧) = 𝑐1
ℎ(𝑥, 𝑦, 𝑧) = 𝑐1
Find all values of 𝑥, 𝑦, 𝑧 𝑎𝑛𝑑 𝜆 such that
𝑓𝑥 (𝑥, 𝑦, 𝑧) = 𝜆1 𝑔𝑥 (𝑥, 𝑦, 𝑧) + 𝜆2 ℎ𝑥 (𝑥, 𝑦, 𝑧)
𝑓𝑦 (𝑥, 𝑦, 𝑧) = 𝜆1 𝑔𝑦 (𝑥, 𝑦, 𝑧) + 𝜆2 ℎ𝑦 (𝑥, 𝑦, 𝑧)
⇒ 𝑓𝑧 (𝑥, 𝑦, 𝑧) = 𝜆1 𝑔𝑧 (𝑥, 𝑦, 𝑧) + 𝜆2 ℎ𝑧 (𝑥, 𝑦, 𝑧)
𝑔(𝑥, 𝑦, 𝑧) = 𝑐1 𝑎𝑛𝑑
{ ℎ(𝑥, 𝑦, 𝑧) = 𝑐2
Example 2:
6𝑥 = 𝜆(2𝑥)
∇𝑓(𝑥, 𝑦) = 𝜆 ∇𝑔(𝑥, 𝑦)
{ ⇒ { 4𝑦 = 𝜆(2𝑦)
𝑔(𝑥, 𝑦) = 𝑐
𝑥 2 + 𝑦 2 = 16
2𝑥(3 − 𝜆) = 0
⇒ { 2(2 − 𝜆) = 2 ⇒ 𝑥 = 0 𝑜𝑟 𝜆 = 3
𝑥 2 + 𝑦 2 = 16
So the critical points are (0, 4), (0, −4), (√12, −2)𝑎𝑛𝑑 (−√12, 2).
𝑓𝑥 = 6𝑥 = 0
{ ⇒ 𝑥 = 0 𝑎𝑛𝑑 𝑦 = 1
𝑓𝑦 = 4𝑦 − 4 = 0
The critical point is (0, 1) and it is in the interior. Finally, calculate
𝑓(0, 4) = 17, 𝑓(0, −4) = 49, 𝑓(√12, −2) = 𝑓 (−√12, 2) = 53 𝑎𝑛𝑑 𝑓(0,1) = −1
Hence,
𝑓𝑚𝑎𝑥 = 53 𝑎𝑡 (√12, −2)𝑎𝑛𝑑 (−√12, 2)
𝑓𝑚𝑖𝑛 = −1 𝑎𝑡 (0, 1)
Remark:
For inequality constraint
𝑀𝑎𝑥./𝑀𝑖𝑛. 𝑓(x, y)
𝑠𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑔(𝑥, 𝑦) ≤ 𝑐
Find all values of 𝑥, 𝑦 𝑎𝑛𝑑 𝜆 satisfying
i. ∇𝑓(𝑥, 𝑦) = 𝜆 ∇𝑔(𝑥, 𝑦)
ii. 𝜆 ∇𝑔(𝑥, 𝑦) = 0
iii. 𝑔(𝑥, 𝑦) ≤ 𝑐
iv. 𝜆≥0
Condition (ii) is known as complementary slackness conditions (i.e. 𝜆 𝑎𝑛𝑑 ∇𝑔(𝑥, 𝑦) cannot be
non-negative at the same time).
a) b)
c) d)
e)
7.
8.
9.
10
.
11
.