Skip to main content

Section 3 Row Echelon Forms

Subsection Application: Balancing Chemical Reactions

Linear systems have applications in chemistry when balancing chemical equations. When a chemical reaction occurs, molecules of different substances combine to create molecules of other substances. Chemists represent such reactions with chemical equations. To balance a chemical equation means to find the number of atoms of each element involved that will preserve the number of atoms in the reaction. As an example, consider the chemical equation

\begin{equation} \text{C} _2\text{H} _6 + \text{O} _2 \to \text{ CO } _2 + \text{H} _2\text{O}\text{.}\tag{3.1} \end{equation}

This equation asks about what will happen when the chemicals ethane (\(\text{C} _2\text{H} _6\)) and oxygen (\(\text{O} _2\)), called the reactants of the reaction, combine to produce carbon dioxide (\(\text{ CO } _2\)) and water (\(\text{H} _2\text{O}\)), called the products of the reaction (note that oxygen gas is diatomic, so that oxygen atoms are paired). The arrow indicates that it is the reactants that combine to form the products. Any chemical reaction has to obey the Law of Conservation of Mass that says that mass can neither be created nor destroyed in a chemical reaction. Consequently, a chemical reaction requires the same number of atoms on both sides of the reaction. In other words, the total mass of the reactants must equal the total mass of the products. In reaction (3.1) the chemicals involved are made up of carbon (C), hydrogen (H), and oxygen (O) atoms. To balance the equation, we need to know how many molecules of each chemical are combined to preserve the number of atoms of C, H, and O. This can be done by setting up a linear system of equations of the form

\begin{alignat*}{5} {2}x_1 \amp {} \amp {} \amp {}-{} \amp {}x_3 \amp {} \amp {} \amp {}={} \amp \ 0\amp {}\\ x_1 \amp {} \amp {} \amp {} \amp {} \amp {}-{} \amp {2}x_4 \amp {}={} \amp \ 0\amp {}\\ {} \amp {} \amp {2}x_2 \amp {}-{} \amp {2}x_3 \amp {}-{} \amp {}x_4 \amp {}={} \amp \ 0\amp {,} \end{alignat*}

where \(x_1\text{,}\) \(x_2\text{,}\) \(x_3\text{,}\) and \(x_4\) represent the number of molecules of \(\text{C} _2\text{H} _6\text{,}\) \(\text{O} _2\text{,}\) \(\text{ CO } _2\text{,}\) and \(\text{H} _2\text{O}\text{,}\) respectively, in the reaction and then solving the system. Specific details can be found at the end of this section.

Subsection Introduction

In the previous sections, we identified operations on a given linear system with corresponding equivalent operations on the matrix representations which simplify the system and its matrix representation without changing the solutions of the system. Our end goal was to obtain a system which could be solved using back substitution, such as

\begin{alignat*}{4} {}x_1 \amp {}-{} \amp {}x_2 \amp {}+{} \amp {}x_3 \amp {}={} \amp 0\amp {}\\ {} \amp {} \amp {6}x_2 \amp {}-{} \amp {}x_3 \amp {}={} \amp 8\amp {}\\ {} \amp {} \amp {} \amp {} \amp {}x_3 \amp {}={} \amp 1\amp {.} \end{alignat*}

The augmented matrix for this system is

\begin{equation*} \left[ \begin{array}{crr|c} 1 \amp -1 \amp 1 \amp 0 \\ 0\amp 6 \amp -1 \amp 8 \\ 0\amp 0 \amp 1 \amp 1 \end{array} \right]\text{.} \end{equation*}

The matrices of linear systems which can be solved via back substitution are said to be in row echelon form (or simply echelon form). We will define the properties of matrices in this form precisely in this section. Our goal will be to prescribe a precise procedure for converting any matrix to an equivalent one in row echelon form without having to convert back to the system representation.

Preview Activity 3.1.

We want to determine a suitable form for an augmented matrix that can be obtained from row operations so that it is straightforward to find the solutions to the system. We begin with some examples.

(a)

Write the linear system corresponding to each of the following augmented matrices. Use the linear system to determine which systems have their variables eliminated completely in the forward direction, or equivalently determine for which systems the next step in the solution process is back substitution (possibly using free variables). Explain your reasoning. You do not need to solve the systems.

(i)

\(\ds \left[ \begin{array}{rrc|r} 1 \amp -1 \amp 2 \amp -2 \\ 0 \amp 1 \amp 2\amp -1 \\ 0 \amp 0 \amp 3 \amp 1 \end{array} \right]\)

(ii)

\(\ds \left[ \begin{array}{crc|r} 1 \amp 1 \amp 0 \amp -2 \\ 0 \amp 1 \amp 0 \amp 3 \\ 0 \amp 0 \amp 0\amp 0 \end{array} \right]\)

(iii)

\(\ds \left[ \begin{array}{ccc|c} 1 \amp 1 \amp 1 \amp 2 \\ 1 \amp 2 \amp 2 \amp 2 \\ 0 \amp 0 \amp 2\amp 2 \end{array} \right]\)

(iv)

\(\ds \left[ \begin{array}{ccr|r} 0 \amp 1 \amp 1 \amp 2 \\ 0 \amp 0 \amp 3 \amp 3 \\ 0 \amp 0 \amp -2\amp -2 \end{array} \right]\)

(b)

Shown below are two row reduced forms of the system

\begin{alignat*}{5} {2}x_1 \amp {} \amp {} \amp {}-{} \amp {}x_3 \amp {} \amp {} \amp {}={} \amp \ 0\amp {}\\ x_1 \amp {} \amp {} \amp {} \amp {} \amp {}-{} \amp {2}x_4 \amp {}={} \amp \ 0\amp {}\\ {} \amp {} \amp {2}x_2 \amp {}-{} \amp {2}x_3 \amp {}-{} \amp {}x_4 \amp {}={} \amp \ 0\amp {.} \end{alignat*}

Of the systems that correspond to these augmented matrices, which is easier to solve and why?

