For , the elementary row operation leaves the determinant unchanged:
By multilinearity in row , the left side is minus times a determinant with row appearing twice. That second determinant is zero by alternation. No row scaling or row interchange is involved.
Perform the elementary row operations from the bottom upwards:
This order matters because each subtraction uses the predecessor's original row. For example,
The other two differences are and . Thus the required upper triangular matrix is
These elementary row operations use no division, so the reduction remains valid for all real numbers , including .
The elementary row operations preserve the determinant, and the diagonal product of the upper triangular matrix found above is
Consequently
At , all four rows are equal. At , successive rows alternate between one row and its negative. In either case the matrix rank is one, confirming the vanishing determinant.
Use Gaussian elimination. Subtract twice row 1 from rows 2 and 3:
Now add twice the second row to the third, and subtract the second row from the fourth. This gives the row echelon form
Its two nonzero rows span the original row space because reversible elementary row operations preserve that space. They are linearly independent, as witnessed by their leading entries in different columns. Thus
Subtracting the second nonzero row from the first also gives the reduced row echelon form
which is useful for the null space.
The pivot columns in the row echelon form are columns 1 and 2. Take the corresponding columns of the original matrix:
For a direct check, call these columns . The other columns satisfy and , so they are in the same linear span. Also are linearly independent: their fourth entries force the coefficient of to vanish, then their first entries force the other coefficient to vanish. Elementary row operations preserve dependence relations among columns, but generally change the column space itself, which is why the original columns must be used.
Apply the elementary row operations from bottom to top: , , and . This order ensures that each subtraction uses the original preceding row. The result is the upper triangular matrix
Put , , , . Row is either zero if , or has its first nonzero entry in column . Thus, for arbitrary real parameters, a row echelon form is obtained by retaining the nonzero rows of in their existing order and moving every zero row to the bottom. This deals explicitly with vanishing parameters; an upper triangular matrix with an intermediate zero row is not yet a row echelon form.
The subtractions preserve the determinant, so the original matrix has
A square matrix is invertible exactly when its determinant is nonzero. Consequently,
These conditions concern consecutive parameters: no ordering, positivity, or pairwise distinctness of all four is required. More generally the rank of a matrix here is the number of nonzero , because the retained nonzero rows have distinct leading columns.
Swap the first two rows, then perform and . These elementary row operations give
Scale row 2 by , subtract it from row 3, and finally subtract twice row 2 from row 1. The reduced row echelon form is
Elementary row operations preserve the row space. The two nonzero rows of are linearly independent, since their leading entries lie in different columns. Hence
The pivot columns of the reduced row echelon form are columns 1 and 3. Take those columns of the original matrix, since elementary row operations need not preserve the original column space:
For an explicit spanning check, column 2 is , column 4 is , and column 5 is . The first two coordinates of the displayed columns form a matrix of determinant , proving their linear independence. They are therefore a basis of the column space.
An elementary matrix acts on rows by multiplication on the left. Apply the desired elementary row operation to the identity matrix to construct it. In the order requested, the three elementary matrices and their inverse matrices are
The inverse operations halve row 1, add twice row 1 to row 3, and interchange rows 2 and 3 again, respectively.
Use and , followed by . These elementary row operations give
The elimination multipliers are , , . Record them in the unit lower triangular matrix :
To see the elementary matrix relation directly, let , and , where has a single 1 in position . Then , and reversing and inverting these operations gives . Direct matrix multiplication also verifies the stated LU decomposition.
Perform the elementary row operations and , then :
These operations preserve the row space. The two nonzero rows of this row echelon form are linearly independent: only the first has a nonzero first entry, and the second is nonzero. Hence
Further Gaussian elimination gives the reduced row echelon form
which will also identify the free variables in the null space calculation.
Apply the same elementary row operations to the augmented matrix:
The last row establishes consistency; equivalently the third original row is the second minus twice the first, and the right-hand entries obey . With and , the second equation gives and the first gives . All real solutions are therefore
This affine solution space is one particular solution plus the null space. The two free variables show that there are no additional restrictions.
Undo each elementary row operation: divide row 3 by 3, add 3 times row 2 to row 4, and repeat the same swap. Hence
Multiplying each inverse by its original matrix gives the identity matrix.
The pivot columns are columns 1, 2 and 3 of the original matrix. A basis for its column space is therefore
Use the original columns, rather than the columns of the row-reduced matrix: elementary row operations preserve column dependence relations, but can change the column space as a subspace of .
Since is an invertible matrix, is equivalent to . The last nontrivial row gives ; the second gives ; and the first gives , so . A basis of the null space is therefore
Its single basis vector has Euclidean norm , so the unit null space basis vector is .
The pivot elements of lie in columns . Take these columns from the original matrix to obtain a basis of its column space:
The fourth column is minus the sum of these three columns, and the leading three-by-three matrix minor has nonzero determinant , confirming linear independence.
Elementary row operations preserve the row space. Thus the nonzero rows of give a basis of the row space of :
These basis vectors need not have unit Euclidean norm or be orthogonal. Their Euclidean norms are , respectively; the three column basis vectors have Euclidean norms .
The reduced column echelon form of a matrix is defined by taking its transpose, forming the reduced row echelon form, and transposing back:
It is obtained from by elementary column operations. Its nonzero columns precede its zero columns, the topmost nonzero entry of each nonzero column is , these leading entries move strictly downward as the column number increases, and each leading entry is the only nonzero entry in its row.
Every elementary column operation preserves the column space, because it and its inverse express each new column as a linear combination of the old columns. Thus the nonzero columns of the reduced form give a basis of the original column space. In contrast, elementary row operations preserve the row space. There is no general identity : the definition requires reducing , not .
For an invertible matrix of size , both reduced forms are . A singular example showing the distinction is
Reduced row echelon form Created 2026-10-14 Updated 2026-10-18
A row echelon form is in reduced row echelon form when every pivot element is one and is the only nonzero entry in its column.[ref] This extra reduction displays each pivot unknown directly in terms of the free variables in a linear system. The zero matrix also satisfies the definition: it has no pivot elements.
Every matrix has exactly one reduced row echelon form under elementary row operations, with its size and column order held fixed.[ref] Ordinary row echelon form is not unique: multiplying a nonzero row by two over the rational numbers keeps the staircase but changes the matrix. The reduced conditions remove that freedom.
For a fixed number of columns, each row space has a unique reduced matrix after zero rows are removed; at a fixed full size, the number of appended zero rows is also determined. Thus reduced row echelon form represents a vector subspace independently of the starting basis. This is the uniqueness used by Gaussian binomial coefficients to count vector subspaces over a finite field.
The fixed column order matters. Elementary column operations can change the row space, the kernel and the resulting reduced row echelon form. For instance, swapping the columns of over the rational numbers gives , whose reduced row echelon form is instead of . When solving a linear system, a column interchange also requires tracking the corresponding interchange of unknowns.
Row echelon form Created 2026-10-14 Updated 2026-10-18
A matrix over a field is in row echelon form when all zero rows follow the nonzero rows, each nonzero row's first nonzero entry lies strictly to the right of the preceding row's first nonzero entry, and all entries below each such leading entry vanish. These leading entries are its pivot elements. They need not be one, and entries above them need not vanish.[ref]
The staircase turns a linear system into a sequence of simpler equations. For example,
is in row echelon form, with pivot columns 1 and 2. Its second equation determines once is chosen; its first then determines by back substitution. It is not in reduced row echelon form, because the second pivot column contains a nonzero entry above its pivot element. Neither being square nor having a nonzero entry in every row is required.
Elementary row operations bring every matrix to row echelon form: choose a nonzero entry in the leftmost available nonzero column, interchange rows, clear entries below it, and repeat on the remaining rows and later columns. Skip columns with no remaining nonzero entry. Clearing above each pivot element and scaling it to one completes reduced row echelon form.[ref]
The nonzero rows of an row echelon form are linearly independent: in a vanishing linear combination, inspecting the first pivot column forces the first coefficient to be zero, then the next forces the second, and so on. They give a basis of the original row space. The number of pivot elements is both the row rank and the column rank. To recover a basis of the original column space, select the corresponding original pivot columns; the reduced column vectors generally belong to a different column space.
Here the arithmetic is exact in the specified field. For floating-point arithmetic, deciding whether a computed entry counts as zero requires a numerical criterion; see Tiny-pivot roundoff in Gaussian elimination and condition number. An exact row echelon form classification alone does not settle numerical stability.
Row-equivalent matrices 2026-10-18
Two matrices of the same size over the same field are row-equivalent matrices if a sequence of elementary row operations transforms one into the other.[ref] Every operation is reversible, so they have the same row space and the same column linear relations. Writing the entire sequence as multiplication by an invertible matrix gives and
Thus the kernel is preserved. For a nonzero right-hand side, perform every operation on the whole augmented matrix : changing the coefficients while keeping fixed generally changes the solutions. The column space instead transforms to , which need not equal .