Help Maximize P=xyz with x+y=30, y+z=30, x,y,z>=0

  • Thread starter Thread starter tony873004
  • Start date Start date
tony873004
Science Advisor
Gold Member
Messages
1,753
Reaction score
143
Maximize P=xyz with x+y=30, y+z=30, and x,y, and z >= 0.
<br /> \begin{array}{l}<br /> {<br /> \\ <br /> y = 30 - x \\ <br /> \\ <br /> z = 30 - y\,\, \Rightarrow \,\,z = 30 - 30 - x = - x \\ <br /> \end{array}<br />
This is a problem, because if z is negative x according to the question, they must both be 0 or positive. This isn't a problem if x = 0, and that's what I get as 1 of two solutions by differentiating P when written in terms of x, and setting it to 0.
<br /> \begin{array}{l}<br /> P = x(30 - x)( - x) = \left( { - x} \right)^2 (30 - x) = - 30x^2 + x^3 \\ <br /> P = x^3 - 30x^2 \\ <br /> \\ <br /> P&#039; = 3x^2 - 60x \\ <br /> P&#039; = x(3x - 60) \\ <br /> \end{array}<br />
<br /> x = 0<br />
and
<br /> 3x - 60 = 0\,\, \Rightarrow \,\,3x = 60\,\, \Rightarrow \,\,x = \frac{{60}}{3} = 20<br />
The z=-x isn't a problem in the x=0 solution, but it is a problem in the x=20 solution. This gives me x=20, y=10, z=-20 P=xyz=-4000.

The back of the book gives x=20, y=10, z=20 P=4000.

If z >= 0 and I get -20 for z, I can't just switch it to positive, can I? Don't I have to discard that solution?
 
Physics news on Phys.org
tony873004 said:
Maximize P=xyz with x+y=30, y+z=30, and x,y, and z >= 0.
<br /> \begin{array}{l}<br /> {<br /> \\ <br /> y = 30 - x \\ <br /> \\ <br /> z = 30 - y\,\, \Rightarrow \,\,z = 30 - 30 - x = - x \\ <br /> \end{array}<br />
This is a problem, because if z is negative x according to the question, they must both be 0 or positive.
Watch out! 30-y is NOT 30-30-x!
(you will go :cry: when you will see what I mean)

;-)

Pat
 
:cry:

30-(30-x)
30-30+x

:approve:
 
tony873004 said:
:cry:

30-(30-x)
30-30+x

:approve:
:biggrin: Yes...so z=x (which was clear from x+y = 30 and z+y = 30, wasn't it? :shy: )
 
yes it was, thanks!
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top