\begin{equation*} \left[ \begin{array}{cccr|c} 2 \amp 0 \amp -1 \amp 0 \amp 0 \\ 0 \amp 2 \amp -2 \amp -1 \amp 0 \\ 0 \amp 0 \amp 3 \amp -2 \amp 0 \end{array} \right] \left[ \begin{array}{cccr|c} 1 \amp 0 \amp 0 \amp -\frac{1}{3} \amp 0 \\ 0 \amp 1 \amp 0 \amp -\frac{7}{6} \amp 0 \\ 0 \amp 0 \amp 1 \amp -\frac{2}{3} \amp 0 \end{array} \right] \end{equation*}

Subsection The Echelon Forms of a Matrix

In the previous sections we saw how to simplify a linear system and its matrix representation via the elimination method without changing the solution set. This process is more efficient when performed on the matrix representation rather than on the system itself. Furthermore, the process of applying row operations to any augmented matrix is one that can be automated. In order to write an algorithm that can be used with any size augmented matrix to the extent that it can be applied even by a computer program, it is necessary to have a consistent procedure and a stopping point for the simplification process. The two main properties that we want the simplified augmented matrix to satisfy are that it should be easy to see if the system has solutions from the simplified matrix, and in cases when there are solutions, the general form of the solutions can be easily found. Hence the topic of this section is to define the process of elimination completely and generally.

We begin by discussing the row echelon or, simply, echelon form of a matrix. We know that the forward phase of the elimination on a linear system produces a system which can be solved by back substitution. The matrix representation of such a simplified system is said to be in row echelon or simply echelon form. Note that matrices in this form have the first nonzero entry in each row to the right of and below the first nonzero entry in the preceding row. Our next step is to formally describe this form — one that you tried to explain in problem 3 of Preview Activity 3.1.

Definition 3.1.

A rectangular matrix is in row echelon form (or simply echelon form) if it has the following properties:

  1. All nonzero rows are above any rows of all zeros.

  2. Each pivot (the first non-zero entry reading from left to right) in a row is in a column to the right of the pivot of the row above it.

A pivot is also called a leading entry of a row. Note that properties (1) and (2) above imply that all entries in a column below a pivot are zeros. It can be shown that the positions of these pivots, called pivot positions, are unique and tell us quite a bit about a matrix and the solutions of the linear system it corresponds to. The columns that the pivots are in, called pivot columns, will also have useful properties as we will see soon.

Reflection 3.2.

Compare the row echelon form of an augmented matrix to the corresponding system. Do you clearly see the correspondence between the requirements of the row echelon form and the properly eliminated variables in the system? Can you quickly come up with a system which will be in row echelon form when represented in augmented matrix form? Can you modify the standard row echelon form definition to cover cases where the elimination process eliminates the variables from last to first? For example, in a system with three equations in three unknowns, the last variable, say \(x_3\text{,}\) can be eliminated from the second equation, and the last two variables, say \(x_2, x_3\) can be eliminated from the last equation. How would you define this modified row echelon form for a general system with this modified elimination process?

Once an augmented matrix is in row echelon form, we can use back substitution to solve the corresponding system. However, we can make solving much easier with just a little more elimination work.

Row operations are easy to apply, so if we are inclined, there is no reason to stop at the row echelon form. For example, starting with the following matrix

\begin{equation*} \left[ \begin{array}{crcr|r} 2\amp -1\amp 2\amp 2\amp 7 \\ 0\amp 1\amp 3\amp -1\amp -1 \\ 0\amp 0\amp 0\amp 2\amp 4 \end{array} \right] \end{equation*}

in row echelon form, we could take the row operations even farther and avoid the process of back substitution altogether. First, we multiply the last row by \(1/2\) to simplify that row:

\begin{equation*} \begin{array}{c} \text{ } \\ \text{ } \\ \frac{1}{2} R_3 \to R_3 \end{array} \left[ \begin{array}{crcr|r} 2\amp -1\amp 2\amp 2\amp 7 \\ 0\amp 1\amp 3\amp -1\amp -1 \\ 0\amp 0\amp 0\amp 1\amp 2 \end{array} \right]\text{.} \end{equation*}

Then we use the third row to eliminate entries above the third pivot:

\begin{equation*} \begin{array}{c} R_1-2R_3 \to R_1 \\ R_2+R_3 \to R_2 \\ \text{ } \end{array} \left[ \begin{array}{crcr|r} 2\amp -1\amp 2\amp 0\amp 3 \\ 0\amp 1\amp 3\amp 0\amp 1 \\ 0\amp 0\amp 0\amp 1\amp 2 \end{array} \right]\text{.} \end{equation*}

We can continue in this manner (we call this process backward elimination) to make 0 all of the entries above the pivots (one in the second column, and one in the fourth) with the pivots being 1, to ultimately obtain the equivalent augmented matrix

\begin{equation*} \left[ \begin{array}{crcr|r} 1\amp 0\amp \frac{5}{2} \amp 0\amp 2 \\ 0\amp 1\amp 3\amp 0\amp 1 \\ 0\amp 0\amp 0\amp 1\amp 2 \end{array} \right]\text{.} \end{equation*}

The system corresponding to this augmented matrix is

\begin{alignat*}{5} {}x_1 \amp {} \amp {} \amp {}+{} \amp {\frac{5}{2}}x_3 \amp {} \amp {} \amp {}={} \amp \ 2\\ {} \amp {} \amp {}x_2 \amp {}+{} \amp {3}x_3 \amp { } \amp {} \amp {}={} \amp \ 1\\ {} \amp {} \amp {} \amp {} \amp {} \amp { } \amp {}x_4 \amp {}={} \amp \ 2 \end{alignat*}

so we can just directly read off the solution to the system: \(x_3\) free and \(x_1=2- \frac{5}{2}x_3\text{,}\) \(x_2=1-3x_3\text{,}\) \(x_4=2\text{.}\) This final row reduced form makes solving the system very easy, and this form is called the reduced row echelon form.

Definition 3.3.

A rectangular matrix is in reduced row echelon form (or reduced echelon form) if the matrix is in row echelon form and

  1. The pivot in each nonzero row is 1.

  2. Each pivot is the only nonzero entry in its column.

In short, the reduced row echelon form of a matrix is a row echelon form in which all the pivots are 1 and any entries below and above the pivots are 0.

