# Systems of Linear Equations

## Solve Systems of Equations Using Matrices


### Write the Augmented Matrix for a System of Equations

Solving a system of equations can be a tedious operation where a simple mistake can wreak havoc on finding the solution. An alternative method which uses the basic procedures of elimination but with notation that is simpler is available. The method involves using a matrix. A matrix is a rectangular array of numbers arranged in rows and columns.
We will use a matrix to represent a system of linear equations. We write each equation in standard form and the coefficients of the variables and the constant of each equation becomes a row in the matrix. Each column then would be the coefficients of one of the variables in the system or the constants. A vertical line replaces the equal signs. We call the resulting matrix the augmented matrix for the system of equations.
Notice the first column is made up of all the coefficients of x, the second column is the all the coefficients of y, and the third column is all the constants.
It is important as we solve systems of equations using matrices to be able to go back and forth between the system and the matrix. The next example asks us to take the information in the matrix and write the system of equations.

### Use Row Operations on a Matrix

Once a system of equations is in its augmented matrix form, we will perform operations on the rows that will lead us to the solution.
To solve by elimination, it doesn’t matter which order we place the equations in the system. Similarly, in the matrix we can interchange the rows.
When we solve by elimination, we often multiply one of the equations by a constant. Since each row represents an equation, and we can multiply each side of an equation by a constant, similarly we can multiply each entry in a row by any real number except 0.
In elimination, we often add a multiple of one row to another row. In the matrix we can replace a row with its sum with a multiple of another row.
These actions are called row operations and will help us use the matrix to solve a system of equations.
Performing these operations is easy to do but all the arithmetic can result in a mistake. If we use a system to record the row operation in each step, it is much easier to go back and check our work.
We use capital letters with subscripts to represent each row. We then show the operation to the left of the new matrix. To show interchanging a row:
To multiply row 2 by :
To multiply row 2 by  and add it to row 1:
Now that we have practiced the row operations, we will look at an augmented matrix and figure out what operation we will use to reach a goal. This is exactly what we did when we did elimination. We decided what number to multiply a row by in order that a variable would be eliminated when we added the rows together.
Given this system, what would you do to eliminate x?
This next example essentially does the same thing, but to the matrix.

### Solve Systems of Equations Using Matrices

To solve a system of equations using matrices, we transform the augmented matrix into a matrix in row-echelon form using row operations. For a consistent and independent system of equations, its augmented matrix is in row-echelon form when to the left of the vertical line, each entry on the diagonal is a 1 and all entries below the diagonal are zeros.
Once we get the augmented matrix into row-echelon form, we can write the equivalent system of equations and read the value of at least one variable. We then substitute this value in another equation to continue to solve for the other variables. This process is illustrated in the next example.
The steps are summarized here.
Here is a visual to show the order for getting the 1’s and 0’s in the proper position for row-echelon form.
We use the same procedure when the system of equations has three equations.
So far our work with matrices has only been with systems that are consistent and independent, which means they have exactly one solution. Let’s now look at what happens when we use a matrix for a dependent or inconsistent system.
The last system was inconsistent and so had no solutions. The next example is dependent and has infinitely many solutions.

### Key Concepts

1. Matrix: A matrix is a rectangular array of numbers arranged in rows and columns. A matrix with m rows and n columns has order  The matrix on the left below has 2 rows and 3 columns and so it has order  We say it is a 2 by 3 matrix.


Each number in the matrix is called an element or entry in the matrix.
2. Row Operations: In a matrix, the following operations can be performed on any row and the resulting matrix will be equivalent to the original matrix.


3. Row-Echelon Form: For a consistent and independent system of equations, its augmented matrix is in row-echelon form when to the left of the vertical line, each entry on the diagonal is a 1 and all entries below the diagonal are zeros.



4. How to solve a system of equations using matrices.



### Practice Makes Perfect

Write the Augmented Matrix for a System of Equations
In the following exercises, write each system of linear equations as an augmented matrix.
Write the system of equations that corresponds to the augmented matrix.
Use Row Operations on a Matrix
In the following exercises, perform the indicated operations on the augmented matrices.
Solve Systems of Equations Using Matrices
In the following exercises, solve each system of equations using a matrix.
In the following exercises, solve each system of equations using a matrix.

### Writing Exercises


### Self Check

ⓐ After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.
ⓑ After looking at the checklist, do you think you are well-prepared for the next section? Why or why not?