Optimization: The Biggest Box

Category: Calculus   Level: 301

V(x) = x(12 - 2x)2, V'(x) = (12 - 2x)(12 - 6x) = 0 ⇒ x = 2

Cut squares from the corners of a 12 by 12 sheet and fold up the sides. Write the volume as a function of the cut, then find where its slope is zero.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Cut the corners

Start with a 12 × 12 sheet of cardboard. Cut a square of side x from each corner. Here x = 2, but x can be anything from 0 to 6.

sheet 12 × 12, cut x × x at each corner

Step 1: Cut the corners

Step 2: Fold up the sides

Fold along the dashed lines. The box is x tall with a square floor 12 − 2x wide, so its volume is x times the floor area.

V(x) = x(12 - 2x)2

Step 2: Fold up the sides

Step 3: Try a few cuts

Compute the volume for x = 1 through 5 and plot each one. Small cuts make a flat tray, big cuts make a tall skinny tower. The best is somewhere between.

V(1) = 100, V(2) = 128, V(3) = 108, V(4) = 64, V(5) = 20

Step 3: Try a few cuts

Step 4: Draw the volume curve

Every cut between 0 and 6 gives a volume. At x = 0 the box has no height, and at x = 6 it has no floor, which makes it more of a sculpture.

V(0) = 0, V(6) = 0

Step 4: Draw the volume curve

Step 5: Find the flat top

At the peak the slope is zero. Set V'(x) = 0: the factor 12 − 6x is zero at x = 2, which gives the biggest box, 128 cubic inches.

V'(x) = (12 - 2x)(12 - 6x) = 0 ⇒ x = 2, V = 128

Step 5: Find the flat top

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render optimization-box --out /tmp/optimization-box

Source: svgmath/diagrams/optimization.py