\(\left(a+b+c\right)^2=3\left(ab+bc+ac\right)\Leftrightarrow a^2+b^2+c^2=ab+bc+ac\Leftrightarrow2\left(a^2+b^2+c^2\right)=2\left(ab+bc+ac\right)\)
\(\Leftrightarrow\left(a^2-2ab+b^2\right)+\left(b^2-2bc+c^2\right)+\left(c^2-2ac+a^2\right)=0\)
\(\Leftrightarrow\left(a-b\right)^2+\left(b-c\right)^2+\left(c-a\right)^2=0\)
\(\begin{cases}\left(a-b\right)^2=0\\\left(b-c\right)^2=0\\\left(c-a\right)^2=0\end{cases}\) \(\Leftrightarrow a=b=c\)