The base of the box is square, so if the sides of the base are

and the box has height

, then the volume of the box is

We are maximizing this subject to the constraint of surface area,


Solving for

gives

and substituting into the volume equation gives


Differentiating, we get

which has roots at

, but we omit the negative root. So

.
This means we must have
