A **matrix** can serve as a device for representing and solving a system of equations. To express a system in matrix form, we extract the coefficients of the variables and the constants, and these become the entries of the matrix. We use a vertical line to separate the coefficient entries from the constants, essentially replacing the equal signs. When a system is written in this form, we call it an **augmented matrix**.

For example, consider the following [latex]2\times 2[/latex] system of equations.

We can write this system as an augmented matrix:

We can also write a matrix containing just the coefficients. This is called the **coefficient matrix**.

A three-by-three **system of equations** such as

has a coefficient matrix

and is represented by the augmented matrix

Notice that the matrix is written so that the variables line up in their own columns: *x*-terms go in the first column, *y*-terms in the second column, and *z*-terms in the third column. It is very important that each equation is written in standard form [latex]ax+by+cz=d[/latex] so that the variables line up. When there is a missing variable term in an equation, the coefficient is 0.

### How To: Given a system of equations, write an augmented matrix.

- Write the coefficients of the
*x*-terms as the numbers down the first column. - Write the coefficients of the
*y*-terms as the numbers down the second column. - If there are
*z*-terms, write the coefficients as the numbers down the third column. - Draw a vertical line and write the constants to the right of the line.

### Example 1: Writing the Augmented Matrix for a System of Equations

Write the augmented matrix for the given system of equations.

### Solution

The augmented matrix displays the coefficients of the variables, and an additional column for the constants.

### Try It 1

Write the augmented matrix of the given system of equations.

## Writing a System of Equations from an Augmented Matrix

We can use augmented matrices to help us solve systems of equations because they simplify operations when the systems are not encumbered by the variables. However, it is important to understand how to move back and forth between formats in order to make finding solutions smoother and more intuitive. Here, we will use the information in an augmented matrix to write the **system of equations** in standard form.

### Example 2: Writing a System of Equations from an Augmented Matrix Form

Find the system of equations from the augmented matrix.

### Solution

When the columns represent the variables [latex]x[/latex], [latex]y[/latex], and [latex]z[/latex],

### Try It 2

Write the system of equations from the augmented matrix.