Intermediate Algebra 2e · free preview

4.5 Solve Systems of Equations Using Matrices

Learning objectives: Write the augmented matrix for a system of equations; Use row operations on a matrix; Solve systems of equations using matrices

1. Learning objectives

Learning objectives

Learning objectives

  • Write the augmented matrix for a system of equations
  • Use row operations on a matrix
  • Solve systems of equations using matrices

2. Write the Augmented Matrix for a System of Equations

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.

A matrix is a rectangular array of numbers arranged in rows and columns.

A matrix with m rows and n columns has order m × n.m\,\times\,n. The matrix on the left below has 2 rows and 3 columns and so it has order 2 × 3.2\,\times\,3. We say it is a 2 by 3 matrix.

Each number in the matrix is called an element or entry in the matrix.

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.

3. Example 4.37

Example 4.37

Example 4.37

Write each system of linear equations as an augmented matrix:

ⓐ {5x−3y=−1y=2x−2\mathrm{\{}\begin{array}{l} 5x-3y=-1 \\ y=2x-2 \\ \end{array} ⓑ {6x−5y+2z=32x+y−4z=53x−3y+z=−1\mathrm{\{}\begin{array}{l} 6x-5y+2z=3 \\ 2x+y-4z=5 \\ 3x-3y+z=-1 \\ \end{array}

Solution

ⓐ The second equation is not in standard form. We rewrite the second equation in standard form.

y=2x−2−2x+y=−2\begin{array}{rll} y & = & 2x-2 \\ -2x+y & = & -2 \\ \end{array}

We replace the second equation with its standard form. In the augmented matrix, the first equation gives us the first row and the second equation gives us the second row. The vertical line replaces the equal signs.

ⓑ All three equations are in standard form. In the augmented matrix the first equation gives us the first row, the second equation gives us the second row, and the third equation gives us the third row. The vertical line replaces the equal signs.

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.

4. Example 4.38

Example 4.38

Example 4.38

Write the system of equations that corresponds to the augmented matrix:

[4−3312−1−2−13∣−12−4].[\begin{array}{rccrccrcc} 4 & & & -3 & & & 3 & & \\ 1 & & & 2 & & & -1 & & \\ -2 & & & -1 & & & 3 & & \\ \end{array}|\begin{array}{ccr} & & -1 \\ & & 2 \\ & & -4 \\ \end{array}].

Solution

We remember that each row corresponds to an equation and that each entry is a coefficient of a variable or the constant. The vertical line replaces the equal sign. Since this matrix is a 4 × 34\,\times\,3, we know it will translate into a system of three equations with three variables.

5. Use Row Operations on a Matrix

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.

In a matrix, the following operations can be performed on any row and the resulting matrix will be equivalent to the original matrix.

  1. Interchange any two rows.
  2. Multiply a row by any real number except 0.
  3. Add a nonzero multiple of one row to another row.

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 −3-3:

To multiply row 2 by −3-3 and add it to row 1:

6. Example 4.39

Example 4.39

Example 4.39

Perform the indicated operations on the augmented matrix:

ⓐ Interchange rows 2 and 3.

ⓑ Multiply row 2 by 5.

ⓒ Multiply row 3 by −2-2 and add to row 1.

[6−5221−43−31∣35−1][\begin{array}{lccrccrcc} 6 & & & -5 & & & 2 & & \\ 2 & & & 1 & & & -4 & & \\ 3 & & & -3 & & & 1 & & \\ \end{array}|\begin{array}{ccr} & & 3 \\ & & 5 \\ & & -1 \\ \end{array}]

Solution

ⓐ We interchange rows 2 and 3.

ⓑ We multiply row 2 by 5.

ⓒ We multiply row 3 by −2-2 and add 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.

7. Example 4.40

Example 4.40

Example 4.40

Perform the needed row operation that will get the first entry in row 2 to be zero in the augmented matrix: [1−14−8∣20].[\begin{array}{lccrcc} 1 & & & -1 & & \\ 4 & & & -8 & & \\ \end{array}|\begin{array}{ccr} & & 2 \\ & & 0 \\ \end{array}].

Solution

To make the 4 a 0, we could multiply row 1 by −4-4 and then add it to row 2.

8. Solve Systems of Equations Using Matrices

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.

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.

9. Example 4.41

Example 4.41

Example 4.41

How to Solve a System of Equations Using a Matrix

Solve the system of equations using a matrix: {3x+4y=5x+2y=1.\mathrm{\{}\begin{array}{l} 3x+4y=5 \\ x+2y=1 \\ \end{array}.

The steps are summarized here.

Solve a system of equations using matrices.

  1. Step 1. Write the augmented matrix for the system of equations.
  2. Step 2. Using row operations get the entry in row 1, column 1 to be 1.
  3. Step 3. Using row operations, get zeros in column 1 below the 1.
  4. Step 4. Using row operations, get the entry in row 2, column 2 to be 1.
  5. Step 5. Continue the process until the matrix is in row-echelon form.
  6. Step 6. Write the corresponding system of equations.
  7. Step 7. Use substitution to find the remaining variables.
  8. Step 8. Write the solution as an ordered pair or triple.
  9. Step 9. Check that the solution makes the original equations true.

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.

10. Example 4.42

Example 4.42

Example 4.42

Solve the system of equations using a matrix: {3x+8y+2z=−52x+5y−3z=0x+2y−2z=−1.\mathrm{\{}\begin{array}{l} 3x+8y+2z=-5 \\ 2x+5y-3z=0 \\ x+2y-2z=-1 \\ \end{array}.

Solution

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.

11. Example 4.43

Example 4.43

Example 4.43

Solve the system of equations using a matrix: {x+y+3z=0x+3y+5z=02x+4z=1.\mathrm{\{}\begin{array}{l} x+y+3z=0 \\ x+3y+5z=0 \\ 2x+4z=1 \\ \end{array}.

Solution

The last system was inconsistent and so had no solutions. The next example is dependent and has infinitely many solutions.

12. Example 4.44

Example 4.44

Example 4.44

Solve the system of equations using a matrix: {x−2y+3z=1x+y−3z=73x−4y+5z=7.\mathrm{\{}\begin{array}{l} x-2y+3z=1 \\ x+y-3z=7 \\ 3x-4y+5z=7 \\ \end{array}.

Solution

13. Section 4.5 Exercises

Section 4.5 Exercises

Section 4.5 Exercises

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

ⓐ 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?

14. Practice 1

  1. Write each system of linear equations as an augmented matrix:

ⓐ {3x+8y=−32x=−5y−3\mathrm{\{}\begin{array}{l} 3x+8y=-3 \\ 2x=-5y-3 \\ \end{array} ⓑ {2x−5y+3z=83x−y+4z=7x+3y+2z=−3\mathrm{\{}\begin{array}{l} 2x-5y+3z=8 \\ 3x-y+4z=7 \\ x+3y+2z=-3 \\ \end{array}

  1. Write each system of linear equations as an augmented matrix:

ⓐ {11x=−9y−57x+5y=−1\mathrm{\{}\begin{array}{l} 11x=-9y-5 \\ 7x+5y=-1 \\ \end{array} ⓑ {5x−3y+2z=−52x−y−z=43x−2y+2z=−7\mathrm{\{}\begin{array}{l} 5x-3y+2z=-5 \\ 2x-y-z=4 \\ 3x-2y+2z=-7 \\ \end{array}

  1. Write the system of equations that corresponds to the augmented matrix: [1−12321−214−120].[\begin{array}{lccrccrccr} 1 & & & -1 & & & 2 & & & 3 \\ 2 & & & 1 & & & -2 & & & 1 \\ 4 & & & -1 & & & 2 & & & 0 \\ \end{array}].

15. Practice 2

  1. Write the system of equations that corresponds to the augmented matrix: [111423−1811−13].[\begin{array}{lcclccrccr} 1 & & & 1 & & & 1 & & & 4 \\ 2 & & & 3 & & & -1 & & & 8 \\ 1 & & & 1 & & & -1 & & & 3 \\ \end{array}].
  1. Perform the indicated operations sequentially on the augmented matrix:

ⓐ Interchange rows 1 and 3.

ⓑ Multiply row 3 by 3.

ⓒ Multiply row 3 by 2 and add to row 2.

[5−2−24−1−4−230∣−24−1][\begin{array}{rccrccrcc} 5 & & & -2 & & & -2 & & \\ 4 & & & -1 & & & -4 & & \\ -2 & & & 3 & & & 0 & & \\ \end{array}|\begin{array}{ccr} & & -2 \\ & & 4 \\ & & -1 \\ \end{array}]

  1. Perform the indicated operations on the augmented matrix:

ⓐ Interchange rows 1 and 2,

ⓑ Multiply row 1 by 2,

ⓒ Multiply row 2 by 3 and add to row 1.

[2−3−241−3504∣−42−1][\begin{array}{lccrccrcc} 2 & & & -3 & & & -2 & & \\ 4 & & & 1 & & & -3 & & \\ 5 & & & 0 & & & 4 & & \\ \end{array}|\begin{array}{ccr} & & -4 \\ & & 2 \\ & & -1 \\ \end{array}]

16. Practice 3

  1. Perform the needed row operation that will get the first entry in row 2 to be zero in the augmented matrix: [1−13−6∣22].[\begin{array}{lccrcc} 1 & & & -1 & & \\ 3 & & & -6 & & \\ \end{array}|\begin{array}{ccr} & & 2 \\ & & 2 \\ \end{array}].
  1. Perform the needed row operation that will get the first entry in row 2 to be zero in the augmented matrix: [1−1−2−3∣32].[\begin{array}{rccrcc} 1 & & & -1 & & \\ -2 & & & -3 & & \\ \end{array}|\begin{array}{ccr} & & 3 \\ & & 2 \\ \end{array}].
  1. Solve the system of equations using a matrix: {2x+y=7x−2y=6.\mathrm{\{}\begin{array}{l} 2x+y=7 \\ x-2y=6 \\ \end{array}.

17. Practice 4

  1. Solve the system of equations using a matrix: {2x+y=−4x−y=−2.\mathrm{\{}\begin{array}{l} 2x+y=-4 \\ x-y=-2 \\ \end{array}.
  1. Solve the system of equations using a matrix: {2x−5y+3z=83x−y+4z=7x+3y+2z=−3.\mathrm{\{}\begin{array}{l} 2x-5y+3z=8 \\ 3x-y+4z=7 \\ x+3y+2z=-3 \\ \end{array}.
  1. Solve the system of equations using a matrix: {−3x+y+z=−4−x+2y−2z=12x−y−z=−1.\mathrm{\{}\begin{array}{r} -3x+y+z=-4 \\ -x+2y-2z=1 \\ 2x-y-z=-1 \\ \end{array}.

18. Practice 5

  1. Solve the system of equations using a matrix: {x−2y+2z=1−2x+y−z=2x−y+z=5.\mathrm{\{}\begin{array}{l} x-2y+2z=1 \\ -2x+y-z=2 \\ x-y+z=5 \\ \end{array}.
  1. Solve the system of equations using a matrix: {3x+4y−3z=−22x+3y−z=−12x+y−2z=6.\mathrm{\{}\begin{array}{l} 3x+4y-3z=-2 \\ 2x+3y-z=-12 \\ x+y-2z=6 \\ \end{array}.
  1. Solve the system of equations using a matrix: {x+y−z=02x+4y−2z=63x+6y−3z=9.\mathrm{\{}\begin{array}{l} x+y-z=0 \\ 2x+4y-2z=6 \\ 3x+6y-3z=9 \\ \end{array}.

19. Practice 6

  1. Solve the system of equations using a matrix: {x−y−z=1−x+2y−3z=−43x−2y−7z=0.\mathrm{\{}\begin{array}{l} x-y-z=1 \\ -x+2y-3z=-4 \\ 3x-2y-7z=0 \\ \end{array}.
  1. ⓐ {2x+4y=−53x−2y=2\mathrm{\{}\begin{array}{l} 2x+4y=-5 \\ 3x-2y=2 \\ \end{array}ⓑ {3x−2y−z=−2−2x+y=55x+4y+z=−1\mathrm{\{}\begin{array}{l} 3x-2y-z=-2 \\ -2x+y=5 \\ 5x+4y+z=-1 \\ \end{array}
  1. ⓐ {2x−5y=−34x=3y−1\mathrm{\{}\begin{array}{l} 2x-5y=-3 \\ 4x=3y-1 \\ \end{array}ⓑ {4x+3y−2z=−3−2x+y−3z=4−x−4y+5z=−2\mathrm{\{}\begin{array}{l} 4x+3y-2z=-3 \\ -2x+y-3z=4 \\ -x-4y+5z=-2 \\ \end{array}

20. Practice 7

  1. [2−43−3 ∣ −2−1][\begin{array}{lccr} 2 & & & -4 \\ 3 & & & -3 \\ \end{array}\,|\,\begin{array}{r} -2 \\ -1 \\ \end{array}]
  1. [2−2002−130−1 ∣ −12−2][\begin{array}{lccrccr} 2 & & & -2 & & & 0 \\ 0 & & & 2 & & & -1 \\ 3 & & & 0 & & & -1 \\ \end{array}\,|\,\begin{array}{r} -1 \\ 2 \\ -2 \\ \end{array}]
  1. [4−632 ∣ −31][\begin{array}{lccr} 4 & & & -6 \\ 3 & & & 2 \\ \end{array}\,|\,\begin{array}{r} -3 \\ 1 \\ \end{array}]

ⓐ Interchange rows 1 and 2

ⓑ Multiply row 1 by 4

ⓒ Multiply row 2 by 3 and add row 1 to it.

21. Practice 8

  1. [6−5221−43−31 ∣ 35−1][\begin{array}{lccrccr} 6 & & & -5 & & & 2 \\ 2 & & & 1 & & & -4 \\ 3 & & & -3 & & & 1 \\ \end{array}\,|\,\begin{array}{r} 3 \\ 5 \\ -1 \\ \end{array}]

ⓐ Interchange rows 2 and 3

ⓑ Multiply row 2 by 5

ⓒ Multiply row 3 by −2-2 and add to row 1.

  1. Perform the needed row operations that will get the first entry in both row 2 and row 3 to be zero in the augmented matrix: [1−233−1−22−3−4 ∣ −45−1].[\begin{array}{lccrccr} 1 & & & -2 & & & 3 \\ 3 & & & -1 & & & -2 \\ 2 & & & -3 & & & -4 \\ \end{array}\,|\,\begin{array}{r} -4 \\ 5 \\ -1 \\ \end{array}].
  1. {3x+y=2x−y=2\mathrm{\{}\begin{array}{l} 3x+y=2 \\ x-y=2 \\ \end{array}

22. Practice 9

  1. {−2x+3y=3x+3y=12\mathrm{\{}\begin{array}{r} -2x+3y=3 \\ x+3y=12 \\ \end{array}
  1. {2x−y+3z=−3−x+2y−z=10x+y+z=5\mathrm{\{}\begin{array}{l} 2x-y+3z=-3 \\ -x+2y-z=10 \\ x+y+z=5 \\ \end{array}
  1. {4x−3y+z=72x−5y−4z=33x−2y−2z=−7\mathrm{\{}\begin{array}{l} 4x-3y+z=7 \\ 2x-5y-4z=3 \\ 3x-2y-2z=-7 \\ \end{array}

23. Practice 10

  1. {2x+5y=43y−z=34x+3z=−3\mathrm{\{}\begin{array}{l} 2x+5y=4 \\ 3y-z=3 \\ 4x+3z=-3 \\ \end{array}
  1. {3x−z=−35y+2z=−64x+3y=−8\mathrm{\{}\begin{array}{l} 3x-z=-3 \\ 5y+2z=-6 \\ 4x+3y=-8 \\ \end{array}
  1. {x+2y+6z=5−x+y−2z=3x−4y−2z=1\mathrm{\{}\begin{array}{l} x+2y+6z=5 \\ -x+y-2z=3 \\ x-4y-2z=1 \\ \end{array}

24. Practice 11

  1. {4x−3y+2z=0−2x+3y−7z=12x−2y+3z=6\mathrm{\{}\begin{array}{l} 4x-3y+2z=0 \\ -2x+3y-7z=1 \\ 2x-2y+3z=6 \\ \end{array}
  1. {−x−3y+2z=14−x+2y−3z=−43x+y−2z=6\mathrm{\{}\begin{array}{r} -x-3y+2z=14 \\ -x+2y-3z=-4 \\ 3x+y-2z=6 \\ \end{array}
  1. {x+2y+z=4x+y−2z=3−2x−3y+z=−7\mathrm{\{}\begin{array}{l} x+2y+z=4 \\ x+y-2z=3 \\ -2x-3y+z=-7 \\ \end{array}

25. Practice 12

  1. Solve the system of equations {3x+y=12x=y−8\mathrm{\{}\begin{array}{l} 3x+y=12 \\ x=y-8 \\ \end{array} by substitution and explain all your steps in words.

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free