The matrix \(\mathbf{A}\) is defined by
$$\mathbf{A} = \begin{pmatrix} 1 & 5 & 1 \\ 1 & -2 & -2 \\ 2 & 3 & \theta \end{pmatrix}.$$
- Find the rank of \(\mathbf{A}\) when \(\theta \neq -1\). [3]
- Find the rank of \(\mathbf{A}\) when \(\theta = -1\). [1]
Consider the system of equations
\begin{align}
x + 5y + z &= -1,
x - 2y - 2z &= 0,
2x + 3y + \theta z &= \theta.
\end{align}
- Solve the system of equations when \(\theta \neq -1\). [3]
- Find the general solution when \(\theta = -1\). [3]
- Show that if \(\theta = -1\) and \(\phi \neq -1\) then \(\mathbf{A}\mathbf{x} = \begin{pmatrix} -1 \\ 0 \\ \phi \end{pmatrix}\) has no solution. [2]