Optional workshopsOptional workshops · 14 min

Design an open box

Combine algebra, constrained optimisation and numerical plotting in a checked design.

Maths refresher: A volume from changing dimensions

Box volume is height times length times width. Folding a cut of size x removes x from both ends of each original sheet dimension.

V(x)=x(12−2x)(8−2x),0<x<4V(x)=x(12-2x)(8-2x),\qquad0<x<4
Worked example

The width becomes zero at x=4x=4, so that endpoint is not a useful box. A stationary point beyond 4 cannot be a feasible design.

Maths prerequisite map ↗

Cutting equal squares from the corners of a rectangular sheet and folding the sides produces an ideal open box. Its volume depends on the cut size. The sheet dimensions below are invented teaching inputs in centimetres, and material thickness is ignored.

See the mathematics
base12 cmxfold on dashed lines
base12 cmxfold on dashed lines
V(x)=x(12−2x)(8−2x),0<x<4V(x)=x(12-2x)(8-2x),\quad0<x<4
V(x)=x(12−2x)(8−2x)0<x<4\begin{gathered}V(x)=x(12-2x)(8-2x)\\0<x<4\end{gathered}
Starter reference. An unfolded 12 cm × 8 cm sheet with illustrative cuts x = 1.5 cm. Remove the four amber corners, then fold along the dashed lines. Dimensions are schematic.

Derive the volume, state the permitted cut interval, find stationary candidates and compare the feasible interior with limiting boundaries. An unconstrained algebraic root outside the interval is not a possible cut. Keep the exact optimum before approximating it for a practical reading.

Plot the volume over the full feasible interval as an interpretation aid, while retaining the derivative and boundary checks as mathematical evidence. Extend the report with tolerances, thickness, manufacturing constraints or cost only when the model states how those affect the objective.

Can the larger algebraic stationary root be used as a cut even if it exceeds the sheet’s half-width?

Write a prediction (optional)

Integrated design with invented dimensions

Select Run Python with the code unchanged.

Tools
About Python

Python and the course packages can load while you read. Each run starts with fresh user variables; imported modules stay loaded. Stop replaces the worker. Runtime details ↗

Ctrl+Enter or ⌘+Enter runs Python.

Compare with the worked example

Executed from the published Python during the site build. Your own run appears above. Build environment ↗

Volume in cm cubed
x(8−2x)(12−2x)x \left(8 - 2 x\right) \left(12 - 2 x\right)
Feasible cut interval, cm
(0,4)\left(0, 4\right)
All stationary candidates
[103−273, 273+103]\left[ \frac{10}{3} - \frac{2 \sqrt{7}}{3}, \ \frac{2 \sqrt{7}}{3} + \frac{10}{3}\right]
Best cut, exact cm
103−273\frac{10}{3} - \frac{2 \sqrt{7}}{3}
Best cut, approximate cm
1.56949911.5694991
Second derivative at best
−167- 16 \sqrt{7}
Limiting boundary volumes
[0, 0]\left[ 0, \ 0\right]
Worked text output
Volume in cm cubed: x*(8 - 2*x)*(12 - 2*x)
Feasible cut interval, cm: Interval.open(0, 4)
All stationary candidates: [10/3 - 2*sqrt(7)/3, 2*sqrt(7)/3 + 10/3]
Best cut, exact cm: 10/3 - 2*sqrt(7)/3
Best cut, approximate cm: 1.5694991
Second derivative at best: -16*sqrt(7)
Limiting boundary volumes: [0, 0]
Plot generated by the executed Python example. Read its labelled axes and the lesson explanation together.
Open full-size figure ↗

Read the starter result

Feasible cut interval, cm excludes the degenerate endpoints shown in the plot. Use Best cut, exact cm and Limiting boundary volumes to compare the interior optimum with the boundary limits.

Edit and compare

Replace length,width = 12,8 with length,width = 15,9. The code derives the open domain, limiting volumes and plot range from the shorter side. Select Run Python. Compare Feasible cut interval, cm, Best cut, exact cm and Limiting boundary volumes.

Return to the editor

Scope. The sheet is invented and ideal: thickness, fold radius, tolerances, waste and structural strength are omitted.

Try a fresh case

A manufacturing rule requires cuts in half-centimetre increments. What must change?

Choose an answer
Need a hint?
Hint 1

List the cuts the manufacturing rule permits.

Hint 2

Evaluate their actual objective values.

Write your investigation report

Record the question, mathematical assumptions and proposed checks before interpreting the result. After execution, add the derivation, numerical comparison and limits. The export includes the last successful run.

Your notesNotes save in this browser when storage is available.