\[(a - 1)x = 2\]
\[x = \frac{2}{a - 1}\]
\[a = 1 \Longrightarrow нет\ решения;\]
\[a eq 1 \Longrightarrow x = \frac{2}{a - 1}.\]