Consider the problem of designing a rectangular box of specified volume \(V=xyz\) and minimum surface area \(A=2xy+2xz+2yz\text{:}\)
\(F(x,y,z)=2(xy+xz+yz)\) is to be minimized under the constraint \(G(x,y,z)=xyz-V=0\text{.}\)
The conditions on the three components of the gradients are
\begin{equation*}
2(y+z)=\lambda y z,\; 2(x+z)=\lambda x z,\; 2(x+y)=\lambda x y
\end{equation*}
Multiplying these by \(x\text{,}\) \(y\) and \(z\) respectively gives
\begin{equation}
V = xyz = \lambda 2x(y+z) = \lambda 2y(x+z) = \lambda 2z(x+y).\tag{4.8.5}
\end{equation}
Eliminating the Lagrange multiplier \(\lambda\) as soon as possible is usually a good idea, since it is not part of the final answer, and we can do that now: from (4.8.5) and the fact that \(V \neq 0\text{,}\) we see that \(\lambda \neq 0\text{,}\) giving
\begin{equation*}
xy+xz = yx+yz = zx+zy.
\end{equation*}
The first equality gives \(xz=yz\) and since \(z \neq 0\text{,}\) this gives \(x=y\text{;}\) similarly, \(y=z\text{,}\) so \(x=y=z\text{:}\) a cube, as claimed.
Finally, the constraint \(xyz=V\) gives the dimensions as \(x=y=z=\sqrt[3]{V}\text{,}\) and so the minimum area is \(A=2xy+2xz+2yz = 6(\sqrt[3]{V})^2=6V^{2/3}\text{.}\) This is the only possible extremum, so must give the desired minimum of area: for any size, the optimal shape is a cube.
