Để hệ có nghiệm duy nhất thì \(\dfrac{m-1}{1}\ne\dfrac{1}{m-1}\)
=>\(\left(m-1\right)^2\ne1\)
=>\(m-1\notin\left\{1;-1\right\}\)
=>\(m\notin\left\{0;2\right\}\)
\(\left\{{}\begin{matrix}\left(m-1\right)x+y=m\\x+\left(m-1\right)y=2\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}y=m-\left(m-1\right)x\\x+\left(m-1\right)\left[m-\left(m-1\right)x\right]=2\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}y=m-\left(m-1\right)x\\x+m\left(m-1\right)-x\left(m-1\right)^2=2\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}y=m-\left(m-1\right)x\\x\left[1-\left(m-1\right)^2\right]=2-m\left(m-1\right)\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}x\left[\left(m-1\right)^2-1\right]=m\left(m-1\right)-2\\y=m-\left(m-1\right)x\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}x\left(m-1-1\right)\left(m-1+1\right)=\left(m-2\right)\left(m+1\right)\\y=m-\left(m-1\right)x\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}x=\dfrac{m+1}{m}\\y=m-\dfrac{\left(m-1\right)\left(m+1\right)}{m}=\dfrac{m^2-m^2+1}{m}=\dfrac{1}{m}\end{matrix}\right.\)
=>\(x-y=\dfrac{m+1}{m}-\dfrac{1}{m}=1\) không phụ thuộc vào m