Practice Problems 17

Lecture 17: Multivariable Optimization

Problem numbers refer to the textbook (Chiang & Wainwright, 4th edition). These are not graded, but you should attempt them all before the quiz. Try each question yourself first, then expand the Solution to check.

Exercise 11.2

Find the extreme value(s) of each of the following four functions, and determine whether they are maxima or minima:

1. z=x2+xy+2y2+3

Solution

The first-order conditions are zx=2x+y=0andzy=x+4y=0 which give (x∗,y∗)=(0,0), with z∗=3. At this point, zxx=2>0,zyy=4>0,zxy=1,zxxzyy=8>1=zxy2 so z∗ is a minimum.

2. z=−x2−y2+6x+2y

Solution

The first-order conditions are zx=−2x+6=0andzy=−2y+2=0 which give (x∗,y∗)=(3,1), with z∗=10. At this point, zxx=−2<0,zyy=−2<0,zxy=0,zxxzyy=4>0=zxy2 so z∗ is a maximum.

3. z=ax2+by2+c; consider each of the three subcases:

  1. a>0, b>0
Solution

The first-order conditions zx=2ax=0 and zy=2by=0 give (x∗,y∗)=(0,0), with z∗=c. Here zxx=2a, zyy=2b, zxy=0, and zxxzyy=4ab. With a,b>0, zxx>0, zyy>0, and 4ab>0, so z∗=c is a minimum.

  1. a<0, b<0
Solution

The first-order conditions zx=2ax=0 and zy=2by=0 give (x∗,y∗)=(0,0), with z∗=c. Here zxx=2a, zyy=2b, zxy=0, and zxxzyy=4ab. With a,b<0, zxx<0, zyy<0, and 4ab>0, so z∗=c is a maximum.

  1. a and b opposite in sign
Solution

The first-order conditions zx=2ax=0 and zy=2by=0 give (x∗,y∗)=(0,0), with z∗=c. Here zxx=2a, zyy=2b, zxy=0, and zxxzyy=4ab. With a and b opposite in sign, 4ab<0=zxy2, so (0,0) is a saddle point: neither a maximum nor a minimum.

4. z=e2x−2x+2y2+3

Solution

The first-order conditions are zx=2e2x−2=0andzy=4y=0 which give (x∗,y∗)=(0,0), with z∗=4. At this point, zxx=4e2x=4>0,zyy=4>0,zxy=0,zxxzyy=16>0=zxy2 so z∗ is a minimum.

5. Consider the function z=(x−2)4+(y−3)4.

  1. Establish by intuitive reasoning that z attains a minimum (z∗=0) at x∗=2 and y∗=3.
Solution

(x−2)4 and (y−3)4 are never negative, and both are zero only at x=2, y=3. So z≥0 everywhere, with z∗=0 at (2,3).

  1. Is the first-order necessary condition satisfied?
Solution

Yes. zx=4(x−2)3 and zy=4(y−3)3 are both zero at (2,3).

  1. Is the second-order sufficient condition satisfied?
Solution

No. zxx=12(x−2)2, zyy=12(y−3)2, and zxy=0 are all zero at (2,3), so zxx>0 fails. The second-order condition is sufficient, not necessary: this point is a minimum even though the condition does not hold.