Up Main page

Motivating example

Consider the system given by Ax=b where A=[000411001001130], x=[x1x2x3x4x5], and b=[246]. Do you see a solution right away?

The system written out in full is 4x4+x5=2x1x4=4x2+x3+3x4=6, which can be rewritten to the equivalent system x5=2+4x4x1=4+x4x3=6x23x4. We can now obtain solutions by choosing whatever values we like for x2 and x4 and setting x1,x3, and x5 to the values given in terms of x2 and x4 as shown in the system above. For example, setting x2 and x4 to 0 gives x5=2, x1=4, and x3=6. Note that the values assigned to x5,x1, and x3 are precisely the right-hand side values of the original system. Is this merely a coincidence?

If you look closely at the original system, you will notice that in each equation, there is a variable that appears in no other equation and it has a coefficient of 1. In the first equation, x5 is the only such variable. But in the third equation, both x2 and x3 have that property.

In general, if you have a system from which you can choose one variable in each equation that appears in no other equation and has coefficient 1, you can easily obtain a solution by setting all such variables to the corresponding right-hand side values and 0 to the remaining variables. This is really great. But the question is, “Can we always convert a given system into such an equivalent system?”

Before we address this question, let us reorder things a bit in the original system and write it as x1x4=4x2+x3+3x4=6x54x4=2 In matrix form, the coefficient matrix would be [100010110300014].

This matrix satisfies a number of properties. First, the left-most nonzero entry in each row is 1. Such a 1 is called a leading 1. Second, all the entries above and below any leading 1 are 0. Also, a leading 1 in a given row appears to the right of any leading 1's in the rows above. There is one more property that this matrix satisfies vacuously: any row consisting of only 0's (called a zero row) appears below rows with at least one nonzero entry. The matrix above satisfies this condition vacuously because it does not contain any zero row. Any matrix that satisfies the properties listed above is said to be in reduced row-echelon form.

Reduced row-echelon form (RREF)

A matrix is in reduced row-echelon form if it satisfies the following:

  1. In each row, the left-most nonzero entry is 1 and the column that contains this 1 has all other entries equal to 0. This 1 is called a leading 1.

  2. The leading 1 in the second row or beyond is to the right of the leading 1 in the row just above.

  3. Any row containing only 0's is at the bottom.

For example, the following matrices are not in RREF:

If you have a system Ax=b where A is in RREF, you can quickly tell if it has a solution and give one when it does. If A has a zero row, say row i, and bi is nonzero, then there is no solution because the ith equation would read “0=bi”, which is impossible. For example, if A=[1200], x=[x1x2], and b=[34], the system written out in full is x1+2x2=30=4 Clearly, no matter what x1 and x2 are, the second equation cannot be satisfied.

If A does not have a zero row whose corresponding right-hand side is nonzero, then one can obtain a solution by setting all the variables corresponding to the leading 1's to the right-hand side values and the remaining variables to 0. (What if you want to obtain all solutions?)

Quick Quiz

Exercises

For each the following matrices, determine if it is in reduced row-echelon form.

  1. [010001100]

  2. [0123]

  3. [120400100000]

  4. [100401100001]

  5. [01010010]