Let
be the length of each side of the base,
be the height , and
be the volume.
Since the rectangular solid has a square base, volume of the solid is
.
Find the function
in terms of
.
Surface area
.
.

Solve for
.

.
Substitute
in
.


.

Differentiate on each side with respect to
.
.
Find the critical numbers by equating derivative to zero.
\




.
Substitute
in
.



.

.

is maximum when
and
.
The dimensions are
.