# Augmented Matrices

## Formed when two matrices are joined together and operated on as if they were a single matrix.

%
Progress

MEMORY METER
This indicates how strong in your memory this concept is
Progress
%
Augmented Matrices

The reason why the rules for row reducing matrices are the same as the rules for eliminating coefficients when solving a system of equations is because you are essentially doing the same thing in each case.  When you write and rewrite the equation every time you end up writing down lots of extra information.  Matrices take care of this information by embedding it in the location of each entry.  How would you use matrices to write the following system of equations?

### Solving Systems of Equations with Augmented Matrices

In order to represent a system as a matrix equation, first write all the equations in standard form so that the coefficients of the variables line up in columns.  Then copy down just the coefficients in a coefficient matrix array.  Next copy the variables in a variable matrix and the constants into a constant matrix.

\begin{align*}x+y+z &= 9\\ x+2y+3z &= 22\\ 2x+3y+4z &= 31\end{align*}

\begin{align*}\begin{bmatrix} 1 & 1 & 1\\ 1 & 2 & 3\\ 2 & 3 & 4 \end{bmatrix} \cdot \begin{bmatrix} x\\ y\\ z \end{bmatrix}=\begin{bmatrix} 9\\ 22\\ 31 \end{bmatrix}\end{align*}

The reason why this works is because of the way matrix multiplication is defined.

\begin{align*}\begin{bmatrix} 1 & 1 & 1\\ 1 & 2 & 3\\ 2 & 3 & 4 \end{bmatrix} \cdot \begin{bmatrix} x\\ y\\ z \end{bmatrix} = \begin{bmatrix} 1x + 1y + 1z\\ 1x + 2y + 3z\\ 2z + 3y + 4z \end{bmatrix}=\begin{bmatrix} 9\\ 22\\ 31 \end{bmatrix}\end{align*}

Notice how putting brackets around the two matrices on the right does very little to hide the fact that this is just a regular system of 3 equations and 3 variables.

Once you have your system represented as a matrix you can solve it using an augmented matrix.  An augmented matrix is two matrices that are joined together and operated on as if they were a single matrix.  In the case of solving a system, you need to augment the coefficient matrix and the constant matrix.  The vertical line indicates the separation between the coefficient matrix and the constant matrix.

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 1 & 1\\ 1 & 2 & 3\\ 2 & 3 & 4 \end{matrix} \left| \begin{matrix} 9\\ 22\\ 31 \end{matrix}\right. \end{bmatrix}\end{align*}

To solve, reduce the matrix to reduced row echelon form.

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 1 & 1\\ 1 & 2 & 3\\ 2 & 3 & 4 \end{matrix} \left| \begin{matrix} 9\\ 22\\ 31 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ \rightarrow & -I & \rightarrow\\ \rightarrow & -2I & \rightarrow \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 1 & 1\\ 0 & 1 & 2\\ 0 & 1 & 2 \end{matrix} \left| \begin{matrix} 9\\ 13\\ 13 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ & \rightarrow &\\ \rightarrow & -II & \rightarrow \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 1 & 1\\ 0 & 1 & 2\\ 0 & 0 & 0 \end{matrix} \left| \begin{matrix} 9\\ 13\\ 0 \end{matrix}\right. \end{bmatrix}\end{align*}

Because the last row is all 0's, this system is dependent. Therefore, there are an infinite number of solutions.

### Examples

#### Example 1

Earlier, you were asked how to write a system of equations as a matrix equation. If you were to write the system as a matrix equation, you could write:

\begin{align*}5x+y &= 6\\ x+y &= 10\\ \begin{bmatrix} 5 & 1\\ 1 & 1 \end{bmatrix} \cdot \begin{bmatrix} x\\ y \end{bmatrix} &= \begin{bmatrix} 6\\ 10 \end{bmatrix}\end{align*}

#### Example 2

Solve the following system using an augmented matrix.