If we use either of these two row echelon forms, solving the original system becomes straightforward and, as a result, these matrix forms are stopping points for the row operation algorithm to solve a system. It is also very easy to write a computer program to perform row operations to obtain and row echelon or reduced row echelon form of the matrix, making hand computations unnecessary. We will discuss this shortly.

Reflection 3.4.

Compare the reduced row echelon form of an augmented matrix to the corresponding system. Do you clearly see the correspondence between the requirements of the reduced row echelon form and the way the variables appear in the equations in the system? Can you quickly come up with a system which will be in reduced row echelon form when represented in augmented matrix form?

Note.

We have used the elimination method on augmented matrices so far. However, the elimination method can be applied on just the coefficient matrix, or other matrices that will arise in other contexts, and will provide useful information in each of those cases. Therefore, the row echelon form and reduced row echelon form is defined for any matrix, and from now on, a matrix will be a general matrix unless explicitly specified to be an augmented matrix.

Activity 3.2.

Identify which of the following matrices is in row echelon form (REF) and/or reduced row echelon form (RREF). For those in row and/or reduced row echelon form, identify the pivots clearly by circling them. For those that are not in a given form, state which properties the matrix fails to satisfy.

(a)

\(\left[ \begin{array}{ccrc} 2 \amp 4 \amp -3 \amp 6 \\ 0 \amp 0 \amp 0 \amp 7 \end{array} \right]\)

(b)

\(\left[ \begin{array}{cc} 1 \amp 0 \\ 0 \amp 1 \end{array} \right]\)

(c)

\(\left[ \begin{array}{cccc} 0 \amp 1 \amp 2 \amp 3 \\ 0 \amp 0 \amp 1 \amp 0 \\ 0 \amp 1 \amp 0 \amp 5 \end{array} \right]\)

(d)

\(\left[ \begin{array}{cccc} 1 \amp 2 \amp 3 \amp 4 \\ 0 \amp 0 \amp 0 \amp 0 \\ 0 \amp 0 \amp 0 \amp 0 \end{array} \right]\)

(e)

\(\left[ \begin{array}{cc} 0 \amp 0 \\ 0 \amp 0 \end{array} \right]\)

Subsection Determining the Number of Solutions of a Linear System

Consider the system

\begin{alignat*}{5} {}x_1 \amp {+} \amp {2}x_2 \amp {}-{} \amp {}x_3 \amp {} \amp {} \amp {}={} \amp \ 0\amp {}\\ {} \amp {} \amp {}x_2 \amp {} \amp {} \amp {}-{} \amp {}x_4 \amp {}={} \amp \ 2\amp {}\\ {} \amp {} \amp {} \amp {}{} \amp {}x_3 \amp {}-{} \amp {2}x_4 \amp {}={} \amp \ 4\amp {.} \end{alignat*}

The augmented matrix for this system is

\begin{equation*} \left[ \begin{array}{ccrr|c} 1 \amp 2 \amp -1 \amp 0 \amp 0 \\ 0 \amp 1 \amp 0 \amp -1 \amp 2 \\ 0 \amp 0 \amp 1 \amp -2 \amp 4 \end{array} \right]\text{.} \end{equation*}

Note that this matrix is already in row echelon form. The reduced row echelon form of this augmented matrix is

\begin{equation} \left[ \begin{array}{cccr|c} 1 \amp 0 \amp 0 \amp 0 \amp 0 \\ 0 \amp 1 \amp 0 \amp -1 \amp 2 \\ 0 \amp 0 \amp 1 \amp -2 \amp 4 \end{array} \right]\text{.}\tag{3.2} \end{equation}

Since there are leading 1s in the first three columns, we can use those entries to write \(x_1\text{,}\) \(x_2\text{,}\) and \(x_3\) in terms of \(x_4\text{.}\) We then choose \(x_4\) to be arbitrary and write the remaining variables in terms of \(x_4\text{.}\) Let \(x_4 = t\text{.}\) Solving the third equation for \(x_3\) gives us \(x_3 = 4+2t\text{.}\) The second equation shows that \(x_2 = 2+t\text{,}\) and the first that \(x_1 = 0\text{.}\) Each value of \(t\) provides a solution to the system, so our system has infinitely many solutions. These solutions are

\begin{equation*} x_1 = 0, \ x_2 = 2+t, \ x_3 = 4+2t, \ \text{ and } \ x_4 = t\text{,} \end{equation*}

where \(t\) can have any value.

Activity 3.3.

We have seen examples of systems with no solutions, one solution, and infinitely many solutions. As we will see in this activity, we can recognize the number of solutions to a system by analyzing the pivot positions in the augmented matrix of the system.

(a)

Write an example of an augmented matrix in row echelon form so that the last column of the (whole) matrix is a pivot column. What is the system of equations corresponding to your augmented matrix? How many solutions does your system have? Why?

(b)

Consider the reduced row echelon form (3.2). Based on the columns of this matrix, explain how we know that the system it represents is consistent.

(c)

The system with reduced row echelon form (3.2) is consistent. What is it about the columns of the coefficient matrix that tells us that this system has infinitely many solutions?

(d)

Suppose that a linear system is consistent and that the coefficient matrix has \(m\) rows and \(n\) columns.

(i)

If every column of the coefficient matrix is a pivot column, how many solutions must the system have? Why? What relationship must exist between \(m\) and \(n\text{?}\) Explain.

(ii)

If the coefficient matrix has at least one non-pivot column, how many solutions must the system have? Why?

When solving a linear system of equations, the free variables can be chosen arbitrarily and we can write the basic variables in terms of the free variables. Therefore, the existence of a free variable leads to infinitely many solutions for consistent systems. However, it is possible to have a system with free variables which is inconsistent. (Can you think of an example?)

Subsection Producing the Echelon Forms

In this part, we consider the formal process of creating the row and reduced row echelon forms of matrices. The process of creating the row echelon form is the equivalent of the elimination method on systems of linear equations.

Activity 3.4.

Each of the following matrices is at most a few steps away from being in the requested echelon form. Determine what row operations need to be completed to turn the matrix into the required form.

(a)

Turn into REF: \(\left[ \begin{array}{cc} 0 \amp 2 \\ 2 \amp 1 \end{array} \right]\)

(b)

Turn into REF: \(\left[ \begin{array}{cc} 1 \amp 2 \\ 2 \amp 5 \end{array} \right]\)

