Professional Documents
Culture Documents
Introduction to Partial
Differentiation
R Horan & M Lavelle
Copyright
c 2004 rhoran@plymouth.ac.uk , mlavelle@plymouth.ac.uk
kT
Example 1 If p = , find the partial derivatives of p:
V
(a) with respect to T , (b) with respect to V .
Solution
(a) This part of the example proceeds as follows:
kT
p = ,
V
∂p k
∴ = ,
∂T V
where V is treated as a constant for this calculation.
(b) For this part, T is treated as a constant. Thus
1
p = kT = kT V −1 ,
V
∂p kT
∴ = −kT V −2 = − 2 .
∂V V
Section 1: Partial Differentiation (Introduction) 5
The symbol ∂ is used whenever a function with more than one variable
is being differentiated but the techniques of partial differentiation are
exactly the same as for (ordinary) differentiation.
∂z ∂z
Example 2 Find and for the function z = x2 y 3 .
∂x ∂y
Solution
z = x2 y 3 For the first part y 3 is treated as
∂z a constant and the derivative of
∴ = 2xy 3 ,
∂x x2 with respect to x is 2x.
∂z For the second part x2 is treated
and = x2 3y 2 ,
∂y as a constant and the derivative
2 2
= 3x y . of y 3 with respect to y is 3y 2 .
∂z ∂z
Exercise 1. Find and for each of the following functions.
∂x ∂y
(Click on the green letters for solutions.)
1
(a) z = x2 y 4 , (b) z = (x4 + x2 )y 3 , (c) z = y 2 sin(x).
Section 2: The Rules of Partial Differentiation 6
u = xy and v = cos(xy)
∂u ∂v
∴ = y and = −y sin(xy) .
∂x ∂x
Thus
∂z ∂u ∂v
= v+u = y cos(xy) − xy 2 sin(xy) .
∂x ∂x ∂x
Section 2: The Rules of Partial Differentiation 7
∂z ∂z
Exercise 2. Find and for each of the following functions.
∂x ∂y
(Click on the green letters for solutions.)
cos(x)
(a) z = (x2 +3x) sin(y), (b) z = , (c) z = ln(xy),
y5
2
+y 2 )
(d) z = sin(x) cos(xy), (e) z = e(x , (f) z = sin(x2 + y).
∂z ∂z ∂z 1 ∂z
(a) = , (b) = ,
∂x ∂y ∂x x ∂y
1 ∂z ∂z 1 ∂z 1 ∂z
(c) = , (d) = .
y ∂x ∂y y ∂x x ∂y
Section 3: Higher Order Partial Derivatives 9
2
= 6xe(x +y ) + 3x2 (3x2 e(x +y ) )
∂x
3 2
= (9x4 + 6x)e(x +y )
Section 3: Higher Order Partial Derivatives 10
∂2z ∂2z
In addition to both and , when there are two variables there
∂x2 ∂y 2
is also the possibility of a mixed second order derivative.
∂2z 3 2
Example 5 Find if z = e(x +y ) .
∂x∂y
∂2z
∂ ∂z
Solution The symbol is interpreted as ; in words,
∂x∂y ∂x ∂y
first differentiate z with respect to y, keeping x constant, then differ-
entiate this function with respect to x, keeping y constant. (It is this
differentiation, first with respect to x and then with respect to y, that
leads to the name of mixed derivative.)
∂z 3 2
First with x constant = 2ye(x +y ) (using the chain rule.)
∂y
∂2z ∂ (x3 +y2 )
Second with y constant = 2ye
∂x∂y ∂x
3
+y 2 )
= 3x2 2ye(x
3
+y 2 )
= 6x2 ye(x .
Section 3: Higher Order Partial Derivatives 11
∂2z
∂ ∂z 3 2
Example 6 Find = if z = e(x +y ) .
∂y∂x ∂y ∂x
Solution
∂z 3 2
First with y constant = 3x2 e(x +y ) (using the chain rule).
∂x
∂2z ∂ 2 (x3 +y2 )
Second with x constant = 3x e
∂y∂x ∂y
3
+y 2 )
= 2y3x2 e(x
3
+y 2 )∂2z
= 6x2 ye(x = .
∂x∂y
As a general rule, when calculating mixed derivatives the order of
differentiation may be reversed without affecting the final result.
Section 3: Higher Order Partial Derivatives 12
End Quiz
Solutions to Exercises 14
Solutions to Exercises
∂z
Exercise 1(a) To calculate the partial derivative of the function
∂x
z = x2 y 4 , the factor y 4 is treated as a constant:
∂z ∂ ∂
x2 y 4 = x2 × y 4 = 2x(2−1) × y 4 = 2xy 4 .
=
∂x ∂x ∂x
∂z
Similarly, to find the partial derivative , the factor x2 is treated
∂y
as a constant:
∂z ∂ ∂
x2 y 4 = x2 × y 4 = x2 × 4y (4−1) = 4x2 y 3 .
=
∂y ∂y ∂y
Click on the green square to return
Solutions to Exercises 15
∂z
Exercise 1(b) To calculate for the function z = (x4 + x2 )y 3 , the
∂x
factor y 3 is treated as a constant:
∂z ∂ ∂
(x4 + x2 )y 3 = x4 + x2 × y 3 = (4x3 + 2x)y 3 .
=
∂x ∂x ∂x
∂z
To find the partial derivative the factor (x4 + x2 ) is treated as a
∂y
constant:
∂z ∂ ∂ 3
(x4 + x2 )y 3 = (x4 + x2 ) × y = 3(x4 + x2 )y 2 .
=
∂y ∂y ∂y
Click on the green square to return
Solutions to Exercises 16
1 ∂z 1
Exercise 1(c) If z = y 2 sin(x) then to calculate the y 2 factor is
∂x
kept constant:
∂z ∂ 1 1 ∂ 1
= y 2 sin(x) = y 2 × (sin(x)) = y 2 cos(x) .
∂x ∂x ∂x
∂z
Similarly, to evaluate the partial derivative the factor sin(x) is
∂y
treated as a constant:
∂z ∂ 1 ∂ 1 1 1
= y 2 sin(x) = y 2 × sin(x) = y − 2 sin(x) .
∂y ∂y ∂y 2
Click on the green square to return
Solutions to Exercises 17
Exercise 2(b)
cos(x)
The function z = can be written as z = cos(x)y −5 .
y5
Treating the factor y −5 as a constant and differentiating with respect
to x:
∂z sin(x)
= − sin(x)y −5 = − 5 .
∂x y
Treating cos(x) as a constant and differentiating with respect to y:
∂v cos(x)
= cos(x)(−5y −6 ) = −5 .
∂y y6
Exercise 3(a)
From exercise 2(a), the first order partial derivatives of
z = (x2 + 3x) sin(y) are
∂z ∂z
= (2x + 3) sin(y) , = (x2 + 3x) cos(y) .
∂x ∂y
The mixed second order derivatives are
∂2z
∂ ∂z ∂
(x2 + 3x) cos(y) = (2x + 3) cos(y) ,
= =
∂x∂y ∂x ∂y ∂x
∂2z
∂ ∂z ∂
= = ((2x + 3) sin(y)) = (2x + 3) cos(y) .
∂y∂x ∂y ∂x ∂y
Click on the green square to return
Solutions to Exercises 24
Exercise 3(b)
cos(x)
From exercise 2(b), the first order partial derivatives of z =
y5
are
∂z sin(x) ∂z cos(x)
=− , = −5 ,
∂x y5 ∂y y6
so the mixed second order derivatives are
∂2z
∂ ∂z ∂ cos(x) sin(x)
= = −5 =5 6 ,
∂x∂y ∂x ∂y ∂x y6 y
2
∂ z ∂ ∂z ∂ sin(x) sin(x)
= = − 5 =5 6 .
∂y∂x ∂y ∂x ∂y y y
Click on the green square to return
Solutions to Exercises 25
Exercise 3(c)
From exercise 2(c), the first order partial derivatives of z = ln(xy)
are
∂z 1 ∂z 1
= , = .
∂x x ∂y y
The mixed second order derivatives are
∂2z
∂ ∂z ∂ 1
= = = 0,
∂x∂y ∂x ∂y ∂x y
∂2z
∂ ∂z ∂ 1
= = = 0.
∂y∂x ∂y ∂x ∂y x
Click on the green square to return
Solutions to Exercises 26
Exercise 3(d) From exercise 2(d), the first order partial derivatives
of z = sin(x) cos(xy) are
∂z ∂z
= cos(x) cos(xy) − y sin(x) sin(xy) , = − x sin(x) sin(xy) .
∂x ∂y
The mixed second order derivatives are
∂2z
∂ ∂z ∂
= = (−x sin(x) sin(xy))
∂x∂y ∂x ∂y ∂x
= − sin(x) sin(xy) − x cos(x) sin(xy) − xy sin(x) cos(xy) ,
∂2z
∂ ∂z ∂
= = (cos(x) cos(xy) − y sin(x) sin(xy))
∂y∂x ∂y ∂x ∂y
= −x cos(x) sin(xy) − sin(x) sin(xy) − xy sin(x) cos(xy) .
N.B. In the solution above a product of three functions has been
differentiated. This can be done by using two applications of the
product rule.
Click on the green square to return
Solutions to Exercises 27
Exercise 3(e) From exercise 2(e), the first order partial derivatives
2 2
of z = e(x +y ) are
∂z 2 2 ∂z 2 2
= 2xe(x +y ) , = 2ye(x +y ) .
∂x ∂y
The mixed second order derivatives are thus
∂2z
∂ ∂z ∂ (x2 +y2 ) 2 2
= = 2ye = 4xye(x +y ) ,
∂x∂y ∂x ∂y ∂x
∂2z
∂ ∂z ∂ 2 2
2 2
= = 2xe(x +y ) = 4yxe(x +y ) .
∂y∂x ∂y ∂x ∂y
Click on the green square to return
Solutions to Exercises 28
Exercise 3(f ) From exercise 2(f ), the first order partial derivatives
of z = sin(x2 + y) are
∂z ∂z
= 2x cos(x2 + y) , = cos(x2 + y) .
∂x ∂y
The mixed second order derivatives are thus
∂2z
∂ ∂z ∂
cos(x2 + y) = −2x sin(x2 + y) ,
= =
∂x∂y ∂x ∂y ∂x
∂2z
∂ ∂z ∂
2x cos(x2 + y) = −2x sin(x2 + y) .
= =
∂y∂x ∂y ∂x ∂y
Click on the green square to return
Solutions to Quizzes 29
Solutions to Quizzes
Solution to Quiz:
To determine which of the options is correct, the partial derivatives
of z = cos(xy) must be calculated. From the calculations of exercise
2(d) the partial derivatives of z = cos(xy) are
∂ ∂ cos(u) ∂u
cos(xy) = = − sin(u)y = −y sin(xy) ,
∂x ∂u ∂x
∂ ∂ cos(u) ∂u
cos(xy) = = − sin(u)x = −x sin(xy) .
∂y ∂u ∂y
Therefore
1 ∂ 1 ∂
cos(xy) = − sin(xy) = cos(xy) .
y ∂x x ∂y
Solution to Quiz:
The first order derivatives of z = e−y sin(x) are
zx = e−y cos(x) , zy = − e−y sin(x) ,
where e−y is kept constant for the first differentiation and sin(x) for
the second. Continuing in this way, the second order derivatives zxx
and zyy are given by the expressions
∂ ∂z ∂
e−y cos(x) = −e−y sin(x) ,
zxx = =
∂x ∂x ∂x
∂ ∂z ∂
−e−y sin(x) = e−y sin(x) .
zyy = =
∂y ∂y ∂y
Adding these two equations together gives
zxx + zyy = 0 .
End Quiz