3.10 RREF existence and uniqueness

3.10.1 Existence and uniqueness

Here are two facts about row reduced echelon form.

Theorem 3.10.1.

For every matrix A, there is a sequence of row operations taking A to a matrix in row reduced echelon form.

Proof.

We prove this by induction on the number of columns of A. When A has one column, either A is the zero vector (in which case it is in RREF) or it has a nonzero entry a. Swap a to the top row, multiply the top row by 1/a, and subtract multiples of the top row from the other rows to make all other rows 0. The result is the vector (10⋮0) which is in RREF.

For the inductive step, suppose that A is m×n and that the result is true for all matrices with n−1 columns. We then know that there is a series of row operations we can do to A that result in a matrix X whose first n−1 columns form a RREF matrix. Suppose the matrix formed by these n−1 columns has k rows of zeroes at the bottom. If the final column has zeroes in its bottom k entries, the matrix is in RREF. If not, swap a nonzero entry to the top of these k rows, subtract multiples of this row from the others to eliminate all other nonzero entries in the final column, and multiply by a scalar so that its entry is 1. The result is in RREF. ∎

Theorem 3.10.2.

Let A be a matrix. If R and S are RREF matrices that can be obtained by doing row operations to A, then R=S.

This theorem says that there is only one RREF matrix which can be obtained by doing row operations to A, so we are justified in calling the unique RREF matrix reachable from A the row reduced echelon form of A.

Proof.

Again, the proof is by induction on the number n of columns of A. The base case is when A is an m×1 column vector. There are only two RREF height m column vectors: the zero vector 𝟎m and a vector 𝐯 with a 1 at the top and 0s everywhere else. If there are sequences of row operations taking A to 𝐯 and also to 𝟎m then there is a sequence of row operations taking 𝟎m to 𝐯. This is impossible because any row operation sends 𝟎m to 𝟎m.

For the inductive step, suppose that A is m×n and that R and S are RREF matrices reachable from A. Let A′, R′, and S′ be the matrices formed by the first n−1 columns of A, R, and S respectively. The matrices R′ and S′ are RREF matrices formed by doing row operations to A′, so by induction they are equal. Suppose for a contradiction that R≠S, so that there is some j such that the jth entry rj⁢n in the last column of R which differs from the corresponding entry sj⁢n of S.

Theorem 3.9.1 tells us that the equations A⁢𝐱=𝟎, R⁢𝐱=𝟎, and S⁢𝐱=𝟎 all have exactly the same solutions.

Let 𝐮 be any solution of A⁢𝐱=𝟎. We have R⁢𝐮=S⁢𝐮=𝟎, so (R−S)⁢𝐮=𝟎. Since the first n−1 columns of R−S are all zeroes, we get (rj⁢n−sj⁢n)⁢un=0, so un=0. In other words, every solution of A⁢𝐱=𝟎 has last entry zero.

The RREF matrix R′ has some nonzero rows and then some zero rows. Suppose there are k zero rows. We can then write R′ like this

(X𝟎k×(n−1))

where X has no zero rows. Then R and S have the form

R=(X𝐫𝟎k×(n−1)𝐭),S=(X𝐬𝟎k×(n−1)𝐮)

I claim that 𝐭≠𝟎. Suppose for a contradiction that 𝐭=𝟎. The first m−k rows of R all have leading entries. For 1⩽i⩽m−k, let the leading entry in row i of R occur in column number ci. Let 𝐫 have entries r1,…,rm−k, where m is the number of rows of A. Notice that column ci of R has a 1 in position i and zeroes everywhere else, so if we add up r1 times column c1, r2 times column c2, and so on, up to rm−k times column cm−k we get the vector

(r1⋮rm−k0⋮0)

which is the last column of R. It follows that the vector with −1 in position n, with ri in position ci for 1⩽i⩽m−k, and with zeroes elsewhere is a solution to R⁢𝐱=𝟎. This contradicts every solution to A⁢𝐱=𝟎 having last entry zero.

Since R is in RREF, 𝐭 must have a 1 at the top and all other entries zero, and 𝐫=𝟎. The same argument applies to S, so 𝐮=𝐭 and 𝐬=𝟎. This shows R=S. ∎

3.10.2 Example of putting a matrix into RREF

Let A=(123456789). We want to do a sequence of row operations to A which ends up with a matrix in RREF. Row 1 has a leading entry at position 1,1, but the other entries in column 1 aren’t 0. We use the 1,1 entry as a pivot to eliminate the other entries in column 1. That is, we apply row operations of the form rj↦rj+λ⁢r1 to make the other entries in column 1 equal to 0.

A↦r2↦r2−4⁢r1(1230−3−6789)↦r3↦r3−7⁢r1(1230−3−60−6−12)

This matrix isn’t in RREF. One reason is that the leading entry in row 2, in position 2,2, isn’t equal to 1. To make that leading entry 1 we can use the row operation that multiplies row 2 by −1/3:

(1230−3−60−6−12)↦r2↦(−1/3)⁢r2(1230120−6−12)

Now we have a leading entry in row 2, column 2 which is equal to 1, but there are other nonzero entries in that column. We use the 2,2 entry as the next pivot to eliminate entries in column 2.

(1230120−6−12)↦r1↦r1−2⁢r2(10−10120−6−12)
↦r3↦r3+6⁢r2(10−1012000)

This matrix is in RREF, so we are done.