Learn on PengiOpenstax Intermediate Algebra 2EChapter 4: Systems of Linear Equations

Lesson 4.5: Solve Systems of Equations Using Matrices

New Concept Solving systems of equations can be simplified using a matrix , a rectangular array of numbers. This lesson teaches you to convert equations into an augmented matrix, perform row operations, and efficiently find the system's solution.

Section 1

πŸ“˜ Solve Systems of Equations Using Matrices

New Concept

Solving systems of equations can be simplified using a matrix, a rectangular array of numbers. This lesson teaches you to convert equations into an augmented matrix, perform row operations, and efficiently find the system's solution.

What’s next

You're all set! Next, you’ll tackle interactive examples on how to build and manipulate matrices to solve systems of equations step-by-step.

Section 2

Augmented Matrix

Property

A matrix is a rectangular array of numbers arranged in rows and columns.
To represent a system of linear equations with a matrix, we write each equation in standard form. The coefficients of the variables and the constant of each equation become a row in the matrix. A vertical line replaces the equal signs. This is the augmented matrix for the system.
For the system:

{3xβˆ’y=βˆ’32x+3y=6\begin{cases} 3x - y = -3 \\ 2x + 3y = 6 \end{cases}

The augmented matrix is:

[3βˆ’1βˆ’3236]\left[ \begin{array}{cc|c} 3 & -1 & -3 \\ 2 & 3 & 6 \end{array} \right]

Examples

  • The system {2xβˆ’7y=4x=3y+1\begin{cases} 2x - 7y = 4 \\ x = 3y + 1 \end{cases} is first rewritten with the second equation in standard form as xβˆ’3y=1x - 3y = 1. The augmented matrix is [2βˆ’741βˆ’31]\left[\begin{array}{cc|c} 2 & -7 & 4 \\ 1 & -3 & 1 \end{array}\right].
  • The system {x+2yβˆ’z=53x+y+4z=82xβˆ’y+9z=βˆ’2\begin{cases} x + 2y - z = 5 \\ 3x + y + 4z = 8 \\ 2x - y + 9z = -2 \end{cases} corresponds to the augmented matrix [12βˆ’1531482βˆ’19βˆ’2]\left[\begin{array}{ccc|c} 1 & 2 & -1 & 5 \\ 3 & 1 & 4 & 8 \\ 2 & -1 & 9 & -2 \end{array}\right].

Section 3

Row Operations

Property

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. (Ri↔RjR_i \leftrightarrow R_j)
  2. Multiply a row by any real number except 0. (kRikR_i)
  3. Add a nonzero multiple of one row to another row. (Ri+kRjR_i + kR_j)

Examples

Given the matrix [135246]\left[\begin{array}{cc|c} 1 & 3 & 5 \\ 2 & 4 & 6 \end{array}\right]:

  • Interchanging rows 1 and 2 (R1↔R2R_1 \leftrightarrow R_2) results in [246135]\left[\begin{array}{cc|c} 2 & 4 & 6 \\ 1 & 3 & 5 \end{array}\right].
  • Multiplying row 2 by 33 (3R23R_2) results in [13561218]\left[\begin{array}{cc|c} 1 & 3 & 5 \\ 6 & 12 & 18 \end{array}\right].

Section 4

Row-Echelon Form

Property

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 11 and all entries below the diagonal are zeros.

[1ab∣c01d∣e001∣f]\begin{bmatrix} 1 & a & b & | & c \\ 0 & 1 & d & | & e \\ 0 & 0 & 1 & | & f \end{bmatrix}

Examples

  • The matrix [15201βˆ’3]\left[\begin{array}{cc|c} 1 & 5 & 2 \\ 0 & 1 & -3 \end{array}\right] is in row-echelon form. The diagonal entries are 11 and the entry below the diagonal is 00.
  • The matrix [123401560718]\left[\begin{array}{ccc|c} 1 & 2 & 3 & 4 \\ 0 & 1 & 5 & 6 \\ 0 & 7 & 1 & 8 \end{array}\right] is not in row-echelon form because the entry in row 3, column 2 is 77, not 00.

Section 5

Solve systems using matrices

Property

To solve a system of equations using matrices:

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

Examples

  • To solve {x+3y=72x+5y=12\begin{cases} x + 3y = 7 \\ 2x + 5y = 12 \end{cases}, we form [1372512]\left[\begin{array}{cc|c} 1 & 3 & 7 \\ 2 & 5 & 12 \end{array}\right]. The operation βˆ’2R1+R2-2R_1 + R_2 gives [1370βˆ’1βˆ’2]\left[\begin{array}{cc|c} 1 & 3 & 7 \\ 0 & -1 & -2 \end{array}\right]. Multiplying R2R_2 by βˆ’1-1 gives the row-echelon form, which corresponds to y=2y=2 and x+3y=7x+3y=7. Substituting gives x=1x=1. The solution is (1,2)(1, 2).
  • For the system {2xβˆ’4y=10x+y=4\begin{cases} 2x - 4y = 10 \\ x + y = 4 \end{cases}, start by swapping rows to get a 11 in the top-left corner: R1↔R2R_1 \leftrightarrow R_2 gives [1142βˆ’410]\left[\begin{array}{cc|c} 1 & 1 & 4 \\ 2 & -4 & 10 \end{array}\right].

Section 6

Inconsistent Systems

Property

When solving a system using matrices, if you obtain a row where all entries to the left of the vertical line are zero and the entry to the right is a non-zero number, the system is inconsistent. This row represents a false statement, such as 0=10 = 1.

[113001100001]\left[ \begin{array}{ccc|c} 1 & 1 & 3 & 0 \\ 0 & 1 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{array} \right]

Examples

  • The matrix [124003]\left[\begin{array}{cc|c} 1 & 2 & 4 \\ 0 & 0 & 3 \end{array}\right] represents an inconsistent system. The second row implies 0=30 = 3, which is false. There is no solution.
  • The system {xβˆ’2y=5βˆ’2x+4y=βˆ’8\begin{cases} x - 2y = 5 \\ -2x + 4y = -8 \end{cases} becomes [1βˆ’25βˆ’24βˆ’8]\left[\begin{array}{cc|c} 1 & -2 & 5 \\ -2 & 4 & -8 \end{array}\right]. The operation 2R1+R22R_1 + R_2 yields [1βˆ’25002]\left[\begin{array}{cc|c} 1 & -2 & 5 \\ 0 & 0 & 2 \end{array}\right], showing there is no solution.

Section 7

Dependent Systems

Property

When solving a system using matrices, if you obtain a row where all entries are zero (both to the left and right of the vertical line), the system is dependent. This row represents a true but unhelpful statement, 0=00 = 0, indicating there are infinitely many solutions.

[1βˆ’23101βˆ’220000]\left[ \begin{array}{ccc|c} 1 & -2 & 3 & 1 \\ 0 & 1 & -2 & 2 \\ 0 & 0 & 0 & 0 \end{array} \right]

Examples

  • The matrix [135000]\left[\begin{array}{cc|c} 1 & 3 & 5 \\ 0 & 0 & 0 \end{array}\right] represents a dependent system. The second row is 0=00=0. The solutions can be described by the first row: x+3y=5x+3y=5.
  • The system {x+y=43x+3y=12\begin{cases} x + y = 4 \\ 3x + 3y = 12 \end{cases} becomes [1143312]\left[\begin{array}{cc|c} 1 & 1 & 4 \\ 3 & 3 & 12 \end{array}\right]. The operation βˆ’3R1+R2-3R_1 + R_2 yields [114000]\left[\begin{array}{cc|c} 1 & 1 & 4 \\ 0 & 0 & 0 \end{array}\right], indicating infinite solutions.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 4: Systems of Linear Equations

  1. Lesson 1

    Lesson 4.1: Solve Systems of Linear Equations with Two Variables

  2. Lesson 2

    Lesson 4.2: Solve Applications with Systems of Equations

  3. Lesson 3

    Lesson 4.3: Solve Mixture Applications with Systems of Equations

  4. Lesson 4

    Lesson 4.4: Solve Systems of Equations with Three Variables

  5. Lesson 5Current

    Lesson 4.5: Solve Systems of Equations Using Matrices

  6. Lesson 6

    Lesson 4.6: Solve Systems of Equations Using Determinants

  7. Lesson 7

    Lesson 4.7: Graphing Systems of Linear Inequalities

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

πŸ“˜ Solve Systems of Equations Using Matrices

New Concept

Solving systems of equations can be simplified using a matrix, a rectangular array of numbers. This lesson teaches you to convert equations into an augmented matrix, perform row operations, and efficiently find the system's solution.

What’s next

You're all set! Next, you’ll tackle interactive examples on how to build and manipulate matrices to solve systems of equations step-by-step.

Section 2

Augmented Matrix

Property

A matrix is a rectangular array of numbers arranged in rows and columns.
To represent a system of linear equations with a matrix, we write each equation in standard form. The coefficients of the variables and the constant of each equation become a row in the matrix. A vertical line replaces the equal signs. This is the augmented matrix for the system.
For the system:

{3xβˆ’y=βˆ’32x+3y=6\begin{cases} 3x - y = -3 \\ 2x + 3y = 6 \end{cases}

The augmented matrix is:

[3βˆ’1βˆ’3236]\left[ \begin{array}{cc|c} 3 & -1 & -3 \\ 2 & 3 & 6 \end{array} \right]

Examples

  • The system {2xβˆ’7y=4x=3y+1\begin{cases} 2x - 7y = 4 \\ x = 3y + 1 \end{cases} is first rewritten with the second equation in standard form as xβˆ’3y=1x - 3y = 1. The augmented matrix is [2βˆ’741βˆ’31]\left[\begin{array}{cc|c} 2 & -7 & 4 \\ 1 & -3 & 1 \end{array}\right].
  • The system {x+2yβˆ’z=53x+y+4z=82xβˆ’y+9z=βˆ’2\begin{cases} x + 2y - z = 5 \\ 3x + y + 4z = 8 \\ 2x - y + 9z = -2 \end{cases} corresponds to the augmented matrix [12βˆ’1531482βˆ’19βˆ’2]\left[\begin{array}{ccc|c} 1 & 2 & -1 & 5 \\ 3 & 1 & 4 & 8 \\ 2 & -1 & 9 & -2 \end{array}\right].

Section 3

Row Operations

Property

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. (Ri↔RjR_i \leftrightarrow R_j)
  2. Multiply a row by any real number except 0. (kRikR_i)
  3. Add a nonzero multiple of one row to another row. (Ri+kRjR_i + kR_j)

Examples

Given the matrix [135246]\left[\begin{array}{cc|c} 1 & 3 & 5 \\ 2 & 4 & 6 \end{array}\right]:

  • Interchanging rows 1 and 2 (R1↔R2R_1 \leftrightarrow R_2) results in [246135]\left[\begin{array}{cc|c} 2 & 4 & 6 \\ 1 & 3 & 5 \end{array}\right].
  • Multiplying row 2 by 33 (3R23R_2) results in [13561218]\left[\begin{array}{cc|c} 1 & 3 & 5 \\ 6 & 12 & 18 \end{array}\right].

Section 4

Row-Echelon Form

Property

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 11 and all entries below the diagonal are zeros.

[1ab∣c01d∣e001∣f]\begin{bmatrix} 1 & a & b & | & c \\ 0 & 1 & d & | & e \\ 0 & 0 & 1 & | & f \end{bmatrix}

Examples

  • The matrix [15201βˆ’3]\left[\begin{array}{cc|c} 1 & 5 & 2 \\ 0 & 1 & -3 \end{array}\right] is in row-echelon form. The diagonal entries are 11 and the entry below the diagonal is 00.
  • The matrix [123401560718]\left[\begin{array}{ccc|c} 1 & 2 & 3 & 4 \\ 0 & 1 & 5 & 6 \\ 0 & 7 & 1 & 8 \end{array}\right] is not in row-echelon form because the entry in row 3, column 2 is 77, not 00.

Section 5

Solve systems using matrices

Property

To solve a system of equations using matrices:

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

Examples

  • To solve {x+3y=72x+5y=12\begin{cases} x + 3y = 7 \\ 2x + 5y = 12 \end{cases}, we form [1372512]\left[\begin{array}{cc|c} 1 & 3 & 7 \\ 2 & 5 & 12 \end{array}\right]. The operation βˆ’2R1+R2-2R_1 + R_2 gives [1370βˆ’1βˆ’2]\left[\begin{array}{cc|c} 1 & 3 & 7 \\ 0 & -1 & -2 \end{array}\right]. Multiplying R2R_2 by βˆ’1-1 gives the row-echelon form, which corresponds to y=2y=2 and x+3y=7x+3y=7. Substituting gives x=1x=1. The solution is (1,2)(1, 2).
  • For the system {2xβˆ’4y=10x+y=4\begin{cases} 2x - 4y = 10 \\ x + y = 4 \end{cases}, start by swapping rows to get a 11 in the top-left corner: R1↔R2R_1 \leftrightarrow R_2 gives [1142βˆ’410]\left[\begin{array}{cc|c} 1 & 1 & 4 \\ 2 & -4 & 10 \end{array}\right].

Section 6

Inconsistent Systems

Property

When solving a system using matrices, if you obtain a row where all entries to the left of the vertical line are zero and the entry to the right is a non-zero number, the system is inconsistent. This row represents a false statement, such as 0=10 = 1.

[113001100001]\left[ \begin{array}{ccc|c} 1 & 1 & 3 & 0 \\ 0 & 1 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{array} \right]

Examples

  • The matrix [124003]\left[\begin{array}{cc|c} 1 & 2 & 4 \\ 0 & 0 & 3 \end{array}\right] represents an inconsistent system. The second row implies 0=30 = 3, which is false. There is no solution.
  • The system {xβˆ’2y=5βˆ’2x+4y=βˆ’8\begin{cases} x - 2y = 5 \\ -2x + 4y = -8 \end{cases} becomes [1βˆ’25βˆ’24βˆ’8]\left[\begin{array}{cc|c} 1 & -2 & 5 \\ -2 & 4 & -8 \end{array}\right]. The operation 2R1+R22R_1 + R_2 yields [1βˆ’25002]\left[\begin{array}{cc|c} 1 & -2 & 5 \\ 0 & 0 & 2 \end{array}\right], showing there is no solution.

Section 7

Dependent Systems

Property

When solving a system using matrices, if you obtain a row where all entries are zero (both to the left and right of the vertical line), the system is dependent. This row represents a true but unhelpful statement, 0=00 = 0, indicating there are infinitely many solutions.

[1βˆ’23101βˆ’220000]\left[ \begin{array}{ccc|c} 1 & -2 & 3 & 1 \\ 0 & 1 & -2 & 2 \\ 0 & 0 & 0 & 0 \end{array} \right]

Examples

  • The matrix [135000]\left[\begin{array}{cc|c} 1 & 3 & 5 \\ 0 & 0 & 0 \end{array}\right] represents a dependent system. The second row is 0=00=0. The solutions can be described by the first row: x+3y=5x+3y=5.
  • The system {x+y=43x+3y=12\begin{cases} x + y = 4 \\ 3x + 3y = 12 \end{cases} becomes [1143312]\left[\begin{array}{cc|c} 1 & 1 & 4 \\ 3 & 3 & 12 \end{array}\right]. The operation βˆ’3R1+R2-3R_1 + R_2 yields [114000]\left[\begin{array}{cc|c} 1 & 1 & 4 \\ 0 & 0 & 0 \end{array}\right], indicating infinite solutions.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 4: Systems of Linear Equations

  1. Lesson 1

    Lesson 4.1: Solve Systems of Linear Equations with Two Variables

  2. Lesson 2

    Lesson 4.2: Solve Applications with Systems of Equations

  3. Lesson 3

    Lesson 4.3: Solve Mixture Applications with Systems of Equations

  4. Lesson 4

    Lesson 4.4: Solve Systems of Equations with Three Variables

  5. Lesson 5Current

    Lesson 4.5: Solve Systems of Equations Using Matrices

  6. Lesson 6

    Lesson 4.6: Solve Systems of Equations Using Determinants

  7. Lesson 7

    Lesson 4.7: Graphing Systems of Linear Inequalities