Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

14.7: Maxima and minima

( \newcommand{\kernel}{\mathrm{null}\,}\)

Suppose a surface given by f(x,y) has a local maximum at (x0,y0,z0); geometrically, this point on the surface looks like the top of a hill. If we look at the cross-section in the plane y=y0, we will see a local maximum on the curve at (x0,z0), and we know from single-variable calculus that zx=0 at this point.

Likewise, in the plane x=x0, zy=0. So if there is a local maximum at (x0,y0,z0), both partial derivatives at the point must be zero, and likewise for a local minimum. Thus, to find local maximum and minimum points, we need only consider those points at which both partial derivatives are 0. As in the single-variable case, it is possible for the derivatives to be 0 at a point that is neither a maximum or a minimum, so we need to test these points further.

You will recall that in the single variable case, we examined three methods to identify maximum and minimum points; the most useful is the second derivative test, though it does not always work. For functions of two variables there is also a second derivative test; again it is by far the most useful test, though it does not always work.

Theorem 14.7.1: The Discriminant

Suppose that the second partial derivatives of f(x,y) are continuous near (x0,y0), and fx(x0,y0)=fy(x0,y0)=0. We denote by D the discriminant:

D(x0,y0)=fxx(x0,y0)fyy(x0,y0)fxy(x0,y0)2.

If D>0 and fxx(x0,y0)<0 there is a local maximum at (x0,y0); if D>0 and fxx(x0,y0)>0 there is a local minimum at (x0,y0); if D<0 there is neither a maximum nor a minimum at (x0,y0); if D=0, the test fails.

Example 14.7.1

Verify that f(x,y)=x2+y2 has a minimum at (0,0).

Solution

First, we compute all the needed derivatives:

fx=2xfy=2yfxx=2fyy=2fxy=0.

The derivatives fx and fy are zero only at (0,0). Applying the second derivative test there:

D(0,0)=fxx(0,0)fyy(0,0)fxy(0,0)2=220=4>0,

so there is a local minimum at (0,0), and there are no other possibilities.

Example 14.7.2

Find all local maxima and minima for f(x,y)=x2y2.

Solution

The derivatives:

fx=2xfy=2yfxx=2fyy=2fxy=0.

Again there is a single critical point, at (0,0), and D(0,0)=fxx(0,0)fyy(0,0)fxy(0,0)2=220=4<0,

so there is neither a maximum nor minimum there, and so there are no local maxima or minima. The surface is shown in Figure 14.7.1.

imageedit_13_2495423521.png

Figure 14.7.1: A saddle point, neither a maximum nor a minimum.

Example 14.7.4

Find all local maxima and minima for f(x,y)=x4+y4.

Solution

The derivatives:

fx=4x3fy=4y3fxx=12x2fyy=12y2fxy=0.

Again there is a single critical point, at (0,0), and

D(0,0)=fxx(0,0)fyy(0,0)fxy(0,0)2=000=0,

so we get no information. However, in this case it is easy to see that there is a minimum at (0,0), because f(0,0)=0 and at all other points f(x,y)>0.

Example 14.7.5

Find all local maxima and minima for f(x,y)=x3+y3.

Solution

The derivatives:

fx=3x2fy=3y2fxx=6x2fyy=6y2fxy=0.

Again there is a single critical point, at (0,0), and

D(0,0)=fxx(0,0)fyy(0,0)fxy(0,0)2=000=0,

so we get no information. In this case, a little thought shows there is neither a maximum nor a minimum at (0,0): when x and y are both positive, f(x,y)>0, and when x and y are both negative, f(x,y)<0, and there are points of both kinds arbitrarily close to (0,0). Alternately, if we look at the cross-section when y=0, we get f(x,0)=x3, which does not have either a maximum or minimum at x=0.

Example 14.7.5

Suppose a box with no top is to hold a certain volume V. Find the dimensions for the box that result in the minimum surface area.

Solution

The area of the box is A=2hw+2hl+lw, and the volume is V=lwh, so we can write the area as a function of two variables,

A(l,w)=2Vl+2Vw+lw.

Then

Al=2Vl2+wandAw=2Vw2+l.

If we set these equal to zero and solve, we find w=(2V)1/3 and l=(2V)1/3, and the corresponding height is h=V/(2V)2/3.

The second derivatives are

All=4Vl3Aww=4Vw3Alw=1,

so the discriminant is

D=4Vl34Vw31=41=3>0.

Since All is 2, there is a local minimum at the critical point. Is this a global minimum? It is, but it is difficult to see this analytically; physically and graphically it is clear that there is a minimum, in which case it must be at the single critical point.

imageedit_10_2668903082.png

Note that we must choose a value for V in order to graph it.

Recall that when we did single variable global maximum and minimum problems, the easiest cases were those for which the variable could be limited to a finite closed interval, for then we simply had to check all critical values and the endpoints. The previous example is difficult because there is no finite boundary to the domain of the problem---both w and l can be in (0,). As in the single variable case, the problem is often simpler when there is a finite boundary.

Definition: Continuous functions

If f(x,y) is continuous on a closed and bounded subset of R2, then it has both a maximum and minimum value.

As in the case of single variable functions, this means that the maximum and minimum values must occur at a critical point or on the boundary; in the two variable case, however, the boundary is a curve, not merely two endpoints.

Example 14.7.6

The length of the diagonal of a box is to be 1 meter; find the maximum possible volume.

Solution

If the box is placed with one corner at the origin, and sides along the axes, the length of the diagonal is x2+y2+z2, and the volume is

V=xyz=xy1x2y2.

Clearly, x2+y21, so the domain we are interested in is the quarter of the unit disk in the first quadrant. Computing derivatives:

Vx=y2yx2y31x2y2Vy=x2xy2x31x2y2

If these are both 0, then x=0 or y=0, or x=y=1/3. The boundary of the domain is composed of three curves: x=0 for y[0,1]; y=0 for x[0,1]; and x2+y2=1, where x0 and y0. In all three cases, the volume xy1x2y2 is 0, so the maximum occurs at the only critical point (1/3,1/3,1/3). See Figure 14.7.2.

imageedit_6_9055888477.png

Figure 14.7.2: The volume of a box with fixed length diagonal.

Contributors


This page titled 14.7: Maxima and minima is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Guichard via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?