1. \(\left(a+b+c\right)^2=3\left(ab+ac+bc\right)\)
\(\Leftrightarrow a^2+b^2+c^2+2ab+2ac+2bc=3ab+3ac+3ac\)
\(\Leftrightarrow a^2+b^2+c^2-ab-ac-bc=0\)
\(\Leftrightarrow2a^2+2b^2+2c^2-2ab-2ac-2bc=0\)
\(\Leftrightarrow\left(a^2-2ab+b^2\right)+\left(a^2-2ac+c^2\right)+\left(b^2-2bc+c^2\right)=0\)
\(\Leftrightarrow\left(a-b\right)^2+\left(a-c\right)^2+\left(b-c\right)^2=0\)
\(\Leftrightarrow\left\{{}\begin{matrix}a-b=0\\a-c=0\\b-c=0\end{matrix}\right.\Leftrightarrow a=b=c\)
2. \(2x^2+2y^2+z^2+2xy+2xz+2yz+10x+6y+34=0\)
\(\Leftrightarrow\left(x^2+y^2+z^2+2xy+2xz+2yz\right)+\left(x^2+10x+25\right)+\left(y^2+6y+9\right)=0\)
\(\Leftrightarrow\left(x+y+z\right)^2+\left(x+5\right)^2+\left(y+3\right)^2=0\)
\(\Leftrightarrow\left\{{}\begin{matrix}x+y+z=0\\x+5=0\\y+3=0\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}z=8\\x=-5\\y=-3\end{matrix}\right.\)