What would be maximum volume of a rectangular box with a given perimeter $P$ and surface area $S$?
I tried to solve following equations, where $l$ is length, $b$ is base, $h$ is height, $P$ is the perimeter, $V$ is volume, and $S$ is the surface area.
$$2(l + b + h) = P $$ $$2(lb + bh + hl) = S$$
Need to maximize $$V=lbh$$.
Thanks.
$$l=P/2-b-h$$
$$(P/2-b-h)b+bh+h(P/2-b-h)=\frac{S}{2}$$ $$ Pb-b^2-bh+bh+hP-bh-h^2=S/2 $$ $$ Pb/2-b^2+hP/2-bh-h^2=S/2$$ $$ h^2+(b-P/2)h+(b^2-Pb/2+S/2)=0 $$
Solving this equation gives you $h$ with respect to $b$.
$$ h_{1,2}=\dfrac{(P/2-b)\pm\sqrt{(b-P/2)^2-4(b^2-Pb/2+S)}}{2} =f_1(b) $$ $$l=P/2-b-h=f_2(b)$$
And now we have:
$$V=bf_1(b)f_2(b)=V(b)$$
Now apply derivation and determine min and max of this function...