SOLUTION: x^2+xy+yz+zx=30 y^2+xy+yz+zx=15 z^2+xy+yz+zx=18 find x^2+y^2+z^2

Algebra ->  Equations -> SOLUTION: x^2+xy+yz+zx=30 y^2+xy+yz+zx=15 z^2+xy+yz+zx=18 find x^2+y^2+z^2      Log On


   



Question 1098559: x^2+xy+yz+zx=30
y^2+xy+yz+zx=15
z^2+xy+yz+zx=18
find x^2+y^2+z^2

Found 2 solutions by richwmiller, ikleyn:
Answer by richwmiller(17219) About Me  (Show Source):
You can put this solution on YOUR website!
x^2+xy+yz+zx=30
y^2+xy+yz+zx=15
z^2+xy+yz+zx=18
a=(xy+yz+zx)
x^2=30-a
y^2=15-a
z^2=18-a
x^2+y^2+z^2=30-a+15-a+18-a
x^2+y^2+z^2=30+15+18-3a
x^2+y^2+z^2=63-3a

Answer by ikleyn(52786) About Me  (Show Source):
You can put this solution on YOUR website!
.
.
x^2+xy+yz+zx=30
y^2+xy+yz+zx=15
z^2+xy+yz+zx=18
find x^2+y^2+z^2
~~~~~~~~~~~~~~~~~~~~

Solution

Step 1.  Factor left side of each equation. You will get

    x^2+xy+yz+zx = 30    is the same as    (x+y)*(x+z) = 30    (1)
    y^2+xy+yz+zx = 15    is the same as    (x+y)*(y+z) = 15    (2)
    z^2+xy+yz+zx = 18    is the same as    (x+z)*(y+z) = 18    (3)



Step 2.  Multiply equations (1), (2) and (3)  (left sides and right sides). You will get


    %28x%2By%29%5E2%2A%28x%2Bz%29%5E2%2A%28y%2Bz%29%5E2 = 30*15*18 = (15*2)*15*(2*3^2) = 2%5E2%2A3%5E2%2A15%5E2 = %282%2A3%2A15%29%5E2 = 90%5E2.

    Take the square root of both sides.  You will get  (x+y)*(x+z)*(y+z) = +/- sqrt%2890%5E2%29,   or

    (x+y)*(x+z)*(y+z) = +/- 90.    (4)



Step 3.  First, let us consider the case

    (x+y)*(x+z)*(y+z) = 90.        (5)


    Divide eq(5) by eq(1) (both sides).  You will get    y + z = 3.       (6)    (3 = 90/30)

    Divide eq(5) by eq(2) (both sides).  You will get    x + z = 6.       (7)    (6 = 90/15)

    Divide eq(5) by eq(3) (both sides).  You will get    x + y = 5.       (8)    (5 = 90/18)



Step 4.  To solve the system (6), (7), (8), add all three equation (6), (7) and (8) (both sides). You will get

    
    2x + 2y + 2z = 3 + 6 + 5 = 14.  It implies           x + y + z = 7.   (9)


    Now   subtract eq(6) from eq(9)  (both sides).   You will get  x = 7-3 = 4.

    Next, subtract eq(7) from eq(9)  (both sides).   You will get  y = 7-6 = 1.

    Next, subtract eq(7) from eq(9)  (both sides).   You will get  z = 7-5 = 2.


    So, (x,y,z) = (4,1,2) is the solution in this case.


Step 5.  Now let us consider the case

    (x+y)*(x+z)*(y+z) = -90.        


    Doing by the same way, you will obtain the solution  (x,y,z) = (-4,-1,-2)  in this case.


Step 6.  Check.  It is enough to check the positive solution only.

     
    4^2 + 4*1 + 4*2 + 1*2 = 30.     ! Correct !
    1^2 + 4*1 + 4*2 + 1*2 = 15.     ! Correct !
    2^2 + 4*1 + 4*2 + 1*2 = 18.     ! Correct !


Answer.  The given system has two and only two solutions  (x,y,z) = (4,1,2)  and  (x,y,z) = (-4,-1,-2).

         Therefore,  x%5E2+%2B+y%5E2+%2B+z%5E2 = 4%5E2+%2B1%5E2+%2B+2%5E2 = 21.