a. Bạn tự giải.
b.
\(\left\{{}\begin{matrix}ax-2y=a\\-4x+2y=2a+2\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}ax-2y=a\\\left(a-4\right)x=3a+2\end{matrix}\right.\)
Hệ có nghiệm duy nhất khi \(a-4\ne0\Leftrightarrow a\ne4\)
Khi đó: \(\left\{{}\begin{matrix}x=\dfrac{3a+2}{a-4}\\y=\dfrac{a^2+3a}{a-4}\end{matrix}\right.\)
\(x-y=1\Leftrightarrow\dfrac{3a+2}{a-4}-\dfrac{a^2+3a}{a-4}=1\)
\(\Leftrightarrow\dfrac{2-a^2}{a-4}=1\Leftrightarrow2-a^2=a-4\)
\(\Leftrightarrow a^2+a-6=0\Rightarrow\left[{}\begin{matrix}a=2\\a=-3\end{matrix}\right.\)