18 2 Partial Derivs
18 2 Partial Derivs
18 2 Partial Derivs
Introduction
When a function of more than one independent input variable changes in one or more of the
input variables it is important to calculate the change in the function itself. If we hold all but
one of the variables constant and find the rate of change of the function with respect to the
remaining variable, then this process is called partial differentiation.
In this section we show how to carry out the process.
f (x, 3) = x3 + 6x2 + 9 + 2x + 1.
In effect, we now have a function of x only. If we differentiate it with respect to x we obtain the
expression:
3x2 + 12x + 0 + 2 + 0 ≡ 3x2 + 12x + 2.
We say that f has been differentiated partially with respect to x. We denote the partial derivative
of f with respect to x by ∂f
∂x
(to be read as ‘partial dee f by dee x’ ). In this particular example,
when y = 3:
∂f
= 3x2 + 12x + 2.
∂x
In the same way if y is held at the value 4 then f (x, 4) = x3 + 8x2 + 16 + 2x + 1 and so, for this
value of y
∂f
= 3x2 + 16x + 2.
∂x
If y = c, a general constant then
f (x, c) = x3 + 2x2 c + c2 + 2x + 1
f (x, y) = x3 + 2x2 y + y 2 + 2x + 1
and treat y as a constant then the process of partial differentiation with respect to x gives
∂f
= 3x2 + 4xy + 0 + 2 = 3x2 + 4xy + 2.
∂x
HELM (VERSION 1: March 18, 2004): Workbook Level 1 2
18.2: Partial Derivatives
Key Point
Example Find ∂f
∂x
for
(a) f (x, y) = x3 + x + y 2 + y, (b) f (x, y) = x2 y + xy 3 .
Solution
∂f ∂f
(a) ∂x
= 3x2 + 1 + 0 + 0 (b) ∂x
= 2x.y + 1.y 3
Key Point
Example Find ∂f
∂y
for
(a) f (x, y) = x3 + x + y 2 + y
(b) f (x, y) = x2 y + xy 3
Solution
(a) ∂f
∂y
= 0 + 0 + 2y + 1 (b) ∂f
∂y
= x2 × 1 + x × 3y 2 = x2 + 3xy 2
Strictly speaking, we should talk about the partial derivative of f with respect to x and the
value of ∂f
∂x
at a specific point e.g. x = 1, y = −2.
Solution
fx (x, y) = 2x + 2y, so that fx (1, −2) = 2 − 4 = −2
fy (x, y) = 3y 2 + 2x, so that fy (−3, 2) = 12 − 6 = 6
Your solution
∂f ∂f
= =
∂x ∂y
∂y ∂x
= 4y + 3xy 2 ∂f
= 6x + y 3 , ∂f
Key Point
Find ∂f
∂x
and ∂f
∂u
for f (x, y, u, v) = x2 + xy 2 + y 2 u3 − 7uv 4
Your solution
∂f ∂f
= =
∂x ∂u
∂u ∂x
= 0 + 0 + y 2 × 3u2 − 7v 4 = 3y 2 u2 − 7v 4 . ∂f
= 2x + y 2 + 0 + 0; ∂f
∂2f ∂2f
Example Find ∂x2
and ∂y 2
for f (x, y) = x3 + x2 y 2 + 2y 3 + 2x + y
Solution
∂f
∂x
= 3x2 + 2xy 2 +0+2+0
∂2f
∂f
≡ ∂
= 6x + 2y 2 + 0 + 0 + 0 = 6x + 2y 2 .
∂x 2 ∂x ∂x
∂2f ∂ ∂f
Similarly ∂y 2
= ∂y ∂y
.
∂2f
Now ∂f
∂y
= 0 + x2 × 2y + 6y 2 + 0 + 1 = 2x2 y + 6y 2 + 1 and ∂y 2
= 2x2 + 12y.
Example Find fxx (−1, 1) and fyy (2, −2) for the function of the last example.
Solution
fxx (−1, 1) = 6 × (−1) + 2 × (−1)2 = −4.
fyy (2, −2) = 2 × (2)2 + 12 × (−2) = −16
Solution
∂f ∂2f
∂y
= 4x2 y + 3y 2 ; ∂x∂y
= 8xy
∂
∂f
The final option is to differentiate first with respect to x and then with respect to y i.e. ∂y ∂x
.
For the given function
∂f
= 3x2 + 4xy 2
∂x
and
∂2f
= 8xy.
∂y∂x
Notice that for this function
∂2f ∂2f
≡ .
∂x∂y ∂y∂x
This equality of mixed derivatives is true for probably all functions which you are likely to meet
in your studies.
∂2f
To evaluate a mixed derivative we can use the alternative notation. To evaluate ∂x∂y we write
∂2f
fyx (x, y) to indicate that the first differentiation is with respect to y. Similarly, ∂y∂x
is denoted
by fxy (x, y).
Solution
Find fxx (1, 2), fyy (−2, −1), fxy (3, 3) for
f (x, y) ≡ x3 + 3x2 y 2 + y 2 .
Your solution
fxx (1, 2) = 6 + 24 = 30; fyy (−2, −1) = 26; fxy (3, 3) = 108
∂y∂x ∂x∂y ∂y 2 ∂x2
∂2f
= 12xy = ∂2f
= 6x2 + 2; ∂2f
= 6x + 6y 2 ; ∂2f
∂y ∂x
= 6x2 y + 2y ∂f
= 3x2 + 6xy 2 ; ∂f
(a) f (x, y) = x + 2y + 3
(b) f (x, y) = x2 + y 2
(c) f (x, y) = x3 + xy + y 3
(d) f (x, y) = x4 + xy 3 + 2x3 y 2
(e) f (x, y, z) = xy + yz
2. For the functions of Q1 (a) to (d) find fx (1, 1), fx (−1, −1), fy (1, 2), fy (2, 1).
∂f ∂2f
5. For the following functions find ∂x
and ∂x∂t