We introduce Gaussian elimination and Gauss-Jordan elimination algorithms, and define the rank of a matrix.

SYS-0030: Gaussian Elimination and Rank

Row Echelon and Reduced Row Echelon Forms

In module SYS-0020, we learned to write linear systems in augmented matrix form and use elementary row operations to carry an augmented matrix to row-echelon form and the reduced row-echelon form in order to solve linear systems.

Recall that a matrix (or augmented matrix) is in row-echelon form if:

  • All entries below each leading entry are .
  • Each leading entry is in a column to the right of the leading entries in the rows above it.
  • All rows of zeros, if there are any, are located below non-zero rows.

A matrix in row-echelon form is said to be in reduced row-echelon form if it has the following additional properties

  • Each leading entry is a
  • All entries above each leading are

Matrices in row-echelon form and reduced row-echelon form are “convenient” because their corresponding systems of equations are easy to solve.

In this module we turn to the question of existence and uniqueness of the two echelon forms. Can every matrix (augmented matrix) be carried to a row-echelon form? If so, is the row-echelon form unique? Can every matrix be reduced to a reduced row-echelon form? If so, is the reduced row-echelon form unique? The answers we find will have long-lasting implications.

Solve the following system of equations.

We create an augmented matrix corresponding to the system and apply row operations until the matrix is in row-echelon form.

Note that the elementary row operations that lead to (eq:ref1) were not prescribed. We may employ row-operations in a different manner and obtain a different matrix in row-echelon form. For example, suppose for some reason we had begun by switching the first and third rows.

Next we would reduce this matrix to row-echelon form, perhaps in this way:

The augmented matrices in (eq:ref1) and (eq:ref2) are clearly not the same, but both are in row-echelon form.

If we write the systems of equations corresponding to (eq:ref1) and (eq:ref2), we can employ back substitution to solve them. The matrix in (eq:ref1) corresponds to

The matrix in (eq:ref2) corresponds to

Because both systems are equivalent to the original system, it is not surprising that back substitution yields the same solution for both systems.

It is clear from Exploration init:gaussianelim1 that a row-echelon form corresponding to a matrix is not unique. But what about the reduced row-echelon form?

In this problem we revisit the system

Following the steps we took to get (eq:ref1), but taking the process a little further, we get the reduced row-echelon form.

Do you think it is possible to start with (eq:ref2) and obtain the same reduced row-echelon form? Try to justify your response. If possible, find the elementary row operations that take (eq:ref2) to the reduced row-echelon form in (eq:rref3).

Our observations in Exploration init:gaussianelim2 are summarized in the following diagram.

We observed that a row-echelon form associated with a matrix is not unique. In contrast, we also saw how different sequences of elementary row operations lead to the same solution set and the same reduced row-echelon form. It turns out that the reduced row-echelon form of a matrix is unique.

A proof of this result can be found in [Yuster].

The reduced row-echelon form of a matrix is an instance of a row-echelon form of the matrix. While a given matrix may have multiple row-echelon forms, all row-echelon forms will share one characteristic: the number of nonzero rows in a row-echelon form of the given matrix will be the same. We will prove this result in Theorem th:samenumberofnonzerorows of VSP-0040.

Gaussian and Gauss-Jordan Elimination

As we saw in the previous section, it is possible to follow different sequences of row operations to arrive at various row-echelon forms. However, it was not clear whether it is always possible to find a row-echelon form. The following algorithm takes any matrix (or augmented matrix) and transforms it into row-echelon form:

Gaussian Algorithm guarantees that every matrix will have a row-echelon form.

Given a matrix in row-echelon form, it is easy to bring it the reduced row-echelon form. For example, continuing with Example ex:non-augmented, we can start where we left off and compute . From our earlier computations we have:

Now we create leading and use them to to wipe out all non-zero entries above them.

The following modification to the Gaussian Algorithm produces the reduced row-echelon form of a matrix. This algorithm guarantees the existence of the reduced row-echelon form.