(c)

Turn into RREF: \(\left[ \begin{array}{ccc} 2 \amp 0 \amp 0 \\ 0 \amp 3 \amp 0 \\ 0\amp 0\amp 1 \end{array} \right]\)

(d)

Turn into RREF: \(\left[ \begin{array}{cr} 1\amp -1 \\ 0 \amp 1 \end{array} \right]\)

(e)

Turn into RREF: \(\left[ \begin{array}{cc} 1\amp 1 \\ 0 \amp 2 \end{array} \right]\)

(f)

Turn into RREF: \(\left[ \begin{array}{ccr} 1\amp 0 \amp -1 \\ 0 \amp 1 \amp 3 \\ 0\amp 0\amp 2 \end{array} \right]\)

The complete process of applying row operations to reduce an augmented matrix to a row or reduced row echelon form can be expressed as a recursive process in an algorithmic fashion, making it possible to program computers to solve linear systems. Here are the steps to do so:

Step 1

Begin with the leftmost nonzero column (if there is one). This will be a pivot column.

Step 2

Select a nonzero entry in this pivot column as a pivot. If necessary, interchange rows to move this entry to the first row (this entry will be a pivot).

Step 3

Use row operations to create zeros in all positions below the pivot.

Step 4

Cover (or ignore) the row containing the pivot position and cover all rows, if any, above it. Apply steps 1-3 to the submatrix that remains. Repeat the process until there are no more nonzero rows to modify.

To obtain the reduced row echelon form we need one more step.

Step 5

Beginning with the rightmost pivot and working upward and to the left, create zeros above each pivot. If a pivot is not 1, make it 1 by an appropriate row multiplication.

The algorithm described in steps 1-4 will produce the row echelon form of the matrix. This algorithm is called Gaussian elimination. When we add step 5 to produce the reduced row echelon form, the algorithm is called Gauss-Jordan elimination.

Activity 3.5.

Consider the matrix \(\left[ \begin{array}{rrcr} 0\amp 2\amp 4\amp 1\\ -1\amp 3\amp 0\amp 6 \\ 0\amp 4\amp 8\amp 2\\ 1\amp -3\amp 0\amp -2 \end{array} \right]\text{.}\)

(a)

Perform Gaussian elimination to reduce the matrix to row echelon form. Clearly identify each step used. Compare your row echelon form to that of another group. Do your results agree? If not, who is right?

(b)

Now continue applying row operations to obtain the reduced row echelon form of the matrix. Clearly identify each step. Compare your row echelon form to that of another group. Do your results agree? If not, who is right?

If we compare row echelon forms from Activity 3.5, it is likely that different groups or individuals produced different row echelon forms. That is because the row echelon form of a matrix is not unique. (Is the row echelon form ever unique?)

However, if row operations are applied correctly, then we will all arrive at the same reduced row echelon form in Activity 3.5:

\begin{equation*} \left[ \begin{array}{cccc} 1\amp 0\amp 6\amp 0\\ 0\amp 1\amp 2\amp 0 \\ 0\amp 0\amp 0\amp 1\\ 0\amp 0\amp 0\amp 0 \end{array} \right]\text{.} \end{equation*}

It turns out that the reduced row echelon form of a matrix is unique.

Two matrices who are connected by row operations are said to be row equivalent.

Definition 3.5.

A matrix \(B\) is row equivalent to a matrix \(A\) if \(B\) can be obtained by applying elementary row operations to \(A\text{.}\)

Since every elementary row operation is reversible, if \(B\) is row equivalent to \(A\text{,}\) then \(A\) is also row equivalent to \(B\text{.}\) Thus, we just say that \(A\) and \(B\) are row equivalent. While the row echelon form of a matrix is not unique, it is the case that the reduced row echelon form of a matrix is unique.

The reduced row echelon form of a matrix that corresponds to a system of linear equations provides us with an equivalent system whose solutions are easy to find. As an example, consider the system

\begin{alignat*}{5} {} \amp {} \amp {2}x_2 \amp {}+{} \amp {4}x_3 \amp {}+{} \amp {}x_4 \amp {}={} \amp \ 0\\ {-}x_1 \amp {}+{} \amp {3}x_2 \amp {} \amp {} \amp {}+{} \amp {6}x_4 \amp {}={} \amp \ 0\\ {} \amp {} \amp {4}x_2 \amp {}+{} \amp {8}x_3 \amp {}+{} \amp {2}x_4 \amp {}={} \amp \ 0\\ {}x_1 \amp {}-{} \amp {3}x_2 \amp {} \amp {} \amp {}-{} \amp {2}x_4 \amp {}={} \amp \ 0 \end{alignat*}

with augmented matrix

\begin{equation*} \left[ \begin{array}{rrcr|c} 0\amp 2\amp 4\amp 1\amp 0 \\ -1\amp 3\amp 0\amp 6\amp 0 \\ 0\amp 4\amp 8\amp 2\amp 0 \\ 1\amp -3\amp 0\amp -2\amp 0 \end{array} \right]\text{.} \end{equation*}

Notice that the coefficient matrix (the left hand side portion of the augmented matrix) of this system is same as the matrix we considered in Activity 3.5. Since we are augmenting with a column of zeros, no row operations will change those zeros in the augmented column. So the row operations applied in Activity 3.5 will give us the reduced row echelon form of this augmented matrix as

\begin{equation*} \left[ \begin{array}{cccc|c} 1\amp 0\amp 6\amp 0\amp 0\\ 0\amp 1\amp 2\amp 0\amp 0 \\ 0\amp 0\amp 0\amp 1\amp 0 \\ 0\amp 0\amp 0\amp 0\amp 0 \end{array} \right]\text{.} \end{equation*}

Note that the third column is not a pivot column. That means that the variable \(x_3\) is a free variable. There are pivots in the other three columns of the coefficient matrix, so we can solve for \(x_1\text{,}\) \(x_2\text{,}\) and \(x_4\) in terms of \(x_3\text{.}\) These variables are the basic variables. The third row of the augmented matrix tells us that \(x_4=0\text{.}\) The second row corresponds to the equation \(x_2+2x_3 = 0\text{,}\) and solving for \(x_2\) shows that \(x_2 = -2x_3\text{.}\) Finally, the first row tells us that \(x_1+6x_3 = 0\text{,}\) so \(x_1 = -6x_3\text{.}\) Therefore, the general solution to this system of equations is

