Skip to main content

Section 4.4 Augmented matrices

After performing Gaussian elimination a few times, you probably noticed that you spent most of the time concentrating on the coefficients and simply recorded the variables as place holders. Based on this observation, we will introduce a shorthand description of linear systems.
When writing a linear system, we always write the variables in the same order in each equation. We then construct an augmented matrix by simply forgetting about the variables and recording the numerical data in a rectangular array. For instance, the system of equations below has the following augmented matrix
\begin{equation*} \begin{alignedat}{4} -x \amp {}-{} \amp 2y \amp {}+{} \amp 2z \amp {}={} \amp -1 \\ 2x \amp {}+{} \amp 4y \amp {}-{} \amp z \amp {}={} \amp 5 \\ x \amp {}+{} \amp 2y \amp \amp \amp {}={} \amp 3 \\ \end{alignedat} \end{equation*}
\begin{equation*} \left[ \begin{array}{rrr|r} -1 \amp -2 \amp 2 \amp -1 \\ 2 \amp 4 \amp -1 \amp 5 \\ 1 \amp 2 \amp 0 \amp 3 \\ \end{array} \right]. \end{equation*}
The vertical line reminds us where the equals signs appear in the equations. Entries in the matrix to the left of the vertical line correspond to coefficients of the equations. We sometimes choose to focus only on the coefficients of the system in which case we write the coefficient matrix as
\begin{equation*} \left[ \begin{array}{rrr} -1 \amp -2 \amp 2 \\ 2 \amp 4 \amp -1 \\ 1 \amp 2 \amp 0 \\ \end{array} \right]. \end{equation*}
The three operations we perform on systems of equations translate naturally into operations on matrices. For instance, the replacement operation that multiplies the first equation by 2 and adds it to the second may be performed by multiplying the first row of the augmented matrix by 2 and adding it to the second row:
\begin{equation*} \left[ \begin{array}{rrr|r} -1 \amp -2 \amp 2 \amp -1 \\ 2 \amp 4 \amp -1 \amp 5 \\ 1 \amp 2 \amp 0 \amp 3 \\ \end{array} \right] \sim \left[ \begin{array}{rrr|r} -1 \amp -2 \amp 2 \amp -1 \\ 0 \amp 0 \amp 3 \amp 3 \\ 1 \amp 2 \amp 0 \amp 3 \\ \end{array} \right]. \end{equation*}
The symbol \(\sim\) between the matrices indicates that the two matrices are related by a sequence of scaling, interchange, and replacement operations. Since these operations act on the rows of the matrices, we say that the matrices are row equivalent. Notice that the linear systems corresponding to two row equivalent augmented matrices have the same solution space.

Activity 4.4.1. Augmented matrices and solution spaces.

  1. Write the augmented matrix for the linear system
    \begin{equation*} \begin{alignedat}{4} x \amp {}+{} \amp 2y \amp {}-{} \amp z \amp {}={} \amp 1 \\ 3x \amp {}+{} \amp 2y \amp {}+{} \amp 2z \amp {}={} \amp 7 \\ -x \amp \amp \amp {}+{} \amp 4z \amp {}={} \amp -3 \\ \end{alignedat} \end{equation*}
    and perform Gaussian elimination to describe the solution space in as much detail as you can.
  2. Suppose that you have a linear system in the variables \(x\) and \(y\) whose augmented matrix is row equivalent to
    \begin{equation*} \left[ \begin{array}{rr|r} 1 \amp 0 \amp 3 \\ 0 \amp 1 \amp 0 \\ 0 \amp 0 \amp 0 \\ \end{array} \right]. \end{equation*}
    Write the linear system corresponding to this augmented matrix and describe its solution set in as much detail as you can.
  3. Suppose that you have a linear system in the variables \(x\) and \(y\) whose augmented matrix is row equivalent to
    \begin{equation*} \left[ \begin{array}{rr|r} 1 \amp 0 \amp 3 \\ 0 \amp 1 \amp 0 \\ 0 \amp 0 \amp 1 \\ \end{array} \right]. \end{equation*}
    Write the linear system corresponding to this augmented matrix and describe its solution set in as much detail as you can.
  4. Suppose that the augmented matrix of a linear system has the following shape where \(*\) could be any real number.
    \begin{equation*} \left[ \begin{array}{rrrrr|r} * \amp * \amp * \amp * \amp * \amp * \\ * \amp * \amp * \amp * \amp * \amp * \\ * \amp * \amp * \amp * \amp * \amp * \\ \end{array} \right]. \end{equation*}
    1. How many equations are there in this system and how many variables?
    2. do you think it’s possible that this system has exactly one solution, infinitely many solutions, or no solutions?
    3. Suppose that this augmented matrix is row equivalent to
      \begin{equation*} \left[ \begin{array}{rrrrr|r} 1 \amp 2 \amp 0 \amp 0 \amp 3 \amp 2 \\ 0 \amp 0 \amp 1 \amp 2 \amp -1 \amp -1 \\ 0 \amp 0 \amp 0 \amp 0 \amp 0 \amp 0 \\ \end{array} \right]. \end{equation*}
      Make a choice for the names of the variables and write the corresponding linear system. Does the system have exactly one solution, infinitely many solutions, or no solutions?
