\(a^2+b^2=\left(a+b-c\right)^2=a^2+\left(b-c\right)^2+2a\left(b-c\right)=b^2+\left(a-c\right)^2+2b\left(a-c\right)\)
\(\Rightarrow\left\{{}\begin{matrix}b^2=\left(b-c\right)^2+2a\left(b-c\right)\\a^2=\left(a-c\right)^2+2b\left(a-c\right)\end{matrix}\right.\)
\(\Rightarrow\dfrac{a^2+\left(a-c\right)^2}{b^2+\left(b-c\right)^2}=\dfrac{\left(a-c\right)^2+2b\left(a-c\right)+\left(a-c\right)^2}{\left(b-c\right)^2+2a\left(b-c\right)+\left(b-c\right)^2}\)
\(=\dfrac{\left(a-c\right)\left(a+b-c\right)}{\left(b-c\right)\left(b+a-c\right)}=\dfrac{a-c}{b-c}\) (đpcm)