\begin{align*}x+y+z &= 6\\ x-y-z &= -4\\ x+2y+3z &= 14\end{align*}

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 1 & 1\\ 1 & -1 & -1\\ 1 & 2 & 3 \end{matrix} \left| \begin{matrix} 6\\ -4\\ 14 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ \rightarrow & -I &\\ \rightarrow & -I & \rightarrow \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 1 & 1\\ 0 & -2 & -2\\ 0 & 1 & 2 \end{matrix} \left| \begin{matrix} 6\\ -10\\ 8 \end{matrix}\right. \end{bmatrix} \begin{matrix} \rightarrow & -III & \rightarrow\\ \rightarrow & +3III & \rightarrow\\ & \rightarrow & \end{matrix} \end{align*}

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 0 & -1\\ 0 & 1 & 4\\ 0 & 1 & 2 \end{matrix} \left| \begin{matrix} -2\\ 14\\ 8 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ & \rightarrow &\\ \rightarrow & -II & \rightarrow \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 0 & -1\\ 0 & 1 & 4\\ 0 & 0 & -2 \end{matrix} \left| \begin{matrix} -2\\ 14\\ -6 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ & \rightarrow &\\ \rightarrow & \div -2 & \rightarrow \end{matrix} \end{align*}

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 0 & -1\\ 0 & 1 & 4\\ 0 & 0 & 1 \end{matrix} \left| \begin{matrix} -2\\ 14\\ 3 \end{matrix}\right. \end{bmatrix} \begin{matrix} \rightarrow & + III & \\ \rightarrow & -4III &\\ & \rightarrow & \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{matrix} \left| \begin{matrix} 1\\ 2\\ 3 \end{matrix}\right. \end{bmatrix}\end{align*}

Every matrix can be interpreted as its own linear system.  The final augmented matrix can be interpreted as:

\begin{align*}1x+0y+0z &= 1\\ 0x+1y+0z &= 2\\ 0x+0y+1z &= 3\end{align*}

Which means \begin{align*}x=1, y=2, z=3\end{align*}

#### Example 3

Solve the following system using augmented Matrices.

\begin{align*}w+x+z &= 11\\ w+x &= 9\\ x+y &= 7\\ y+z &= 5\end{align*}

While substitution would work in this problem, the idea is to demonstrate how augmented matrices will work even with larger matrices.

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 1 & 0 & 1\\ 1 & 1 & 0 & 0\\ 0 & 1 & 1 & 0\\ 0 & 0 & 1 & 1 \end{matrix} \left| \begin{matrix} 11\\ 9\\ 7\\ 5 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ \rightarrow & IV &\\ \rightarrow & II & \rightarrow\\ \rightarrow & III & \rightarrow \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 1 & 0 & 1\\ 0 & 1 & 1 & 0\\ 0 & 0 & 1 & 1\\ 1 & 1 & 0 & 0 \end{matrix} \left| \begin{matrix} 11\\ 7\\ 5\\ 9 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ & \rightarrow &\\ & \rightarrow &\\ \rightarrow & -I & \rightarrow \end{matrix} \end{align*}

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 1 & 0 & 1\\ 0 & 1 & 1 & 0\\ 0 & 0 & 1 & 1\\ 0 & 0 & 0 & -1 \end{matrix} \left| \begin{matrix} 11\\ 7\\ 5\\ -2 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ & \rightarrow &\\ & \rightarrow &\\ \rightarrow & \cdot (-1) & \rightarrow \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 1 & 0 & 1\\ 0 & 1 & 1 & 0\\ 0 & 0 & 1 & 1\\ 0 & 0 & 0 & 1 \end{matrix} \left| \begin{matrix} 11\\ 7\\ 5\\ 2 \end{matrix}\right. \end{bmatrix} \begin{matrix} \rightarrow & -IV & \rightarrow\\ & \rightarrow &\\ \rightarrow & -IV & \rightarrow\\ & \rightarrow &\\ \end{matrix} \end{align*}

\begin{align*}\begin{bmatrix} \begin{matrix} 1 & 1 & 0 & 0\\ 0 & 1 & 1 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \end{matrix} \left| \begin{matrix} 9\\ 7\\ 3\\ 2 \end{matrix}\right. \end{bmatrix} \begin{matrix} & \rightarrow &\\ \rightarrow & -III & \rightarrow\\ & \rightarrow &\\ & \rightarrow &\\ \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 1 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \end{matrix} \left| \begin{matrix} 9\\ 4\\ 3\\ 2 \end{matrix}\right. \end{bmatrix} \begin{matrix} \rightarrow & -II & \rightarrow\\ & \rightarrow &\\ & \rightarrow &\\ & \rightarrow &\\ \end{matrix} \begin{bmatrix} \begin{matrix} 1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \end{matrix} \left| \begin{matrix} 5\\ 4\\ 3\\ 2 \end{matrix}\right. \end{bmatrix}\end{align*}