\begin{equation*} x_1 = -6x_3, \ \ \ \ x_2 = -2x_3, \ \ \ \ x_3 \text{ is free } , \ \ \ \ x_4 = 0\text{.} \end{equation*}

The fact that \(x_3\) is free means that we can choose any value for \(x_3\) that we like and obtain a specific solution to the system. For example, if \(x_3=-1\text{,}\) then we have the solution \(x_1 = 6\text{,}\) \(x_2 = 2\text{,}\) \(x_3 = -1\text{,}\) and \(x_4 = 0\text{.}\) Check this to be sure.

Activity 3.6.

Each matrix below is an augmented matrix for a linear system after elimination with variables \(x_1, x_2, \ldots\) in that order. Identify the basic variables (if any) and free variables (if any). Then find the general solution (if there is a solution) expressing all variables in terms of the free variables.

(a)

\(\left[ \begin{array}{ccc|c} 1\amp 0\amp 2\amp 1 \\ 0\amp 3\amp 1\amp 0 \\ 0\amp 0\amp 0\amp 0 \end{array} \right]\)

(b)

\(\left[ \begin{array}{ccr|c} 1\amp 1\amp 0\amp 1 \\ 0\amp 0\amp 1\amp 2 \\ 0\amp 0\amp 0\amp 0 \end{array} \right]\)

(c)

\(\left[ \begin{array}{ccrc|c} 1\amp 2\amp -1\amp 1\amp 1 \\ 0\amp 1\amp 0\amp 2\amp 1 \\ 0\amp 0\amp 0\amp 0\amp 0 \\ 0\amp 0\amp 0\amp 0\amp 0 \end{array} \right]\)

(d)

\(\left[ \begin{array}{ccr|c} 1\amp 0\amp 1\amp 1 \\ 0\amp 1\amp 0\amp 0 \\ 0\amp 0\amp 0\amp 2 \end{array} \right]\)

(e)

\(\left[ \begin{array}{cc|c} 1\amp 0\amp 1 \\ 0\amp 1\amp 0 \\ 0\amp 0\amp 0 \end{array} \right]\)

Recall that in the previous section, we determined the criteria for when a system has a unique solution, or infinitely many solutions, or no solution. With the use of the row echelon form of the augmented matrix, we can rewrite these criteria as follows:

Figure 3.8. Figures for Activity 3.7.

Activity 3.7.

(a)

For each part, the reduced row echelon form of the augmented matrix of a system of equations in variables \(x\text{,}\) \(y\text{,}\) and \(z\) (in that order) is given. Use the reduced row echelon form to find the solution set to the original system of equations.

(i)

\(\left[ \begin{array}{ccc|r} 1 \amp 0 \amp 0 \amp -1 \\ 0 \amp 1 \amp 0 \amp 3 \\ 0 \amp 0 \amp 0 \amp 0 \end{array} \right]\)

(ii)

\(\left[ \begin{array}{ccr|r} 1 \amp 0 \amp 2 \amp -1 \\ 0 \amp 1 \amp -1 \amp 3 \\ 0 \amp 0 \amp 0 \amp 0 \end{array} \right]\)

(iii)

\(\left[ \begin{array}{ccc|r} 1 \amp 0 \amp 0 \amp 2 \\ 0 \amp 1 \amp 0 \amp -1 \\ 0 \amp 0 \amp 1 \amp 3 \end{array} \right]\)

(iv)

Each of the three systems above is represented as one of the graphs in Figure 3.8. Match each figure with a system.

(b)

The reduced row echelon form of the augmented matrix of a system of equations in variables \(x\text{,}\) \(y\text{,}\) \(z\text{,}\) and \(t\) (in that order) is given. Use the reduced row echelon form to find the solution set to the original system of equations:

\begin{equation*} \left[ \begin{array}{cccc|r} 1 \amp 3 \amp 0 \amp 0 \amp -1 \\ 0 \amp 0 \amp 1 \amp 2 \amp 4 \\ 0 \amp 0 \amp 0 \amp 0 \amp 1 \end{array} \right]\text{.} \end{equation*}

Subsection Examples

What follows are worked examples that use the concepts from this section.

Example 3.9.

Consider the linear system

\begin{alignat*}{1} 2x_1 + 6x_3 \amp = x_2 + 2\\ 2x_3 - 4x_1 \amp = 2x_2\\ x_2 + 4x_3 - 2 \amp = 2x_1 + 6\text{.} \end{alignat*}
(a)

Find the augmented matrix for this system.

Solution.

Before we can find the augmented matrix of this system, we need to rewrite the system so that the variables are all on one side and the constant terms are on the other side of the equations. Doing so yields the equivalent system

\begin{alignat*}{4} {2}x_1 \amp {}-{} \amp {}x_2 \amp {}+{} \amp {6}x_3 \amp {}={} \amp \ 2\amp {}\\ {-4}x_1 \amp {}-{} \amp {2}x_2 \amp {}+{} \amp {2}x_3 \amp {}={} \amp \ 0\amp {}\\ {-2}x_1 \amp {}+{} \amp {}x_2 \amp {}+{} \amp {4}x_3 \amp {}={} \amp \ 8\amp {.} \end{alignat*}

Note that this is not the only way to rearrange the system. For example, for the second equation, could be written instead as \(4x_1+2x_2-2x_3=0\) to minimize the number of negative signs in the equation.

The augmented matrix for this system is

\begin{equation*} \left[ \begin{array}{rrc|c} 2\amp -1\amp 6\amp 2 \\ -4\amp -2\amp 2\amp 0 \\ -2\amp 1\amp 4\amp 8 \end{array} \right]\text{.} \end{equation*}
(b)

Use row operations to find a row echelon form of the augmented matrix of this system.

Solution.

Our first steps to row echelon form are to eliminate the entries below the leading entry in the first row. To do this we replace row two with row two plus 2 times row 1 and we replace row three with row three plus row one. This produces the row equivalent matrix

