The solution of a set of m linear equations in n unknowns can be investigated by the method of Gaussian elimination (or Gauss-Jordan elimination) that transforms the augmented matrix to echelon form (or reduced echelon form). The number of non-zero rows in the echelon form cannot be greater than the number of unknowns, and three cases can be distinguished: