Professional Documents
Culture Documents
Partial Derivatives
Partial Derivatives
Partial Derivatives
of Manchester)
2.1
Examples
100
50
0
-50
-100
-10
-5
x0
-5
10 -10
5
0 y
10
z(x, y) = xy
1
0
-1
4
2
y
0
-2
-4
-4
-2
0x
2.2
Partial derivatives
Functions of multiple variables can be differentiated with respect to either of their variables, the
other variable being understood to be held constant during the differentiation. Such derivatives
are known as partial derivatives and are distinguished from ordinary derivatives by using a
instead of a d.
First derivatives: .
For a function of two variables there are two partial derivatives
z
= zx
x
and
z
= zy .
y
i.e.
2z
=
xy
z
=
x y
2z
yx
z
y x
Higher derivatives: .
Higher derivatives are again defined recursively, e.g.
5z
3 2z
= 3
x3 y 2
x
y 2
etc.
1
Mathematicians obviously love to construct esoteric functions for which this property doesnt hold but its
rare to come across these in real life. Strictly speaking, you can only exchange the order of the differentiation
if the function z(x, y) is sufficiently smooth. Most functions are.
2.3
This condition provides two equations for the two unknowns x0 and y0 . These
equations can have
No solution, in which case the function z(x, y) has no stationary points.
A unique solution, in which case the function z(x, y) has a single stationary
point.
Multiple solutions, in which case the function z(x, y) has multiple stationary
points.
D = AB C 2 .
3. Classify the stationary point according to the following cases:
D
D
D
D
<0
> 0 and 2 z/x2 > 0
> 0 and 2 z/x2 < 0
=0
2
2
or 2 z/y 2 > 0
or z/y < 0
=
=
=
=
Saddle point
Local minimum
Local maximum
Test is inconclusive
2.4
2.4.1
Taylor series:
The leading-order terms
The Taylor series of a function z(x, y) about a point (x0 , y0 ) provides an approximation
of the function in the neighbourhood of (x0 , y0 ):
z(x0 + , y0 + ) = z(x0 , y0 ) +
z
z
+
+
+
x (x0 ,y0 )
y (x0 ,y0 )
"
2 z
2 z
1
2
+
+ 2
+
2!
x2 (x0 ,y0 )
xy (x0 ,y0 )
for small values of and .
#
2 z
+
2
y 2 (x0 ,y0 )
#
2 z
(y y0 )2
+
y 2 (x0 ,y0 )
The general expression for the Taylor series in two variables may be written as
)
(
n
X
n f
1 X n
(x x0 )nk (y y0 )k ,
f (x x0 , y y0 ) =
k xnk y k (x0 ,y0 )
n!
n=0
k=0
where
n
k
n!
(n k)! k!
1
2
3
4
1
3
1
4
n
0
n
n
,
, ...,
1
n
Example
4
2
0
z
-2
-2
-4
-1
-2
-1
0
0
1
1
2
Partial derivatives: .
The partial derivatives are:
z
= 3x2 3.
x
z
= 3 3y 2 .
y
2z
= 6x.
x2
2z
= 6y.
y 2
2z
= 0.
xy
10
11
Stationary points: .
The coordinates (x0 , y0 ) of any stationary points are given by the solution of the two
equations:
z
= 3x20 3 = 0
x (x0 ,y0 )
z
= 3 3y02 = 0.
y (x0 ,y0 )
[In the present example, these can be solved directly for x0 = 1 and y0 = 1,
as the first equation only contains x0 and the second one only y0 . In general, both
equations will contain both unknowns and then have to be solved simultaneously.]
We therefore have four critical points:
P1 = (1, 1) P2 = (1, 1) P3 = (1, 1) P4 = (1, 1).
To classify the stationary points we evaluate the second derivatives in the following
table:
Point
P1 = (1, 1)
P2 = (1, 1)
P3 = (1, 1)
P4 = (1, 1)
A = 6x0
6
6
-6
-6
B = 6y0
-6
6
-6
6
C = 0 D = AB C 2
0
-36
0
36
0
36
0
-36
Classification
Saddle
Local minimum
Local maximum
Saddle
You should confirm these results by inspecting the plot shown at the beginning of
the examples.
Taylor Expansion: .
Finally, we determine the Taylor expansion of z(x, y) about the point (x, y) = (2, 1),
where z(2, 1) = 4. We start by evaluating the derivatives:
z
=9
x (2,1)
z
=0
y (2,1)
2 z
= 12
x2 (2,1)
2 z
= 6
y 2 (2,1)
2 z
= 0.
xy (2,1)
12
In the vicinity of the point (x, y) = (2, 1), i.e. for small values of and , the function
z(x, y) can therefore be approximated as
z(x = 2 + , y = 1 + ) = |{z}
4 + |{z}
9 + |{z}
0 +
z
z
z(2,1)
x |(2,1)
y |(2,1)
1
+
12 2 + 2 |{z}
+ (6) 2
0
|{z}
}
| {z
2! 2
2
z
x2
(2,1)
z
xy
(2,1)
2 z
y 2 (2,1)
So
y(x = 2 + , y = 1 + ) = 4 + 9 + 62 3 2 + ...
or
y(x, y) = 4 + 9(x 2) + 6(x 2)2 3(y 1)2 + ...
+ ...