I have a matrix $$A = \begin{bmatrix} 1 & 1 & 2 & 2 & 3\\ 1 & 0 & 1 & 2 & 2\\ 0 & 1 & 1 & 0 & 1\\ \end{bmatrix},$$ and I would like to write this as a product of a $3\times 2$ and $2\times 5$ matrix.
By reducing the matrix to row echelon form I get the $2\times 5$ matrix $$\begin{bmatrix} 1 & 0 & 1 & 2 & 2\\ 0 & 1 & 1 & 0 & 1 \end{bmatrix},$$ How do I get the $3\times 2$ matrix?
Quoting from Rank factorization:
In your case, $A$ has rank 2, and you already computed the reduced row echelon form without the zero rows as $$ F = \begin{bmatrix} 1 & 0 & 1 & 2 & 2\\ 0 & 1 & 1 & 0 & 1 \end{bmatrix} $$
$C$ is obtained by picking only the pivot-columns (one and two) from $A$ $$ C = \begin{bmatrix} 1 & 1 \\ 1 & 0\\ 0 & 1\\ \end{bmatrix} $$ and $A=CF$ is the desired decomposition.