\begin{align*}w=5, x=4, y=3, z=2\end{align*}

#### Example 4

Use an augmented matrix to solve the following system.

\begin{align*}3x+y &= -15\\ x+2y &= 15\end{align*}

The row reduction steps are not shown, only the initial and final augmented matrices.

\begin{align*}\begin{bmatrix} \begin{matrix} 3 & 1\\ 1 & 2 \end{matrix} \left| \begin{matrix} -15\\ 15 \end{matrix}\right. \end{bmatrix} \rightarrow \begin{bmatrix} \begin{matrix} 1 & 0\\ 0 & 1 \end{matrix} \left| \begin{matrix} -9\\ 12 \end{matrix}\right. \end{bmatrix}\end{align*}

#### Example 5

Use an augmented matrix to solve the following system.

\begin{align*}-a+b-c &= 0\\ 2a-2b-3c &= 25\\ 3a-4b+3c &= 2\end{align*}

The row reduction steps are not shown, only the initial and final augmented matrices.

\begin{align*}\begin{bmatrix} \begin{matrix} -1 & 1 & -1\\ 2 & -2 & -3\\ 3 & -4 & 3\\ \end{matrix} \left| \begin{matrix} 0\\ 25\\ 2 \end{matrix}\right. \end{bmatrix} \rightarrow \begin{bmatrix} \begin{matrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1\\ \end{matrix} \left| \begin{matrix} 3\\ -2\\ -5 \end{matrix}\right. \end{bmatrix}\end{align*}

### Review

Solve the following systems of equations using augmented matrices.  If one solution does not exist, explain why not.

1.

\begin{align*}4x-2y &= -20\\ x-3y &= -15\end{align*}

2.

\begin{align*}3x+5y=33\\ -x-2y &= -13\end{align*}

3.

\begin{align*}x+4y &= 11\\ 3x+12y &= 33\end{align*}

4.

\begin{align*}-3x+y &= -7\\ -x+4y &= 5\end{align*}

5.

\begin{align*}3x+y &= 6\\ -6x-2y &= 10\end{align*}

6.

\begin{align*}2x-y+z &= 4\\ 4x+7y-z &= 38\\ -x+3y+2z &= 23\end{align*}

7.

\begin{align*}4x+y-z &= -16\\ -3x+4y+z &= 18\\ x+y-3z &= -17\end{align*}

8.

\begin{align*}3x+2y-3z &= 7\\ -x+5y+2z &= 29\\ x+2y+z &= 15\end{align*}

9.

\begin{align*}2x+y-2z &= 4\\ -4x-2y+4z &= -8\\ 3x+y-z &= 5\end{align*}

10.

\begin{align*}-x+3y+z &= 11\\ 3x+y+2z &= 27\\ 5x-y-z &= 5\end{align*}

11.

\begin{align*}3x+2y+4z &= 21\\ -2x+3y+z &= -11\\ x+2y-3z &= -3\end{align*}

12.

\begin{align*}-x+2y-6z &= 4\\ 8x+5y+3z &= -8\\ 2x-4y+12z &= 5\end{align*}

13.

\begin{align*}3x+5y+8z &= 37\\ -6x+3y+z &= 42\\ x+3y-2z &= 5\end{align*}

14.

\begin{align*}4x+y-6z &= -38\\ 2x+7y+8z &= 108\\ -3x+2y-3z &= -15\end{align*}

15.

\begin{align*}6x+3y-2z &= -22\\ -4x-2y+4z &= 28\\ 3x+3y+2z &= 7\end{align*}

To see the Review answers, open this PDF file and look for section 8.6.

### Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes

### Vocabulary Language: English

TermDefinition
augmented matrix An augmented matrix is a matrix formed when two matrices are joined together and operated on as if they were a single matrix.
Dependent A system of equations is dependent if every solution for one equation is a solution for the other(s).
reduced row echelon form A matrix is in reduced row echelon form if it has a leading one at the start of every non-zero row, zeros below every leading one, all rows containing only zeros at the bottom of the matrix, and only zeros to the right of leading ones in rows with leading ones.
row echelon form A matrix is in row echelon form if it has a leading one at the start of every non-zero row, zeros below every leading one and all rows containing only zeros at the bottom of the matrix.