The Gauss-Jordan Algorithm guarantees the existence of the reduced row-echelon form for all matrices. When doing computations by hand, however, the algorithm may not always be the optimal method of finding a row-echelon form or the reduced row-echelon form because the procedure often leads to fractions early in the process. The following video shows how to arrive at the same reduced row-echelon form for the matrix in Example ex:gaussjordanalg without doing any fraction arithmetic. You will see that we still employ the row operations, but in a different order.
_

The video, again, highlights the fact that regardless of what sequence of elementary row operations we take to arrive at the reduced row-echelon form, the end result is the same.

Rank

As stated in Theorem th:uniquenessofrref, the reduced row-echelon form of a matrix is uniquely determined by . That is, no matter which series of row operations is used to carry to a reduced row-echelon matrix, the result will always be the same matrix. By contrast, this is not true for row-echelon matrices: Different sequences of row operations can carry the same matrix to different row-echelon matrices. However, it is true that the number of nonzero rows must be the same in each of these row-echelon matrices, as we will see in Theorem th:dimofrowA of VSP-0040. Hence, the number depends only on and not on the way in which is carried to row-echelon form.

Proof
The fact that the rank of the coefficient matrix is means that there are exactly leading variables in the coefficient matrix, and hence exactly nonleading variables. The nonleading variables are called free variables. All free variables are assigned parameters, so the set of solutions involves exactly parameters. Hence if , there is at least one parameter, and so infinitely many solutions. If , there are no parameters and the resulting solution is unique.

Theorem th:rankandsolutions shows that, for any system of linear equations, exactly three possibilities exist:

(a)
Unique solution. This occurs when every variable is a leading variable.
(b)
Infinitely many solutions. This occurs when the system is consistent and there is at least one nonleading variable, so at least one parameter is involved.
(c)
No solution. This occurs when a row appears in the row-echelon form. Such a row corresponds to an equation with no solutions. (See Example ex:nosolutionssys of SYS-0020.)

Practice Problems

Show that applying Gauss-Jordan elimination to the matrix in Exploration init:gaussianelim2 yields the same matrix in reduced row-echelon form that we got in Exploration init:gaussianelim1.
In this problem you will be asked to bring an augmented matrix to its reduced row-echelon form using two different sets of steps.
Follow the indicated steps of the Gauss-Jordan algorithm to carry the matrix to its reduced row-echelon form.

Your entries must be fractions or integers - no decimals.

The following reduction steps do not follow the algorithm but are easier for a human to carry out because they use fewer fractions. Follow the indicated steps to carry the matrix to its reduced row-echelon form.

Your entries must be fractions or integers - no decimals.

Find the rank of each matrix.
Answer:

Answer:

Answer:

Answer:

Suppose is a matrix. Which of the following can be true?
All of the above
Suppose a linear system has equations and unknowns. Which of the following is NOT a possibility?
The system has a unique solution The system has no solutions The system has infinitely many solutions
Suppose is a matrix such that has leading . What do we know to be true about
has at least entries Any row-echelon form of will have exactly nonzero rows Any row-echelon form of will have at least nonzero rows Any row-echelon form of will have at most nonzero rows
In this problem we will discuss how the rank of the coefficient matrix associated with a linear system compares to the rank of the augmented matrix associated with the system.
(a)
Explain why the rank of the augmented matrix has to be greater than or equal to the rank of the coefficient matrix.
(b)
Prove that for a consistent system the rank of the coefficient matrix will be the same as the rank of the augmented matrix.
(c)
Give an example of an inconsistent system for which the rank of the augmented matrix is greater than the rank of the coefficient matrix.
(d)
Can the rank of an augmented matrix be greater than the number of variables?
(e)
Is the following statement true?

“If the rank of the augmented matrix associated with a linear system is greater than the rank of the coefficient matrix, then the system is inconsistent.”

Text Source

The section on Rank is an adaptation of Section 1.2 of Keith Nicholson’s Linear Algebra with Applications.

W. Keith Nicholson, Linear Algebra with Applications, Lyryx 2018, Open Edition, p 15-17.

Bibliography

[Yuster] Thomas Yuster, The Reduced Row Echelon Form of a Matrix is Unique: a Simple Proof, Mathematics Magazine, vol. 57, no. 2 (Mar. 1984), pp. 93-94.