\(\dfrac{a^2+\left(a-c\right)^2}{b^2+\left(b-c\right)^2}\)
\(=\dfrac{a^2+\left(a-c\right)^2+c^2+2\left(ab-ac-bc\right)}{b^2+\left(b-c\right)^2+c^2+2\left(ab-ac-bc\right)}\)
\(=\dfrac{a^2+a^2-2ac+c^2+c^2+2ab-2ac-2bc}{b^2+b^2-2bc+c^2+c^2+2ab-2ac-2bc}\)
\(=\dfrac{2a^2+2c^2-4ac+2ab-2bc}{2b^2+2c^2-4bc+2ab-2ac}\)
\(=\dfrac{\left(a-c\right)^2+b\left(a-c\right)}{\left(b-c\right)^2+a\left(b-c\right)}\)
\(=\dfrac{\left(a-c\right)\left(a-c+b\right)}{\left(b-c\right)\left(a-c+b\right)}=\dfrac{a-c}{b-c}\left(đpcm\right)\)