$$\begin{align*} x+y+z &= 2 \\ (x+y)(y+z)+(y+z)(z+x)+(z+x)(x+y) &= 1 \\ x^2(y+z)+y^2(z+x)+z^2(x+y) &= -6 \end{align*}$$
Can anyone explain me the solution. I asked it in mathoverflow but god knows why it was closed. Please help and detail the process in step by step. It is a RMO question (The Pre- Indian team selection exam for IMO)
So I'll assume you're only looking for integer solutions. Call the equations (1), (2), and (3) respectively. Expand (2):
$ x^2 + y^2 + z^2 + 3x y + 3 x z + 3 y z = 1.$
From this equation, subtract the square of (1) to obtain
$ x y + x z + y z = -3.$
Subtract double this expression from the square of (1) to obtain
$ x^2 + y^2 + z^2 = 10.$
Aha! Since $x,y,z$ are integers, this means $x=\pm 3, y=\pm 1, z =0$ or some permutation thereof. (Just look at the various cases. There aren't that many.) By (1), this means $x=3,y=-1,z=0$ or some permutation thereof.