Learn on PengiOpenStax Algebra and TrigonometryChapter 11: Systems of Equations and Inequalities

Lesson 11.6: Solving Systems with Gaussian Elimination

New Concept Gaussian elimination is a powerful method for solving systems of linear equations. It involves representing the system as an augmented matrix and using row operations to simplify it into row echelon form , which makes finding the solution straightforward.

Section 1

πŸ“˜ Solving Systems with Gaussian Elimination

New Concept

Gaussian elimination is a powerful method for solving systems of linear equations. It involves representing the system as an augmented matrix and using row operations to simplify it into row-echelon form, which makes finding the solution straightforward.

What’s next

Next, you’ll practice converting systems to augmented matrices and applying row operations on interactive cards, preparing you to solve full systems step-by-step.

Section 2

Writing the Augmented Matrix

Property

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. A matrix containing just the coefficients is called the coefficient matrix. It is very important that each equation is written in standard form ax+by+cz=dax + by + cz = d so that the variables line up. When there is a missing variable term in an equation, the coefficient is 0.

To write an augmented matrix:

  1. Write the coefficients of the xx-terms as the numbers down the first column.
  2. Write the coefficients of the yy-terms as the numbers down the second column.
  3. If there are zz-terms, write their coefficients down the third column.
  4. Draw a vertical line and write the constants to the right.

Examples

  • The system of equations 2x+5y=112x + 5y = 11 and 3xβˆ’y=83x - y = 8 can be written as the augmented matrix [25∣113βˆ’1∣8]\begin{bmatrix} 2 & 5 & | & 11 \\ 3 & -1 & | & 8 \end{bmatrix}.

Section 3

Writing a System from a Matrix

Property

We can use the information in an augmented matrix to write the system of equations in standard form. Each column on the left of the vertical line represents the coefficients for a specific variable (x,y,z,...x, y, z, ...), and the column on the right represents the constants. Each row corresponds to one equation in the system.

Examples

  • The augmented matrix [2βˆ’4∣615βˆ£βˆ’3]\begin{bmatrix} 2 & -4 & | & 6 \\ 1 & 5 & | & -3 \end{bmatrix} represents the system of equations 2xβˆ’4y=62x - 4y = 6 and x+5y=βˆ’3x + 5y = -3.
  • Given the matrix [102∣901βˆ’3∣4450∣1]\begin{bmatrix} 1 & 0 & 2 & | & 9 \\ 0 & 1 & -3 & | & 4 \\ 4 & 5 & 0 & | & 1 \end{bmatrix}, the corresponding system is x+2z=9x + 2z = 9, yβˆ’3z=4y - 3z = 4, and 4x+5y=14x + 5y = 1.

Section 4

Performing Row Operations

Property

To solve a system of equations, we can perform the following row operations to convert the coefficient matrix to row-echelon form and do back-substitution to find the solution.

  • Interchange rows. (Notation: Ri↔RjR_i \leftrightarrow R_j)
  • Multiply a row by a constant. (Notation: cRicR_i)
  • Add the product of a row multiplied by a constant to another row. (Notation: Rj+cRiR_j + cR_i)

Each of the row operations corresponds to the operations we have already learned to solve systems of equations in three variables. With these operations, we use Gaussian elimination to write a matrix in row-echelon form, which has ones on the main diagonal and zeros below them.

Section 5

Solving Systems Using Matrices

Property

We can solve a system of linear equations using matrices. The general idea is to eliminate all but one variable using row operations and then back-substitute to solve for the other variables. This method is known as Gaussian elimination.

To solve a system using matrices:

  1. Write the system of equations as an augmented matrix.
  2. Use row operations to convert the matrix to row-echelon form, where there are 1s on the main diagonal and 0s below it.
  3. Write the system of equations corresponding to the row-echelon form.
  4. Use back-substitution to find the solution.

Examples

  • Solving the system x+y=7x+y=7 and 2xβˆ’y=22x-y=2 starts with the matrix [11∣72βˆ’1∣2]\begin{bmatrix} 1 & 1 & | & 7 \\ 2 & -1 & | & 2 \end{bmatrix}. After βˆ’2R1+R2=R2-2R_1+R_2=R_2, we get [11∣70βˆ’3βˆ£βˆ’12]\begin{bmatrix} 1 & 1 & | & 7 \\ 0 & -3 & | & -12 \end{bmatrix}. This gives βˆ’3y=βˆ’12-3y=-12, so y=4y=4. Back-substituting, x+4=7x+4=7, so x=3x=3. The solution is (3,4)(3, 4).

Book overview

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

Continue this chapter

Chapter 11: Systems of Equations and Inequalities

  1. Lesson 1

    Lesson 11.1: Systems of Linear Equations: Two Variables

  2. Lesson 2

    Lesson 11.2: Systems of Linear Equations: Three Variables

  3. Lesson 3

    Lesson 11.3: Systems of Nonlinear Equations and Inequalities: Two Variables

  4. Lesson 4

    Lesson 11.4: Partial Fractions

  5. Lesson 5

    Lesson 11.5: Matrices and Matrix Operations

  6. Lesson 6Current

    Lesson 11.6: Solving Systems with Gaussian Elimination

  7. Lesson 7

    Lesson 11.7: Solving Systems with Inverses

  8. Lesson 8

    Lesson 11.8: Solving Systems with Cramer's Rule

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

