Question: When does the system have a unique solution?
\begin{cases} kx + 3y = -6\\ x + (k+2)y = 2 \end{cases}
I've been showed questions similar to this, I've attempted to construct this into multiple matrices whereby $AX=B$, but get lost due to the $k$ variable.
Any help to get the ball rolling appreciated!
So you have the system in the form of ${\rm A} \boldsymbol{x} = \boldsymbol{b}$
$$\begin{bmatrix} k & 3 \\ 1 & k+2 \end{bmatrix} \pmatrix{x \\ y} = \pmatrix{-6 \\ 2} $$
which is invertible when ${\rm det}({\rm A}) = k^2+2k-3 \neq 0$, or when $k \neq 1$ and $k \neq -3$.
The solution is
$$ \pmatrix{x \\ y} = \begin{bmatrix} k & 3 \\ 1 & k+2 \end{bmatrix}^{-1} \pmatrix{-6 \\ 2} = \tfrac{1}{k^2+2k-3} \begin{bmatrix} k+2 & -3 \\ -1 & k \end{bmatrix} \pmatrix{-6 \\ 2} = \pmatrix{ \tfrac{6}{1-k} \\ \tfrac{2}{k-1} } $$