Suppose $$a+b=c$$ which is equivalent to $$a+b-c=0$$
However, squaring both equations results in $$a^2+2ab+b^2=c^2$$ and $$a^2+2ab-2ac+b^2-2bc+c^2=0\\a^2+2ab+b^2=2ac+2bc-c^2$$ which are clearly different.
Which of the two is correct?
Suppose $$a+b=c$$ which is equivalent to $$a+b-c=0$$
However, squaring both equations results in $$a^2+2ab+b^2=c^2$$ and $$a^2+2ab-2ac+b^2-2bc+c^2=0\\a^2+2ab+b^2=2ac+2bc-c^2$$ which are clearly different.
Which of the two is correct?
\begin{align} 2ac+2bc -c^2 = 2(a+b)c-c^2=2c^2-c^2=c^2 \end{align}
They are indeed equal.