find the dimensions of the crate that will minimize the total cost of material

Let's say that the rectangular shipping crate with a square base has the dimensions:
[tex]a\times a\times b[/tex]The volume of such a shipping crate is:
[tex]V=a\cdot a\cdot b=a^2\cdot b[/tex]Additionally, the lateral sides have an area of:
[tex]A_L=a\cdot b[/tex]For the base and the top:
[tex]A_B=A_T=a^2[/tex]The cost of the material is $7 per square foot for the base and $2 per square foot for the top and the sides. Then, the total cost C will be:
[tex]\begin{gathered} C=2\cdot4\cdot A_L+7\cdot A_B+2\cdot A_T=8A_L+9A_B \\ C=8a\cdot b+9a^2 \end{gathered}[/tex]Because there are 4 sides, one base, and one top, and the areas of the base and the top are equal. We know that the volume is a fixed value, then:
[tex]a^2\cdot b=1152\Rightarrow b=\frac{1152}{a^2}[/tex]Using this result in the expression of the cost:
[tex]C=8\cdot a\cdot\frac{1152}{a^2}+9a^2=\frac{9216}{a}+9a^2[/tex]Now, to find the minimum cost, we take the derivative of C with respect to a:
[tex]\frac{dC}{da}=-\frac{9216}{a^2}+18a[/tex]The minimum is obtained by solving the equation dC/da = 0:
[tex]\begin{gathered} -\frac{9216}{a^2}+18a=0 \\ 18a=\frac{9216}{a^2} \\ a^3=\frac{9216}{28} \\ a^3=512 \\ a=8 \end{gathered}[/tex]Using this result, we can calculate b:
[tex]b=\frac{1152}{a^2}=\frac{1152}{8^2}=\frac{1152}{64}=18[/tex]Finally, the dimensions of the crate that will minimize the total cost of material are:
[tex]8ft\times8ft\times18ft[/tex]