A packaging company wants a box that holds as much as possible from a fixed sheet of cardboard. A farmer wants to fence the biggest field with the fencing she owns. A drink company wants a can that holds 500 mL using as little aluminium as possible. Each is a trade-off: making one dimension bigger forces another to be smaller, so there is a best value somewhere in between. In Unit 3 you learned that, inside its domain, a smooth function can only reach a local maximum or minimum where its derivative is zero. Optimization turns a word problem into a function so that fact can find the best design.
The goal is the ABSOLUTE (global) maximum or minimum on the domain the situation allows. On a closed interval , a continuous function always has one, and it occurs either at a critical number inside the interval or at an endpoint, so you compare the values at all of them. On an open interval, check what happens to the function near the ends and use the first or second derivative test to confirm the critical number gives the extreme you want.
- Draw a diagram and label every quantity that can change. Name the quantity to optimize.
- Write that quantity as a formula. If it has two variables, use the constraint (the fixed amount of fencing, cardboard or volume) to eliminate one.
- State the domain from the context: lengths must be positive, a cut cannot exceed half the sheet, and so on.
- Differentiate and solve . Reject any solution outside the domain.
- Test: compare values at critical numbers and endpoints, or use the first or second derivative test.
- Answer the question that was asked, in a sentence, with units. Often it asks for dimensions, not just the maximum value.
The open box
Cut squares of side from the corners of a cm by cm sheet and fold up the sides. The base becomes by and the height is , so . Tiny squares give a flat box with almost no volume; squares close to cm leave almost no base. The domain is , and the best cut is somewhere in between. The product and chain rules give which is zero at (outside the domain) and . So the best box has height cm, base cm by cm, and volume .
Fencing beside a river
With m of fence and no fence needed along the river, let be each side perpendicular to the river. The side parallel to the river gets what is left, , so for . Then at . is positive before and negative after, so this is the maximum: a m by m field of area . Notice the answer is not a square, because the river saves one side of fencing.