Vì \(c^2+2\left(ab-ac-bc\right)=0\) nên :
\(\frac{a^2+\left(a-c\right)^2}{b^2+\left(b-c\right)^2}=\frac{a^2+\left(a-c\right)^2+\left(c^2+2ab-2ac-2bc\right)}{b^2+\left(b-c\right)^2+\left(c^2+2ab-2ac-2bc\right)}\)
\(=\frac{2a^2+2c^2-4ac+2ab-2bc}{2b^2+2c^2-4bc+2ab-2ac}=\frac{\left(a-c\right)^2+b\left(a-c\right)}{\left(b-c\right)^2+a\left(b-c\right)}\)
\(=\frac{\left(a-c\right)\left(a-c+b\right)}{\left(b-c\right)\left(b-c+a\right)}=\frac{a-c}{b-c}\) \(\left(b\ne c,a+b\ne0\right)\)