Login
📚 Modeling, Functions, and Graphs
Chapters ▾

8.3 Solving Linear Systems Using Matrices

In this section, we consider a mathematical tool called a matrix (plural: matrices) that has wide application in mathematics, business, science, and engineering. A matrix is a rectangular array of numbers or entries. These entries are ordinarily displayed in rows and columns, and the entire matrix is enclosed in brackets or parentheses. Thus,

[ 1 2 3 4 5 6 7 8 9 ] ,       [ 2 1 3 4 0 2 ] ,        and        [ 4 5 6 ]

are matrices. A matrix of order, or dimension, n × m (read " n by m ") has n (horizontal) rows and m (vertical) columns.

The matrices above are 3 × 3 , 2 × 3 , and 3 × 1 , respectively. The first matrix—in which the number of rows is equal to the number of columns—is an example of a square matrix.

Coefficient Matrix and Augmented Matrix of a System

We will use matrices to solve systems of linear equations. For a system of linear equations of the form

a 1 x + b 1 y + c 1 z = d 1 a 2 x + b 2 y + c 2 z = d 2 a 3 x + b 3 y + c 3 z = d 3

the matrices

[ a 1 b 1 c 1 a 2 b 2 c 2 a 3 b 3 c 3 ]  and  [ a 1 b 1 c 1 d 1 a 2 b 2 c 2 d 2 a 3 b 3 c 3 d 3 ]

are called the coefficient matrix and the augmented matrix, respectively. Each row of the augmented matrix represents one of the equations of the system. For example, the augmented matrix of the system

3 x 4 y + z = 2 x + 2 y = 1 2 x y 3 z = 4

is

[ 3 4 1 2 1 2 0 1 2 1 3 4 ]

and the augmented matrix of the system

x 3 y + 2 z = 5 2 y z = 4 4 z = 8

is

[ 1 3 2 5 0 2 1 4 0 0 4 8 ]

The augmented matrix of this last system, which has all zero entries in the lower left corner (below the diagonal), is said to be in upper triangular form. As we saw in Systems of Linear Equations in Three Variables, it is easy to find the solution of such a system by back-substitution.

What is the difference between a coefficient matrix and an augmented matrix?

_____

What is the difference between a coefficient matrix and an augmented matrix?

Elementary Row Operations

The method of elimination depends on two properties of linear systems that allow us to change one system into an equivalent one, that is, one that has the same solutions as the original system.

These properties apply to linear systems of any size. Thus, we can perform the following operations on the equations of a system:

  1. Multiply both sides of an equation by a nonzero real number.
  2. Add a constant multiple of one equation to another equation.
  3. Interchange two equations.

Because each equation of the system corresponds to a row in the augmented matrix, the three operations above correspond to three elementary row operations for the augmented matrix. We can perform one or more of these operations on a matrix without changing the solution of the system it represents.

Which of the following is not an allowed row operation?

_____

Interchange two elements in a row

Which of the following is not an allowed row operation?

  1. Divide the entries in a row by a nonzero number
  2. Add two rows together
  3. Interchange two elements in a row
  4. Interchange the first and last rows

Subtract 4 times row 2 from row 3.

[ 3 2 5 3 2 3 2 6 8 4 2 12 ]

The new row 3 becomes

[   _____ __________ | _____ ]

[ 3 2 5 3 2 3 2 6 0 8 6 12 ]

Subtract 4 times row 2 from row 3.

[ 3 2 5 3 2 3 2 6 8 4 2 12 ]

[ 3 2 5 3 2 3 2 6 0 8 6 12 ]

Use row operations to form an equivalent matrix with the given elements:

[ 1 3 7 2 4 6 ] [ 1 3 7 0 ? ? ]

We add _____ times row 1 to row 2.

The new row 2 becomes

[   0 _____ | _____ ]

2 ( row  1 ) + row  2 : [ 1 3 7 0 2 8 ]

Use row operations to form an equivalent matrix with the given elements:

[ 1 3 7 2 4 6 ] [ 1 3 7 0 ? ? ]

2 ( row  1 ) + row  2 : [ 1 3 7 0 2 8 ]

Use the suggested row operations to form an equivalent matrix in upper triangular form.

