Let the square base has length [tex] b [/tex] and the height of the box be [tex] h [/tex] . It is given that [tex] 4b+h=12\\
h=4(3-b) [/tex]
The volume of the box is [tex] V=b^2h=4b^2(3-b) [/tex].
For maximum volume [tex] \frac{dV}{db} =0\\
\frac{d(4b^2(3-b))}{db} =0\\
6b-3b^2=0\\
b=2 [/tex]
The maximum possible volume occurs when [tex] b=3 in [/tex].
[tex] V_{max} =4(2)^2(3-2) =16 in^3 [/tex]