Lời giải:
a)
Khi $m=1$ thì HPT trở thành:\(\left\{\begin{matrix} x-y=2\\ x+y=1\end{matrix}\right.\Rightarrow \left\{\begin{matrix} 2x=2+1\\ 2y=1-2\end{matrix}\right.\Leftrightarrow \left\{\begin{matrix} x=\frac{3}{2}\\ y=\frac{-1}{2}\end{matrix}\right.\)
b)
HPT \(\Leftrightarrow \left\{\begin{matrix} mx-y=2\\ x=1-my\end{matrix}\right.\Rightarrow m(1-my)-y=2\)
\(\Leftrightarrow y(m^2+1)=m-2\Rightarrow y=\frac{m-2}{m^2+1}\)
\(x=1-my=1-\frac{m^2-2m}{m^2+1}=\frac{1+2m}{m^2+1}\)
Để $x+y=-1$
$\Leftrightarrow \frac{m-2}{m^2+1}+\frac{1+2m}{m^2+1}=-1$
$\Leftrightarrow \frac{3m-1}{m^2+1}=-1$
$\Rightarrow 3m-1=-m^2-1$
$\Leftrightarrow m^2+3m=0\Rightarrow m=0$ hoặc $m=-3$