Maximum volume of a box

calculusoptimizationvolume

In his Calculus textbook (chapter 3.2, problem 23), Strang writes:

The airlines accept a box if length + width + height = $l+w+h <62''$ or 158cm. If h is fixed, show that the maximum volume $(62-w-h)wh$ is $V = h(31 – \frac{1}{2}h)^2$. Choose h to maximize V. The box with greatest volume is a _______.


Can you help me understand the problem?

The volume is $V=whl$. Since one side is fixed, we can get that side from the formula $w+h+l=62$.

How do we get to $V = h(31 – \frac{1}{2}h)^2$?

Differentiating in terms of h: $(62-h-w)(wh) = 62-2h-1$ ? I can see that h=31 is a stationary point if disregard the -1 in my differentiation, i.e. $62-2h = 0$. I'm lost as to what to do next, and why is the -1 disregarded..?

Best Answer

As the question fixes $h$ and seeks you to find $l$ and $w$ in terms of $h$, you should differentiate wrt. $w$ and not $h$.

$V = (62-w-h) w h$

$\frac{dV}{dw} = (62-w-h) h - wh = 0 \implies 62 - 2w - h = 0$

That leads to $w = 31 - \frac{h}{2}$ and $V = h(31 - \frac{h}{2})^2$.

Now to see for which $h$ the volume is max, differentiate wrt. $h$ and equate to zero.

You should get a cube with $l = w = h$. You can confirm it by AM-GM.

$V = (62-w-h) wh$

So by AM-GM,

$\frac{(62-w-h) + w + h}{3} \geq [(62-w-h) w h]^{1/3} = V^{1/3}$

$\implies V \leq (\frac{62}{3})^3$.

Equality occurs when $62-w-h = w = h$.