ta có
\(\frac{1-2x}{1-x}+\frac{1-2y}{1-y}=1\Leftrightarrow\left(1-2x\right)\left(1-y\right)+\left(1-2y\right)\left(1-x\right)=\left(1-x\right)\left(1-y\right)\)
\(\Leftrightarrow1-2\left(x+y\right)+3xy=0\)
Vậy \(M=x^2+y^2-xy+\left(1-2\left(x+y\right)+3xy\right)=\left(x+y+1\right)^2\)
vậy ta có đpcm