πŸ“˜ Solving Systems with Gaussian Elimination

New Concept

Gaussian elimination is a powerful method for solving systems of linear equations. It involves representing the system as an augmented matrix and using row operations to simplify it into row-echelon form, which makes finding the solution straightforward.

What’s next

Next, you’ll practice converting systems to augmented matrices and applying row operations on interactive cards, preparing you to solve full systems step-by-step.

Section 2

Writing the Augmented Matrix

Property

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. A matrix containing just the coefficients is called the coefficient matrix. It is very important that each equation is written in standard form ax+by+cz=dax + by + cz = d so that the variables line up. When there is a missing variable term in an equation, the coefficient is 0.

To write an augmented matrix:

  1. Write the coefficients of the xx-terms as the numbers down the first column.
  2. Write the coefficients of the yy-terms as the numbers down the second column.
  3. If there are zz-terms, write their coefficients down the third column.
  4. Draw a vertical line and write the constants to the right.

Examples

  • The system of equations 2x+5y=112x + 5y = 11 and 3xβˆ’y=83x - y = 8 can be written as the augmented matrix [25∣113βˆ’1∣8]\begin{bmatrix} 2 & 5 & | & 11 \\ 3 & -1 & | & 8 \end{bmatrix}.

Section 3

Writing a System from a Matrix

Property

We can use the information in an augmented matrix to write the system of equations in standard form. Each column on the left of the vertical line represents the coefficients for a specific variable (x,y,z,...x, y, z, ...), and the column on the right represents the constants. Each row corresponds to one equation in the system.

Examples

  • The augmented matrix [2βˆ’4∣615βˆ£βˆ’3]\begin{bmatrix} 2 & -4 & | & 6 \\ 1 & 5 & | & -3 \end{bmatrix} represents the system of equations 2xβˆ’4y=62x - 4y = 6 and x+5y=βˆ’3x + 5y = -3.
  • Given the matrix [102∣901βˆ’3∣4450∣1]\begin{bmatrix} 1 & 0 & 2 & | & 9 \\ 0 & 1 & -3 & | & 4 \\ 4 & 5 & 0 & | & 1 \end{bmatrix}, the corresponding system is x+2z=9x + 2z = 9, yβˆ’3z=4y - 3z = 4, and 4x+5y=14x + 5y = 1.

Section 4

Performing Row Operations

Property

To solve a system of equations, we can perform the following row operations to convert the coefficient matrix to row-echelon form and do back-substitution to find the solution.

  • Interchange rows. (Notation: Ri↔RjR_i \leftrightarrow R_j)
  • Multiply a row by a constant. (Notation: cRicR_i)
  • Add the product of a row multiplied by a constant to another row. (Notation: Rj+cRiR_j + cR_i)

Each of the row operations corresponds to the operations we have already learned to solve systems of equations in three variables. With these operations, we use Gaussian elimination to write a matrix in row-echelon form, which has ones on the main diagonal and zeros below them.

Section 5

Solving Systems Using Matrices

Property

We can solve a system of linear equations using matrices. The general idea is to eliminate all but one variable using row operations and then back-substitute to solve for the other variables. This method is known as Gaussian elimination.

To solve a system using matrices:

  1. Write the system of equations as an augmented matrix.
  2. Use row operations to convert the matrix to row-echelon form, where there are 1s on the main diagonal and 0s below it.
  3. Write the system of equations corresponding to the row-echelon form.
  4. Use back-substitution to find the solution.

Examples

  • Solving the system x+y=7x+y=7 and 2xβˆ’y=22x-y=2 starts with the matrix [11∣72βˆ’1∣2]\begin{bmatrix} 1 & 1 & | & 7 \\ 2 & -1 & | & 2 \end{bmatrix}. After βˆ’2R1+R2=R2-2R_1+R_2=R_2, we get [11∣70βˆ’3βˆ£βˆ’12]\begin{bmatrix} 1 & 1 & | & 7 \\ 0 & -3 & | & -12 \end{bmatrix}. This gives βˆ’3y=βˆ’12-3y=-12, so y=4y=4. Back-substituting, x+4=7x+4=7, so x=3x=3. The solution is (3,4)(3, 4).

Book overview

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

Continue this chapter

Chapter 11: Systems of Equations and Inequalities

  1. Lesson 1

    Lesson 11.1: Systems of Linear Equations: Two Variables

  2. Lesson 2

    Lesson 11.2: Systems of Linear Equations: Three Variables

  3. Lesson 3

    Lesson 11.3: Systems of Nonlinear Equations and Inequalities: Two Variables

  4. Lesson 4

    Lesson 11.4: Partial Fractions

  5. Lesson 5

    Lesson 11.5: Matrices and Matrix Operations

  6. Lesson 6Current

    Lesson 11.6: Solving Systems with Gaussian Elimination

  7. Lesson 7

    Lesson 11.7: Solving Systems with Inverses

  8. Lesson 8

    Lesson 11.8: Solving Systems with Cramer's Rule