SOLUTION: If x + y + z = 6 x² + y² + z² = 38 x³ + y³ + z³ = 144 Find x, y and z

Algebra ->  Test -> SOLUTION: If x + y + z = 6 x² + y² + z² = 38 x³ + y³ + z³ = 144 Find x, y and z      Log On


   



Question 1206515: If x + y + z = 6
x² + y² + z² = 38
x³ + y³ + z³ = 144
Find x, y and z

Answer by ikleyn(53955) About Me  (Show Source):
You can put this solution on YOUR website!
.
    x + y + z = 6,
    x%5E2+%2B+y%5E2+%2B+z%5E2 = 38,
    x%5E3%2By%5E3%2Bz%5E3 = 144.
~~~~~~~~~~~~~~~~~~~~~~~~~~


Our starting system of equations is THIS

x + y + z = 6,        (1)

x%5E2+%2B+y%5E2+%2B+z%5E2 = 38,     (2)

x%5E3%2By%5E3%2Bz%5E3 = 144.    (3)

        Preliminary notice. Since the problem is a bit higher than the traditional school math, 
        the solution is, correspondingly, a bit higher (but still understandable). 

Part 1.  Motivation and methodology
We are given the numerical values for the expressions x+y+z,  x%5E2%2By%5E2%2Bz%5E2  and  x%5E3%2By%5E3%2Bz%5E3. 

Using it, we can explicitly express and calculate values  xy+yz+zx  and  xyz.

Next, knowing the numerical values of  x+y+z,  xy+yz+zx  and  xyz, we can consider the polynomial of the variable "u"

P(u) = u%5E3+-+%28x%2By%2Bz%29%2Au%5E2+%2B+%28xy%2Byz%2Bzx%29%2Au+-+xyz.   (4)

This polynomial is nothing else as 

P(u) = (u-x)*(u-y)*(u-z).     (5)

In other words, the polynomial (4) is factorable into (5).

Now, instead of solving the system (1), (2), and (3), we can solve the polynomial equation 

P(u) = 0      (6)

for u. If we solve it (and when we solve it), its roots u = x, u = y and u = z will be the solution to the system (1), (2), (3).

Why this way is better than solving (1) directly?
Well, for example, you can (try to) solve the polynomial equation (4) graphically. 
Or apply other methods specific for polynomial equations. 
You will see it later.

Now I will implement this methodology.

Part 2.  Calculation of  xy + xz + yz  via  x+y+z  and  x%5E2%2By%5E2%2Bz%5E2.
    It is easy. From (1), we have

        x + y + z = 6.

    Square both sides.  You will get

        x^2 + y^2 + z^2 + 2xy + 2xz + 2yz = 36.

    Replace here x^2 + y^2 + z^2 by 38, based on (2).  You will get

        2xy + 2xz + 2yz + 38 = 36,

        xy + xz + yz = -1.
    

    Thus part 2 is complete.

Part 3.  Calculation of  xyz  via  x+y+z,  xy+yz+zx  and  x%5E3%2By%5E3%2Bz%5E3
We will do it step by step:

1.  %28x%2By%2Bz%29%5E3 = .


2.   x%5E2y%2Bx%5E2z%2Bxy%5E2%2By%5E2z%2Bxz%5E2%2Byz%5E2 = 
   = x(xy+xz) + y(xy+yz) + z(xz+yz) = 
   = x(xy+xz+yz-yz) + y(xy+yz+xz-xz) + z(xz+yz+xy-xy)
   = x(xy+xz+yz) + y(xy+xz+yz) + z(xy+xz+yz) - x(yz) - y(xz) - z(xy)
   = (x+y+z)(xy+xz+yz) - 3xyz.


3.  Therefore, 

     %28x%2By%2Bz%29%5E3 = %28x%5E3%2By%5E3%2Bz%5E3%29+%2B+3%28%28x%2By%2Bz%29%28xy%2Bxz%2Byz%29+-+3xyz%29+%2B+6xyz,   or

     %28x%2By%2Bz%29%5E3 = %28x%5E3%2By%5E3%2Bz%5E3%29+%2B+3%28x%2By%2Bz%29%28xy%2Bxz%2Byz%29+-+9xyz+%2B+6xyz,   or

     %28x%2By%2Bz%29%5E3 = %28x%5E3%2By%5E3%2Bz%5E3%29+%2B+3%28x%2By%2Bz%29%28xy%2Bxz%2Byz%29+-+3xyz,   or

     xyz = . 


4.   Thus

         xyz = %281%2F3%29%2A%28144+-+6%5E3+%2B+3%2A6%2A%28-1%29%29 = -30.


     Part 3 is complete.

Part 4. Working with the polynomial
So, our polynomial (4) is

    P(u) = u%5E3+-+6u%5E2+-+u+%2B+30,

and we need solve this polynomial equation 

    u%5E3+-+6u%5E2+-u+%2B+30 = 0.

First, let's do it graphically.




Figure. Plot P(u) = u%5E3+-+6u%5E2+-+u+%2B+30

Do you see the roots from the plot?  But of course, they are u= -2, u=3 and u=5.

And you can check it manually substituting these values into the polynomial.

Or you can apply the rational roots theorem.

According to this theorem, all the roots are among the integer divisors of the number 30, 
and you have only finite number of options to check. It is your other method to find the roots.

So,  the original problem is solved algebraically.
The solution is  x= -2,  y= 3,  z= 5  and all permutations of these values.

An amazing fact is that all this approach can be extended to the systems of four,  five and so on unknowns.