x2+y2+z2=xy+yz+zx
<=>2(x2+y2+z2)=2(xy+yz+zx)
<=>2x2+2y2+2z2=2xy+2yz+2zx
<=>2x2+2y2+2z2-2xy-2yz-2zx=0
<=>(x2-2xy+y2)+(y2-2yz+z2)+(z2-2zx+x2)=0
<=>(x-y)2+(y-z)2+(z-x)2=0
Vì \(\hept{\begin{cases}\left(x-y\right)^2\ge0\\\left(y-z\right)^2\ge0\\\left(z-x\right)^2\ge0\end{cases}\Rightarrow\left(x-y\right)^2+\left(y-z\right)^2+\left(z-x\right)^2\ge0}\)
Dấu "=" xảy ra khi \(\hept{\begin{cases}x-y=0\\y-z=0\\z-x=0\end{cases}\Leftrightarrow x=y=z}\)(đpcm)