3 Matrices

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 already in RREF) or it has a nonzero entry a. Swap a to the top row, multiply the top row by 1/a, and use the 1,1 entry as a pivot to eliminate the other entries of A. The result is the vector with a 1 at the top and zeroes elsewhere, which is in RREF.

For the inductive step, suppose that A is m×n and that the result is true for all matrices with n1 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 n1 columns form a RREF matrix. Suppose the matrix formed by these n1 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, use it as a pivot 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. There are only two RREF column vectors: the zero vector and a vector with a 1 at the top and all other entries zero. Clearly no sequence of row operations takes one of these to the other, so the base case of the induction holds.

For the inductive step, suppose that R and S are RREF matrices reachable from A. Let A, R, and S be the matrices formed by the first n1 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 RS, so that there is some j such that the jth entry rjn in the last column of R which differs from the corresponding entry sjn 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 (RS)𝐮=𝟎. Since the first n1 columns of RS are all zeroes, we get (rjnsjn)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. Say there are k zero rows. We can then write R like this

(X𝟎k×(n1))

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

R=(X𝐫𝟎k×(n1)𝐭),S=(X𝐬𝟎k×(n1)𝐮)

I claim that 𝐭𝟎. Suppose for a contradiction that 𝐭=𝟎. The first mk rows of R all have leading entries. For 1imk, let the leading entry in row i of R occur in column number ci. Let 𝐫 have entries r1,,rmk, 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 rmk times column cmk we get the vector

(r1rmk00)

which is the last column of R. It follows that the vector with 1 in position n, with ri in position ci for 1imk, 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 𝐫j𝐫j+λ𝐫1 to make the other entries in column 1 equal to 0.

A𝐫2𝐫24𝐫1(123036789)𝐫3𝐫37𝐫1(1230360612)

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:

(1230360612)𝐫2(1/3)𝐫2(1230120612)

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.

(1230120612)𝐫1𝐫12𝐫2(1010120612)
𝐫3𝐫3+6𝐫2(101012000)

This matrix is in RREF, so we are done.