\begin{equation*} \left[ \begin{array}{crc|c} 2\amp -1\amp 6\amp 2 \\ 0\amp -4\amp 14\amp 4 \\ 0\amp 0\amp 10\amp 10 \end{array} \right]\text{.} \end{equation*}

This matrix is now in row echelon form.

(c)

Use row operations to find the reduced row echelon form of the augmented matrix of this system.

Solution.

To continue to find the reduced row echelon form, we replace row two with row two times \(-\frac{1}{4}\) to get a leading 1 in the second row, and we replace row three with row three times \(\frac{1}{10}\) to get a leading 1 in the third row and obtain the row equivalent matrix

\begin{equation*} \left[ \begin{array}{crr|r} 2\amp -1\amp 6\amp 2 \\ 0\amp 1\amp -\frac{7}{2}\amp -1 \\ 0\amp 0\amp 1\amp 1 \end{array} \right]\text{.} \end{equation*}

Now we perform backwards elimination to make the entries above the leading \(1\)s equal to \(0\text{,}\) starting with the third column and working backwards. Replace row one with row one minus \(6\) times row three and replace row two with row two plus \(\frac{7}{2}\) row three to obtain the row equivalent matrix

\begin{equation*} \left[ \begin{array}{crc|r} 2\amp -1\amp 0\amp -4 \\ 0\amp 1\amp 0\amp \frac{5}{2} \\ 0\amp 0\amp 1\amp 1 \end{array} \right]\text{.} \end{equation*}

For the second column, we replace row one with row one plus row two to obtain the row equivalent matrix

\begin{equation*} \left[ \begin{array}{ccc|r} 2\amp 0\amp 0\amp -\frac{3}{2} \\ 0\amp 1\amp 0\amp \frac{5}{2} \\ 0\amp 0\amp 1\amp 1 \end{array} \right]\text{.} \end{equation*}

Since the leading entry in row one is not a one, we have one more step before we have the reduced row echelon form. Finally, we replace row one with row one times \(\frac{1}{2}\text{.}\) This gives us the reduced row echelon form

\begin{equation*} \left[ \begin{array}{ccc|r} 1\amp 0\amp 0\amp -\frac{3}{4} \\ 0\amp 1\amp 0\amp \frac{5}{2} \\ 0\amp 0\amp 1\amp 1 \end{array} \right]\text{.} \end{equation*}
(d)

Find the solution(s), if any, to the system.

Solution.

We can read off the solution to the system from the reduced row echelon form: \(x_1 = -\frac{3}{4}\text{,}\) \(x_2 = \frac{5}{2}\text{,}\) and \(x_3 = 1\text{.}\) You should check in the original equations to make sure we have the correct solution.

Example 3.10.

In this example, \(a\) and \(b\) are unknown scalars. Consider the system with augmented matrix

\begin{equation*} \left[ \begin{array}{ccc|c} 1\amp 2\amp a\amp 3 \\ 1\amp 0\amp 0\amp b \\ 0\amp 1\amp 1\amp 0 \end{array} \right]\text{.} \end{equation*}

Find all values of \(a\) and \(b\) so that the system has:

(a)

Exactly one solution (and find the solution)

Solution.

Let \(x_1\text{,}\) \(x_2\text{,}\) and \(x_3\) be the variables corresponding to the first, second, and third columns, respectively, of the augmented matrix. To answer these questions, we row reduce the augmented matrix. We interchange rows one and two and then also rows two and three to obtain the matrix

\begin{equation*} \left[ \begin{array}{ccc|c} 1\amp 0\amp 0\amp b \\ 0\amp 1\amp 1\amp 0 \\ 1\amp 2\amp a\amp 3 \end{array} \right]\text{.} \end{equation*}

Now we replace row three with row three minus row one to produce the row equivalent matrix

\begin{equation*} \left[ \begin{array}{crc|r} 1\amp 0\amp 0\amp b \\ 0\amp 1\amp 1\amp 0 \\ 0\amp 2\amp a\amp 3-b \end{array} \right]\text{.} \end{equation*}

Next, replace row three with row three minus \(2\) times row two. This yields the row equivalent matrix

\begin{equation*} \left[ \begin{array}{ccc|c} 1\amp 0\amp 0\amp b \\ 0\amp 1\amp 1\amp 0 \\ 0\amp 0\amp a-2\amp 3-b \end{array} \right]\text{.} \end{equation*}

We now have a row echelon form.

The system will have exactly one solution when the last row has the form \([0 \ 0 \ u \ v]\) where \(u\) is not zero. Thus, the system has exactly one solution when \(a-2 \neq 0\text{,}\) or when \(a \neq 2\text{.}\) In this case, the solution is

\begin{alignat*}{1} x_3 \amp = \frac{3-b}{a-2},\\ x_2 \amp = -x_3 = \frac{b-3}{a-2}\\ x_1 \amp = b\text{.} \end{alignat*}

You should check to ensure that this solution is correct. The other cases occur when \(a = 2\text{.}\)

(b)

No solutions

Solution.

When \(a=2\) and \(3-b \neq 0\) (or \(b \neq 3\)), then we have a row of the form \([0 \ 0 \ 0 \ t]\text{,}\) where \(t\) is not \(0\text{.}\) In these cases there are no solutions.

(c)

Infinitely many solutions (and find all solutions)

Solution.

When \(a=2\) and \(b = 3\text{,}\) then the last row is a row of all zeros. In this case, the system is consistent and \(x_3\) is a free variable, so the system has infinitely many solutions. The solutions are

\begin{alignat*}{1} x_1 \amp = b\\ x_2 \amp = -x_3\\ x_3 \amp \text{ is free. } \end{alignat*}

You should check to ensure that this solution is correct.

Subsection Summary

