Академический Документы
Профессиональный Документы
Культура Документы
a 0 and
f ' a 0 and
If f
If
'
A point where f
''
'
x 0 .
a 0 and
point of inflection.
Functions of two variables f x, y :
Our aim is to generalize these ideas to functions of two variables. Such a function
would be written as
z f x, y .
where x and y are the independent variables and z is the dependent variable. The
graph of such a function is a surface in three dimensional space. A simple example
might be
1
1 x2 y 2
f
f
and
, set both to zero.
y
x
This gives you two equations for two unknowns x and y . Solve these equations for x
and y .
Multivariate case:
df df
, 0.
d
x
dy
f
f
dx dx can be written as df ds f where
x
y
f unchanged, i.e. df 0 .
c) Saddle point
Well draw some of their properties on the board. We will now attempt to find
ways of identifying the character of each of the stationary points of f x, y .
x0 , y0 . We know that
f 0 at x0 , y0 so writing x, y x x0 , y y0 we find:
f f x, y f x0 , y0
2
2 f x0 , y0
2 f x0 , y0
1 f x0 , y0
2
2
0
2!
x y
x 2
y 2
2 f x0 , y0
x 2
1
2
2
o( x y ) (x, y ) 2
f x , y
2!
0
0
x y
o(
2 f x0 , y0
x y
x
2 f x0 , y0 y
2
y
y ).
2
2 f x0 , y0
x 2
The matrix
2 f x , y
0
0
x y
2 f x0 , y0
x y
2
f x0 , y0
2
y
Figure 17
There are two points a, b where f has a local maximum, that is, where f a, b is
larger than nearby values of f x, y . The larger of these two values is the absolute
maximum. Likewise, f has two local minima, where f a, b is smaller than nearby
values. The smaller of these two values is the absolute minimum.
Definition 8 (Maximum & minimum values):
A function of two variables has a local maximum and minimum at a, b when
a, b
a, b
points give rise to maxima or minima. At a critical point, a function could have a local
maximum or a local minimum or neither.
Example 37
Let f x, y x 2 y 2 2 x 6 y 14 .
Then, f x x, y 2 x 2 and f y x, y 2 y 6
These partial derivatives are equal to zero when x 1 and y 3 , so the only critical
point is 1, 3 . By completing the square, we find that
f x, y 4 x 1 y 3
2
Since x 1 0 and
y 3 0 ,
a, b ,
critical point of f a, b ].
Let, D D a, b f xx a, b f yy a, b f xy a, b then
2
Note 1: In case (c) the point a, b is called a saddle point of f and the graph of f
crosses its tangent plane at a, b .
Note 2: To remember the formula for D , it is helpful to write it as a determinant:
f xx f xy
f yx f yy
f xx f yy f xy .
2
Solution:
From the f 0 it follows that
f x 3x 2 6 x 2 y 0 and
(a)
f y 2x 2 y 0.
(b)
It follows that, when x y from the equation (a) we gate that 3 x 4 x 0 and
2
4 4
, .
3 3
f xx 6 x 6 ,
f yy 2 ,
f xy 2
(c)
f xx 6 0 6 6 0 ,
f yy 2 0 ,
and
f xx f yy f xy2 6 2 2
12 4 8 0
f xy 2 0 .
Thus 0, 0 is a maximum and at
f xy2 f xx f yy 0 .
Example 39 (Second derivative test):
Find the extreme values of f x, y y 2 x2
Solution:
(d)
Solution:
First we
locate
the
critical
points
f x x, y 4 x3 4 y 4 x3 y
and
the equations
x3 y 0 and
y3 x 0
(a)
(b)
to solve these equations we substitute y x3 from the first equation into the second
one. This gives
xx x
x x 1 x x 1 x
0 y 3 x x3
1 x x2 1 x2 1 x4 1
so there are three real roots: x 0, 1, 1. The three points are 0, 0 , 1, 1 , and
1, 1 .
Next we calculate the second partial derivatives D x, y :
f xx x, y 12 x 2 ,
f xy x, y 4 ,
D x, y f xx x, y f yy x, y f xy x, y
f yy x, y 12 y 2
12 x 2 12 y 2 4 144 x 2 y 2 16
2
D 1, 1 128 0
f 1, 1 1 is also a local maximum.
b) Similarly,
we
have
and
f xx 1, 1 12 0
so
f x x, y 20 xy 10 x 4 x3 and f y x, y 10 x 2 8 y 8 y 3 ,
so to find the critical points we need to solve the equations
2 x 10 y 5 2 x 2 0
(1)
5x2 4 y 4 y3 0
(2)
0 4 y 4 y 3 0 4 y 4 y 3 4 y 1 y 2 0
so y 0 and we have the critical point 0, 0 .
In case 10 y 5 2 x 2 0 , we get
x 2 5 y 2.5
(3)
5 5 y 2.5 4 y 4 y3 25 y 12.5 4 y 4 y3 0 .
So we have to solve the cubic equation
4 y 3 21y 12.5 0
Using
graphing
(4)
calculator
or
computer
to
graph
the
function
we see that equation (4) has three real roots. By zooming in, we can find the roots to
four decimal places:
y 2.5452 ,
y 0.6468 ,
y 1.8984
x 5 y 2.5 .
If y 2.5452 , then x has no corresponding real values.
If y 0.6468 , then x 0.8567 .
If y 1.8984 , then x 2.6442 .
So we have a total of five critical points, which are analyzed in the following
chart. All quantities are rounded to two decimal places.
Critical points
Value of f
f xx
Conclusion
0, 0
0.00
10.00
80.00
Local maximum
Local maximum
2.64,
1.90
8.50
55.93
2488.72
0.86,
0.65
1.48
5.87
The following figures give two views of the graph of f and we see that the surface
opens downward.
[This can also be seen from the expression for f x, y : The dominant terms are
( x 4 2 y 2 ) when x and y are large]. Comparing the values of f at its local
maximum
points,
we
see
that
the
absolute
maximum
value
of
is
f 2.64, 1.90 8.50 . In other words, the highest points on the graph of f are
2.64,
1.90, 8.50 .
1.5 The criteria for classifying a stationary point of a function of two variables. Total
rates of change of functions of two variables (gradient & directional derivative,
maximum & minimum rate of change)
The criteria for classifying a stationary point of a function of two variables
Condition for a stationary point:
The function f x, y has a stationary point at x0 , y0 if
f
f
0.
0 and
y x , y
x x , y
0
This condition provides two equation for the two unknowns x0 and y0 . These
equations can have
No solution, in which case the function f x, y has no stationary points.
2 f
A 2
x
, y0
2 f
f xx x , y , B 2
y
0
, y0
f yy
, y0
2
and C f
.
f xy
x
,
y
x y x , y
f f f 2
xy
xx yy
a) If D 0 , then f a, b is a
Saddle point,
f xx 0 and f xx f yy f xy2 0
(1.35)
Local Minimum:
f xx 0 and f xx f yy f xy2 0
(1.36)
Saddle point:
f xx f yy f xy2 0
(1.37)
f x, y x3 3 y y3 3x
The graph of function is shown in Figure 18 below
Solution:
The firs we will check the partial derivatives as
Figure 18
f x 3x 2 3 ,
f xx 6 x ,
f y 3 3 y2 ,
f yy 6 y
f xy 3x 2 3
y 0 .
Stationary point:
The coordinates x0 , y0 of any stationary points are given by the solution of the
two equations:
3 3 y2
f x x , y 3x 2 3
0
fy
, y0
x0 , y0
x0 , y0
0,
0.
[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 and P4 1, 1 .
To classify the stationary points we evaluate the second derivatives in the
following table:
A f xx 6 x0
A f yy 6 y0
C f xy 0
P1 1, 1
P2 1, 1
P3 1, 1
P4 1, 1
Points
0
0
0
Classification
36 Saddle point
36 Local minimum
36 Local maximum
36 Saddle point
Directional Derivatives
You are standing on the hillside pictured in Figure 19 and want to determine the
hills incline toward the z axis
z
Surface
z f x, y
Figure 19
f x x, y , and
- The slope in the
f y x, y .
In this section, we will see that these two partial derivatives can be to find the
slope in any direction.
To determine the slope at a point on a surface, we will define a new type of
derivative called a directional derivative.
Surface
z f x, y
x
Figure 20
u cos i sin j ,
where is the angle the vector makes with the positive
x axis.
To find the desired slope, reduce the problem to two dimensions by intersecting
the surface with a vertical plane passing through the point P and parallel to
u , as
x
Figure 21
This vertical plane intersects the surface to form a curve C .
The slope of the surface at x0 , y0 , f x0 , y0 in the direction of u is defined as
the slope of the curve C at that point.
You can write the slope of the curve C as a limit that looks much like those used
in single variable calculus. The vertical plane used to form C intersects the
xy
x0 , y0 , f x0 , y0
Point above P x0 , y0
x, y , f x, y
Point above Q x, y .
x x0 2 y x0 2 t cos 2 t sin 2
t 2 cos 2 t 2 sin 2
t 2 cos 2 sin 2 t 2 t .
you can write the slope of the secant line through
x0 , y0 , f x0 , y0
x, y, f x, y as
f x, y f x0 , y0 f x0 t cos , y0 t sin f x0 , y0
t
t
Finally, by letting t approach 0 , you arrive at the following definition.
and
Du f x, y lim
t 0
f x t cos , y t sin f x, y
t
(1.38)
If f is a differentiable function of
in the direction of the unit vector
and
Du f x, y f x x, y cos f y x, y sin .
(1.39)
x
Figure 22
Di f x, y f x x, y cos 0 f y x, y sin 0 f x x, y
2. Direction of positive
D j f x, y f y x, y cos
f y x, y sin
f y x, y
f x, y 4 x 2
u cos
i sin
1 2
y , At 1, 2 in the direction of
4
Surface
Direction
Solution:
The first derivative respect to
fx
and
is
1 2
1 2
1
1
2
2
4 x y 2 x and f y 4 x y 2 y y .
x
4
y
4
4
2
y
Du f x, y f x x, y cos f y x, y sin 2 x cos sin .
2
Evaluating at
, x 1, and y 2 y = 2 produces
2
Du f 1, 2 2 1 cos sin
3 2 3
1
2
3
2
3
3
1
2 1
1.866 .
2
2
2
2
Figure 23
Suppose that we are willing to find a rate of change of
at x0 , y0 in the
x0 , y0
sin
cos
Figure 24
To do this we consider the surface S with equation z f x, y (the graph of
Figure 25
The slope of the tangent line S to C at the point P is the rate of change of z in
the direction of
u.
projections of P and Q on the xy plane, then the vector P ' Q ' is parallel to u and
so
h . Therefore, x x0 ha , y y0 hb , so x x0 ha , y y0 hb ,
f x0 ha, y0 hb f x0 , y0
z0 z z0
lim
h 0
h
h
h
If we take the limit as h 0 , we obtain the rate of change of z (with respect to
distance) in the direction of
direction of
in the
u.
f x, y x3 3 xy 4 y 2
and u is the unit vector given by 6 . What is Du f 1, 2 ?
Solution:
Du f x, y f x x, y cos
f y x, y sin
3
1
3x 2 3 y
3 x 8 y
2
2
1
3 3x 2 3 x 8 3 3 y
2
Therefore:
Du f x, y
1
2
3 3 1 3 1 8 3 3
2
2 13 23
3.
Du f x, y f x x, y a f y x, y b
f x x , y , f y x, y a , b
f x x , y , f y x, y u
(1.40)
The first vector in this dot product occurs not only in computing directional
derivatives but in many other contexts as well. So we give it a special name (the
gradient of f ) and a special notation (grad f or f , which is read del f )
Definition 11 (Gradient vector):
If f is a function of two variables x and y , then the gradient of f is the vector
function f defined by:
f x , y f x x , y , f y x , y
f
f
i
j
x
y
(1.41)
f x, y f x x, y , f y x, y cos x ye xy , xe xy
and f 0, 1 2, 0 .
With this notation for the gradient vector, we can rewrite the expression (13) for
the directional derivative as:
Du f x, y f x, y u
(1.42)
Solution:
We first compute the gradient vector at 2, 1 :
f x, y 2 xy 3i 3 x 2 y 2 4 j
f 2, 1 2 2 1 i 3 2 1 4 j 4i 8 j .
3
Note that, v is not a unit vector, but v , the unit vector in the direction of v is:
u
, therefore, by equation
i
j
v
(15), we have
Du f 2, 1 f 2, 1 u
4 8 32
4i 8 j
i
j
u.
f , is
f x, y, z f x x, y, z , f y x, y, z , f z x, y, z
Or, for short,
f f x , f y , f z
f
f
f
i
j k.
x
y
z
Then, just as with function of two variables, for the directional derivative can be
write as
Du f x, y, z f x, y, z u
(1.43)
change fastest and what is the maximum rate of change? The answer is provided by the
following theorem.
u has the
Du f f u f u cos f cos
Where is the angle between f and
f x, y = f x , f y = e y , xe y = e y i xe y j
f 2, 0 1i 2 j .
According to Theorem (5), f increases fastest in the direction of the gradient vector