Optimization: Maximizing volume
One of the key applications of finding global extrema is in optimizing some quantity, either minimizing or maximizing it. For example, suppose you wanted to make an open-topped box out of a flat piece of cardboard that is 25" long by 20" wide. You cut a square out of each corner, all the same size, then fold up the flaps to form the box, as illustrated below.
Suppose you want to find out how big to make the cut-out squares in order to maximize the volume of the box. This applet will illustrate the box and how to think about this problem using calculus.
The box volume problem
The applet shows the flat piece of cardboard in the upper left, and a 3D perspective view of the folded box on the lower left. Move the x slider to adjust the size of the corner cutouts and notice what happens to the box. When x is small, the box is flat and shallow and has little volume. When x is large, the box it tall and skinny, and also has little volume. Somewhere in between is a box with the maximum amount of volume. Obviously, the smallest x can be is zero, which corresponds to not cutting out anything at all. What is the largest possible value for x, and why?
The volume of the box, since it is just a rectangular prism, is length times width times height. The height is just the size of the corner cut out (x in this problem). The length and width of the bottom of the box are both smaller than the cardboard because of the cut out corners. So the volume, as a function of x, is given by V(x) = x(25 - 2x)(20 - 2x). The graph of this function is shown in the upper right corner. As you move the x slider, the corresponding point moves along the graph, and the volume for that particular x value is also shown in the upper corner of the graph.
Solution using calculus
Prior to calculus, you might have solved this problem by graphing it on a calculator and finding the highest point on the graph. But, you can do better by finding the derivative of the volume function, setting this equal to zero and solving to find the critical points, determining which is a local maximum, and lastly comparing the volume at this point with the volume at the endpoints (which we don't really need to do in this problem, since the volume is zero at the two ends of the relevant domain for x). It is easier for most people to find the derivative by first exanding the volume formula into
and then finding the derivative, which is
Setting this equal to zero and solving (e.g., via the quadratic formula) gives solutions
x ≈ 11.319 and x ≈ 3.681.
The first of these is outside the allowable values for x, so the solution is the second. Plugging x ≈ 3.681 back into the volume formula gives a maximum volume of V ≈ 820.529 in³. In the applet, the derivative is graphed in the lower right graph. Note that the derivative crosses the x axis at this value, and goes from positive to negative, indicating that this critical point is a local maximum.
At the bottom of the applet are input fields for the length and width of the cardboard. Play around with different values to see how it affects the solution and the shape of the volume function. Note that this applet automatically computes the limits for the graphs (i.e., you can't zoom on this applet). The applet also displays the formula for the volume (in terms of x, L, and W) as well as the formula for the derivative, but it computes the derivative without expanding (i.e., using the product rule) so the derivative formula is a bit messy.
Other 'Applications of Differentiation' topics
Derived from the work of Thomas S. Downey under a Creative Commons Attribution 3.0 License.