Module Partial Derivatives
Module Partial Derivatives
Let 𝑓(𝑥, 𝑦) be a function of two independent variables 𝑥 and 𝑦. The first-order partial derivative of
𝑓(𝑥, 𝑦) with respect to 𝑥 (treating 𝑦 as constant) is denoted by
𝜕𝑓(𝑥, 𝑦) 𝜕𝑓
, , 𝑓𝑥 (𝑥, 𝑦) or 𝑓𝑥
𝜕𝑥 𝜕𝑥
and is defined as
𝜕𝑓(𝑥, 𝑦) 𝑓(𝑥 + ℎ, 𝑦) − 𝑓(𝑥, 𝑦)
= 𝑓𝑥 = lim
𝜕𝑥 ℎ→0 ℎ
provided that the limit exists.
Similarly, the first-order partial derivative of 𝑓(𝑥, 𝑦) with respect to 𝑦 (treating 𝑥 as constant) is denoted
by
𝜕𝑓(𝑥, 𝑦) 𝜕𝑓
, , 𝑓𝑦 (𝑥, 𝑦) or 𝑓𝑦
𝜕𝑦 𝜕𝑦
and is defined as
𝜕𝑓(𝑥, 𝑦) 𝑓(𝑥, 𝑦 + 𝑘) − 𝑓(𝑥, 𝑦)
= 𝑓𝑦 = lim
𝜕𝑦 𝑘→0 𝑘
provided that the limit exists.
𝑓(𝑥, 𝑦) = 𝑥 3 + 𝑦 2 + 2𝑥𝑦 − 2𝑥 − 3𝑦 + 5.
Hence, we have
𝜕𝑓 𝜕 𝜕 𝜕 𝜕 𝜕 𝜕
𝜕𝑥
= 𝜕𝑥 (𝑥 3 ) + 𝑦 2 𝜕𝑥 (1) + 2𝑦 𝜕𝑥 (𝑥) − 2 𝜕𝑥 (𝑥) − 3𝑦 𝜕𝑥 (1) + 5 𝜕𝑥 (1)
= 3𝑥 2 + 0 + 2𝑦 − 2 − 0 + 0
= 3𝑥 2 + 2𝑦 − 2.
𝜕𝑓
Similarly, since we are now looking 𝜕𝑦, we will treat 𝑥 as a constant and re-write the function as
𝑓(𝑥, 𝑦) = 𝑥 3 + 𝑦 2 + 2𝑥𝑦 − 2𝑥 − 3𝑦 + 5.
= 0 + 2𝑦 + 2𝑥 − 0 − 3 + 0
= 2𝑦 + 2𝑥 − 3.
𝜕𝑓 𝜕𝑓
Example 2: Let 𝑓(𝑥, 𝑦) = 2𝑥 2 𝑦 − 4𝑥 2 𝑦 2 + 5𝑥𝑦 2 . Find 𝜕𝑥
and 𝜕𝑦.
Solution: In this solution, we will skip the part of rewriting the function. Instead, we immediately find
the partial derivatives, keeping in mind that that we hold the other variable constant.
𝜕𝑓
= 2𝑦(2𝑥) − 4𝑦 2 (2𝑥) + 5𝑦 2 (1)
𝜕𝑥
= 4𝑥𝑦 − 8𝑥𝑦 2 + 5𝑦 2 .
𝜕𝑓
= 2𝑥 2 (1) − 4𝑥 2 (2𝑦) + 5𝑥(2𝑦)
𝜕𝑦
= 2𝑥 2 − 8𝑥 2 𝑦 + 10𝑥𝑦.
When given a function with three variables, say 𝑓(𝑥, 𝑦, 𝑧) we can find the partial derivatives with
respect to 𝑥, 𝑦 and 𝑧 by treating 𝑦 and 𝑧, 𝑥 and 𝑧, and 𝑥 and 𝑦 as constants.
Solution:
𝜕𝑓
= −2𝑦 4 𝑧 5 (3𝑥 2 ) + 3𝑦 2 (2𝑥) − 4𝑧 2 (3𝑥 2 ) + 5𝑦 4 𝑧 4 (0)
𝜕𝑥
= −10𝑥 3 𝑦 4 𝑧 4 − 8𝑥 3 𝑧 + 20𝑦 4 𝑧 3 .
2
Example 4: Find all the first-order partial derivative of 𝑓(𝑥, 𝑦, 𝑧) = −2𝑥 −2 + 𝑦 2 𝑧1/3 .
3
Solution:
1
𝜕𝑓 2
𝜕𝑥
= −2(−2𝑥 −3 ) + 3 𝑦 2 𝑧 3 (0)
= −4𝑥 −3 .
𝜕𝑓 2 1
= −2𝑥 −2 (0) + 𝑧 3 (2𝑦)
𝜕𝑦 3
1
4
= 3 𝑦𝑧 3 .
2
𝜕𝑓 2 1
𝜕𝑦
= −2𝑥 −2 (0) + 3 𝑦 2 (3 𝑧 −3 )
2
2
= 𝑦 2 𝑧 −3 .
9
3
Example 6. Find 𝑓𝑥 , 𝑓𝑦 and 𝑓𝑧 when 𝑓(𝑥, 𝑦, 𝑧) = √2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧.
Solution: We employ the chain rule for each partial derivative. We first rewrite our function as
1
𝑓(𝑥, 𝑦, 𝑧) = (2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧)3 .
Hence,
2
1
𝑓𝑥 = 3 (2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧)−3 [2(2𝑥) − 3𝑦 3 𝑧 −2 (0) + 4𝑦 2 𝑧(4𝑥 3 )]
2
1
= (2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧)−3 (4𝑥 + 16𝑥 3 𝑦 2 𝑧).
3
2
1
𝑓𝑦 = 3 (2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧)−3 [2𝑥 2 (0) − 3𝑧 −2 (3𝑦 2 ) + 4𝑥 4 𝑧(2𝑦)]
2
1
= 3 (2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧)−3 (−9𝑦 2 𝑧 −2 + 8𝑥 4 𝑦𝑧).
2
1
𝑓𝑧 = 3 (2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧)−3 [2𝑥 2 (0) − 3𝑦 3 (−2𝑧 −3 ) + 4𝑥 4 𝑦 2 (1)]
2
1
= 3 (2𝑥 2 − 3𝑦 3 𝑧 −2 + 4𝑥 4 𝑦 2 𝑧)−3 (6𝑦 3 𝑧 −3 + 4𝑥 4 𝑦 2 ).
Just as with functions on a single variable, we can find second order partial derivative. However, the
variable for which the partial derivative is being calculated still needs to be specified. Then, the other
variable(s) will be again treated as constant.
𝜕 𝜕 𝜕 2 𝑓(𝑥, 𝑦)
(𝑓𝑥 (𝑥, 𝑦)), (𝑓𝑥 ), or 𝑓𝑥𝑥
𝜕𝑥 𝜕𝑥 𝜕𝑥 2
and is defined on the point (𝑎, 𝑏) as
𝜕 2 𝑓(𝑥, 𝑦) 𝑓𝑥 (𝑎 + ℎ, 𝑏) − 𝑓𝑥 (𝑎, 𝑏)
[ 2
] = 𝑓𝑥𝑥 (𝑎, 𝑏) = lim ,
𝜕𝑥 (𝑎,𝑏)
ℎ→0 ℎ
𝜕 𝜕 𝜕 2 𝑓(𝑥, 𝑦)
(𝑓𝑦 (𝑥, 𝑦)) , (𝑓𝑦 ), or 𝑓𝑦𝑦
𝜕𝑦 𝜕𝑦 𝜕𝑦 2
and is defined on the point (𝑎, 𝑏) as
𝜕 𝜕 𝜕 2 𝑓(𝑥, 𝑦)
(𝑓 (𝑥, 𝑦)), (𝑓 ), or 𝑓𝑦𝑥
𝜕𝑦 𝑥 𝜕𝑦 𝑥 𝜕𝑦𝜕𝑥
and is defined on the point (𝑎, 𝑏) as
𝜕 𝜕 𝜕 2 𝑓(𝑥, 𝑦)
(𝑓 (𝑥, 𝑦)) , (𝑓𝑦 ), or 𝑓𝑥𝑦
𝜕𝑥 𝑦 𝜕𝑥 𝜕𝑥𝜕𝑦
and is defined on the point (𝑎, 𝑏) as
𝜕 2 𝑓(𝑥, 𝑦) 𝑓𝑦 (𝑎 + ℎ, 𝑏) − 𝑓𝑦 (𝑎, 𝑏)
[ ] = 𝑓𝑥𝑦 (𝑎, 𝑏) = lim ,
𝜕𝑥𝜕𝑦 (𝑎,𝑏) ℎ→0 ℎ
In summary, for a function of two variables, there are four second-order partial derivatives namely,
𝑓𝑥𝑥 , 𝑓𝑦𝑦 , 𝑓𝑦𝑥 and 𝑓𝑥𝑦 .
𝜕 𝜕 𝜕 𝜕
𝑓𝑦𝑦 = 𝜕𝑦 (2𝑦 + 2𝑥 − 3) = 2 𝜕𝑦 (𝑦) + 2𝑥 𝜕𝑦 (1) − 3 𝜕𝑦 (1)
= 2(1) + 2𝑥(0) − 3(0)
= 2.
𝜕 𝜕 𝜕 𝜕
𝑓𝑦𝑥 = 𝜕𝑦 (3𝑥 2 + 2𝑦 − 2) = 3𝑥 2 𝜕𝑦 (1) + 2 𝜕𝑦 (𝑦) − 2 𝜕𝑦 (1)
= 3𝑥 2 (0) + 2(1) − 2(0)
= 2.
𝜕 𝜕 𝜕 𝜕
𝑓𝑥𝑦 = (2𝑦 + 2𝑥 − 3) = 2𝑦 (1) + 2 (𝑥) − 3 (1)
𝜕𝑥 𝜕𝑥 𝜕𝑥 𝜕𝑥
= 2𝑦(0) + 2(1) − 3(0)
= 2.
Solution: To be able to find the second-order partial derivatives, we first need to find the first-order
partial derivatives.
We can also find the second-order partial derivatives for a function in three variables. Let 𝑓(𝑥, 𝑦, 𝑧) be a
function in three variables. Then, 𝑓𝑥 , 𝑓𝑦 , and 𝑓𝑧 are the first-order partial derivatives. The second-order
partial derivatives are
𝜕 𝜕 𝜕
𝑓𝑥𝑥 = (𝑓 ) 𝑓𝑦𝑥 = (𝑓 ) 𝑓𝑧𝑦 = (𝑓 )
𝜕𝑥 𝑥 𝜕𝑦 𝑥 𝜕𝑧 𝑦
𝜕 𝜕 𝜕
𝑓𝑦𝑦 = 𝜕𝑦 (𝑓𝑦 ) 𝑓𝑧𝑥 = 𝜕𝑧 (𝑓𝑥 ) 𝑓𝑥𝑧 = 𝜕𝑥 (𝑓𝑧 )
𝜕 𝜕 𝜕
𝑓𝑧𝑧 = 𝜕𝑧 (𝑓𝑧 ) 𝑓𝑥𝑦 = 𝜕𝑥 (𝑓𝑦 ) 𝑓𝑦𝑧 = 𝜕𝑦 (𝑓𝑧 )
Solution: To be able to find the second-order partial derivatives, we first need to find the first-order
partial derivatives.