Optimization: Local and Global Extrema: Chapter Fifteen
Optimization: Local and Global Extrema: Chapter Fifteen
OPTIMIZATION: Contents
15.1 Critical Points: Local Extrema and
LOCAL AND Saddle Points . . . . . . . . . . . . . . . . . . . . . . . . . . . .
How Do We Detect a Local Maximum
806
GLOBAL or Minimum? . . . . . . . . . . . . . . . . . . . . . . . . . . .
Finding and Analyzing Critical Points . . . . . . . . . .
806
807
Classifying Critical Points . . . . . . . . . . . . . . . . . . 809
EXTREMA Quadratic Functions of the Form
f (x, y) = ax2 + bxy + cy2 . . . . . . . . . . . . . . . . . . . 809
The Shape of the Graph of
f (x, y) = ax2 + bxy + cy2 . . . . . . . . . . . . . . . . . . . 810
Classifying the Critical Points of a Function . . . . . 811
15.2 Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815
How Do We Find Global Maxima and Minima? . 816
Maximizing Profit and Minimizing Cost . . . . . . 816
Fitting a Line to Data: Least Squares . . . . . . . . . 819
How Do We Know Whether a Function
Has a Global Maximum or Minimum? . . . . . . . 820
15.3 Constrained Optimization:
Lagrange Multipliers . . . . . . . . . . . . . . . . . . . . . 825
Graphical Approach: Maximizing Production
Subject to a Budget Constraint . . . . . . . . . . . . . 825
Analytical Solution: Lagrange Multipliers . . . . . 826
Lagrange Multipliers in General . . . . . . . . . . . . . 827
How to Distinguish Maxima from Minima . . . . . . . 828
Optimization with Inequality Constraints . . . . . . 828
The Meaning of λ . . . . . . . . . . . . . . . . . . . . . . . . 830
An Expression for λ . . . . . . . . . . . . . . . . . . . . . . 830
The Lagrangian Function. . . . . . . . . . . . . . . . . . . 831
806 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
Functions of several variables, like functions of one variable, can have local and global extrema.
(That is, local and global maxima and minima.) A function has a local extremum at a point where
it takes on the largest or smallest value in a small region around the point. Global extrema are the
largest or smallest values anywhere on the domain under consideration. (See Figures 15.1 and 15.2.)
𝑦
𝑧 𝑏
11
0 6
3
1
𝑦 1
−3
𝑥 −1 𝑥
𝑎
Figure 15.1: Local and global extrema for a Figure 15.2: Contour map of the function
function of two variables on 0 ≤ 𝑥 ≤ 𝑎, in Figure 15.1
0≤𝑦≤𝑏
• 𝑓 has a local maximum at the point 𝑃0 if 𝑓 (𝑃0 ) ≥ 𝑓 (𝑃 ) for all points 𝑃 near 𝑃0 .
• 𝑓 has a local minimum at the point 𝑃0 if 𝑓 (𝑃0 ) ≤ 𝑓 (𝑃 ) for all points 𝑃 near 𝑃0 .
For example, the function whose contour map is shown in Figure 15.2 has a local minimum
value of −3 and local maximum values of 3 and 11 in the rectangle shown.
grad 𝑓 (𝑃0 ) = 0⃗ .
Similarly, suppose 𝑓 has a local minimum at the point 𝑃0 . If grad 𝑓 (𝑃0 ) were defined and nonzero,
then we could decrease 𝑓 by moving in the direction opposite to grad 𝑓 (𝑃0 ), and so we must again
have grad 𝑓 (𝑃0 ) = 0⃗ . Therefore, we make the following definition:
Points where the gradient is either 0⃗ or undefined are called critical points of the function.
If a function has a local maximum or minimum at a point 𝑃0 , not on the boundary of its domain,
then 𝑃0 is a critical point. For a function of two variables, we can also see that the gradient vector must
be zero or undefined at a local maximum by looking at its contour diagram and a plot of its gradient
vectors. (See Figures 15.3 and 15.4.) Around the maximum the vectors are all pointing inward,
perpendicularly to the contours. At the maximum the gradient vector must be zero or undefined. A
similar argument shows that the gradient must be zero or undefined at a local minimum.
15.1 CRITICAL POINTS: LOCAL EXTREMA AND SADDLE POINTS 807
𝑦 𝑦
5
𝑥 𝑥
Figure 15.3: Contour diagram around a Figure 15.4: Gradients pointing toward the local maximum of
local maximum of a function the function in Figure 15.3
Finding and Analyzing Critical Points
⃗ = 0⃗ , which means setting all the
To find critical points of 𝑓 we set grad 𝑓 = 𝑓𝑥 ⃗𝑖 + 𝑓𝑦 𝑗⃗ + 𝑓𝑧 𝑘
partial derivatives of 𝑓 equal to zero. We must also look for the points where one or more of the
partial derivatives is undefined.
𝑓𝑥 (𝑥, 𝑦) = 2𝑥 − 2 = 0
𝑓𝑦 (𝑥, 𝑦) = 2𝑦 − 4 = 0.
Solving these equations gives 𝑥 = 1, 𝑦 = 2. Hence, 𝑓 has only one critical point, namely (1, 2). To
see the behavior of 𝑓 near (1, 2), look at the values of the function in Table 15.1.
Table 15.1 Values of 𝑓 (𝑥, 𝑦) near the point (1, 2)
𝑥
0.8 0.9 1.0 1.1 1.2
1.8 0.08 0.05 0.04 0.05 0.08
1.9 0.05 0.02 0.01 0.02 0.05
𝑦 2.0 0.04 0.01 0.00 0.01 0.04
2.1 0.05 0.02 0.01 0.02 0.05
2.2 0.08 0.05 0.04 0.05 0.08
The table suggests that the function has a local minimum value of 0 at (1, 2). We can confirm
this by completing the square:
Figure 15.5 shows that the graph of 𝑓 is a paraboloid with vertex at the point (1, 2, 0). It is the
same shape as the graph of 𝑧 = 𝑥2 + 𝑦2 (see Figure 12.12 on page 661), except that the vertex has
been shifted to (1, 2). So the point (1, 2) is a local minimum of 𝑓 (as well as a global minimum).
𝑧
𝑥
𝑦
(1, 2, 0)
Figure 15.5: The graph of 𝑓 (𝑥, 𝑦) = 𝑥2 − 2𝑥 + 𝑦2 − 4𝑦 + 5 with a local minimum at the point (1, 2)
808 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
√
Example 2 Find and analyze any critical points of 𝑓 (𝑥, 𝑦) = − 𝑥2 + 𝑦2 .
Solution We look for points where grad 𝑓 = 0⃗ or is undefined. The partial derivatives are given by
𝑥
𝑓𝑥 (𝑥, 𝑦) = − √ ,
𝑥2 + 𝑦2
𝑦
𝑓𝑦 (𝑥, 𝑦) = − √ .
𝑥2 + 𝑦2
These partial derivatives are never simultaneously zero, but they are undefined at 𝑥 = 0, 𝑦 = 0.
Thus, (0, 0) is a critical point and a possible extreme point. The graph of 𝑓 (see Figure 15.6) is a
cone, with vertex at (0, 0). So 𝑓 has a local and global maximum at (0, 0).
𝑧
𝑥 ✯ 𝑦
Local maximum
Global maximum
√
Figure 15.6: Graph of 𝑓 (𝑥, 𝑦) = − 𝑥2 + 𝑦2
Solution To find the critical points, we look for points where both partial derivatives are zero:
𝑔𝑥 (𝑥, 𝑦) = 2𝑥 = 0
𝑔𝑦 (𝑥, 𝑦) = −2𝑦 = 0.
𝑥 𝑦
Figure 15.7: Graph of
𝑔(𝑥, 𝑦) = 𝑥2 − 𝑦2 , showing saddle Figure 15.8: Graph of ℎ(𝑥, 𝑦) = 𝑥2 + 𝑦2 , showing minimum
shape at the origin at the origin
The previous examples show that critical points can occur at local maxima or minima, or at
points which are neither: The functions 𝑔 and ℎ in Figures 15.7 and 15.8 both have critical points
at the origin. Figure 15.9 shows level curves of 𝑔. They are hyperbolas showing both positive and
negative values of 𝑔 near (0, 0). Contrast this with the level curves of ℎ near the local minimum in
Figure 15.10.
15.1 CRITICAL POINTS: LOCAL EXTREMA AND SADDLE POINTS 809
𝑦 𝑦
3 3
−4 12
2 2 8
−2 4
1 1
4
2
𝑥 𝑥
2
0
4
0
−1 −1 2
−2
−2 −4 −2 6
10
−3 −3
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
Figure 15.9: Contours of 𝑔(𝑥, 𝑦) = 𝑥2 − 𝑦2 , Figure 15.10: Contours of ℎ(𝑥, 𝑦) = 𝑥2 + 𝑦2 ,
showing a saddle shape at the origin showing a local minimum at the origin
Example 4 Find the local extrema of the function 𝑓 (𝑥, 𝑦) = 8𝑦3 + 12𝑥2 − 24𝑥𝑦.
𝑥 = 𝑦, 𝑥 = 𝑦2 ,
which has two solutions, (0, 0) and (1, 1). Are these local maxima, local minima or neither? Fig-
ure 15.11 shows contours of 𝑓 near the points. Notice that 𝑓 (1, 1) = −4 and the contours at nearby
points have larger function values. This suggests 𝑓 has a local minimum at (1, 1).
We have 𝑓 (0, 0) = 0 and the contours near (0, 0) show that 𝑓 takes both positive and negative
values nearby. This suggests that (0, 0) is a critical point which is neither a local maximum nor a
local minimum.
𝑦
2
1.5
−2
1
−4
−3
0.5
3
−1
1
0
2 𝑥
0
−0.5
−0.5 0.5 1 1.5 2
Figure 15.11: Contour diagram of 𝑓 (𝑥, 𝑦) = 8𝑦3 + 12𝑥2 − 24𝑥𝑦 showing critical points at (0, 0) and (1, 1)
about that point. Thus, we start by investigating critical points of quadratic functions of the form
𝑓 (𝑥, 𝑦) = 𝑎𝑥2 + 𝑏𝑥𝑦 + 𝑐𝑦2 , where 𝑎, 𝑏 and 𝑐 are constants.
Example 5 Find and analyze the local extrema of the function 𝑓 (𝑥, 𝑦) = 𝑥2 + 𝑥𝑦 + 𝑦2 .
𝑓𝑥 (𝑥, 𝑦) = 2𝑥 + 𝑦 = 0,
𝑓𝑦 (𝑥, 𝑦) = 𝑥 + 2𝑦 = 0.
The only critical point is (0, 0), and the value of the function there is 𝑓 (0, 0) = 0. If 𝑓 is always
positive or zero near (0, 0), then (0, 0) is a local minimum; if 𝑓 is always negative or zero near
(0, 0), it is a local maximum; if 𝑓 takes both positive and negative values, it is neither. The graph in
Figure 15.12 suggests that (0, 0) is a local minimum.
How can we be sure that (0, 0) is a local minimum? We complete the square. Writing
1 2 3
( )
𝑓 (𝑥, 𝑦) = 𝑥2 + 𝑥𝑦 + 𝑦2 = 𝑥 + 𝑦 + 𝑦2 ,
2 4
shows that 𝑓 (𝑥, 𝑦) is a sum of two nonnegative terms, so it is always greater than or equal to zero.
Thus, the critical point is both a local and a global minimum.
𝑧
𝑦
✒ 𝑥
Local minimum
Figure 15.12: Graph of 𝑓 (𝑥, 𝑦) = 𝑥2 + 𝑥𝑦 + 𝑦2 = (𝑥 + 21 𝑦)2 + 34 𝑦2 showing local minimum at the origin
Figure 15.13: Local minimum: Figure 15.14: Local maximum: Figure 15.15: Saddle point: Figure 15.16: Parabolic
𝐷 > 0 and 𝑎 > 0 𝐷 > 0 and 𝑎 < 0 𝐷<0 cylinder: 𝐷 = 0
More generally, the graph of 𝑔(𝑥, 𝑦) = 𝑎(𝑥 − 𝑥0 )2 + 𝑏(𝑥 − 𝑥0 )(𝑦 − 𝑦0 ) + 𝑐(𝑦 − 𝑦0 )2 has the same
shape as the graph of 𝑓 (𝑥, 𝑦) = 𝑎𝑥2 + 𝑏𝑥𝑦 + 𝑐𝑦2 , except that the critical point is at (𝑥0 , 𝑦0 ) rather
than (0, 0).1
Classifying the Critical Points of a Function
Suppose that 𝑓 is any function with grad 𝑓 (0, 0) = 0⃗ . Its quadratic Taylor polynomial near (0, 0),
𝑓 (𝑥, 𝑦) ≈ 𝑓 (0, 0) + 𝑓𝑥 (0, 0)𝑥 + 𝑓𝑦 (0, 0)𝑦
1 1
+ 𝑓𝑥𝑥 (0, 0)𝑥2 + 𝑓𝑥𝑦 (0, 0)𝑥𝑦 + 𝑓𝑦𝑦 (0, 0)𝑦2,
2 2
can be simplified using 𝑓𝑥 (0, 0) = 𝑓𝑦 (0, 0) = 0, which gives
1 1
𝑓 (0, 0)𝑥2 + 𝑓𝑥𝑦 (0, 0)𝑥𝑦 + 𝑓𝑦𝑦 (0, 0)𝑦2.
𝑓 (𝑥, 𝑦) − 𝑓 (0, 0) ≈
2 𝑥𝑥 2
The discriminant of this quadratic polynomial is
1 1
( )( ) ( )2
𝐷 = 4𝑎𝑐 − 𝑏2 = 4 𝑓𝑥𝑥 (0, 0) 𝑓𝑦𝑦 (0, 0) − 𝑓𝑥𝑦 (0, 0) ,
2 2
which simplifies to
𝐷 = 𝑓𝑥𝑥 (0, 0)𝑓𝑦𝑦(0, 0) − (𝑓𝑥𝑦 (0, 0))2 .
There is a similar formula for 𝐷 if the critical point is at (𝑥0 , 𝑦0 ). An analogy with quadratic functions
suggests the following test for classifying a critical point of a function of two variables:
• If 𝐷 > 0 and 𝑓𝑥𝑥 (𝑥0 , 𝑦0 ) > 0, then 𝑓 has a local minimum at (𝑥0 , 𝑦0 ).
• If 𝐷 > 0 and 𝑓𝑥𝑥 (𝑥0 , 𝑦0 ) < 0, then 𝑓 has a local maximum at (𝑥0 , 𝑦0 ).
• If 𝐷 < 0, then 𝑓 has a saddle point at (𝑥0 , 𝑦0 ).
• If 𝐷 = 0, anything can happen: 𝑓 can have a local maximum, or a local minimum, or a
saddle point, or none of these, at (𝑥0 , 𝑦0 ).
Example 6 Find the local maxima, minima, and saddle points of 𝑓 (𝑥, 𝑦) = 12 𝑥2 + 3𝑦3 + 9𝑦2 − 3𝑥𝑦 + 9𝑦 − 9𝑥.
𝑓𝑥 (𝑥, 𝑦) = 𝑥 − 3𝑦 − 9 = 0,
𝑓𝑦 (𝑥, 𝑦) = 9𝑦2 + 18𝑦 − 3𝑥 + 9 = 0.
1 We assumed that 𝑎 ≠ 0. If 𝑎 = 0 and 𝑐 ≠ 0, the same argument works. If both 𝑎 = 0 and 𝑐 = 0, then 𝑓 (𝑥, 𝑦) = 𝑏𝑥𝑦,
Since 𝐷(3, −2) = −36 + 9 < 0, we know that (3, −2) is a saddle point of 𝑓 . Since 𝐷(12, 1) =
18 + 9 > 0 and 𝑓𝑥𝑥 (12, 1) = 1 > 0, we know that (12, 1) is a local minimum of 𝑓 .
The second-derivative test does not give any information if 𝐷 = 0. However, as the following
example illustrates, we may still be able to classify the critical points.
Example 7 Classify the critical points of 𝑓 (𝑥, 𝑦) = 𝑥4 + 𝑦4 , and 𝑔(𝑥, 𝑦) = −𝑥4 − 𝑦4 , and ℎ(𝑥, 𝑦) = 𝑥4 − 𝑦4 .
Solution Each of these functions has a critical point at (0, 0). Since all the second partial derivatives are 0
there, each function has 𝐷 = 0. Near the origin, the graphs of 𝑓 , 𝑔 and ℎ look like the surfaces in
Figures 15.13–15.15, respectively, so 𝑓 has a local minimum at (0, 0), and 𝑔 has a local maximum
at (0, 0), and ℎ is saddle-shaped at (0, 0).
We can get the same results algebraically. Since 𝑓 (0, 0) = 0 and 𝑓 (𝑥, 𝑦) > 0 elsewhere, 𝑓 has
a local minimum at the origin. Since 𝑔(0, 0) = 0 and 𝑔(𝑥, 𝑦) < 0 elsewhere, 𝑔 has a local maximum
at the origin. Lastly, ℎ is saddle-shaped at the origin since ℎ(0, 0) = 0 and, away from the origin,
ℎ(𝑥, 𝑦) > 0 on the 𝑥-axis and ℎ(𝑥, 𝑦) < 0 on the 𝑦-axis.
1. Figures (I)–(VI) show level curves of six functions 2. Which of the points 𝐴, 𝐵, 𝐶 in Figure 15.17 appear to
around a critical point 𝑃 . Does each function have a lo- be critical points? Classify those that are critical points.
cal maximum, a local minimum, or a saddle point at 𝑃 ?
(I) (II) 𝑦
2
1
𝑃 𝑃 0
𝐸 𝐺
1 𝐹
−5
−7 −2 −1 −1 −2
2
0
(III) (IV)
𝑥
−2 2 1
−1 1
2
1 1
1 0𝑃 1 −1 0𝑃 −1 𝐴 𝐷
2 𝐵 2
𝐶
−1 1
−2 2
−2 −1 0 −2
(V) (VI)
Figure 15.17
𝑃 𝑃
3. Which of the points 𝐷–𝐺 in Figure 15.17 appear to be
−1 (a) Local maxima?
12 (b) Local minima?
−2 14 (c) Saddle points?
15.1 CRITICAL POINTS: LOCAL EXTREMA AND SADDLE POINTS 813
4. A function 𝑓 (𝑥, 𝑦) has partial derivatives 𝑓𝑥 (1, 2) = 3, In Exercises 14–27, find the critical points and classify them
𝑓𝑦 (1, 2) = 5. Explain how you know that 𝑓 does not as local maxima, local minima, saddle points, or none of
have a minimum at (1, 2). these.
5. Assume 𝑓 (𝑥, 𝑦) has a critical point at (2, 3) with 14. 𝑓 (𝑥, 𝑦) = 𝑥2 − 2𝑥𝑦 + 3𝑦2 − 8𝑦
𝑓 (2, 3) = 5. Draw possible cross-sections for 𝑥 = 2 15. 𝑓 (𝑥, 𝑦) = 5 + 6𝑥 − 𝑥2 + 𝑥𝑦 − 𝑦2
and 𝑦 = 3, and label one value on each axis, if 𝑓 (2, 3)
16. 𝑓 (𝑥, 𝑦) = 𝑥2 − 𝑦2 + 4𝑥 + 2𝑦
is:
17. 𝑓 (𝑥, 𝑦) = 400 − 3𝑥2 − 4𝑥 + 2𝑥𝑦 − 5𝑦2 + 48𝑦
(a) A local minimum
(b) A local maximum 18. 𝑓 (𝑥, 𝑦) = 15 − 𝑥2 + 2𝑦2 + 6𝑥 − 8𝑦
(c) A saddle point 19. 𝑓 (𝑥, 𝑦) = 𝑥2 𝑦 + 2𝑦2 − 2𝑥𝑦 + 6
20. 𝑓 (𝑥, 𝑦) = 2𝑥3 − 3𝑥2 𝑦 + 6𝑥2 − 6𝑦2
In Exercises 6–13, the function has a critical point at (0, 0).
What sort of critical point is it? 21. 𝑓 (𝑥, 𝑦) = 𝑥3 − 3𝑥 + 𝑦3 − 3𝑦
22. 𝑓 (𝑥, 𝑦) = 𝑥3 + 𝑦3 − 3𝑥2 − 3𝑦 + 10
6. 𝑓 (𝑥, 𝑦) = 𝑥2 − cos 𝑦 7. 𝑓 (𝑥, 𝑦) = 𝑥 sin 𝑦
23. 𝑓 (𝑥, 𝑦) = 𝑥3 + 𝑦3 − 6𝑦2 − 3𝑥 + 9
8. 𝑔(𝑥, 𝑦) = 𝑥4 + 𝑦3 9. 𝑓 (𝑥, 𝑦) = 𝑥6 + 𝑦6 24. 𝑓 (𝑥, 𝑦) = (𝑥 + 𝑦)(𝑥𝑦 + 1)
10. 𝑘(𝑥, 𝑦) = sin 𝑥 sin 𝑦 11. ℎ(𝑥, 𝑦) = cos 𝑥 cos 𝑦 25. 𝑓 (𝑥, 𝑦) = 8𝑥𝑦 − 14 (𝑥 + 𝑦)4
√
12. 𝑔(𝑥, 𝑦) = (𝑥 − 𝑒𝑥 )(1 − 𝑦2 ) 26. 𝑓 (𝑥, 𝑦) = 3 𝑥2 + 𝑦2
13. ℎ(𝑥, 𝑦) = 𝑥2 − 𝑥𝑦 + sin2 𝑦 27. 𝑓 (𝑥, 𝑦) = 𝑒2𝑥
2 +𝑦2
PROBLEMS
28. Let 𝑓 (𝑥, 𝑦) = 3𝑥2 + 𝑘𝑦2 + 9𝑥𝑦. Determine the values of
𝑘 (if any) for which the critical point at (0, 0) is:
−3
(a) A saddle point −2
−1
(b) A local maximum 3 2 1 0 0
For Problems 37–40, find critical points and classify them as 50. On a computer, draw contour diagrams for functions
local maxima, local minima, saddle points, or none of these.
𝑓 (𝑥, 𝑦) = 𝑘(𝑥2 + 𝑦2 ) − 2𝑥𝑦
2
37. 𝑓 (𝑥, 𝑦) = 𝑥3 + 𝑒−𝑦 for 𝑘 = −2, −1, 0, 1, 2. Use these figures to classify the
38. 𝑓 (𝑥, 𝑦) = sin 𝑥 sin 𝑦 critical point at (0, 0) for each value of 𝑘. Explain your
observations using the discriminant, 𝐷.
39. 𝑓 (𝑥, 𝑦) = 1 − cos 𝑥 + 𝑦2 ∕2
51. The behavior of a function can be complicated near a
40. 𝑓 (𝑥, 𝑦) = 𝑒𝑥 (1 − cos 𝑦) critical point where 𝐷 = 0. Suppose that
41. At the point (1, 3), suppose that 𝑓𝑥 = 𝑓𝑦 = 0 and
𝑓𝑥𝑥 > 0, 𝑓𝑦𝑦 > 0, 𝑓𝑥𝑦 = 0. 𝑓 (𝑥, 𝑦) = 𝑥3 − 3𝑥𝑦2 .
(a) What can you conclude about the behavior of the Show that there is one critical point at (0, 0) and that
function near the point (1, 3)? 𝐷 = 0 there. Show that the contour for 𝑓 (𝑥, 𝑦) = 0
(b) Sketch a possible contour diagram. consists of three lines intersecting at the origin and that
these lines divide the plane into six regions around the
42. At the point (𝑎, 𝑏), suppose that 𝑓𝑥 = 𝑓𝑦 = 0, 𝑓𝑥𝑥 > 0, origin where 𝑓 alternates from positive to negative.
𝑓𝑦𝑦 = 0, 𝑓𝑥𝑦 > 0. Sketch a contour diagram for 𝑓 near (0, 0). The graph
(a) What can you conclude about the shape of the of this function is called a monkey saddle.
graph of 𝑓 near the point (𝑎, 𝑏)? 52. The contour diagrams for four functions 𝑧 = 𝑓 (𝑥, 𝑦)
(b) Sketch a possible contour diagram. are in (a)–(d). Each function has a critical point with
𝑧 = 0 at the origin. Graphs (I)–(IV) show the value of
43. Let ℎ(𝑥, 𝑦) = 𝑓 (𝑥)𝑔(𝑦) where 𝑓 (0) = 𝑔(0) = 0 and
𝑧 for these four functions on a small circle around the
𝑓 ′ (0) ≠ 0, 𝑔 ′ (0) ≠ 0. Show that (0, 0) is a saddle point
origin, expressed as function of 𝜃, the angle between
of ℎ.
the positive 𝑥-axis and a line through the origin. Match
44. Let ℎ(𝑥, 𝑦) = 𝑓 (𝑥) + 𝑔(𝑦). Show that ℎ has a critical the contour diagrams (a)–(d) with the graphs (I)–(IV).
point at (𝑎, 𝑏) if 𝑓 ′ (𝑎) = 𝑔 ′ (𝑏) = 0, and, assuming Classify the critical points as local maxima, local min-
𝑓 ′′ (𝑎) ≠ 0 and 𝑔 ′′ (𝑏) ≠ 0, it is a local maximum or min- ima or saddle points.
imum when 𝑓 ′′ (𝑎) and 𝑔 ′′ (𝑏) have the same sign and a
saddle point when they have opposite signs.
(a) 𝑦 (b) 𝑦
45. Let ℎ(𝑥, 𝑦) = (𝑓 (𝑥))2 + (𝑔(𝑦))2 . Show that if 𝑓 (𝑎) =
𝑔(𝑏) = 0, then (𝑎, 𝑏) is a local minimum.
46. Draw a possible contour diagram of 𝑓 such that
𝑥 𝑥
𝑓𝑥 (−1, 0) = 0, 𝑓𝑦 (−1, 0) < 0, 𝑓𝑥 (3, 3) > 0, 𝑓𝑦 (3, 3) >
0, and 𝑓 has a local maximum at (3, −3).
47. Draw a possible contour diagram of a function with a
saddle point at (2, 1), a local minimum at (2, 4), and no (c) 𝑦 (d) 𝑦
other critical points. Label the contours.
48. For constants 𝑎 and 𝑏 with 𝑎𝑏 ≠ 0 and 𝑎𝑏 ≠ 1, let
𝑥 𝑥
𝑓 (𝑥, 𝑦) = 𝑎𝑥2 + 𝑏𝑦2 − 2𝑥𝑦 − 4𝑥 − 6𝑦.
49. (a) Find the critical point of 𝑓 (𝑥, 𝑦) = (𝑥2 − 𝑦)(𝑥2 + 𝑦). (III) 𝑧 (IV) 𝑧
(b) Show that at the critical point, the discriminant
𝐷 = 0, so the second-derivative test gives no in-
𝜃 𝜃
formation about the nature of the critical point. 𝜋 2𝜋 𝜋 2𝜋
(c) Sketch contours near the critical point to determine
whether it is a local maximum, a local minimum,
a saddle point, or none of these.
15.2 OPTIMIZATION 815
15.2 OPTIMIZATION
Suppose we want to find the highest and the lowest points in Colorado. A contour map is shown
in Figure 15.20. The highest point is the top of a mountain peak (point A on the map, Mt. Elbert,
14,440 feet high). What about the lowest point? Colorado does not have large pits without drainage,
like Death Valley in California. A drop of rain falling at any point in Colorado will eventually flow
out of the state. If there is no local minimum inside the state, where is the lowest point? It must be
on the state boundary at a point where a river is flowing out of the state (point B where the Arikaree
River leaves the state, 3,315 feet high). The highest point in Colorado is a global maximum for the
elevation function in Colorado and the lowest point is the global minimum.
R.
N.
tte
Pla
Pla
tte
uth
R.
Longs So
Peak
Denver .
.
Grays Peak e eR B
oR kar
Ari
R.
rad
olo
latte
C
Mt. Elbert
th P
A
Sou
Grand Junction
Arka
nsas
R.
Mt. Wilson Pueblo
Lamar
R.
re
toi
rga
Alamosa
Pu
Figure 15.20: The highest and lowest points in the state of Colorado
816 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
The process of finding a global maximum or minimum for a function 𝑓 on a region 𝑅 is called
optimization. If the region 𝑅 is not stated explicitly, we take it to be the whole 𝑥𝑦-plane unless the
context of the problem suggests otherwise.
How Do We Find Global Maxima and Minima?
As the Colorado example illustrates, a global extremum can occur either at a critical point inside
the region or at a point on the boundary of the region. This is analogous to single-variable calculus,
where a function achieves its global extrema on an interval either at a critical point inside the interval
or at an endpoint of the interval.
Investigating the boundary of a region for possible maxima and minima is the topic of Sec-
tion 15.1. In this section, we focus on finding global maxima and minima of functions on regions
that do not include boundaries.
Not all functions have a global maximum or minimum: it depends on the function and the region.
First, we consider applications in which global extrema are expected from practical considerations.
At the end of this section, we examine the conditions that lead to global extrema. In general, the
fact that a function has a single local maximum or minimum does not guarantee that the point is
the global maximum or minimum. (See Problem 38.) An exception is if the function is quadratic, in
which case the local maximum or minimum is the global maximum or minimum. (See Example 1
on page 807 and Example 5 on page 810.)
Maximizing Profit and Minimizing Cost
In planning production of an item, a company often chooses the combination of price and quantity
that maximizes its profit. We use
Profit = Revenue − Cost,
and, provided the price is constant,
Revenue = Price ⋅ Quantity = 𝑝𝑞.
In addition, we need to know how the cost and price depend on quantity.
Example 1 A company manufactures two items which are sold in two separate markets where it has a monopoly.
The quantities, 𝑞1 and 𝑞2 , demanded by consumers, and the prices, 𝑝1 and 𝑝2 (in dollars), of each
item are related by
𝑝1 = 600 − 0.3𝑞1 and 𝑝2 = 500 − 0.2𝑞2 .
Thus, if the price for either item increases, the demand for it decreases. The company’s total produc-
tion cost is given by
𝐶 = 16 + 1.2𝑞1 + 1.5𝑞2 + 0.2𝑞1 𝑞2 .
To maximize its total profit, how much of each product should be produced? What is the maximum
profit? 2
2 Adapted from M. Rosser and P. Lis, Basic Mathematics for Economists, 3rd ed. (New York: Routledge, 2016), p. 351.
15.2 OPTIMIZATION 817
Solution The total revenue, 𝑅, is the sum of the revenues, 𝑝1 𝑞1 and 𝑝2 𝑞2 , from each market. Substituting for
𝑝1 and 𝑝2 , we get
Since 𝑞1 and 𝑞2 cannot be negative,3 the region we consider is the first quadrant with boundary 𝑞1 = 0
and 𝑞2 = 0.
To maximize 𝑃 , we look for critical points by setting the partial derivatives equal to 0:
𝜕𝑃
= 598.8 − 0.6𝑞1 − 0.2𝑞2 = 0,
𝜕𝑞1
𝜕𝑃
= 498.5 − 0.4𝑞2 − 0.2𝑞1 = 0.
𝜕𝑞2
Since grad 𝑃 is defined everywhere, the only critical points of 𝑃 are those where grad 𝑃 = 0⃗ . Thus,
solving for 𝑞1 , and 𝑞2 , we find that
To see whether or not we have found a local maximum, we compute second partial derivatives:
𝜕2 𝑃 𝜕2 𝑃 𝜕2 𝑃
= −0.6, = −0.4, = −0.2,
𝜕𝑞12 𝜕𝑞22 𝜕𝑞1 𝜕𝑞2
so,
( )2
𝜕2 𝑃 𝜕2 𝑃 𝜕2 𝑃
𝐷= − = (−0.6)(−0.4) − (−0.2)2 = 0.2.
𝜕𝑞12 𝜕𝑞22 𝜕𝑞1 𝜕𝑞2
Therefore we have found a local maximum. The graph of 𝑃 is a paraboloid opening downward, so
(699.1, 896.7) is a global maximum. This point is within the region, so points on the boundary give
smaller values of 𝑃 .
The company should produce 699.1 units of the first item priced at $390.27 per unit, and 896.7
units of the second item priced at $320.66 per unit. The maximum profit 𝑃 (699.1, 896.7) ≈ $433,000.
Example 2 A delivery of 480 cubic meters of gravel is to be made to a landfill. The trucker plans to purchase an
open-top box in which to transport the gravel in numerous trips. The total cost to the trucker is the
cost of the box plus $80 per trip. The box must have height 2 meters, but the trucker can choose the
length and width. The cost of the box is $100/m2 for the ends, $50/m2 for the sides and $200/m2 for
the bottom. Notice the tradeoff: A smaller box is cheaper to buy but requires more trips. What size
box should the trucker buy to minimize the total cost?4
3 Restricting prices to be nonnegative further restricts the region but does not alter the solution.
4 Adapted from Claude McMillan, Jr., Mathematical Programming, 2nd ed. (New York: Wiley, 1978), pp. 156–157.
818 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
Solution We first get an algebraic expression for the trucker’s cost. Let the length of the box be 𝑥 meters and
the width be 𝑦 meters; the height is 2 meters. (See Figure 15.21.)
✛
2m Travel: 480∕(2𝑥𝑦) at $80/trip 80 ⋅ 480∕(2𝑥𝑦)
✛
2 2
Ends: 2 at $100/m ⋅ 2𝑦 m 400𝑦
Sides: 2 at $50/m2 ⋅ 2𝑥 m2 200𝑥
𝑦 𝑥 Bottom: l at $200/m2 ⋅ 𝑥𝑦 m2 200𝑥𝑦
The volume of the box is 2𝑥𝑦 m3 , so delivery of 480 m3 of gravel requires 480∕(2𝑥𝑦) trips. The
number of trips is a whole number; however, we treat it as continuous so that we can optimize using
derivatives. The trucker’s cost is itemized in Table 15.2. The problem is to minimize
( )
480 96
Total cost = 80 ⋅ + 400𝑦 + 200𝑥 + 200𝑥𝑦 = 200 + 2𝑦 + 𝑥 + 𝑥𝑦 .
2𝑥𝑦 𝑥𝑦
The length and width of the box must be positive. Thus, the region is the first quadrant but it does
not contain the boundary, 𝑥 = 0 and 𝑦 = 0.
Our problem is to minimize
96
𝑓 (𝑥, 𝑦) = + 2𝑦 + 𝑥 + 𝑥𝑦.
𝑥𝑦
The critical points of this function occur where
96
𝑓𝑥 (𝑥, 𝑦) = − +1+𝑦=0
𝑥2 𝑦
96
𝑓𝑦 (𝑥, 𝑦) = − + 2 + 𝑥 = 0.
𝑥𝑦2
We put the 96∕(𝑥2 𝑦) and 96∕(𝑥𝑦2 ) terms on the other side of the the equation, divide, and simplify:
96∕(𝑥2 𝑦) 1+𝑦 𝑦 1+𝑦
= so = giving 2𝑦 = 𝑥.
96∕(𝑥𝑦2 ) 2 + 𝑥 𝑥 2+𝑥
Substituting 𝑥 = 2𝑦 in the equation 𝑓𝑦 (𝑥, 𝑦) = 0 gives
96
− + 2 + 2𝑦 = 0
2𝑦 ⋅ 𝑦2
𝑦4 + 𝑦3 − 24 = 0.
The only positive solution to this equation is 𝑦 = 2, so the only critical point in the region is (4, 2).
To check that the critical point is a local minimum, we use the second-derivative test. Since
)2
192 192 96 25
(
𝐷(4, 2) = 𝑓𝑥𝑥 𝑓𝑦𝑦 − (𝑓𝑥𝑦 )2 = 3 ⋅ − + 1 =9− >0
4 ⋅ 2 4 ⋅ 23 42 ⋅ 22 4
and 𝑓𝑥𝑥 (4, 2) > 0, the point (4, 2) is a local minimum. Since the value of 𝑓 increases without bound
as 𝑥 or 𝑦 increases without bound and as 𝑥 → 0+ and 𝑦 → 0+ , it can be shown that (4, 2) is a global
minimum. (See Problem 42.) Thus, the optimal box is 4 meters long and 2 meters wide. With a box
of this size, the trucker would need to make 30 trips to haul all of the gravel. This large number lends
some credibility to our decision to treat the number of trips as a continuous variable.
15.2 OPTIMIZATION 819
Data almost linear: line fits well Data not very linear: line does not fit well
Example 3 Find a least squares line for the following data points: (1, 1), (2, 1), and (3, 3).
Solution Suppose the line has equation 𝑦 = 𝑏 + 𝑚𝑥. If we find 𝑏 and 𝑚 then we have found the line. So,
for this problem, 𝑏 and 𝑚 are the two variables. Any values of 𝑚 and 𝑏 are possible, so this is an
unconstrained problem. We want to minimize the function 𝑓 (𝑏, 𝑚) that gives the sum of the three
squared vertical distances from the points to the line in Figure 15.23.
𝑦
3 (3, 3) 𝑦 = 𝑏 + 𝑚𝑥
❄
✻
(3, 𝑏 + 3𝑚)
2
(2, 𝑏 + 2𝑚)
✻
(1, 1) ❄
(2, 1)
1
❄
✻
(1, 𝑏 + 𝑚)
0 𝑥
1 2 3
Figure 15.23: The least squares line minimizes the sum of the squares of these vertical distances
The vertical distance from the point (1, 1) to the line is the difference in the 𝑦-coordinates 1 −
(𝑏 + 𝑚); similarly for the other points. Thus, the sum of squares is
𝑓 (𝑏, 𝑚) = (1 − (𝑏 + 𝑚))2 + (1 − (𝑏 + 2𝑚))2 + (3 − (𝑏 + 3𝑚))2 .
To minimize 𝑓 we look for critical points. First we differentiate 𝑓 with respect to 𝑏:
𝜕𝑓
= −2(1 − (𝑏 + 𝑚)) − 2(1 − (𝑏 + 2𝑚)) − 2(3 − (𝑏 + 3𝑚))
𝜕𝑏
= −2 + 2𝑏 + 2𝑚 − 2 + 2𝑏 + 4𝑚 − 6 + 2𝑏 + 6𝑚
= −10 + 6𝑏 + 12𝑚.
820 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
The solution to this pair of equations is the critical point 𝑏 = −1∕3 and 𝑚 = 1. Since
we have found a local minimum. The graph of 𝑓 (𝑏, 𝑚) is a parabola opening upward, so the local
minimum is the global minimum of 𝑓 . Thus, the least squares line is
1
𝑦=𝑥− .
3
As a check, notice that the line 𝑦 = 𝑥 passes through the points (1, 1) and (3, 3). It is reasonable that
introducing the point (2, 1) moves the 𝑦-intercept down from 0 to −1∕3.
The general formulas for the slope and 𝑦-intercept of a least squares line are in Project 2 (avail-
able online). Many calculators have built-in formulas for 𝑏 and 𝑚, as well as for the correlation
coefficient, which measures how well the data points fit the least squares line.
Example 4 Investigate the global maxima and minima of the following functions:
(a) ℎ(𝑥, 𝑦) = 1 + 𝑥2 + 𝑦2 on the disk 𝑥2 + 𝑦2 ≤ 1.
(b) 𝑓 (𝑥, 𝑦) = 𝑥2 − 2𝑥 + 𝑦2 − 4𝑦 + 5 on the 𝑥𝑦-plane.
(c) 𝑔(𝑥, 𝑦) = 𝑥2 − 𝑦2 on the 𝑥𝑦-plane.
Solution (a) The graph of ℎ(𝑥, 𝑦) = 1 + 𝑥2 + 𝑦2 is a bowl-shaped paraboloid with a global minimum of 1 at
(0, 0), and a global maximum of 2 on the edge of the region, 𝑥2 + 𝑦2 = 1.
(b) The graph of 𝑓 in Figure 15.5 on page 807 shows that 𝑓 has a global minimum at the point (1, 2)
and no global maximum (because the value of 𝑓 increases without bound as 𝑥 → ∞, 𝑦 → ∞).
(c) The graph of 𝑔 in Figure 15.7 on page 808 shows that 𝑔 has no global maximum because
𝑔(𝑥, 𝑦) → ∞ as 𝑥 → ∞ if 𝑦 is constant. Similarly, 𝑔 has no global minimum because 𝑔(𝑥, 𝑦) →
−∞ as 𝑦 → ∞ if 𝑥 is constant.
Sometimes a function is guaranteed to have a global maximum and minimum. For example, a
continuous function, ℎ(𝑥), of one variable has a global maximum and minimum on every closed
interval 𝑎 ≤ 𝑥 ≤ 𝑏. On a non-closed interval, such as 𝑎 ≤ 𝑥 < 𝑏 or 𝑎 < 𝑥 < 𝑏, or on an unbounded
interval, such as 𝑎 < 𝑥 < ∞, ℎ may not have a maximum or minimum value.
15.2 OPTIMIZATION 821
What is the situation for functions of two variables? As it turns out, a similar result is true for
continuous functions defined on regions which are closed and bounded, analogous to the closed and
bounded interval 𝑎 ≤ 𝑥 ≤ 𝑏. In everyday language we say
More precise definitions follow. Suppose 𝑅 is a region in 2-space. A point (𝑥0 , 𝑦0 ) is a boundary
point of 𝑅 if, for every 𝑟 > 0, the circular disk with center (𝑥0 , 𝑦0 ) and radius 𝑟 contains both
points which are in 𝑅 and points which are not in 𝑅. See Figure 15.24. A point (𝑥0 , 𝑦0 ) can be a
boundary point of the region 𝑅 without belonging to 𝑅. The collection of all the boundary points is
the boundary of 𝑅. The region 𝑅 is closed if it contains its boundary.
A region 𝑅 in 2-space is bounded if the distance between every point (𝑥, 𝑦) in 𝑅 and the origin
is less than some constant 𝐾. Closed and bounded regions in 3-space are defined in the same way.
√
Example 5 (a) Consider the square −1 ≤ 𝑥 ≤ 1, −1 ≤ 𝑦 ≤ 1. Every point in this region is within distance 2
of the origin, so the region is bounded. The region’s boundary consists of four line segments, all
of which belong to the region, so the region is closed.
(b) Consider the first quadrant 𝑥 ≥ 0, 𝑦 ≥ 0. The boundary of this region consists of the origin, the
positive 𝑥-axis, and the positive 𝑦-axis. All of these belong to the region, so the region is closed.
However, the region is not bounded, since there is no upper bound on distances between points
in the region and the origin.
(c) The disk 𝑥2 + 𝑦2 < 1 is bounded, because each point in the region is within distance 1 of the
origin. However, the disk is not closed, because (1, 0) is a boundary point of the region but not
included in the region.
(d) The half-plane 𝑦 > 0 is neither closed nor bounded. The origin is a boundary point of this region
but is not included in the region.
The reason that closed and bounded regions are useful is the following theorem, which is also
true for functions of three or more variables:5
If 𝑓 is not continuous or the region 𝑅 is not closed and bounded, there is no guarantee that 𝑓
achieves a global maximum or global minimum on 𝑅. In Example 4, the function 𝑔 is continuous
but does not achieve a global maximum or minimum in 2-space, a region which is closed but not
bounded. Example 6 illustrates what can go wrong when the region is bounded but not closed.
(𝑥0 , 𝑦0 )
Example 6 Does the function 𝑓 have a global maximum or minimum on the region 𝑅 given by 0 < 𝑥2 + 𝑦2 ≤ 1?
1
𝑓 (𝑥, 𝑦) =
𝑥2 + 𝑦2
Solution The region 𝑅 is bounded, but it is not closed since it does not contain the boundary point (0, 0).
We see from the graph of 𝑧 = 𝑓 (𝑥, 𝑦) in Figure 15.25 that 𝑓 has a global minimum on the circle
𝑥2 + 𝑦2 = 1. However, 𝑓 (𝑥, 𝑦) → ∞ as (𝑥, 𝑦) → (0, 0), so 𝑓 has no global maximum.
𝑧
𝑥 𝑦
1
Figure 15.25: Graph showing 𝑓 (𝑥, 𝑦) = 𝑥2 +𝑦2
has no global maximum on 0 < 𝑥2 + 𝑦2 ≤ 1
In Exercises 2–4, estimate the position and approximate value of the global maxima and minima on the closed region shown.
2. 𝑦 3. 𝑦 4. 𝑦
6 5 5𝜋∕2
21
22
5
0.75
0.50
0.25
9 4 23 2𝜋
4 7 24
0 3
3 4 3 3𝜋∕2 0
25
2
−0.50
−0.75
−0.25
2 2 26 𝜋
1 6
27
4 𝑥 1 𝜋∕2 0
28
1 2 3 4 5 6 7 29 0.
𝑥 0.50 0.75 25
1 2 3 4 5 𝑥
𝜋∕2 𝜋
In Problems 5–9, without calculus, find the highest and low- In Exercises 11–13, find the global maximum and minimum
est points (if they exist) on the surface. The 𝑧-axis is upward. of the function on −1 ≤ 𝑥 ≤ 1, −1 ≤ 𝑦 ≤ 1, and say whether
it occurs on the boundary of the square. [Hint: Use graphs.]
5. 𝑥2 + 𝑦2 + (𝑧 − 1)2 = 49 11. 𝑧 = 𝑥2 + 𝑦2 12. 𝑧 = −𝑥2 −𝑦2 13. 𝑧 = 𝑥2 − 𝑦2
6. (𝑥 + 1)2 + (𝑦 − 3)2 + 2𝑧2 = 162
In Problems 14–21, does the function have a global maxi-
7. 𝑧 = (𝑥 − 5)2 + (𝑦 − 𝜋)2 + 2𝜋 mum? A global minimum?
PROBLEMS
22. (a) Compute and classify the critical points of (a) Find the maximum profit that can be made, assum-
𝑓 (𝑥, 𝑦) = 2𝑥2 − 3𝑥𝑦 + 8𝑦2 + 𝑥 − 𝑦. ing the prices are fixed.
(b) By completing the square, plot the contour diagram (b) Find the rate of change of that maximum profit as
of 𝑓 and show that the local extremum found in 𝑝1 increases.
part (a) is a global one.
35. A company operates two plants which manufacture the
In Problems 23–26, find and classify the critical points of same item and whose total cost functions are
the function. Then decide whether the function has global
extrema on the 𝑥𝑦-plane, and find them if they exist. 𝐶1 = 8.5 + 0.03𝑞12 and 𝐶2 = 5.2 + 0.04𝑞22 ,
23. 𝑓 (𝑥, 𝑦) = 𝑦2 + 2𝑥𝑦 − 𝑦 − 𝑥3 − 𝑥 + 2 where 𝑞1 and 𝑞2 are the quantities produced by each
24. 𝑓 (𝑥, 𝑦) = 2𝑥2 − 4𝑥𝑦 + 5𝑦2 + 9𝑦 + 2 plant. The company is a monopoly. The total quantity
25. 𝑓 (𝑥, 𝑦) = −𝑥4 + 2𝑥𝑦2 − 2𝑦3 demanded, 𝑞 = 𝑞1 + 𝑞2 , is related to the price, 𝑝, by
2 −𝑦2
26. 𝑓 (𝑥, 𝑦) = 𝑥𝑒−𝑥
𝑝 = 60 − 0.04𝑞.
27. A closed rectangular box has volume 32 cm3 . What are
the lengths of the edges giving the minimum surface How much should each plant produce in order to max-
area? imize the company’s profit?6
28. A closed rectangular box with faces parallel to the co-
36. The quantity of a product demanded by consumers is
ordinate planes has one bottom corner at the origin and
a function of its price. The quantity of one product de-
the opposite top corner in the first octant on the plane
manded may also depend on the price of other prod-
3𝑥 + 2𝑦 + 𝑧 = 1. What is the maximum volume of such
ucts. For example, if the only chocolate shop in town (a
a box?
monopoly) sells milk and dark chocolates, the price it
29. An international airline has a regulation that each pas- sets for each affects the demand of the other. The quan-
senger can carry a suitcase having the sum of its width, tities demanded, 𝑞1 and 𝑞2 , of two products depend on
length and height less than or equal to 135 cm. Find the their prices, 𝑝1 and 𝑝2 , as follows:
dimensions of the suitcase of maximum volume that a
passenger may carry under this regulation. 𝑞1 = 150 − 2𝑝1 − 𝑝2
30. Design a rectangular milk carton box of width 𝑤, length
𝑙, and height ℎ which holds 512 cm3 of milk. The sides 𝑞2 = 200 − 𝑝1 − 3𝑝2 .
of the box cost 1 cent∕cm2 and the top and bottom cost
2 cent∕cm2 . Find the dimensions of the box that mini- (a) What does the fact that the coefficients of 𝑝1 and
mize the total cost of materials used. 𝑝2 are negative tell you? Give an example of two
products that might be related this way.
31. Find the point on the plane 3𝑥+2𝑦+𝑧 = 1 that is closest (b) If one manufacturer sells both products, how
to the origin by minimizing the square of the distance. should the prices be set to generate the maximum
32. What is the shortest distance from the surface 𝑥𝑦+3𝑥+ possible revenue? What is that maximum possible
𝑧2 = 9 to the origin? revenue?
33. For constants 𝑎, 𝑏, and 𝑐, let 𝑓 (𝑥, 𝑦) = 𝑎𝑥 + 𝑏𝑦 + 𝑐 be a
linear function, and let 𝑅 be a region in the 𝑥𝑦-plane. 37. A company manufactures a product which requires cap-
ital and labor to produce. The quantity, 𝑄, of the product
(a) If 𝑅 is any disk, show that the maximum and min- manufactured is given by the Cobb-Douglas function
imum values of 𝑓 on 𝑅 occur on the boundary of
the disk. 𝑄 = 𝐴𝐾 𝑎 𝐿𝑏 ,
(b) If 𝑅 is any rectangle, show that the maximum and
minimum values of 𝑓 on 𝑅 occur at the corners of where 𝐾 is the quantity of capital; 𝐿 is the quantity of
the rectangle. They may occur at other points of the labor used; and 𝐴, 𝑎, and 𝑏 are positive constants with
rectangle as well. 0 < 𝑎 < 1 and 0 < 𝑏 < 1. One unit of capital costs $𝑘
(c) Use a graph of the plane 𝑧 = 𝑓 (𝑥, 𝑦) to explain and one unit of labor costs $𝓁. The price of the product
your answers in parts (a) and (b). is fixed at $𝑝 per unit.
34. Two products are manufactured in quantities 𝑞1 and 𝑞2 (a) If 𝑎 + 𝑏 < 1, how much capital and labor should
and sold at prices of 𝑝1 and 𝑝2 , respectively. The cost of the company use to maximize its profit?
producing them is given by (b) Is there a maximum profit in the case 𝑎 + 𝑏 = 1?
𝐶 = 2𝑞12 + 2𝑞22 + 10. What about 𝑎 + 𝑏 ≥ 1? Explain.
6 Adapted from M. Rosser and P. Lis, Basic Mathematics for Economists, 3rd ed. (New York: Routledge, 2016), p. 354.
824 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
38. Let 𝑓 (𝑥, 𝑦) = 𝑥2 (𝑦 + 1)3 + 𝑦2 . Show that 𝑓 has only How should 𝑝 be chosen to minimize the energy?
one critical point, namely (0, 0), and that point is a lo- (b) Now suppose the compression takes place in two
cal minimum but not a global minimum. Contrast this stages with two intermediate pressures, 𝑝1 and 𝑝2 .
with the case of a function with a single local minimum What choices of 𝑝1 and 𝑝2 minimize the energy if
in one-variable calculus.
( )2 ( )2 ( )2
39. Find the parabola of the form 𝑦 = 𝑎𝑥2 + 𝑏 which best 𝑝1 𝑝2 𝑃𝐹
𝐸= + + − 2?
fits the points (1, 0), (2, 2), (3, 4) by minimizing the sum 𝑃0 𝑝1 𝑝2
of squares, 𝑆, given by
𝑆 = (𝑎 + 𝑏)2 + (4𝑎 + 𝑏 − 2)2 + (9𝑎 + 𝑏 − 4)2 . 45. The Dorfman-Steiner rule shows how a company which
has a monopoly should set the price, 𝑝, of its product
40. For the data points (11, 16), (12, 17), (13, 17), and and how much advertising, 𝑎, it should buy. The price
(16, 20), find an expression for 𝑓 (𝑏, 𝑚), the sum of of advertising is 𝑝𝑎 per unit. The quantity, 𝑞, of the prod-
squared errors that are minimized on the least squares uct sold is given by 𝑞 = 𝐾𝑝−𝐸 𝑎𝜃 , where 𝐾 > 0, 𝐸 > 1,
line 𝑦 = 𝑏 + 𝑚𝑥. (You need not do the minimization.) and 0 < 𝜃 < 1 are constants. The cost to the company
41. Find the least squares line for the data points to make each item is 𝑐.
(0, 4), (1, 3), (2, 1).
(a) How does the quantity sold, 𝑞, change if the price,
42. Let 𝑓 (𝑥, 𝑦) = 80∕(𝑥𝑦) + 20𝑦 + 10𝑥 + 10𝑥𝑦 in the region 𝑝, increases? If the quantity of advertising, 𝑎, in-
𝑅 where 𝑥, 𝑦 > 0. creases?
(a) Explain why 𝑓 (𝑥, 𝑦) > 𝑓 (2, 1) at every point in 𝑅 (b) Show that the partial derivatives can be written in
where the form 𝜕𝑞∕𝜕𝑝 = −𝐸𝑞∕𝑝 and 𝜕𝑞∕𝜕𝑎 = 𝜃𝑞∕𝑎.
(i) 𝑥 > 20 (ii) 𝑦 > 20 (c) Explain why profit, 𝜋, is given by 𝜋 = 𝑝𝑞−𝑐𝑞−𝑝𝑎𝑎.
(d) If the company wants to maximize profit, what
(iii) 𝑥 < 0.01 and 𝑦 ≤ 20
must be true of the partial derivatives, 𝜕𝜋∕𝜕𝑝 and
(iv) 𝑦 < 0.01 and 𝑥 ≤ 20 𝜕𝜋∕𝜕𝑎?
(b) Explain why 𝑓 must have a global minimum at a (e) Find 𝜕𝜋∕𝜕𝑝 and 𝜕𝜋∕𝜕𝑎.
critical point in 𝑅. (f) Use your answers to parts (d) and (e) to show that
(c) Explain why 𝑓 must have a global minimum in 𝑅 at maximum profit,
at the point (2, 1).
𝑝−𝑐 1 𝑝−𝑐 𝑎
43. Let 𝑓 (𝑥, 𝑦) = 2∕𝑥+3∕𝑦+4𝑥+5𝑦 in the region 𝑅 where = and = .
𝑥, 𝑦 > 0. 𝑝 𝐸 𝑝𝑎 𝜃𝑞
(a) Explain why 𝑓 must have a global minimum at (g) By dividing your answers in part (f), show that at
some point in 𝑅. maximum profit,
(b) Find the global minimum.
𝑝𝑎 𝑎 𝜃
44. (a) The energy, 𝐸, required to compress a gas from a = .
𝑝𝑞 𝐸
fixed initial pressure 𝑃0 to a fixed final pressure 𝑃𝐹
through an intermediate pressure 𝑝 is7 This is the Dorfman-Steiner rule, that the ratio of
( )2 ( )2
𝑝 𝑃𝐹 the advertising budget to revenue does not depend
𝐸= + − 1. on the price of advertising.
𝑃0 𝑝
In Problems 46–48, explain what is wrong with the state- 49. A continuous function 𝑓 (𝑥, 𝑦) that has no global maxi-
ment. mum and no global minimum on the 𝑥𝑦-plane.
46. A function having no critical points in a region 𝑅 can- 50. A function 𝑓 (𝑥, 𝑦) and a region 𝑅 such that the maxi-
not have a global maximum in the region. mum value of 𝑓 on 𝑅 is on the boundary of 𝑅.
47. No continuous function has a global minimum on an Are the statements in Problems 51–59 true or false? Give
unbounded region 𝑅. reasons for your answer.
48. If 𝑓 (𝑥, 𝑦) has a local maximum value of 1 at the origin,
then the global maximum is 1. 51. If 𝑃0 is a global maximum of 𝑓 , where 𝑓 is defined on
all of 2-space, then 𝑃0 is also a local maximum of 𝑓 .
In Problems 49–50, give an example of:
52. Every function has a global maximum.
7 Adapted from Aris Rutherford, Discrete Dynamic Programming, p. 35 (New York: Blaisdell, 1964).
15.3 CONSTRAINED OPTIMIZATION: LAGRANGE MULTIPLIERS 825
53. The region consisting of all points (𝑥, 𝑦) satisfying 𝑥2 + 57. If 𝑃 and 𝑄 are two distinct points in 2-space, and 𝑓 has
𝑦2 < 1 is bounded. a global maximum at 𝑃 , then 𝑓 cannot have a global
54. The region consisting of all points (𝑥, 𝑦) satisfying 𝑥2 + maximum at 𝑄.
𝑦2 < 1 is closed.
58. The function 𝑓 (𝑥, 𝑦) = sin(1 + 𝑒𝑥𝑦 ) must have a global
55. The function 𝑓 (𝑥, 𝑦) = 𝑥2 + 𝑦2 has a global minimum minimum in the square region 0 ≤ 𝑥 ≤ 1, 0 ≤ 𝑦 ≤ 1.
on the region 𝑥2 + 𝑦2 < 1.
56. The function 𝑓 (𝑥, 𝑦) = 𝑥2 + 𝑦2 has a global maximum 59. If 𝑃0 is a global minimum of 𝑓 on a closed and bounded
on the region 𝑥2 + 𝑦2 < 1. region, then 𝑃0 need not be a critical point of 𝑓 .
Many, perhaps most, real optimization problems are constrained by external circumstances. For ex-
ample, a city wanting to build a public transportation system that will serve the greatest possible
number of people has only a limited number of tax dollars it can spend on the project. In this sec-
tion, we see how to find an optimum value under such constraints.
In Section 15.2, we saw how to optimize a function 𝑓 (𝑥, 𝑦) on a region 𝑅. If the region 𝑅 is the
entire 𝑥𝑦-plane, we have unconstrained optimization; if the region 𝑅 is not the entire 𝑥𝑦-plane, that
is, if 𝑥 or 𝑦 is restricted in some way, then we have constrained optimization.
If 𝑥 and 𝑦 are purchased at prices of 𝑝1 and 𝑝2 thousands of dollars per unit, what is the maximum
production 𝑓 that can be obtained with a budget of 𝑐 thousand dollars?
To maximize 𝑓 without regard to the budget, we simply increase 𝑥 and 𝑦. However, the budget
constraint prevents us from increasing 𝑥 and 𝑦 beyond a certain point. Exactly how does the budget
constrain us? With prices of 𝑝1 and 𝑝2 , the amount spent on 𝑥 is 𝑝1 𝑥 and the amount spent on 𝑦 is
𝑝2 𝑦, so we must have
𝑔(𝑥, 𝑦) = 𝑝1 𝑥 + 𝑝2 𝑦 ≤ 𝑐,
where 𝑔(𝑥, 𝑦) is the total cost of the raw materials and 𝑐 is the budget in thousands of dollars.
Let’s look at the case when 𝑝1 = 𝑝2 = 1 and 𝑐 = 3.78. Then
𝑥 + 𝑦 ≤ 3.78.
Figure 15.26 shows some contours of 𝑓 and the budget constraint represented by the line 𝑥+𝑦 =
3.78. Any point on or below the line represents a pair of values of 𝑥 and 𝑦 that we can afford. A point
on the line completely exhausts the budget, while a point below the line represents values of 𝑥 and
𝑦 which can be bought without using up the budget. Any point above the line represents a pair of
values that we cannot afford.
To maximize 𝑓 , we find the point which lies on the level curve with the largest possible value of
𝑓 and which lies within the budget. The point must lie on the budget constraint because production
is maximized when we spend all the available money. Unless we are at a point where the budget
constraint is tangent to a contour of 𝑓 , we can increase 𝑓 by moving in some direction along the line
representing the budget constraint in Figure 15.26. For example, if we are on the line to the left of
the point of tangency, moving right on the constraint will increase 𝑓 ; if we are on the line to the right
of the point of tangency, moving left will increase 𝑓 . Thus, the maximum value of 𝑓 on the budget
constraint occurs at the point where the budget constraint is tangent to the contour 𝑓 = 2.
826 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
𝑦
Level curves of production
✛ 𝑓 =1
✛ 𝑓 =2
✛𝑓 =3
Maximum production
Budget constraint ✲
𝑥 + 𝑦 = 3.78 ✠
𝑃
𝑥
Figure 15.26: Optimal point, 𝑃 , where budget constraint
is tangent to a level of production function
✛ 𝑓 =1
✛ 𝑓 =2
✛𝑓 =3
grad 𝑓 = 𝜆 grad 𝑔
Budget constraint ✲ ✒
𝑔(𝑥, 𝑦) = 3.78
𝑃
✒
𝑥
Figure 15.27: At the point, 𝑃 , of maximum production,
the vectors grad 𝑓 and grad 𝑔 are parallel
15.3 CONSTRAINED OPTIMIZATION: LAGRANGE MULTIPLIERS 827
As we saw in the production example, constrained extrema occur at points of tangency of con-
tours of 𝑓 and 𝑔; they can also occur at endpoints of constraints. At a point of tangency, grad 𝑓 is
perpendicular to the constraint and so parallel to grad 𝑔. At interior points on the constraint where
grad 𝑓 is not perpendicular to the constraint, the value of 𝑓 can be increased or decreased by moving
along the constraint. Therefore constrained extrema occur only at points where grad 𝑓 and grad 𝑔
are parallel or at endpoints of the constraint. (See Figure 15.28.) At points where the gradients are
parallel, provided grad 𝑔 ≠ 0⃗ , there is a constant 𝜆 such that grad 𝑓 = 𝜆 grad 𝑔.
If the set of points satisfying the constraint is closed and bounded, such as a circle or line seg-
ment, then there must be a global maximum and minimum of 𝑓 subject to the constraint. If the
constraint is not closed and bounded, such as a line or hyperbola, then there may or may not be a
global maximum and minimum.
grad 𝑓 𝑓 =4
✗ grad 𝑔
✗
𝑃0 𝑓 =3
𝑔=𝑐 grad 𝑓 𝑓 =2
✗
✎ grad 𝑔 𝑓 =1
Figure 15.28: Maximum and minimum values
of 𝑓 (𝑥, 𝑦) on 𝑔(𝑥, 𝑦) = 𝑐 are at points where
grad 𝑓 is parallel to grad 𝑔
828 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
𝑥2 + 𝑦2 = 4 𝑦
𝑓 = −1 ❘ √ √ 𝑓
Maximum
( 2, 2)
𝑓 = −2
√
𝑓 = −2 2 𝑥 √
𝑓 =2 2
𝑓 =2
√ √
(− 2, − 2) 𝑓 =1
Minimum 𝑓
𝑓 =0
Figure 15.29: Maximum and minimum values of 𝑓 (𝑥, 𝑦) = 𝑥 + 𝑦 on the circle
𝑥2 + 𝑦2 = 4 are at points where contours of 𝑓 are tangent to the circle
Since the inputs are nonnegative, 𝑥 ≥ 0 and 𝑦 ≥ 0, we have three inequality constraints, which
restrict (𝑥, 𝑦) to a region of the plane rather than to a curve in the plane. In principle, we should first
check to see whether or not 𝑓 (𝑥, 𝑦) has any critical points in the interior:
However, in the case of a budget constraint, we can see that the maximum of 𝑓 must occur when the
budget is exhausted, so we look for the maximum value of 𝑓 on the boundary line:
𝑝1 𝑥 + 𝑝2 𝑦 = 𝑐, 𝑥≥0 𝑦 ≥ 0.
From Section 15.2 we know that if 𝑓 is continuous on a closed and bounded region, 𝑅, then 𝑓
is guaranteed to attain its global maximum and minimum values on 𝑅.
Example 2 Find the maximum and minimum values of 𝑓 (𝑥, 𝑦) = (𝑥 − 1)2 + (𝑦 − 2)2 subject to the constraint
𝑥2 + 𝑦2 ≤ 45.
Solution First, we look for all critical points of 𝑓 in the interior of the region. Setting
𝑓𝑥 (𝑥, 𝑦) = 2(𝑥 − 1) = 0
𝑓𝑦 (𝑥, 𝑦) = 2(𝑦 − 2) = 0,
we find 𝑓 has exactly one critical point at 𝑥 = 1, 𝑦 = 2. Since 12 + 22 < 45, that critical point is in
the interior of the region.
Next, we find the local extrema of 𝑓 on the boundary curve 𝑥2 + 𝑦2 = 45. To do this, we use
Lagrange multipliers with constraint 𝑔(𝑥, 𝑦) = 𝑥2 + 𝑦2 = 45. Setting grad 𝑓 = 𝜆 grad 𝑔, we get
2(𝑥 − 1) = 𝜆 ⋅ 2𝑥,
2(𝑦 − 2) = 𝜆 ⋅ 2𝑦.
We can’t have 𝑥 = 0 since the first equation would become −2 = 0. Similarly, 𝑦 ≠ 0. So we can
solve each equation for 𝜆 by dividing by 𝑥 and 𝑦. Setting the expressions for 𝜆 equal gives
𝑥−1 𝑦−2
= ,
𝑥 𝑦
so
𝑦 = 2𝑥.
Combining this with the constraint 𝑥2 + 𝑦2 = 45, we get
5𝑥2 = 45,
so
𝑥 = ±3.
Since 𝑦 = 2𝑥, we have possible local extrema at 𝑥 = 3, 𝑦 = 6 and 𝑥 = −3, 𝑦 = −6.
830 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
We conclude that the only candidates for the maximum and minimum values of 𝑓 in the region
occur at (1, 2), (3, 6), and (−3, −6). Evaluating 𝑓 at these three points, we find
Therefore, the minimum value of 𝑓 is 0 at (1, 2) and the maximum value is 80 at (−3, −6).
The Meaning of 𝝀
In the uses of Lagrange multipliers so far, we never found (or needed) the value of 𝜆. However, 𝜆
does have a practical interpretation. In the production example, we wanted to maximize
𝑓 (𝑥, 𝑦) = 𝑥2∕3 𝑦1∕3
subject to the constraint
𝑔(𝑥, 𝑦) = 𝑥 + 𝑦 = 3.78.
We solved the equations
2 −1∕3 1∕3
𝑥 𝑦 = 𝜆,
3
1 2∕3 −2∕3
𝑥 𝑦 = 𝜆,
3
𝑥 + 𝑦 = 3.78,
to get 𝑥 = 2.52, 𝑦 = 1.26 and 𝑓 (2.52, 1.26) ≈ 2. Continuing to find 𝜆 gives us
𝜆 ≈ 0.53.
Now we do another, apparently unrelated, calculation. Suppose our budget is increased by one, from
3.78 to 4.78, giving a new budget constraint of 𝑥 + 𝑦 = 4.78. Then the corresponding solution is at
𝑥 = 3.19 and 𝑦 = 1.59 and the new maximum value (instead of 𝑓 = 2) is
𝑓 = (3.19)2∕3(1.59)1∕3 ≈ 2.53.
Notice that the amount by which 𝑓 has increased is 0.53, the value of 𝜆. Thus, in this example, the
value of 𝜆 represents the extra production achieved by increasing the budget by one—in other words,
the extra “bang” you get for an extra “buck” of budget. In fact, this is true in general:
• The value of 𝜆 is approximately the increase in the optimum value of 𝑓 when the budget is
increased by 1 unit.
More precisely:
• The value of 𝜆 represents the rate of change of the optimum value of 𝑓 as the budget increases.
An Expression for 𝝀
To interpret 𝜆, we look at how the optimum value of the objective function 𝑓 changes as the value
𝑐 of the constraint function 𝑔 is varied. In general, the optimum point (𝑥0 , 𝑦0 ) depends on the con-
straint value 𝑐. So, provided 𝑥0 and 𝑦0 are differentiable functions of 𝑐, we can use the chain rule to
differentiate the optimum value 𝑓 (𝑥0 (𝑐), 𝑦0 (𝑐)) with respect to 𝑐:
𝑑𝑓 𝜕𝑓 𝑑𝑥0 𝜕𝑓 𝑑𝑦0
= + .
𝑑𝑐 𝜕𝑥 𝑑𝑐 𝜕𝑦 𝑑𝑐
At the optimum point (𝑥0 , 𝑦0 ), we have 𝑓𝑥 = 𝜆𝑔𝑥 and 𝑓𝑦 = 𝜆𝑔𝑦 , and therefore
( )
𝑑𝑓 𝜕𝑔 𝑑𝑥0 𝜕𝑔 𝑑𝑦0 𝑑𝑔
=𝜆 + =𝜆 .
𝑑𝑐 𝜕𝑥 𝑑𝑐 𝜕𝑦 𝑑𝑐 𝑑𝑐
But, as 𝑔(𝑥0 (𝑐), 𝑦0 (𝑐)) = 𝑐, we see that 𝑑𝑔∕𝑑𝑐 = 1, so 𝑑𝑓 ∕𝑑𝑐 = 𝜆. Thus, we have the following
interpretation of the Lagrange multiplier 𝜆:
15.3 CONSTRAINED OPTIMIZATION: LAGRANGE MULTIPLIERS 831
The value of 𝜆 is the rate of change of the optimum value of 𝑓 as 𝑐 increases (where 𝑔(𝑥, 𝑦) =
𝑐). If the optimum value of 𝑓 is written as 𝑓 (𝑥0 (𝑐), 𝑦0 (𝑐)), then
𝑑
𝑓 (𝑥0 (𝑐), 𝑦0 (𝑐)) = 𝜆.
𝑑𝑐
Example 3 The quantity of goods produced according to the function 𝑓 (𝑥, 𝑦) = 𝑥2∕3 𝑦1∕3 is maximized subject
to the budget constraint 𝑥 + 𝑦 ≤ 3.78. The budget is increased to allow for a small increase in
production. What is the price of the product if the sale of the additional goods covers the budget
increase?
Solution We know that 𝜆 = 0.53, which tells us that 𝑑𝑓 ∕𝑑𝑐 = 0.53. The constraint corresponds to a budget of
$3.78 thousand. Therefore increasing the budget by $1000 increases production by about 0.53 units.
In order to make the increase in budget profitable, the extra goods produced must sell for more than
$1000. Thus, if 𝑝 is the price of each unit of the good, then 0.53𝑝 is the revenue from the extra 0.53
units sold. Thus, we need 0.53𝑝 ≥ 1000 so 𝑝 ≥ 1000∕0.53 = $1890.
Example 4 A company has a production function with three inputs 𝑥, 𝑦, and 𝑧 given by
The total budget is $24,000 and the company can buy 𝑥, 𝑦, and 𝑧 at $80, $12, and $10 per unit,
respectively. What combination of inputs will maximize production?9
The method for functions of two variables works for functions of three variables, so we construct
the Lagrangian function
Eliminating 𝑧 from the first two equations gives 𝑥 = 0.3𝑦. Eliminating 𝑥 from the second and third
equations gives 𝑧 = 1.2𝑦. Substituting for 𝑥 and 𝑧 into 80𝑥 + 12𝑦 + 10𝑧 = 24,000 gives
so 𝑦 = 500. Then 𝑥 = 150 and 𝑧 = 600, and 𝑓 (150, 500, 600) = 4,622 units.
The graph of the constraint, 80𝑥 + 12𝑦 + 10𝑧 = 24,000, is a plane. Since the inputs 𝑥, 𝑦, 𝑧 must
be nonnegative, the graph is a triangle in the first octant, with edges on the coordinate planes. On
the boundary of the triangle, one (or more) of the variables 𝑥, 𝑦, 𝑧 is zero, so the function 𝑓 is zero.
Thus production is maximized within the budget using 𝑥 = 150, 𝑦 = 500, and 𝑧 = 600.
Exercises and Problems for Section 15.3 Online Resource: Additional Problems for Section 15.3
EXERCISES
In Exercises 1–18, use Lagrange multipliers to find the max- 10. 𝑓 (𝑥, 𝑦, 𝑧) = 𝑥 + 3𝑦 + 5𝑧, 𝑥2 + 𝑦2 + 𝑧2 = 1
imum and minimum values of 𝑓 subject to the given con-
straint, if such values exist. 11. 𝑓 (𝑥, 𝑦, 𝑧) = 𝑥2 − 𝑦2 − 2𝑧, 𝑥2 + 𝑦2 = 𝑧
19. For each point marked in Figure 15.30, decide whether: In Exercises 20–23, a Cobb-Douglas production function
(a) The point is a local minimum, maximum, or nei- 𝑃 (𝐾, 𝐿) and budget 𝐵(𝐾, 𝐿) are given, where 𝐾 represents
ther for the function 𝑓 constrained by the loop. capital and 𝐿 represents labor. Use Lagrange multipliers to
(b) The point is a global minimum, maximum, or nei- find the values of 𝐾 and 𝐿 that maximize production given
ther subject to the constraint. a budget constraint or minimize budget given a production
constraint. Then give the value for 𝜆 and its meaning.
𝑓 = 10
𝑄
20. Maximize production: 𝑃 = 𝐾 1∕4 𝐿3∕4
Constraint Budget constraint: 𝐵 = 2𝐾 + 𝐿 = 40
𝑅
❘
𝑃 21. Maximize production: 𝑃 = 𝐾 2∕3 𝐿1∕3
Budget constraint: 𝐵 = 10𝐾 + 4𝐿 = 60
𝑓 = 20
𝑆
22. Maximize production: 𝑃 = 𝐾 2∕5 𝐿3∕5
𝑓 = 50 Budget constraint: 𝐵 = 4𝐾 + 5𝐿 = 100
𝑓 = 30 𝑓 = 40 𝑓 = 60
23. Minimize budget: 𝐵 = 4𝐾 + 𝐿
Figure 15.30 Production constraint: 𝑃 = 𝐾 1∕2 𝐿1∕2 = 200
PROBLEMS
24. Find the maximum value of 𝑓 (𝑥, 𝑦) = 𝑥 + 𝑦 − (𝑥 − 𝑦)2 29. Each person tries to balance his or her time between
on the triangular region 𝑥 ≥ 0, 𝑦 ≥ 0, 𝑥 + 𝑦 ≤ 1. leisure and work. The tradeoff is that as you work less
25. For 𝑓 (𝑥, 𝑦) = 𝑥2 + 6𝑥𝑦, find the global maximum your income falls. Therefore each person has indiffer-
and minimum on the closed region in the first quadrant ence curves which connect the number of hours of
bounded by the line 𝑥 + 𝑦 = 4 and the curve 𝑥𝑦 = 3. leisure, 𝑙, and income, 𝑠. If, for example, you are in-
different between 0 hours of leisure and an income of
26. (a) Draw contours of 𝑓 (𝑥, 𝑦) = 2𝑥 + 𝑦 for $1125 a week on the one hand, and 10 hours of leisure
𝑧 = −7, −5, −3, −1, 1, 3, 5, 7. and an income of $750 a week on the other hand, then
(b) On the same axes, graph the constraint 𝑥2 +𝑦2 = 5. the points 𝑙 = 0, 𝑠 = 1125, and 𝑙 = 10, 𝑠 = 750 both
(c) Use the graph to approximate the points at which lie on the same indifference curve. Table 15.3 gives in-
𝑓 has a maximum or a minimum value subject to formation on three indifference curves, I, II, and III.
the constraint 𝑥2 + 𝑦2 = 5.
(d) Use Lagrange multipliers to find the maximum and
minimum values of 𝑓 (𝑥, 𝑦) = 2𝑥 + 𝑦 subject to Table 15.3
𝑥2 + 𝑦2 = 5.
Weekly income Weekly leisure hours
27. Let 𝑓 (𝑥, 𝑦) = 𝑥𝛼 𝑦1−𝛼 for 0 < 𝛼 < 1. Find the value I II III I II III
of 𝛼 such that the maximum value of 𝑓 on the line
2𝑥 + 3𝑦 = 6 occurs at (1.5, 1). 1125 1250 1375 0 20 40
750 875 1000 10 30 50
28. Figure 15.31 shows contours of 𝑓 . Does 𝑓 have a max-
imum value subject to the constraint 𝑔(𝑥, 𝑦) = 𝑐 for 500 625 750 20 40 60
𝑥 ≥ 0, 𝑦 ≥ 0? If so, approximately where is it and what 375 500 625 30 50 70
is its value? Does 𝑓 have a minimum value subject to 250 375 500 50 70 90
the
𝑦 constraint? If so, approximately where and what?
Figure 15.31
834 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
30. Figure 15.32 shows ∇𝑓 for a function 𝑓 (𝑥, 𝑦) and two 33. If the right side of the constraint in Exercise 5 is
curves 𝑔(𝑥, 𝑦) = 1 and 𝑔(𝑥, 𝑦) = 2. Mark the following: changed by the small amount Δ𝑐, by approximately how
much do the maximum and minimum values change?
(a) The point(s) 𝐴 where 𝑓 has a local maximum.
(b) The point(s) 𝐵 where 𝑓 has a saddle point. 34. If the right side of the constraint in Exercise 6 is
(c) The point 𝐶 where 𝑓 has a maximum on 𝑔 = 1. changed by the small amount Δ𝑐, by approximately how
(d) The point 𝐷 where 𝑓 has a minimum on 𝑔 = 1. much do the maximum and minimum values change?
(e) If you used Lagrange multipliers to find 𝐶, what 35. The function 𝑃 (𝑥, 𝑦) gives the number of units pro-
would the sign of 𝜆 be? Why? duced and 𝐶(𝑥, 𝑦) gives the cost of production.
(a) A company wishes to maximize production at a
fixed cost of $50,000. What is the objective func-
tion 𝑓 ? What is the constraint equation? What is
𝑔=2 ✲ the meaning of 𝜆 in this situation?
(b) A company wishes to minimize costs at a fixed pro-
duction level of 2000 units. What is the objective
𝑔=1 ✲ function 𝑓 ? What is the constraint equation? What
is the meaning of 𝜆 in this situation?
Bladder Cancer,” Medical Decision Making (Philadelphia: Hanley and Belfus, 1989).
836 Chapter 15 OPTIMIZATION: LOCAL AND GLOBAL EXTREMA
(b) If you are familiar with Hooke’s law, find the mean- 𝑉 (𝑝, 𝑞, 𝐼) is the maximum of 𝑈 (𝑥, 𝑦) subject to the con-
ing of 𝜆. straint 𝑝𝑥 + 𝑞𝑦 = 𝐼.
(a) What is the practical meaning of 𝑉 (𝑝, 𝑞, 𝐼)?
(b) The Lagrange multiplier 𝜆 that arises in the max-
imization defining 𝑉 is called the marginal utility
𝑘1 of money. What is its practical meaning?
(c) Find formulas for 𝑉 (𝑝, 𝑞, 𝐼) and 𝜆 if 𝑈 (𝑥, 𝑦) = 𝑥𝑦.
(a) What is the practical meaning of 𝐶(𝑝, 𝑞, 𝑢)? where 𝑎 is a constant, 0 < 𝑎 < 1. The prices of the two
(b) Find a formula for 𝐶(𝑝, 𝑞, 𝑢) if 𝑔(𝑥, 𝑦) = 𝑥𝑦. items are 𝑝1 and 𝑝2 respectively, and the budget is 𝑏.
(a) Express the maximum satisfaction that can be
50. A utility function 𝑈 (𝑥, 𝑦) for two items gives the util-
achieved as a function of 𝑝1 , 𝑝2 , and 𝑏.
ity (benefit) to a consumer of 𝑥 units of item 1 and 𝑦
(b) Find the amount of money that must be spent to
units of item 2. The indirect utility function is the three-
achieve a particular level of satisfaction, 𝑐, as a
variable function 𝑉 (𝑝, 𝑞, 𝐼) where 𝑝 and 𝑞 are the unit
function of 𝑝1 , 𝑝2 , and 𝑐.
prices of the two items. For fixed 𝑝, 𝑞, and 𝐼, the value
In Problems 54–55, explain what is wrong with the state- In Problems 56–60, give an example of:
ment.
56. A function 𝑓 (𝑥, 𝑦) whose maximum subject to the con-
straint 𝑥2 + 𝑦2 = 5 is at (3, 4).
54. The function 𝑓 (𝑥, 𝑦) = 𝑥𝑦 has a maximum of 2 on the
constraint 𝑥 + 𝑦 = 2. 57. A function 𝑓 (𝑥, 𝑦) to be optimized with constraint 𝑥2 +
2𝑦2 ≤ 1 such that the minimum value does not change
55. If the level curves of 𝑓 (𝑥, 𝑦) and the level curves of when the constraint is changed to 𝑥2 + 𝑦2 ≤ 1 + 𝑐 for
𝑔(𝑥, 𝑦) are not tangent at any point on the constraint 𝑐 > 0.
𝑔(𝑥, 𝑦) = 𝑐, 𝑥 ≥ 0, 𝑦 ≥ 0, then 𝑓 has no maximum 58. A function 𝑓 (𝑥, 𝑦) with a minimum at (1, 1) on the con-
on the constraint. straint 𝑥 + 𝑦 = 2.
15.3 CONSTRAINED OPTIMIZATION: LAGRANGE MULTIPLIERS 837
59. A function 𝑓 (𝑥, 𝑦) that has a maximum but no minimum 64. If 𝑓 (𝑥, 𝑦) has a local maximum at (𝑎, 𝑏) subject to the
on the constraint 𝑥 + 𝑦 = 4. constraint 𝑔(𝑥, 𝑦) = 𝑐, then grad𝑓 (𝑎, 𝑏) = 0⃗ .
60. A contour diagram of a function 𝑓 whose maximum 65. The function 𝑓 (𝑥, 𝑦) = 𝑥 + 𝑦 has no global maximum
value on the constraint 𝑥 + 2𝑦 = 6, 𝑥 ≥ 0, 𝑦 ≥ 0 occurs subject to the constraint 𝑥 − 𝑦 = 0.
at one of the endpoints.
66. The point (2, −1) is a local minimum of 𝑓 (𝑥, 𝑦) =
For Problems 61–62, use Figure 15.37. The grid lines are 𝑥2 + 𝑦2 subject to the constraint 𝑥 + 2𝑦 = 0.
one unit apart. 67. If grad 𝑓 (𝑎, 𝑏) and grad 𝑔(𝑎, 𝑏) point in opposite direc-
𝑦 tions, then (𝑎, 𝑏) is a local minimum of 𝑓 (𝑥, 𝑦) con-
strained by 𝑔(𝑥, 𝑦) = 𝑐.
𝑓 =0
70. If grad 𝑓 (𝑎, 𝑏) = 𝜆 grad 𝑔(𝑎, 𝑏), then 𝑓 (𝑎, 𝑏) = 𝑀 or
𝑥 𝑓 (𝑎, 𝑏) = 𝑚.
Figure 15.37 71. If 𝑓 (𝑎, 𝑏) = 𝑀 and 𝑓𝑥 (𝑎, 𝑏)∕𝑓𝑦 (𝑎, 𝑏) = 5, then
𝑔𝑥 (𝑎, 𝑏)∕𝑔𝑦 (𝑎, 𝑏) = 5.
61. Find the maximum and minimum values of 𝑓 on 𝑔 = 𝑐. 72. If 𝑓 (𝑎, 𝑏) = 𝑚 and 𝑔𝑥 (𝑎, 𝑏) = 0, then 𝑓𝑥 (𝑎, 𝑏) = 0.
At which points do they occur?
73. Increasing the value of 𝑐 increases the value of 𝑀.
62. Find the maximum and minimum values of 𝑓 on the
triangular region below 𝑔 = 𝑐 in the first quadrant. 74. Suppose that 𝑓 (𝑎, 𝑏) = 𝑀 and that grad 𝑓 (𝑎, 𝑏) =
3 grad 𝑔(𝑎, 𝑏). Then increasing the value of 𝑐 by 0.02
Are the statements in Problems 63–67 true or false? Give increases the value of 𝑀 by about 0.06.
reasons for your answer. 75. Suppose that 𝑓 (𝑎, 𝑏) = 𝑚 and that grad 𝑓 (𝑎, 𝑏) =
63. If 𝑓 (𝑥, 𝑦) has a local maximum at (𝑎, 𝑏) subject to the 3 grad 𝑔(𝑎, 𝑏). Then increasing the value of 𝑐 by 0.02
constraint 𝑔(𝑥, 𝑦) = 𝑐, then 𝑔(𝑎, 𝑏) = 𝑐. decreases the value of 𝑚 by about 0.06.