242
Understanding Calculus
f(x,y)
=
VX
2
+Y +
Z2
=
VX
2
+Y+ (6
-x-
2y)2.
Wewantto findx andy wheref(x,y) is
minimum.
This is evidently the samepoint (x,y) wheref(x, y)2
is
minimum,
so considerg(x) =
f(X)2
insteadoff(x) to simplifythe calculation.
g(x)
=x
2
+
1+
(6-x-2y)2
=x
2
+
1+
36
+x
2
+
41-12x-24y+
4xy
= 2x
2
+ 51 + 36
-12x-
24y + 4xy.
At the minimumpointwe must havegx(x,y) =gy(x,y) =0, so we solve
gx(x,y) = 4x
-12
+ 4y = 0
gy(x,y) =
10y-24+4x=0.
Werewritethe twoequations as
x+y=3
2x +5y= 12.
Multiplyboth sides of the first equationby 2 and subtractto get 3y = 6, y = 2. Fromthe first equation
we then get
x = 1.Therefore (1, 2) is the onlycriticalpoint forg(x, y), and hencethe only criticalpoint
forf(x,y).
Atx
=
l,y
= 2,
Z = 6 - x - 2y = 6 - 1 - 4 = 1.
Hence(1, 2, 1)is the pointon the planewhichis closestto the origin.In this exampleweknowfromthe
geometrythat there is a minimumat the criticalpoint so the second
derivative
calculations are not nec-
essary.
If
we want to find the absolute maximum or minimum that f(x, y) takes on some
bounded region then we have to consider boundary points as well as interior points.
If
f(x
o
'
Yo)
is an absolute maximum and (x
o
'
Yo)
is an interior point
of
the region R, then
of
course
f(x
o'
Yo)
is also a relative maximum, and
I,
and
1;,
will be zero at (x
o'
Yo)·
If
(x
o'
Yo)
is a boundary point, then the partial derivatives need not be zero. Suppose f(x, y) = x
2
+
y2
and we want the maximum value
of
f(x, y) on the rectangle R
of
points (x, y) with 1 -s x
-s 3, 0
=::;
y -s 1. The answer is obvious since f(x, y) is the square
of
the distance from (x,
y) to the origin, and the point
of
R farthest from the origin is (3, 1). However,
Ix
= 2x and
J:
= 2y, so neither derivative is zero at (3, 1).
If
there are no critical points in the interior
of
y
the region, then the maximum and minimum will occur on the boundary, and one looks
only at boundary points.
EXAMPLE
39.4
Findthe maximumvalue
off(x,
y) = xy + 3x -
yon
the trianglewith verticesat (0, 0), (2, 0), and (0, 4).
(Figure39.2.)
Solution
Wefirst checkto see if thereare criticalpointsin the interior.
~(x,y)=y+3
.!;,(x,
y) =
x-I.
The only critical point is (1,
-3)
which is not in the
region.
On the segment0 -s x
~
2,f(x,
y) = 3x,
so 3
·2
= 6 is the maximumvalue on this side. On 0
~
y
~
4,f(x,
y) =
-y,
so 0 is the maximumon
this side. On the segmentfrom (2, 0) to (0, 4),
y =
-2x
+ 4, so
f(x, y) = x(-2x +4) + 3x - (-2x + 4)