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.
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
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
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
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
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
cd svg-generator python3 -m svgmath render optimization-box --out /tmp/optimization-box
Source: svgmath/diagrams/optimization.py