In this section we learned about the row echelon and reduced row echelon forms of a matrix and some of the things these forms tell us about solutions to systems of linear equations.

  • A matrix is in row echelon form if

    1. All nonzero rows are above any rows of all zeros.

    2. Each pivot (the first nonzero entry) of a row is in a column to the right of the pivot of the row above it.

  • Once an augmented matrix is in row echelon form, we can use back substitution to solve the corresponding linear system.

  • To reduce a matrix to row echelon form we do the following:

    • Begin with the leftmost nonzero column (if there is one). This will be a pivot column.

    • Select a nonzero entry in this pivot column as a pivot. If necessary, interchange rows to move this entry to the first row (this entry will be a pivot).

    • Use row operations to create zeros in all positions below the pivot.

    • Cover (or ignore) the row containing the pivot position and cover all rows, if any, above it. Apply the preceding steps to the submatrix that remains. Repeat the process until there are no more nonzero rows to modify.

  • A matrix is in reduced row echelon form if it is in row echelon form and

    1. The pivot in each nonzero row is 1.

    2. Each pivot is the only nonzero entry in its column.

  • To obtain the reduced row echelon form from the row echelon form, beginning with the rightmost pivot and working upward and to the left, create zeros above each pivot. If a pivot is not 1, make it 1 by an appropriate row multiplication.

  • Both row echelon forms of an augmented matrix tell us about the number of solutions to the corresponding linear system.

    • A linear system is inconsistent if and only if a row echelon form of the augmented matrix of the system contains a row of the form

      \begin{equation*} [0 \ 0 \ 0 \ \cdots \ 0 \ *]\text{,} \end{equation*}

      where \(*\) is not zero. Another way to say this is that a linear system is inconsistent if and only if the last column of the augmented matrix of the system is a pivot column.

    • A consistent linear system will have a unique solution if and only if each column but the last in the augmented matrix of the system is a pivot column. This is equivalent to saying that a consistent linear system will have a unique solution if and only if the consistent system has no free variables.

    • A consistent linear system will have infinitely many solutions if and only if the coefficient matrix of the system contains a non-pivot column. In that case, the free variables corresponding to the non-pivot columns can be chosen arbitrarily and the basic variables corresponding to pivot columns can be written in terms of the free variables.

    • A linear system can have no solutions, exactly one solution, or infinitely many solutions.

Exercises Exercises

1.

Represent the following linear system in variables \(x_1, x_2, x_3\) in augmented matrix form and use row reduction to find the general solution of the system.

\begin{alignat*}{4} {}x_1 \amp {}+{} \amp {}x_2 \amp {}-{} \amp {}x_3 \amp = \amp {}4\amp {}\\ {}x_1 \amp {}+{} \amp {2}x_2 \amp {}+{} \amp {2}x_3 \amp = \amp {}3\amp {}\\ {2}x_1 \amp {}+{} \amp {3}x_2 \amp {}-{} \amp {3}x_3 \amp = \amp {}11\amp {.} \end{alignat*}

2.

Represent the following linear system in variables \(x_1, x_2, x_3\) in augmented matrix form after rearranging the terms and use row reduction to find all solutions to the system.

\begin{alignat*}{1} x_1 - x_3 - 2x_2 \amp = 3\\ 2x_3 + 2 \amp = x_1 +x_2\\ 4x_2 + 2x_1 - 2 \amp = 5x_3\text{.} \end{alignat*}

3.

Check that the reduced row echelon form of the matrix

\begin{equation*} \left[ \begin{array}{rrrr} 1 \amp -1\amp 3\amp 2 \\ -1\amp 2\amp -4\amp -1 \\ 2\amp 0\amp 6\amp 8 \end{array} \right] \end{equation*}

is

\begin{equation*} \left[ \begin{array}{cccc} 1 \amp 0\amp 0\amp 1 \\ 0\amp 1\amp 0\amp 2 \\ 0\amp 0\amp 1\amp 1 \end{array} \right] \,\text{.} \end{equation*}

4.

Consider the following system:

\begin{alignat*}{5} {}x \amp {}-{} \amp {2}y \amp {}+{} \amp {}z \amp {}={} \amp \ {-}\amp 1\amp {}\\ {} \amp {} \amp {2}y \amp {}-{} \amp {4}z \amp {}={} \amp \ {}\amp 6\amp {}\\ {} \amp {} \amp {h}y \amp {}-{} \amp {2}z \amp {}={} \amp \ {}\amp 1\amp {.} \end{alignat*}
(a)

Find a row echelon form of the augmented matrix for this system.

(b)

For which values of \(h\text{,}\) if any, does the system have (i.) no solutions, (ii.) exactly one solution, (iii.) infinitely many solutions? Find the solutions in each case.

5.

Find the general solution of the linear system corresponding to the following augmented matrix:

\begin{equation*} \left[ \begin{array}{rrcr|r} 1\amp -1\amp 2\amp 1\amp 2 \\ -1\amp 2\amp 2\amp -1\amp -5\\ 1\amp 1\amp 10\amp 2\amp -1 \end{array} \right]\text{.} \end{equation*}

6.

What are the conditions, if any, on the \(a, b, c\) values so that the following augmented matrix corresponds to a consistent linear system? How many solutions will the consistent system have? Explain.

\begin{equation*} \left[ \begin{array}{rrr|c} 1 \amp 2 \amp 3 \amp a \\ 2\amp 3\amp 7\amp b \\ -1\amp -4\amp -1\amp c \end{array} \right]\text{.} \end{equation*}

7.

In this exercise the symbol \(\blacksquare\) denotes a non-zero number and the symbol * denotes any real number (including \(0\)).

(a)

Is the augmented matrix

\begin{equation*} \left[ \begin{array}{cc|c} \blacksquare\amp *\amp * \\ 0\amp \blacksquare\amp * \end{array} \right] \end{equation*}

in a form to which back substitution will easily give the solutions to the system? Explain your reasoning.

Hint.

In order to help see what happens in the general case, substitute some numbers in place of the \(\blacksquare\)'s and *'s and answer the question for that specific system first. Then determine if your answer generalizes.

(b)

The above matrix is a possible form of an augmented matrix with 2 rows and 3 columns corresponding to a linear system after forward elimination, i.e., a linear system for which back substitution will easily give the solutions. Determine the other possible such forms of the nonzero augmented matrices with 2 rows and 3 columns. As in part (a), use the symbol \(\blacksquare\) to denote a non-zero number and * to denote any real number.

8.

Give an example of a linear system with a unique solution for which a row echelon form of the augmented matrix of the system has a row of 0's.

9.

Come up with an example of an augmented matrix with 0's in the rightmost column corresponding to an inconsistent system, if possible. If not, explain why not.

10.

Find two different row echelon forms which are equivalent to the same matrix not given in row echelon form.

