In a great many practical problems, we want to find the least amount of time, least cost, greatest benefit, optimum size, etc. In such problems, which are called optimization problems, we look for the maximum or minimum value of a function and the particular value of the variable that gives such a value. In this section, we outline a strategy to systematically attack optimization problems by using differential calculus.

Example 1
Find two nonnegative numbers whose sum is 50 such that their product is as large as possible.
Solution 1
If one of those numbers is x, the other one is 50x. Therefore, their product is x(50x) and because x and 50x are nonnegative numbers, we have 0x50 (otherwise x or 50x will be negative). That is, we want to maximize (*)f(x)=x(50x)=50xx2 on the interval [0,50]. Because f is a continuous function and the interval is closed, f attains its absolute maximum (and its absolute minimum) on this interval, and its extreme values occur either at a critical point or an endpoint. Because f is a polynomial and hence is differentiable everywhere, its critical points are only the points at which the derivative vanishes f(x)=0. From (*) we obtain f(x)=502x=0x=25. Therefore, the absolute maximum of f is one of the following numbers f(0)=0,f(25)=25(5025)=625,f(50)=0. Thus, the maximum value of f is 625, which occurs at x=25, and hence the two nonnegative numbers are x=25 and 50x=25.

The graph of f is shown in Figure 1.

Figure 1
Figure 1. Graph of f(x)=x(50x). The maximum of f occurs at x=25.
Example 2
Find the dimensions of the rectangle of greatest area that can be inscribed in a circle of radius 2.
Solution 2
Inscribe any rectangle, as BCDE (Figure 2). Let x=CD then DE=42x2, and the area of the rectangle is A(x)=CDDE=x16x2.

Figure 2
Figure 2

 

Because 0x4, the problem reduces to maximization of A(x) on the interval [0,4]. A(x)=16x2+x2x216x2. Setting A(x)=0, we obtain 16x2x216x2=0. Multiplying both sides by 16x2: 16x2x2=0 x=±8=±22. Only x=22 is in the interval [0,4]. Therefore, the absolute maximum of A is one of the following numbers: A(0)=0,A(4)=0, and A(22)=8168=8. The above calculations show us that the rectangle of maximum area inscribed in the circle is a square with side lengths of 8=22 and of area 8.

The graph of A is shown in Figure 3.

Figure 3
Figure 3. Graph of A(x)=x16x2.
Example 3
Suppose we have a piece cardboard with the dimensions 48 in × 18 in. To carry our stuff, we are planning to make an open box from the cardboard by cutting out small squares of equal size from each corner and folding up the sides (Figure 5). If we want the box to have the largest volume, how long we should make the cut?

 

Figure 4

Solution 3
Let
x= length of each side of the square
V= volume of the open box
We need to find a relationship between V and x. Because the dimensions of the box are 482x, 182x, and x (Figure 6), the volume of the box is V=(482x)(182x)x=4x3132x2+864x.

Figure 5

