This optional proof note works over the real numbers. The argument also works over any field, because it uses only field arithmetic and invertible row operations. It establishes a structural fact; it does not prescribe a new elimination algorithm.
Gaussian elimination feels algorithmic, but one subtle theoretical question is still open:
If two people row-reduce the same matrix by different legal routes, why must they obtain the same RREF?
Existence says that some RREF can be reached. Uniqueness says that there is only one possible RREF. This second statement is what allows us to speak about the RREF of a matrix and to define rank without referring to a particular computation.
Before you start
This appendix uses three earlier facts.
- Row-equivalence can be written as multiplication on the left by an invertible matrix.
- Row-equivalence preserves linear relations among corresponding columns.
- In an RREF matrix, pivot columns and free columns have a very rigid shape.
The proof is longer than a row-reduction calculation, but the idea is simple: compare the columns of two possible RREFs from left to right. The pivot columns are forced first, and then every free column is forced by its linear relation with the pivot columns.
The theorem
Theorem
Uniqueness of RREF
Let be any matrix. Suppose and are both reduced row-echelon forms. If is row-equivalent to and is row-equivalent to , then
Since row-equivalence is transitive, it is enough to prove the following slightly more direct statement.
Theorem
Equivalent form
If and are reduced row-echelon forms of the same size and is row-equivalent to , then .
Notice the word reduced. Ordinary row-echelon form is not unique. A matrix can have many different REF outputs, but only one RREF output.
Column relations survive row-equivalence
Write the columns of two row-equivalent matrices as
If is row-equivalent to , then there is an invertible matrix such that
Thus for every column index .
Theorem
Preservation of column relations
Suppose
Then
Conversely, any relation among the corresponding columns gives the same relation among the corresponding columns.
The converse uses . This is why invertibility of is essential: we can move column relations forward and backward between row-equivalent matrices.
More explicitly, distributivity gives
The coefficients stay the same, even though the column vectors usually change. Applying proves the reverse implication. Consequently, if a column could be expressed using earlier columns on only one side, transporting that expression back would give a contradiction on the other side. This justifies preserving a failure of membership in an earlier span, as well as preserving an equation.
What RREF columns look like
Let be an RREF matrix. Suppose its pivot columns are
Then the pivot columns have the standard-vector shape:
where the vectors are written inside the ambient column length of .
Free columns are controlled by the pivot columns to their left. If is a free column and the pivot columns strictly to its left are , then
The coefficients are not mysterious: they are exactly the entries of in the pivot rows.
Finally, each pivot column is genuinely new at the moment it appears:
These three observations are the engine of the uniqueness proof.
To see why only earlier pivots are needed, inspect a row whose pivot occurs after column : every entry of that row through column is zero. The zero rows contribute nothing either. Thus a free column has nonzero entries only in rows whose pivots have already appeared. If there are no earlier pivots, the sum is empty and the column is zero. Conversely, at the -th pivot, every earlier column has zero -th entry, whereas has entry there. No combination of earlier columns can produce this pivot.
Proof by induction on the number of pivots
To avoid circularity, read "the rank of an RREF" in this proof simply as "the number of pivot columns in that RREF." Only after uniqueness is proved will we define the rank of an arbitrary matrix.
Proof
Full proof of RREF uniqueness
Let be the statement:
If and are RREF matrices of the same size, is row-equivalent to , and has exactly pivot columns, then .
We prove for all .
Base case. Suppose has no pivot columns. Then has no nonzero rows, so is the zero matrix. Since is row-equivalent to , we can write for some invertible matrix . Hence , so .
Induction step. Assume is true. Let have pivot columns, located at
Split both matrices at the last pivot column:
where and contain all columns strictly to the left of column .
Deleting a suffix of columns from an RREF leaves an RREF: rows whose pivots are retained keep their leading s and cleared pivot columns; rows whose pivots are deleted become zero rows, and they already occur below the retained pivot rows. This reasoning applies separately to both left blocks, without assuming that their pivot counts agree.
The same elementary row-operation chain taking to also acts on their left blocks: restricting columns commutes with each row operation. In particular, , with the same invertible multiplier as before. Hence the left blocks are row-equivalent, and has exactly pivots. When the prefix has positive width, the induction hypothesis applies and gives
If , there are no columns in either prefix and necessarily . Their equality is then vacuous; we need not apply the induction hypothesis to a matrix with no columns. If but , both prefixes are ordinary zero matrices by the base case. Thus leading zero columns and the empty prefix are both covered.
So the two matrices already agree in every column before .
Now compare column . In , this pivot column is not a linear combination of the columns to its left. Row-equivalence preserves this non-combination statement, so the -th column of is not a linear combination of the columns of to its left.
Since the left blocks are already equal, the first pivot columns of are exactly
If this column had zero entries below row , it would equal the combination of given by its first entries, contradicting the preceding non-combination statement. Therefore it has a nonzero entry below row .
Take the first such row. Its earlier entries are all zero because the prefixes agree. Its pivot is therefore in column . This row must be row : an intervening row would either be zero above a nonzero row, or have a pivot farther right above a pivot farther left. Both violate echelon order. Finally, the reduced conditions normalize this pivot to and clear every other entry in its column. Thus
It remains to compare columns to the right of . Every such column of is free, since was its last pivot. Let . Its entries in the pivot rows give the unique expression
Row-equivalence preserves this relation, so
But the pivot columns of and have now been shown to be the same. Therefore .
Every column of equals the corresponding column of , so . This proves , and the induction is complete.
Proof X-Ray
What each induction step is allowed to know
The induction parameter is the pivot count of alone. We do not assume that has the same count; proving equality will establish that fact. Restricting to the prefix creates a smaller case while preserving row-equivalence. Equality of that prefix fixes the first pivot rows. The next column is forced by an invariant non-combination statement and the RREF conditions. Finally, every remaining column of is already a combination of its now-matched pivots, so transporting those exact coefficients leaves no room for an additional pivot or a different free entry in .
A concrete miniature version
Worked example
Forced columns in a two-pivot RREF
The proof above may feel abstract because it tracks arbitrary columns. Here is the same logic in a small RREF matrix:
The pivot columns are columns and . They are
The free columns satisfy
Now suppose is another RREF matrix row-equivalent to . The first pivot column cannot disappear, so . Since the relation is preserved, , so the second column is forced.
The third column is not a combination of columns and , so it must become the next pivot column of : . Finally, the relation is preserved, so
Thus . The entire matrix is forced column by column.
Worked example
Leading zero columns do not interrupt the proof
Consider
Suppose is an RREF row-equivalent to . Since , transport gives . Column is nonzero, so invertibility prevents from vanishing; as the first nonzero RREF column, it must be . Next, forces .
Column cannot lie in the span of the first three columns, because they have second entry zero. Therefore is the next pivot column and equals . Finally,
This proves without choosing an elimination path. For the induction split at the last pivot, the left block has width and exactly one pivot; the original leading zero column remains in that prefix. Both matrices have rank once the uniqueness theorem has justified that definition.
Worked example
A singular multiplier can lose a column direction
Take
Both and are RREF matrices, but they are different. This does not contradict uniqueness: is singular, and alone does not establish row-equivalence. The columns of satisfy no nontrivial relation, whereas is a new relation with coefficient vector . Any invertible matrix taking to would transport that relation backward to , which is false. Hence no such invertible multiplier exists.
The forward transport of any existing relation still works for this singular by distributivity. What fails is the converse and, with it, preservation of non-combination. The corrected rule requires an invertible left multiplier. The pivot counts here are and , illustrating exactly the information that a non-reversible operation can destroy.
Rank is now well defined
Definition
Rank
For any matrix , the rank of , written , is the number of pivot columns in the unique RREF row-equivalent to .
This definition is legitimate because uniqueness has already been proved. If different row-reduction paths could end at different RREFs, then the number of pivot columns could depend on the route taken. The theorem rules out that possibility.
Rank is therefore not a memory of how you computed. It is an invariant of the matrix.
For computations, the workflow is now safe:
- reduce to RREF;
- mark the pivot columns of that RREF;
- count them to get .
If the question asks for a basis of the column space, use the pivot positions to return to the corresponding columns of the original matrix. If the question only asks for rank, the RREF itself is enough. This distinction matters because row operations preserve column relations, but they do not usually preserve the actual column space.
Common mistakes
Common mistake
Do not claim ordinary REF is unique
The uniqueness theorem is about RREF, not arbitrary row-echelon form. Before normalizing pivots and clearing entries above them, many different REF outputs can occur.
Common mistake
Do not define rank from a chosen reduction path
It is acceptable to compute rank by row reduction, but the definition is not "whatever pivot count I happened to get." The uniqueness theorem guarantees that all legal RREF paths give the same pivot count.
Common mistake
Do not forget the role of column relations
The proof does not say that row operations preserve the actual column space. They generally do not. The key preserved information is the pattern of linear relations among corresponding columns.
Quick checks
Checkpoint
If two RREF matrices are row-equivalent to the same matrix, what can you conclude?
Use the uniqueness theorem, not another row reduction.
Solution · Answer
They must be equal. A row-equivalence class contains exactly one RREF.
Checkpoint
How does RREF uniqueness justify the definition of rank used here?
Mention the number of pivot columns.
Solution · Answer
Rank is defined as the number of pivot columns in the RREF. If the RREF were not unique, different reduction paths might give different pivot counts. Since the RREF is unique, the pivot count is independent of the path.
Checkpoint
If the unique RREF row-equivalent to has pivot columns , , and , what is ?
Count the pivot columns, not the free columns.
Solution · Answer
The rank is , because there are three pivot columns.
Exercises
Exercise 1
Let
Identify the pivot columns and express each free column as a linear combination of the pivot columns.
Solution · Guided solution for exercise 1
The pivot columns are columns and :
The free columns are columns and . From their entries in the pivot rows,
Exercise 2
Suppose is an RREF matrix row-equivalent to the matrix in Exercise 1. Use column relations to explain why .
Solution · Guided solution for exercise 2
Since is the first pivot column, the first column of must be . The relation is preserved, so .
The third column of is not a combination of the columns to its left, so the third column of is forced to be the next pivot column:
Finally, is preserved, so
Thus every column agrees, and .
Exercise 3
Explain why the following two row-equivalent REF matrices do not contradict RREF uniqueness:
Solution · Guided solution for exercise 3
They are row-equivalent, and both have a row-echelon shape, but is not reduced row-echelon form because its leading entry is , not .
RREF uniqueness says that the reduced row-echelon representative is unique. It does not say that every intermediate REF representative is unique.
Related notes
Read this after 2.5 Existence of row-echelon forms and 5.1 Invertible matrices. It also supports 6.6 Column space, row space, and rank.