Construct a box of maximum volume.

Problem statement:

A square sheet of material is to be used to construct a box
with no top by cutting a square from each corner. If the 
material is S units on a side, determine size of a square 
to be cut from each corner so that the box has maximum volume.

The accompanying animation uses a sheet 16 in. by 16 in.