Proof. In terms of the matrix entries, we can write and , and then is given by the system
which is a linear system of equations in the unknowns . So the above possibilities arise from the general theory of linear equations. Gauss–Jordan elimination reduces this system to reduced echelon form and gives the solutions in cases (i) and (ii). In case (iii), the system is inconsistent.