Answer.
  1. There is a single solution \((3,-1,0)\text{.}\)
  2. There is a single solution \((3,0)\text{.}\)
  3. There are no solutions.
  4. This system has three equations in five variables, and there are infinitely many solutions.
Solution.
  1. The augmented matrix for this linear system is
    \begin{equation*} \left[\begin{array}{rrr|r} 1 \amp 2 \amp -1 \amp 1 \\ 3 \amp 2 \amp 2 \amp 7 \\ -1 \amp 0 \amp 4 \amp -3 \\ \end{array} \right] \sim \left[\begin{array}{rrr|r} 1 \amp 0 \amp 0 \amp 3 \\ 0 \amp 1 \amp 0 \amp -1 \\ 0 \amp 0 \amp 1 \amp 0 \end{array}\right] \end{equation*}
    This corresponds to the system of equations
    \begin{equation*} \begin{alignedat}{3} x \amp {}={} \amp 3 \\ y \amp {}={} \amp -1 \\ z \amp {}={} \amp 0 \\ \end{alignedat} \end{equation*}
    showing that there is a single solution \((x,y,z) = (3,-1,0)\text{.}\)
  2. The corresponding system of equations is
    \begin{equation*} \begin{alignedat}{3} x \amp {}={} \amp 3 \\ y \amp {}={} \amp 0 \\ 0 \amp {}={} \amp 0 \\ \end{alignedat} \end{equation*}
    The third equation is satisfied for any values of \(x\) and \(y\text{.}\) Therefore, we see that the only solution to the system is \((x,y) = (3,0)\text{.}\)
  3. Here, the corresponding system of equations is
    \begin{equation*} \begin{alignedat}{3} x \amp {}={} \amp 3 \\ y \amp {}={} \amp 0 \\ 0 \amp {}={} \amp 1 \\ \end{alignedat} \end{equation*}
    Since the third equation is not satisfied for any values of \(x\) and \(y\text{,}\) there are no solutions to the system.
  4. The system corresponding to this augmented matrix has three equations and five variables. Our first guess is there are infinitely many solutions. If we write out the equations corresponding to the augmented matrix, we find
    \begin{equation*} \begin{alignedat}{5} x_1 \amp {}+{} \amp 2x_2 \amp \amp \amp \amp {}+{} \amp 3x_5 \amp {}={} \amp 2 \\ \amp \amp \amp x_3 \amp {}+{} \amp 2x_4 \amp {}-{} \amp x_5 \amp {}={} \amp -1 \\ \end{alignedat} \end{equation*}
    since the third row of the augmented matrix does not restrict the solution space. From here, we see that there are infinitely many solutions: if we make any choice for the variables \(x_2\text{,}\) \(x_4\text{,}\) and \(x_5\text{,}\) we can find values for \(x_1\) and \(x_3\) that give a solution.