Solving Optimization Problems
Solving Optimization Problems when the Interval Is Not Closed or Is Unbounded
In the previous examples, we considered functions on closed, bounded domains. Consequently, by the extreme value theorem, we were guaranteed that the functions had absolute extrema. Let’s now consider functions for which the domain is neither closed nor bounded.
Many functions still have at least one absolute extrema, even if the domain is not closed or the domain is unbounded. For example, the function f(x)=x2+4f(x)=x2+4 over (−∞,∞)(−∞,∞) has an absolute minimum of 4 at x=0x=0. Therefore, we can still consider functions over unbounded domains or open intervals and determine whether they have any absolute extrema.
In the following example, we look at constructing a box of least surface area with a prescribed volume. It is not difficult to show that for a closed-top box, by symmetry, among all boxes with a specified volume, a cube will have the smallest surface area. Consequently, we consider the modified problem of determining which open-topped box with a specified volume has the smallest surface area.
A rectangular box with a square base, an open top, and a volume of 216in3216in3 is to be constructed. What should the dimensions of the box be to minimize the surface area of the box? What is the minimum surface area?
Step 1: Draw a rectangular box and introduce the variable xx to represent the length of each side of the square base; let yy represent the height of the box. Let SS denote the surface area of the open-top box.

Step 2: We need to minimize the surface area. Therefore, we need to minimize SS.
Step 3: Since the box has an open top, we need only determine the area of the four vertical sides and the base. The area of each of the four vertical sides is x⋅yx⋅y. The area of the base is x2x2. Therefore, the surface area of the box is
Step 4: Since the volume of this box is x2yx2y and the volume is given as 216in3216in3, the constraint equation is
Solving the constraint equation for yy, we have y=216x2y=216x2. Therefore, we can write the surface area as a function of xx only:
Therefore, S(x)=864x+x2S(x)=864x+x2.
Step 5: Since we are requiring that x2y=216x2y=216, we cannot have x=0x=0. Therefore, we need x>0x>0. On the other hand, xx is allowed to have any positive value.
Note that as xx becomes large, the height of the box yy becomes correspondingly small so that x2y=216x2y=216. Similarly, as xx becomes small, the height of the box becomes correspondingly large.
We conclude that the domain is the open, unbounded interval (0,∞)(0,∞). Note that, unlike the previous examples, we cannot reduce our problem to looking for an absolute maximum or absolute minimum over a closed, bounded interval.
However, in the next step, we discover why this function must have an absolute minimum over the interval (0,∞)(0,∞).
Step 6: Note that as x→0+x→0+, S(x)→∞S(x)→∞. Also, as x→∞x→∞, S(x)→∞S(x)→∞. Since SS is a continuous function that approaches infinity at the ends, it must have an absolute minimum at some x∈(0,∞)x∈(0,∞). This minimum must occur at a critical point of SS. The derivative is
Therefore, S′(x)=0S′(x)=0 when 2x=864x22x=864x2.
Solving this equation for xx, we obtain x3=432x3=432, so x=3√432=63√2x=3√432=63√2.
Since this is the only critical point of SS, the absolute minimum must occur at x=63√2x=63√2 (see Figure 9). When x=63√2x=63√2, y=216(63√2)2=33√2y=216(63√2)2=33√2 in.
Therefore, the dimensions of the box should be x=63√2x=63√2 in and y=33√2y=33√2 in. With these dimensions, the surface area is:

Watch the following video to see the worked solution to the example above.
Consider the same open-top box, which is to have volume 216in3216in3. Suppose the cost of the material for the base is $0.20/in2$0.20/in2 and the cost of the material for the sides is $0.30/in2$0.30/in2 and we are trying to minimize the cost of this box. Write the cost as a function of the side lengths of the base. (Let xx be the side length of the base and yy be the height of the box.)