Let be the side of the each square to be removed. Then, The volume of the box is
where To maximize , note that
. Thus, the critical points of are Since, only the maximum value for