This is a very fast method for computing the kernel/nullspace and image/column space of a matrix. I learned this from my linear algebra teacher but I haven't seen it mentioned online apart from this reference in wikipedia.
The method is as follows: If $A$ is a m × n matrix, we construct $\displaystyle\left[\frac{I}{A}\right]$, where $I$ is the n × n identity matrix.
We then do elementary column operations until our $A$ is in column echelon form and we get the augmented matrix $\displaystyle\left[\frac{C}{B}\right]$. A basis of the kernel of $A$ consists in the columns of $C$ such that the corresponding column of $B$ is a zero column. A basis for the image of $A$ consist of all the non-zero columns of $B$.
An example:
$A = \begin{pmatrix} 4 & 1 & 3 \\ 2 & -1 & 3 \\ 2 & 1 & 1 \\ 1 & 1 & 0 \end{pmatrix}$
$\displaystyle\left[\frac{I}{A}\right] = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \hline 4 & 1 & 3 \\ 2 & -1 & 3 \\ 2 & 1 & 1 \\ 1 & 1 & 0 \end{pmatrix}$ $\to$ $\begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \hline 4 & 1 & -1 \\ 2 & -1 & 1 \\ 2 & 1 & -1 \\ 1 & 1 & -1 \end{pmatrix}$$\to$ $\begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \\ \hline 4 & 1 & 0 \\ 2 & -1 & 0 \\ 2 & 1 & 0 \\ 1 & 1 & 0 \end{pmatrix}$
So a basis for $ Ker(A) = \begin{pmatrix} -1 \\ 1 \\ 1 \end{pmatrix}$
And a basis for $ Im(A) = \begin{pmatrix} 4 \\ 2 \\ 2 \\ 1 \end{pmatrix},\begin{pmatrix} 1 \\ -1 \\ 1 \\ 1 \end{pmatrix}$.
My problem is that I don't understand fully why this method works. From the wikipedia article I learned this derives from Gaussian Elimination, which sort of makes sense to me as it is similar to the method for finding the inverse of a matrix using Gauss-Jordan Elimination. So my question is: Why does this work?