Given the matrix $$\begin{pmatrix} 1 & 3 & -3 & x\\ 2 & 2 & x & -4 \\ 1 & 1-x & 2x+1 & -5-3x\\ \end{pmatrix}$$ Find $x$ such that the rank of the matrix is $2$
First, I note that I cannot use the determinant method since this is not a square matrix. So I move on to the minor method. Since the given rank is $2$, determinant of any $x \times 3$ minor should be zero. So I take
$$\begin{vmatrix} 1 & 3 & -3\\ 2 & 2 & x \\ 1 & 1-x & 2x+1 \\ \end{vmatrix} =0.$$
My calculation yields $x=\pm 2$. However, if I substitute the values in the matrix, the rank comes out to be $3$. What am I doing wrong?
$\begin{pmatrix} 1 & 3 & -3 & x\\ 2 & 2 & x & -4 \\ 1 & 1-x & 2x+1 & -5-3x\\ \end{pmatrix}$ $\overset{R_2-2R_1\\R_3-R_1}\rightarrow\begin{pmatrix} 1 & 3 & -3 & x\\ 0 & -4 & x+6 & -4-2x \\ 0 & -2-x & 2x+4 & -5-4x\\ \end{pmatrix}$
$\overset{\frac{R_2}{4}}\rightarrow\begin{pmatrix} 1 & 3 & -3 & x\\ 0 & -1 & \frac{1}{4}(x+6)& -1-\frac{x}{2} \\ 0 & -2-x & 2x+4 & -5-4x\\ \end{pmatrix}$
$\overset{R_3-(x+2)R_2}\rightarrow\begin{pmatrix} 1 & 3 & -3 & x\\ 0 & -1 & \frac{1}{4}(x+6)& -1-\frac{x}{2} \\ 0 & 0 & \frac{-x^2}{4}+1 & \frac{x^2}{4}-\frac{5x}{4}-4\\ \end{pmatrix}$
To be a rank $2$ matrix, $3$rd row should be zero.But $\frac{-x^2}{4}+1=0\\ \frac{x^2}{4}-\frac{5x}{4}-4=0\tag{1}$
has no solution.
So the rank of the matrix will be $3$ and independent of the choice of $x$ .