Let x be depth, y be width, and z be height. Then,

You can solve this using partial derivatives, by writing volume as a function of only two variables x, and y, and taking .

Or you can use the AM-GM inequality:

(The dimensions of your box are the set )