SOLUTION: If x+y+z=16 then find the maximum value of (x-3)(y-5)(z-2). Given that (x-3)>0, (y-5)>0, (z-2)>0

Algebra ->  Finance -> SOLUTION: If x+y+z=16 then find the maximum value of (x-3)(y-5)(z-2). Given that (x-3)>0, (y-5)>0, (z-2)>0      Log On


   



Question 1143014: If x+y+z=16 then find the maximum value of (x-3)(y-5)(z-2). Given that (x-3)>0, (y-5)>0, (z-2)>0
Found 2 solutions by Edwin McCravy, ikleyn:
Answer by Edwin McCravy(20055) About Me  (Show Source):
You can put this solution on YOUR website!
If x+y+z=16 then find the maximum value of (x-3)(y-5)(z-2). Given that
(x-3)>0, (y-5)>0, (z-2)>0
We wish to maximize 

f%28x%2Cy%5E%22%22%29=%28x%5E%22%22-3%29%28y%5E%22%22-5%29%28z%5E%22%22-2%29 

So we solve x+y+z=16 for z and substitute:

z=16-x-y

f%28x%2Cy%5E%22%22%29=%28x%5E%22%22-3%29%28y%5E%22%22-5%29%2816-x%5E%22%22-y-2%29 

f%28x%2Cy%5E%22%22%29=%28x%5E%22%22-3%29%28y%5E%22%22-5%29%2814-x%5E%22%22-y%29

Next we find both partial derivatives and set them equal to zero:



f%5Bx%5D=%28y%5E%22%22-5%29%28-x%2B3+%2B+14-x-y%5E%22%22%29+

f%5Bx%5D=%28y%5E%22%22-5%29%28-2x-y%5E%22%22%2B17%29+

Setting that equal to zero gives:

y-5=0;  -2x-y+17=0

Since y-5 > 0 we ignore the first

-2x-y+17=0

f%28x%2Cy%5E%22%22%29=%28x%5E%22%22-3%29%28y%5E%22%22-5%29%2814-x%5E%22%22-y%29



f%5By%5D=%28x%5E%22%22-3%29%28-y%2B5+%2B+14-x-y%5E%22%22%29+

f%5By%5D=%28x%5E%22%22-3%29%28-2y-x%5E%22%22%2B19%29+

x-3=0;  -2y-x+19=0

Since x-3 > 0 we ignore the first.

-2y-x+19=0

So we solve this system:

system%28-2x-y%2B17=0%2C-2y-x%2B19=0%29

That has solution (x,y)=(5,7)

Substituting in

f%28x%2Cy%5E%22%22%29=%28x%5E%22%22-3%29%28y%5E%22%22-5%29%2814-x%5E%22%22-y%29
f%28x%2Cy%5E%22%22%29=%285%5E%22%22-3%29%287%5E%22%22-5%29%2814-5%5E%22%22-7%29
f%28x%2Cy%5E%22%22%29=%282%29%282%29%282%29=8

So the maximum value of (x-3)(y-5)(z-2) is 8.

Edwin

Answer by ikleyn(52781) About Me  (Show Source):
You can put this solution on YOUR website!
.
By analogy with the well known AM-GM inequality ("Arithmetic Mean - Geometric Mean inequality") for two variables "a" and "b"


    ab <= %28%28a%2Bb%29%2F2%29%5E2,         (1)


there is AM-GM inequality for three variables "a", "b" and "c"


    abc <= %28%28a+%2B+b+%2B+c%29%2F3%29%5E3.      (2)


Inequalities (1) and (2) are valid for any two and three variables, respectively, that are real non-negative numbers.


Apply inequality (2), taking  


    a = x-3,  b = y-5,  c = z-2.


You will get


    (x-3)*(y-5)*(z-2) <= %28%28%28x-3%29%2B%28y-5%29%2B%28z-2%29%29%2F3%29%5E3 = %28%28x%2By%2Bz+-+3-5-2%29%2F3%29%5E3 = %28%2816-10%29%2F3%29%5E3 = %286%2F3%29%5E3 = 2%5E3 = 8.


Thus for any 3 values of x, y and z, restricted by the equality


    x + y + z = 16   and  inequalities  x >= 3, y >= 5  and  z >= 2,


the inequality  


    (x-3)*(y-5)*(z-2) <= 8 


is held.


From the other side, at x= 5, y= 7  and z= 4 we have


    (x-3)*(y-5)*(z-2) = (5-3)*(7-5)*(4-2) = 2*2*2 = 8.


and the values of x, y and z satisfy all needed restrictions.



Thus the maximum value of (x-3)*(y-5)*(z-2), where  x, y and z are restricted by 


    x + y + z = 16,    x >= 3, y >= 5  and  z >= 2


is 8.        ANSWER

--------------

S O L V E D.