[ 1 2 4 3 5 7 8 6 2 6 7 6 ] [ 1 2 4 3 0 ? ? ? 0 0 ? ? ]

  1. Add 5 ( row  1 ) to ( row  2 ) .
    The new row 2 becomes
    [   0 _____ _____ | _____ ]
  2. Add 2 ( row  1 ) to ( row  3 ) .
    The new row 3 becomes
    [   0 _____ _____ | _____ ]
  3. Multiply ( row  2 ) by 1 3 .
    The new row 2 becomes
    [   0 _____ _____ | _____ ]
  4. Add 2 ( row  2 ) to ( row  3 ) .
    The new row 3 becomes
    [   0 [   0 _____ | _____ ]

[ 1 2 4 3 0 1 4 3 0 0 9 18 ]

Use the suggested row operations to form an equivalent matrix in upper triangular form.

[ 1 2 4 3 5 7 8 6 2 6 7 6 ] [ 1 2 4 3 0 ? ? ? 0 0 ? ? ]

  1. Add 5 ( row  1 ) to ( row  2 ) .
  2. Add 2 ( row  1 ) to ( row  3 ) .
  3. Multiply ( row  2 ) by 1 3 .
  4. Add 2 ( row  2 ) to ( row  3 ) .

[ 1 2 4 3 0 1 4 3 0 0 9 18 ]

Matrix Reduction

We use elementary row operations to apply Gaussian reduction to the augmented matrix of a linear system. This matrix method can be used to solve linear systems of any size and is well suited for implementation by a computer program. The method has three steps.

Use matrix reduction to solve the system

x + 4 y = 3 3 x + 8 y = 1

Follow the suggested steps:

  1. Write the augmented matrix for the system.
  2. Add 3 ( row  1 ) to ( row  2 ) .
  3. Solve the resulting system by back-substitution.

Solution: _____ Give the solution as an ordered pair.

( 5 , 2 )

Use matrix reduction to solve the system

x + 4 y = 3 3 x + 8 y = 1

Follow the suggested steps:

  1. Write the augmented matrix for the system.
  2. Add 3 ( row  1 ) to ( row  2 ) .
  3. Solve the resulting system by back-substitution.

( 5 , 2 )

Why do we want to put a matrix into upper triangular form?

_____

Why do we want to put a matrix into upper triangular form?

Reducing a 3 × 3 Matrix

Although there are many ways to reduce an augmented 3 × 3 matrix to upper triangular form, the following two-step procedure may help you organize the row operations.

If you cannot obtain nonzero entries on the diagonal, then the system does not have a unique solution; the system is either inconsistent or dependent. See Homework Problems 45–48.

What happens if we cannot obtain nonzero entries on the diagonal?

_____

There is no unique solution.

What happens if we cannot obtain nonzero entries on the diagonal?

  1. There is no solution.
  2. There is no unique solution.
  3. We should reduce the matrix.
  4. We should augment the matrix.

Use matrix reduction to solve the system

x + 3 z = 11 2 x + y + z = 1 3 x 2 y = 3

Follow the suggested steps:

  1. Write the augmented matrix for the system.
  2. Add 2 (row 1) to (row 2).
  3. Add 3 (row 1) to (row 3).
  4. Add 2 (row 2) to (row 3).
  5. Solve the resulting system by back-substitution.

Solution: _____ Give the solution as an ordered triple.

( 37 , 57 , 16 )

Use matrix reduction to solve the system

x + 3 z = 11 2 x + y + z = 1 3 x 2 y = 3

Follow the suggested steps:

  1. Write the augmented matrix for the system.
  2. Add 2 (row 1) to (row 2).
  3. Add 3 (row 1) to (row 3).
  4. Add 2 (row 2) to (row 3).
  5. Solve the resulting system by back-substitution.

( 37 , 57 , 16 )

It is a good idea to make the first entry in the first row equal to 1 , as we did in Example, to simplify the calculations that follow. However, if that entry is zero we can interchange two rows. For example, to reduce the matrix

[ 0 1 2 3 1 2 3 4 2 5 1 4 ]

we begin by interchanging the first and second rows to obtain

[ 1 2 3 4 0 1 2 3 2 5 1 4 ]

We then follow the two-step procedure described above to find

2 ( row  1 ) + row  3 [ 1 2 3 4 0 1 2 3 0 1 5 4 ] ( row  2 ) + row  3 [ 1 2 3 4 0 1 2 3 0 0 7 7 ]

What should you do if the first entry in the first row is zero?

_____

Interchange two rows

What should you do if the first entry in the first row is zero?

  1. Interchange two columns
  2. Interchange two rows
  3. Add the first row to the second row
  4. Obtain zeros below that entry

Solving Larger Systems

Systems of linear equations in business and economics may involve hundreds of linear equations and hundreds of variables. The study of airflow for aircraft design can involve systems of millions of linear equations and variables. These large systems are solved using matrix methods.

Our strategy for reducing 3 × 4 augmented matrices can be generalized for larger matrices, as demonstrated in Example. Starting with the first row, we work our way along the diagonal, using row operations to obtain nonzero entries on the diagonal and zeros below the diagonal entry.

Use matrix reduction to solve the system

w + x + y + z = 1 w + x y + z = 3 2 w + 10 x + 4 y + 7 z = 23 3 w + 9 x 3 y + 6 z = 0

Solution: _____ Give the solution as an ordered 4-tuple.

( 3 , 2 , 1 , 1 )

Use matrix reduction to solve the system

w + x + y + z = 1 w + x y + z = 3 2 w + 10 x + 4 y + 7 z = 23 3 w + 9 x 3 y + 6 z = 0

( 3 , 2 , 1 , 1 )

How is matrix reduction similar to Gaussian reduction?

_____

How is matrix reduction similar to Gaussian reduction?

Reduced Row Echelon Form

The triangular matrix we obtain by row reduction is an example of row echelon form. In a row echelon matrix,

  1. The first nonzero entry in any row is farther to the right than the first nonzero entry in the rows above it.
  2. The entries directly below the first nonzero entry in any row are all zeros.
  3. Any row consisting entirely of zeros is below all rows with any nonzero entry.

If we divide each row by its leading nonzero entry, so that the leading entry is 1 , and if we use row reduction to obtain 0's above the leading 1 as well as below it, the resulting matrix is said to be in reduced row echelon form. This form is especially convenient because we do not have to use back-substitution to finish solving the system; we can read off the solutions directly from the matrix.

For example, you can check that the matrix

[ 1 0 0 0 2 0 1 0 0 3 0 0 1 0 3 0 0 0 1 4 ]

corresponds to the system

a + 0 b + 0 c + 0 d = 2 0 a + b + 0 c + 0 d = 3 0 a + 0 b + c + 0 d = 3 0 a + 0 b + 0 c + d = 4

From this system, it is easy to read the solutions a = 2 , b = 3 , c = 3 , and d = 4

Why is reduced row echelon form useful?

_____

It lets us read the solutions of a system.

  1. Find the row reduced echelon form of the augmented matrix for the system

    a + b c + d = 8 a + b + c + d = 2 8 a + 4 b + 2 c + d = 5 27 a + 9 b 3 c + d = 4

  2. What third degree polynomial has a graph that passes through the points ( 1 , 8 ) , ( 1 , 2 ) , ( 2 , 5 ) , and ( 3 , 4 ) ?
    f ( x ) = _____
  1. f ( x ) = x 3 + 4 x 2 2 x + 1
  1. Find the row reduced echelon form of the augmented matrix for the system

    a + b c + d = 8 a + b + c + d = 2 8 a + 4 b + 2 c + d = 5 27 a + 9 b 3 c + d = 4

  2. What third degree polynomial has a graph that passes through the points ( 1 , 8 ) , ( 1 , 2 ) , ( 2 , 5 ) , and ( 3 , 4 ) ?
  1. [ 1 0 0 0 1 0 1 0 0 4 0 0 1 0 2 0 0 0 1 1 ]
  2. f ( x ) = x 3 + 4 x 2 2 x + 1

Section Summary

Vocabulary

Look up the definitions of new terms in the Glossary.

  • Matrix
  • Row echelon form
  • Upper triangular form
  • Coefficient matrix
  • Dimension
  • Entry
  • Reduced row echelon form
  • Elementary row operation
  • Augmented matrix
  • Square matrix
  • Order

CONCEPTS

  1. We can use a matrix to represent a system of linear equations. Each row of the matrix consists of the coefficients in one of the equations of the system.
  2. We operate on a matrix by using the elementary row operations.
  3. We can solve a linear system by matrix reduction.
  4. To reduce larger matrices, we start with the first row and work our way along the diagonal, using row operations to obtain nonzero entries on the diagonal and zeros below the diagonal entry.

STUDY QUESTIONS

  1. What are the coefficient matrix and the augmented matrix for a system of equations?
  2. What does it mean for a matrix to be in upper triangular form?
  3. State the three elementary row operations.
  4. Describe a two-step procedure for reducing a 3 × 3 matrix to upper triangular form.
  5. Once the matrix is in upper triangular form, how do we complete the solution of the system?
  6. Why is the reduced row echelon form of an augmented matrix convenient for solving a system?

SKILLS

Practice each skill in the Homework problems listed.

  1. Perform elementary row operations: #1–8
  2. Choose an elementry row operation to convert a matrix: #9–18
  3. Solve a system by matrix reduction: #19–34
  4. Solve a system using the reduced row echelon form of the augmented matrix: #35–40

Homework 8.3

In Problems 1–8, perform the given elementary row operation on the matrices.

Multiply row  2 by 3 :

[ 2 1 0 3 1 2 ]

[ 2 1 0 9 3 6 ]

Multiply row  1 by 1 4 :

[ 2 0 3 1 5 4 ]

Add 2 ( row  1 ) to row  2 :

[ 1 3 6 2 4 1 ]

[ 1 3 6 0 2 11 ]

Add 3 ( row  1 ) to row  2 :

[ 1 4 8 3 2 10 ]

Interchange row  1 and row  3 :

[ 0 3 2 3 2 6 1 3 1 0 2 5 ]

[ 1 0 2 5 2 6 1 3 0 3 2 3 ]

Interchange row  2 and row  3 :

[ 1 6 0 2 0 0 5 10 0 3 2 8 ]

Add 4 ( row  1 ) to row  3 :

[ 1 2 1 5 0 4 2 3 4 1 6 8 ]

[ 1 2 1 5 0 4 2 3 0 9 2 12 ]

Add 2 ( row  2 ) to row  3 :

[ 1 7 5 2 0 1 3 1 0 2 3 4 ]

In Problems 9–18, use row operations on the first matrix to form an equivalent matrix with the given entries.

[ 1 3 2 2 1 4 ] [ 1 3 2 0 ? ? ]

[ 1 3 2 0 7 0 ]

[ 2 3 0 4 1 6 ] [ 2 3 0 0 ? ? ]

[ 2 6 4 5 3 1 ] [ 2 6 4 ? 0 ? ]

[ 2 6 4 4 0 3 ]

[ 6 4 2 1 2 3 ] [ 6 4 2 ? 0 ? ]

[ 1 2 2 1 2 3 1 6 4 1 3 3 ] [ 1 2 2 1 0 ? ? ? 0 ? ? ? ]

[ 1 2 2 1 0 7 5 4 0 9 11 1 ]

[ 2 1 3 1 4 0 4 5 6 2 1 2 ] [ 2 1 3 1 0 ? ? ? 0 ? ? ? ]

[ 1 4 3 2 2 2 4 6 1 2 3 3 ] [ 1 4 3 2 ? 0 ? ? ? 0 ? ? ]

[ 1 4 3 2 3 0 5 14 3 0 3 8 ]

[ 3 2 4 4 2 2 1 2 1 1 5 1 ] [ 3 2 4 4 ? ? 0 ? ? ? 0 ? ]

[ 2 1 3 2 4 2 0 2 6 1 2 0 ] [ 2 1 3 2 0 ? ? ? 0 0 ? ? ]

[ 2 1 3 2 0 4 6 2 0 0 4 5 ]

[ 1 2 3 3 4 0 1 6 2 2 3 2 ] [ 1 2 3 3 0 ? ? ? 0 0 ? ? ]

In Problems 19–26, use matrix reduction on the augmented matrix to solve the system.

x + 3 y = 11 2 x y = 1

( 2 , 3 )

x 5 y = 11 2 x + 3 y = 4

x 4 y = 6 3 x + y = 5

( 2 , 1 )

x + 6 y = 14 5 x + 3 y = 4

2 x + y = 5 3 x 5 y = 14

( 3 , 1 )

3 x 2 y = 16 4 x + 2 y = 12

x y = 8 x + 2 y = 9

( 7 3 , 17 3 )

4 x 3 y = 16 2 x + y = 8

In Problems 27–34, use matrix reduction on the augmented matrix to solve the system.

x + 3 y z = 5 3 x y + 2 z = 5 x + y + 2 z = 7

( 1 , 2 , 2 )

x 2 y + 3 z = 11 2 x + 3 y z = 6 3 x y z = 2

2 x y + z = 5 x 2 y 2 z = 2 3 x + 3 y z = 4

( 2 , 1 2 , 1 2 )

x 2 y 2 z = 4 2 x + y 3 z = 7 x y z = 3

2 x y z = 4 x + y + z = 5 x + 3 y 4 z = 12

( 3 , 1 , 3 )

x 2 y 5 z = 2 2 x + 3 y + z = 11 3 x y z = 11

2 x y = 0 3 y + z = 7 2 x + 3 z = 1

( 5 4 , 5 2 , 1 2 )

3 x z = 7 2 x + y = 6 3 y z = 7

In Problems 35-40, solve the system by finding the reduced row echelon form of the augmented matrix.

a + 2 b c + 4 d = 20 a + b + 4 c + 5 d = 7 2 a + 2 b + 6 c + 7 d = 22 3 a + 2 b 3 c + 4 d = 28

( 3 , 4 , 1 , 2 )

2 a b + 3 c d = 6 3 a b + 2 c 2 d = 37 a + 4 c + d = 43 4 a + 8 b 9 c + 6 d = 14

6 a + 12 b + 18 c + 24 d = 1 3 a + 4 c = 3 2 a + b + 3 d = 4 18 a + 6 b + 30 c = 23

( 5 3 , 4 3 , 1 2 , 2 3 )

a b c d = 1 12 a 18 b 6 d = 13 3 a 8 c + 6 d = 3 24 a 36 b 18 c + 66 d = 17

2 a + 3 b + 4 c + d + 4 e = 8 2 a 5 b 6 c + 4 d + 3 e = 4 3 a + 3 b + 2 c 3 d + 7 e = 13 3 a + 4 b c + d e = 6 4 a 4 b + 3 c + 2 d 2 e = 1

( 5 , 2 , 3 , 4 , 2 )

3 a + 2 b + 5 c + 2 d + 4 e = 6 4 a + b + 5 c + 2 d + 8 e = 13 6 a + 3 b + 9 c + 3 d + 4 e = 17 7 a + 8 b + 4 c + 7 e = 2 8 a + 9 c + d + 9 e = 26

For Problems 41–44, use a linear system of equations to find each polynomial with the given properties. Hint: The coefficients of the polynomial will be the unknowns of the system.

  1. Find a third-degree polynomial p ( x ) that satisfies p ( 1 ) = 2 , p ( 2 ) = 4 , p ( 3 ) = 6 , and p ( 4 ) = 1 .
  2. Find a third-degree polynomial p ( x ) that satisfies p ( 1 ) = 2 , p ( 2 ) = 4 , p ( 3 ) = 6 , and p ( 4 ) = 5 .
  1. p ( x ) = 7 6 x 3 + 7 x 2 65 6 x + 7
  2. p ( x ) = 1 2 x 3 + 3 x 2 7 2 x + 3
  1. Find a third-degree polynomial p ( x ) that satisfies p ( 1 ) = 1 , p ( 2 ) = 4 , p ( 3 ) = 9 , and p ( 4 ) = 5 .
  2. Find a third-degree polynomial p ( x ) that satisfies p ( 1 ) = 2 , p ( 2 ) = 4 , p ( 3 ) = 6 , and p ( 4 ) = 10 .

Find a fourth-degree polynomial p ( x ) that satisfies p ( 2 ) = 45 , p ( 1 ) = 2 , p ( 0 ) = 5 , p ( 1 ) = 6 and p ( 2 ) = 17

p ( x ) = 2 x 4 + x 3 x 2 + 3 x + 5

Find a fourth-degree polynomial p ( x ) that satisfies p ( 2 ) = 81 , p ( 1 ) = 9 , p ( 0 ) = 3 , p ( 1 ) = 15 and p ( 2 ) = 117 .

Problems 45–48 consider inconsistent and dependent systems.

Suppose that the reduced row echelon form of an augmented matrix is

[ 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 ]

  1. To what equation does the last row of the matrix correspond?
  2. Is there a solution to the system?
  1. 0 = 1
  2. No

Suppose that the reduced row echelon form of an augmented matrix is

[ 1 3 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 ]

  1. To what equation does the third row of the matrix correspond?
  2. Is there a solution to the system?

Suppose that the reduced row echelon form of an augmented matrix is

[ 1 0 0 0 9 0 1 0 0 4 0 0 1 0 2 0 0 0 0 0 ]

  1. To what equation does the last row of the matrix correspond?
  2. If the variables of the system are a , b , c , and d , what do you know about a , b , and c ?
  3. Is there more than one ordered four-tuple that makes all the equations true? (Hint: Does the value of d affect any of the equations?)
  1. 0 = 0
  2. a = 9 , b = 4 , c = 2
  3. Yes (infinitely many)

Suppose that the reduced row echelon form of an augmented matrix is

[ 1 2 0 0 9 0 0 1 0 4 0 0 0 1 2 0 0 0 0 0 ]

  1. To what equation does the last row of the matrix correspond?
  2. If the variables of the system are a , b , c , and d , what do you know about c and d ?
  3. Is there more than one ordered four-tuple that makes all the equations true? (Hint: If you specify any value of b , will you be able to find values of a , c , and d that make all the equations true?)

Modeling, Functions, and Graphs by Katherine Yoshiwara (yoshiwarabooks.org), GNU Free Documentation License 1.2 or later. Adapted for the XYZ HTML edition with the authors' permission (recorded 2026-07-04). License: GFDL-1.2-or-later.