Because the dimensions of the box must be nonnegative, we have {0x0182x0482x0x9. Because V is continuous on the interval [0,9], its absolute maximum occurs either at an endpoint x=0, x=9, or at a critical point. To obtain critical points dVdx=12x2264x+864=0 x222x+72=(x4)(x18)=0 x=4, or x=18. However, x=18[0,9]. Therefore, the only critical point in the interval [0,9] is x=4, and the absolute maximum of V is one of the following numbers.

\large x 0 4 9
V(x) 0 1600 0

Therefore, the maximum volume is obtained when x=4.

The graph of V(x) is shown in Figure 6.

Figure 6
Figure 6
Example 4
What is shortest distance from the point (0,2) to the parabola 8x2=2y?

Figure 7
Figure 7
Solution 4
The distance between the point (0,2) and a point (x,y) is d=(x0)2+(y2)2. Because (x,y) is on the graph of x2+8=4y, then (x,y)=(x,14(x2+8)) and the distance d is d=x2+(12(8x2)2)2=x2+(212x2)2. We notice that the x value that minimizes d also minimizes the expression inside the radical. So instead of minimizing d, we can minimize d2 (that is, the expression inside the radical) to avoid differentiation of a square root. Therefore, the function f to be minimized is f(x)=x2+(212x2)2=x2+42x2+14x4=14x4x2+4. Because f(x) is defined for all real x, there are no endpoints of the domain to consider. The derivative of f f(x)=x32x=x(x22) is zero when x=0,±2.

To apply the First Derivative Test, we need to determine the sign of f:

\large x   2   0   2   +
sign of x+2   0 +++ + +++ + +++  
sign of x   0 +++ + +++  
sign of x2   + +++  
sign of f(x)   0 +++ 0 0 +++  
Increasing/Decreasing f(x)   ↘   ↗   ↘   ↗  

It follows from the First Derivative Test and the above table that x=0 yields a local maximum, whereas x=±2 yield a minimum distance. d|x=±2=2+(2122)2=3.

Let’s see what will happen if we use the Second Derivative Test instead of the First Derivative Test f(x)=x22 Because f(0)=2<0, f has a local maximum at x=0. Becausef(±2)=0, the Second Derivative Test fails, and we cannot determine if f has a local maximum, a local minimum at x=±2.

Therefore, f(±2)=3 is the shortest distance from the point (0,2) to the parabola 8x2=2y, and the closest points on the parabola to (0,2) are (2,3) and (2,3).

The graph of d=x2+(2x2/2)2 is shown in Figure 8.

Figure 8
Figure 8

Let’s summarize the strategy that we have applied to solve the examples of this section:

Strategy for Solving Optimization Problems

  1. Identify the dependent variable that needs to be maximized or minimized and every variable that plays a role in the problem. Assign appropriate letters to the variables and constants that remind you of their actual meaning.
  2. Write a primary equation that relates the variable which is to be optimized to the other variables.
  3. If the primary equation is a function of more than one independent variable, eliminate the extra variables and reduce the equation to one having a single independent variable. This may involve the use of secondary equations relating the independent variables of the primary equation. The discovery of the secondary equations is often facilitated by drawing a figure or two.
  4. Determine the domain of the independent variable. This domain may be smaller than the natural domain of the function because of limitations inherent to the problem.
  5. Test the critical points and endpoints of the domain. Use the First Derivative Test or the Second Derivative Test to classify the critical points.

For example, in the last example, the primary equation is d=x2+(y2)2. We needed to minimize d (or d2), but d is a function of x and y. So we had to eliminate one of the two variables using a secondary equation. Because (x,y) is on the parabola, the secondary equation is the equation of parabola relating x and y, which is 2y=8x2.

Example 5
Find the height and radius of the right circular cylinder of maximum volume that can be inscribed in a right circular cone with radius 18 cm and height 30 cm.

Solution 5
Let
r= radius of the cylinder
h= height of the cylinder
V= volume of the cylinder
We know (i)V=πr2h, and we want to maximize V provided that the cylinder is inscribed in the cone. Here V depends both on r and h and it is necessary to express V in only one variable (either r or h). To do so, we look for a relationship that connects r and h. If we look at the cone from the side, we realize that OAB and OAB are similar (Figure 10).

Figure 10
Figure 10

 

OABOAB AOAO=OBOB or 30h30=r18 30(18)18h=30r (ii)h=3053r Substituting (ii) into (i), we obtain V=πr2(3053r)=30πr253πr3. Now V is a function of r alone. Because r may vary only between 0 and 18 (the radius of the cone) 0r18, and V is a continuous function, the existence of a maximum value is guaranteed. The maximum value occurs either at r=0, r=18, or at a critical number. V(r)=60πr5πr2=5πr(12r). The solutions of V(r)=0 are r=0, r=12. It suffices to compute V(r) at the critical numbers and the endpoints

r 0 12 18
V 0 1440π 0

So the maximum volume occurs when r=12 and h=3053(12)=10.

The graph of V(r) is shown in Figure 11.

Figure 10
Figure 11
Example 6
The lower corner of a long page whose width is a is folded over so as just to reach the inner edge of the page (see the following figure).
(a) Find the width of the part folded over when the length of the crease is a minimum,
(b) Find the width when the area folded over is a minimum.

Figure 12
Figure 12
Solution 6
Let
x= length of BC
y= length of CE
L= length of BE

Figure 13
Figure 13

 

From BCE (i)L2=x2+y2. We want to minimize L, but L depends on two variables x and y. To eliminate one of the variables, we need a relationship between x and y. From BAD, we have AB2+AD2=BD2. Because before folding the page, BED was BEC, we have BD=BC and thus (ax)2+AD2=x2 AD2=x2(ax)2=2axa2 Because AD=CD=2axx2, from DDE DD2+DE2=DE2 and a2+(yAD)2=y2 or a2+(y2axa2)2=y2 2y2axa2+2ax=0 (ii)y2=a2x22axa2=ax22xa Substituting (ii) in (i) we obtain L2=x2+ax22xa. Instead of minimizing L, we can minimize L2 to avoid differentiation of a radical. Let f(x)=x2+ax22xa=2x3ax2+ax22xa=2x32xa. The critical number (or critical point) of f is obtained by setting f(x)=0: f(x)=6x2(2xa)4x3(2xa)2=0 8x36ax2=2x2(4x3a)=0

x=0,x=3a4. Note that x must be larger than a/2, otherwise the expression under the radical L=2x3/(2xa) becomes negative. Therefore, x=0 is not acceptable. Because (2xa)2>0, the sign of f(x) is the same as the sign of its numerator, and the numerator 8x36ax2=2x2(4x3a) is negative if x<3a/4 and is positive if x>3a/4. Therefore, by the First Derivative Test, x=3a/4 is a local minimum point (f varies from a decreasing function to an increasing one), and L for x=3a/4 is 2x32xa|x=3a4=334a1.299a. If x=a, then L=2a22aa=2a1.414a and limxa/2+L=limxa/2+2x32xa=[2a30+]+. These calculations show that the absolute minimum of L is 33a/4.

The graph of L/a versus x/a is shown in Figure 14. La=1a2x32xa=2x3a3(2xa1)=2(x/a)32(x/a)1

Figure 11
Figure 14

 

(b) The folded area A is (iii)A=xy Substituting (ii) in (iii), we obtain A=xax22xa=ax42xa. Again to avoid differentiation of a radical, we can minimize A2 instead of minimizing A. So we minimize g(x)=ax42xa. The critical point is obtained by setting g(x)=4ax3(2xa)2ax42xa=0

2ax3[2(2xa)x]=0 x=0,x=2a3. Again x=0 is not within the domain of A, which is the interval (a/2,a]. When x=2a/3, the area is A=2a3a49a24a3a=4a233. We can show that A as x+ or xa/2+, and A|x=a=a2. Therefore, A has an absolute minimum when x=2a/3.

The graph of A/a2 versus x/a is shown in Figure 15.

Figure 12
Figure 15
Example 7
As shown in the following figure, two corridors, of widths a and b, meet at right angles. What is the maximum length of a ladder which can be horizontally carried around the corner?

Figure 16
Figure 16
Solution 7
From Figure 17, the length of the ladder is L=L1+L2=x2+b2+y2+a2 Here L depends on both x and y. To make L a function of one variable only, we need a relationship between x and y.

Figure 17
Figure 17

 

From ABC: tanθ=bx and from ADE: tanθ=ya. So the relationship between x and y is bx=yay=abx. Therefore, the length of the ladder can be expressed as L=x2+b2+a2b2x2+a2=x2+b2+a2b2+a2x2x2=x2+b2+axb2+x2=x2+b2(1+ax). The critical point of L is obtained by setting dL/dx=0: dLdx=2x2x2+b2(1+ax)ax2x2+b2=1x2+b2[x+aax2(x2+b2)] dLdx=0xab2x2=0x=ab23. and the minimum length L is x2+b2(1+ax)|x=ab23=a2/3b4/3+b2(1+a2/3b2/3)=a2/3b4/3+b2b4/3(b2/3+a2/3)=(a2/3+b2/3)3/2. Obviously as x0 or x+, L+, and the local minimum of L is also its absolute minimum.