Abstract
We study what integer dimensions of a rectangular piece of cardboard provide integer solutions to a standard optimization problem in introductory calculus.
Setup
We have a rectangular piece of cardboard, of length πΏ and width π. Four equal-sized squares of sidelength π₯ are cut out of each corner, and the resulting flaps are folded up to produce a box. The quantity to be optimized is the volume π of the resulting box.
Objective function & feasible domain
Once the squares are cut out, the dimensions of the base are πΏ - 2π₯ and π - 2π₯, making our volume function
π = π(π₯)
= π₯(πΏ - 2π₯)(π - 2π₯)
= 4π₯³ - 2π₯²(πΏ + π) + π₯πΏπ.
The feasible domain for π₯ is
0 ≤ π₯ ≤ min(πΏ, π)/2.
Solution for π₯
We differentiate our objective function to find its stationary points:
dπ/dπ₯ = 12π₯² - 4π₯(πΏ + π) + πΏπ,
and plugging directly into the Quadratic Formula, the stationary points occur at
π₯ = [4(πΏ + π) ± √{16(πΏ + π)² - 48πΏπ}]/24
π₯ = [(πΏ + π) ± √{(πΏ + π)² - 3πΏπ}]/6
π₯ = [(πΏ + π) ± √{πΏ² - πΏπ + π²}]/6
Notice that the stationary points are homogeneous in πΏ and π, i.e. if we scale the box up by a factor Ξ», the stationary points
π₯₋ = [(πΏ + π) - √{πΏ² - πΏπ + π²}]/6
π₯₊ = [(πΏ + π) + √{πΏ² - πΏπ + π²}]/6
also scale by a factor Ξ». Therefore, if some particular values of πΏ and π give rational but not integral values of π₯₋ and π₯₊, it's always possible to scale them so that π₯₋ and π₯₊ become whole numbers.
If L ≠ W, the stationary point x₊ is outside the feasible domain
Although the quadratic formula gives us two distinct stationary points π₯₋, π₯₊ when πΏ ≠ π, only one of them is feasible in the real-world context. Since √{πΏ² - πΏπ + π²} > min(πΏ, π), it follows that
π₯₊ = [(πΏ + π) + √{πΏ² - πΏπ + π²}]/6
> [3min(πΏ, π)]/6 = min(πΏ, π)/2
is never in the feasible domain, and can be omitted as a possible extremum.
Another way of seeing this: since our objective function π(π₯) has zeroes at π₯ = 0, π₯ = πΏ/2, and π₯ = π/2, then if πΏ ≠ π, by Rolle's theorem π(π₯) must have a horizontal tangent in the open interval between π₯ = πΏ/2 and π₯ = π/2. See Cardboard Box OptimizationVisualizer (desmos.com)
Getting "nice" rational answers
If we hope to get a rational answer for π₯₋, we need πΏ² - πΏπ + π² to be a perfect square. This is equivalent to specifying that we need πΏ, π to be two sides of a 60° triangle which has 3 integer sides, i.e. (πΏ, π, √{πΏ² - πΏπ + π²}) form an Eisenstein triple. Wikipedia gives the following list of primitive Eisenstein triples for small values of πΏ and π:
Length, πΏ |
Width, π |
√{πΏ² - πΏπ + π²} |
3 |
8 |
7 |
5 |
8 |
7 |
5 |
21 |
19 |
7 |
15 |
13 |
7 |
40 |
37 |
8 |
15 |
13 |
9 |
24 |
21 |
Plugging these values into the Quadratic Formula given above, we find the following values for π₯₋:
Length, πΏ |
Width, π |
√{πΏ² - πΏπ + π²} |
π₯₋ |
3 |
8 |
7 |
(3+8-7)/6 = 2/3 |
5 |
8 |
7 |
(5+8-7)/6 = 1 |
5 |
21 |
19 |
(5+21-19)/6 = 7/6 |
7 |
15 |
13 |
(7+15-13)/6 =3/2 |
7 |
40 |
37 |
(7+40-37)/6 = 5/3 |
8 |
15 |
13 |
(8+15-13)/6 = 5/3 |
9 |
24 |
21 |
(9+24-21)/6 =2 |
Comments
Post a Comment