a: Ta có: \(a^2+b^2+c^2=ab+bc+ac\)
\(\Leftrightarrow2a^2+2b^2+2c^2=2ab+2bc+2ac\)
\(\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(b-c\right)^2+\left(a-c\right)^2=0\)
=>a=b=c
b: ta có: \(x^2+x+1\)
\(=x^2+2\cdot x\cdot\dfrac{1}{2}+\dfrac{1}{4}+\dfrac{3}{4}\)
\(=\left(x+\dfrac{1}{2}\right)^2+\dfrac{3}{4}>0\forall x\)
Ta có: \(x^2-x+1\)
\(=x^2-2\cdot x\cdot\dfrac{1}{2}+\dfrac{1}{4}+\dfrac{3}{4}\)
\(=\left(x-\dfrac{1}{2}\right)^2+\dfrac{3}{4}>0\forall x\)