Let $A=\begin{bmatrix} 1 & 2 & -1 & 1 \\ 2 & 0 & -2 & 1 \\ -1 & 1 & 1 & 1 \\ \end{bmatrix}$
Find Matrices B $\in GL_3 (\mathbb{R})$ and C $\in GL_4 (\mathbb{R})$ so that $$BAC=\begin{bmatrix} I_r & 0 \\ 0 & 0 \\ \end{bmatrix}$$ (means that in the top left there is the Identity matrix, rest 0).
Sure, I could guess to get the matrix, but is it possible to do this, maybe with basic matrix-arithmetic? I tried a little bit, but can't seem to find any useful solution.
Thanks in advance.
edit: row echelon form: $A=\begin{bmatrix} 1 & 0 & -1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ \end{bmatrix}$