Gaussian Elimination and Rank

Row Echelon and Reduced Row Echelon Forms

In Augmented Matrix Notation and Elementary Row Operations, we learned to write linear systems in augmented matrix form and use elementary row operations to transform 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. \begin{equation} \label{eq:ref1} \left [\begin{array}{ccc|c} 1&2&-3&1\\0&12&-18&6\\0&0&-2&2 \end{array}\right ] \end{equation}

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:

\begin{equation} \label{eq:ref2} \left [\begin{array}{ccc|c} 1&-2&1&1\\0&-8&2&6\\0&0&-3&3 \end{array}\right ] \end{equation}

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. \begin{equation} \label{eq:rref3} \color{blue} \left [\begin{array}{ccc|c} 1&2&0&-2\\0&1&0&-1\\0&0&1&-1 \end{array}\right ] \begin{array}{c} \xrightarrow{R_1-2R_2}\\ \\ \\ \end{array} \color{black} \left [\begin{array}{ccc|c} 1&0&0&0\\0&1&0&-1\\0&0&1&-1 \end{array}\right ] \end{equation} 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).

\begin{equation*} \left [\begin{array}{ccc|c} 1&-2&1&1\\0&-8&2&6\\0&0&-3&3 \end{array}\right ] \color{red} \begin{array}{c} \rightsquigarrow \text{Elementary}\rightsquigarrow \\ \text{Row Ops.} \end{array} \color{black} \left [\begin{array}{ccc|c} 1&0&0&0\\0&1&0&-1\\0&0&1&-1 \end{array}\right ] \end{equation*} You will be asked to fill in the elementary row operations in Practice Problem prob:same_rref.

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.

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 row operations, but in a different order.
_

The video 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 transform to its reduced row-echelon matrix, the result will always be the same matrix. In contrast, this is not true for row-echelon matrices: different sequences of row operations can transform 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. 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.)

Practice Problems

Show that applying Gauss-Jordan elimination to the matrix in Exploration init:gaussianelim2 yields the same reduced row-echelon form as the matrix we obtained in Exploration init:gaussianelim1.
Follow the indicated steps of the Gauss-Jordan algorithm to transform the matrix to its reduced row-echelon form. Steps will unfold automatically as you enter correct answers.

ccess interactives through the online version of this text at

https://ximera.osu.edu/linearalgebradzv3/LinearAlgebraInteractiveIntro.

.

.
.
.
.
.
.
.
.
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 transform the matrix to its reduced row-echelon form. Steps will unfold automatically as you enter correct answers.

ccess interactives through the online version of this text at

https://ximera.osu.edu/linearalgebradzv3/LinearAlgebraInteractiveIntro.

.

.
.
.
and .
.
.
Exchange rows.

Problems prob:rankofmat1-prob:rankofmat4

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 ? Select ALL that apply.
has at least entries Any row-echelon form of will have exactly nonzero rows Some row-echelon forms of may have more than nonzero rows Some row-echelon forms of may have less than 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.

2024-09-26 20:22:05