11.

Determine all possible row echelon forms of a \(2\times 2\) matrix. Use the symbol \(\blacksquare\) to denote a non-zero number and * to denote a real number with no condition on being 0 or not to represent entries.

12.

Label each of the following statements as True or False. Provide justification for your response.

(a) True/False.

The number of pivots of an \(m \times n\) matrix cannot exceed \(m\text{.}\) (Note: Here \(m\text{,}\) \(n\) are some unknown numbers.)

(b) True/False.

The row echelon form of a matrix is unique.

(c) True/False.

The reduced row echelon form of a matrix is unique.

(d) True/False.

A system of equations where there are fewer equations than the number of unknowns (known as an underdetermined system) cannot have a unique solution.

(e) True/False.

A system of equations where there are more equations than the number of unknowns (known as an overdetermined system) cannot have a unique solution.

(f) True/False.

If a row echelon form of the augmented matrix of a system of three equations in two unknowns has three pivots, then the system is inconsistent.

(g) True/False.

If the coefficient matrix of a system has pivots in every row, then the system is consistent.

(h) True/False.

If there is a row of zeros in a row echelon form of the augmented matrix of a system of equations, the system has infinitely many solutions.

(i) True/False.

If there is a row of zeros in a row echelon form of the augmented matrix of a system of \(n\) equations in \(n\) variables, the system has infinitely many solutions.

(j) True/False.

If a linear system has no free variables, then the system has a unique solution.

(k) True/False.

If a linear system has a free variable, then the system has infinitely many solutions.

Subsection Project: Modeling a Chemical Reaction

Recall the chemical equation

\begin{equation*} \text{C} _2\text{H} _6 + \text{O} _2 \to \text{ CO } _2 + \text{H} _2\text{O} \end{equation*}

from the beginning of this section. This equation illustrates the reaction between ethane (\(\text{C} _2\text{H} _6\)) and oxygen (\(\text{O} _2\)),called the reactants, to produce carbon dioxide (\(\text{ CO } _2\)) and water (\(\text{H} _2\text{O}\)), called the products of the reaction. In any chemical reaction, the total mass of the reactants must equal the total mass of the products. In our reaction the chemicals involved are made up of carbon (C), hydrogen (H), and oxygen (O) atoms. To balance the equation, we need to know how many molecules of each chemical are combined to preserve the number of atoms of C, H, and O.

Let \(x_1\) be the number of molecules of \(\text{C} _2\text{H} _6\text{,}\) \(x_2\) the number of molecules of \(\text{O} _2\text{,}\) \(x_3\) the number of molecules of \(\text{ CO } _2\text{,}\) and \(x_4\) the number of molecules of \(\text{H} _2\text{O}\) in the reaction. We can then represent this reaction as

\begin{equation*} x_1 \text{C} _2\text{H} _6 + x_2 \text{O} _2 \to x_3 \text{ CO } _2 + x_4 \text{H} _2\text{O}\text{.} \end{equation*}

In each molecule (e.g., ethane \(\text{C} _2\text{H} _6\)), the subscripts indicate the number of atoms of each element in the molecule. So 1 molecule of ethane contains 2 atoms of carbon and 6 atoms of hydrogen. Thus, there are 2 atoms of carbon in \(\text{C} _2\text{H} _6\) and 0 atoms of carbon in \(\text{O} _2\text{,}\) giving us \(2x_1\) carbon atoms in \(x_1\) molecules of \(\text{C} _2\text{H} _6\) and 0 carbon atoms in \(x_2\) molecules of \(\text{O} _2\text{.}\) On the product side of the reaction there is 1 carbon atom in \(\text{ CO } _2\) and 0 carbon atoms in \(\text{H} _2\text{O}\text{.}\) To balance the reaction, we know that the number of carbon atoms in the products must equal the number of carbon atoms in the reactants.

Project Activity 3.8.

(a)

Set up an equation that balances the number of carbon atoms on both sides of the reaction.

(b)

Balance the numbers of hydrogen and oxygen atoms in the reaction to explain why

\begin{alignat*}{1} 6x_1 \amp = 2x_4\\ 2x_2 \amp = 2x_3 + x_4\text{.} \end{alignat*}
(c)

So the system of linear equations that models this chemical reaction is

\begin{alignat*}{5} {2}x_1 \amp {} \amp {} \amp {}-{} \amp {}x_3 \amp {} \amp {} \amp {}={} \amp \ 0\amp {}\\ x_1 \amp {} \amp {} \amp {} \amp {} \amp {}-{} \amp {2}x_4 \amp {}={} \amp \ 0\amp {}\\ {} \amp {} \amp {2}x_2 \amp {}-{} \amp {2}x_3 \amp {}-{} \amp {}x_4 \amp {}={} \amp \ 0\amp {.} \end{alignat*}

Find all solutions to this system and then balance the reaction. Note that we cannot have a fraction of a molecule in our reaction.

Hint.

Some of the work needed is done in Preview Activity 3.1.

Project Activity 3.9.

Chemical reactions can be very interesting.

(a)

Carbon dioxide, \(\text{ CO } _2\text{,}\) is a familiar product of combustion. For example, when we burn glucose, \(\text{C} _6\text{H} _{12}\text{O} _6\text{,}\) the products of the reaction are carbon dioxide and water:

\begin{equation} \text{C} _6\text{H} _{12}\text{O} _6 + \text{O} _2 \to \text{ CO } _2 + \text{H} _2\text{O}\text{.}\tag{3.3} \end{equation}

Use the techniques developed in this project to balance this reaction.

(b)

To burn glucose, we need to add oxygen to make the combustion happen. Carbon dioxide is different in that it can burn without the presence of oxygen. For example, when we mix magnesium (Mg) with dry ice (\(\text{ CO } _2\)), the products are magnesium oxide (MgO) and carbon (C). This is an interesting reaction to watch: you can see it at many websites, e.g., ebaumsworld.com/video/watch/404311/ or youtube.com/watch?v=-6dfi8LyRLA Use the method determined above to balance the chemical reaction

\begin{equation} \text{ Mg } + \text{ CO } _2 \to \text{ MgO } + \text{C}\text{.}\tag{3.4} \end{equation}