\(\text{Có: }x^2+y^2+z^2=xy+yz+xz\)
\(\Leftrightarrow2\left(x^2+y^2+z^2\right)=2\left(xy+yz+xz\right)\)
\(\Leftrightarrow x^2+x^2+y^2+y^2+z^2+z^2=2xy+2yz+2xz\)
\(\Leftrightarrow x^2+x^2+y^2+y^2+z^2+z^2-2xy-2yz-2xz=0\)
\(\Leftrightarrow\left(x^2-2xy+y^2\right)+\left(y^2-2yz+z^2\right)+\left(x^2-2xz+z^2\right)=0\)
\(\Leftrightarrow\left(x-y\right)^2+\left(y-z\right)^2+\left(x-z\right)^2=0\)
\(\text{Vì }\left(x-y\right)^2\ge0;\left(y-z\right)^2\ge0\text{ và }\left(x-z\right)^2\ge0\)
\(\text{Nên để }\left(x-y\right)^2+\left(y-z\right)^2+\left(x-z\right)^2=0\)
\(\text{thì }\hept{\begin{cases}\left(x-y\right)^2=0\\\left(y-z\right)^2=0\\\left(x-z\right)^2=0\end{cases}}\Leftrightarrow\hept{\begin{cases}x-y=0\\y-z=0\\x-z=0\end{cases}\Leftrightarrow\hept{\begin{cases}x=y\\y=z\\x=z\end{cases}\Leftrightarrow}x=y=z}\)
\(\text{Khi đó: }x^{2011}+y^{2011}+z^{2011}=3^{2012}\)
\(\Leftrightarrow x^{2011}+x^{2011}+x^{2011}=3^{2012}\left(\text{Vì x = y = z}\right)\)
\(\Leftrightarrow3x^{2011}=3^{2012}\)
\(\Leftrightarrow x^{2011}=3^{2011}\)
\(\Leftrightarrow x=3\)
\(\text{Vậy }x=y=z=3\)