[Math] Find Max/Min volume of rectangular box using Lagrange Multipliers

lagrange multipliermultivariable-calculusoptimization

Can anyone help me solve the problem below? This is question number 14.8.42 in the seventh edition of Stewart Calculus.
Here is the problem definition:
"Find the maximum and minimum volumes of a rectangular box whose surface area is $1500 cm^3$ and whose total edge length is 200 cm."
Here is my work so far(With edits based on Phyra's suggestions below):
$V=f(x,y,z)=xyz$
Subject to two constraints:
Surface area: $g(x,y,z)=2xy+2xz+2yz=1500$
Edge length: $h(x,y,z)=4x+4y+4z=200$
Simplify constraints to:
$g(x,y,z)=xy+xz+yz=750$
$h(x,y,z)=x+y+z=50$

Solve system of equations:
$f_x=yz=\lambda (y+z)+\mu$
$f_y=xz=\lambda (x+z)+\mu$
$f_z=xy=\lambda (x+y)+\mu$
This leads to:
$\lambda y+\lambda z+\mu=yz$
$\lambda x+\lambda z+\mu=xz$
$\lambda x+\lambda y+\mu=xy$
Thus,
$\lambda x=xy-\lambda y-\mu=xz-\lambda z-\mu$, so that $xy-\lambda y=xz-\lambda z$, which simplifies to: $x(y-z)=\lambda (y-z)$, so that $\lambda=x$ when $(y-z)\ne 0$
Similarly,
$\lambda y =yz-\lambda z -\mu=xy-\lambda x -\mu$, so that $y(z-x)=\lambda (z-x)$, and $\lambda = y$ when $(z-x)\ne 0$
Also,
$\lambda z = yz-\lambda y -\mu=xz-\lambda x – \mu$, so that $z(y-x)=\lambda (y-x)$, and $\lambda = z$ when $(y-x)\ne 0$
The above can be summarized as:
$\lambda=x=y=z $
Substitute x=y into constraints:
$x^2 +2xz =750$ and $2x+z=50$
Substitute $z=50-2x$ into first constraint:
$3x^2-100x+750=0$ gives $x=y=\frac{5}{3}(\frac{+}{}\sqrt{10}+10)$
Also, $z=50-2x=\frac{50\frac{+}{}10\sqrt{10}}{3}$
Thus, $V=xyz\approx 2948$ or $\approx 3534$


My remaining questions are as follows:
a) What do you mean in your comments below when you refer to checking the border? This concept is not in my textbook.
b) Why choose x=y? Are you saying that choosing y=z would have given the same result?
c) Why use $z=50-2x$ instead of $x=y=z$?
d) When you mention 8 cases, to what are you referring? I do not see any cases.
e) What do you mean when you use the word symmetric in this situation?

Best Answer

1) You really should have simplified your conditions first by dividing out 2 and 4 before differentiating it. This does not change the result, but it is needless complication.

2) $x$, $y$ and $z$ are positive numbers, so we have to take into account the behaviour on the border when one or more of them are zero.

The situation is symmetric, so say $z=0$, but then you have $x+y=50$ and $xy= 750$ which gives (by the solution formula of the quadratic equation) that $x$ and $y$ are not real numbers.

This means that subject to the two conditions there is actually no border and every extrema can be found by using Lagrange multipliers.

3) You write:

$x(y−z)/2=λ(y−z)$, so that $λ=x/2$

But what you get, for each of the three similar equations, is:

Either (a) $y=z$ or (b) $\lambda=x/2$. Either (a) $z=x$ or (b) $\lambda=y/2$. Either (a) $x=y$ or (b) $\lambda=z/2$.

Now, you would have to choose (a) or (b) for each of the three equations which gives 8 cases (aaa,aab,aba,abb,baa,bab,bba,bbb), but it is simpler than that.

If you choose at least once condition (a), then you have two equal variables. If you choose at least twice condition (b), then you have two variables equal to $2\lambda$, so you also have two equal variables.

So, whatever you do, two variables will be equal.

But the problem statement is symmetric in $x$, $y$ and $z$ (which means that if you interchange the three variables, the problem statement does not change, for example $yzx=xyz$, so the volume you are looking for will not depend on the order of the variables).

Therefore, since you know that two variables are equal and you know that it doesn't really matter for the end result which ones are equal, it suffices to investigate $x=y$:

(At this point, we still might have $x=y=z$, but we don't know that. What we do know, is that the original conditions are true, so we use them first, and it turns out that they already fix all the values.)

The original conditions give:

$2x+z=50$ and $x^2+2xz=750$.

Substituting $z=50-2x$ in the second equation gives a quadratic equation $3x^2-100x+750=0$.

This gives $x=\frac{50\pm 5\sqrt{10}}{3}$.

You find two solutions (up to symmetry):

$x=y=\frac53 (10 + \sqrt{10})$, $z=\frac{10}3(5-\sqrt{10})$ giving the volume $\frac{2500}{27}(35-\sqrt{10})\approx 2948$

and

$x=y=\frac 53 (10- \sqrt{10})$, $z=\frac{10}3(5+\sqrt{10})$ giving the volume $\frac{2500}{27}(35+\sqrt{10})\approx 3534$.

Since these are the only two candidates for extrema, the first one is the minimum value and the second one is the maximum value.

Related Question