SlideShare a Scribd company logo
7.6 Gaussian Elimination
Chapter 7 Systems of Equations and Inequalities
Concepts and Objectives
⚫ The objectives for this section are
⚫ Write the augmented matrix of a system of equations.
⚫ Write the system of equations from an augmented
matrix.
⚫ Perform row operations on a matrix.
⚫ Solve a system of linear equations using matrices.
Writing an Augmented Matrix
⚫ A matrix can serve as a device for representing and
solving a system of equations written in standard form.
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, it is called an
augmented matrix.
Writing an Augmented Matrix
⚫ For example, the following system of equations,
can be written as an augmented matrix:
⚫ Notice that the matrix is written so that the variables
line up in their own columns: x-terms go in the first
column, y-terms in the second column, etc.
⚫ If there is a missing variable term, the coefficient is 0.
3 4 7
4 2 5
x y
x y
+ =
− =
3 4 7
4 2 5
 
 
−
 
Writing a Coefficient Matrix
⚫ We can also write a matrix containing just the
coefficients. This is called the coefficient matrix.
⚫ A 3 × 3 system of equations such as
has a coefficient matrix
3 0
5
2 3 2
x y z
x y
x z
− − =
+ =
− =
3 1 1
1 1 0
2 0 3
− −
 
 
 
 
−
 
Writing a System From a Matrix
⚫ In the same fashion, we can take an augmented matrix,
and generate a system of equations. For example, the
augmented matrix
can generate the following system of equations:
1 3 5 2
2 5 4 5
3 5 4 6
 
− − −
 
− −
 
 
−
 
3 5 2
2 5 4 5
3 5 4 6
x y z
x y z
x y z
− − = −
− − =
− + + =
Performing Row Operations
⚫ Now that we can write systems of equations in an
augmented matrix form, we will examine the various
row operations that can be performed on a matrix, such
as addition, multiplication by a constant, and
interchanging rows.
⚫ We can use row operations to solve a system of
equations by converting the matrix to row-echelon form,
in which there are ones down the main diagonal from
the upper left corner to the lower right corner, and zeros
in every position below the main diagonal as shown on
the next slide.
Performing Row Operations
⚫ We use row operations corresponding to
equation operations to obtain a new matrix
that is row-equivalent in a simpler form.
Here are the guidelines to obtaining row-
echelon form:
1
1
0
0 0 1
a b
d
 
 
 
 
 
1. In any nonzero row, the first nonzero number is 1. It is called a
leading 1.
2. Any all-zero rows are placed at the bottom on the matrix.
3. Any leading 1 is below and to the right of a previous leading 1.
4. Any column containing a leading 1 has zeros in all other positions
in the column.
Row Operations and Notation
⚫ To solve a system of equations we can perform the
following row operations to convert the coefficient
matrix to a row-echelon form and do back-substitution
to find the solution.
1. Interchange rows. (Notation: )
2. Multiply a row by a constant. (Notation: )
3. Add the product of a row multiplied by a constant to
another row. (Notation: )
i j
R R

i
cR
i j
R cR
+
Gaussian Elimination
⚫ The primary tool we will be using is called Gaussian
elimination, named after the prolific German
mathematician Karl Friedrich Gauss. While there is no
definitive order in which operations are to be
performed, there are specific guidelines as to what type
of moves can be made.
⚫ To obtain a matrix in row-echelon form for finding
solutions, we use row operations to obtain a 1 as the
first entry so that row 1 can be used to convert the
remaining rows.
Procedure
Given an augmented matrix, perform row operations to
achieve row-echelon form.
1. The first equation should have a leading coefficient of 1.
Interchange rows or multiply by a constant, if necessary.
2. Obtain zeros down the first column below the first entry of 1.
3. Obtain a 1 in row 2, column 2
4. Obtain zeros down column 2, below the entry of 1.
5. Continue this process for all rows until there is a 1 in every
entry down the main diagonal and there are only zeros
below.
6. If any rows contain all zeros, place them at the bottom.
Procedure (cont.)
⚫ Example: Solve the given system by Gaussian
elimination.
2 3 6
8
x y
x y
+ =
− =
Procedure (cont.)
⚫ Example: Solve the given system by Gaussian
elimination.
1. Write the system as an augmented matrix.
2 3 6
8
x y
x y
+ =
− =
2 3 6
1 1 8
 
 
−
 
Procedure (cont.)
2. Interchange row 1 and row 2 to put a 1 in row 1,
column 1.
3. Multiply row 1 by ‒2 and add the result to row 2.
1 2
1 1 8
2 3 6
R R
 
−
 →  
 
1 2 2
1 1 8
2
0 5 10
R R R
 
−
− + = →  
−
 
Procedure (cont.)
4. Multiply row 2 by ⅕.
5. The second row of the matrix represents y = ‒2.
Substitute y = ‒2 into the second equation.
6. The solution is (6, ‒2)
2 2
1 1 8
1
5 0 1 2
R R
 
−
= →  
−
 
( )
2 8
6
x
x
− − =
=
Using a Matrix Calculator
⚫ We can also use a matrix calculator to handle all of the
tedious bits for us.
⚫ Example: Solve the system of linear equations using
matrices.
8
2 3 2
3 2 9 9
x y z
x y z
x y z
− + =
+ − = −
− − =
Using a Matrix Calculator
⚫ Example: Solve the system of linear equations using
matrices.
1. Set up the augmented matrix.
8
2 3 2
3 2 9 9
x y z
x y z
x y z
− + =
+ − = −
− − =
1 1 1 8
2 3 1 2
3 2 9 9
 
−
 
− −
 
 
− −
 
Using a Matrix Calculator (cont.)
2. Go to desmos.com/matrix (not the graphing calculator)
3. Click on
Using a Matrix Calculator (cont.)
2. Go to desmos.com/matrix (not the graphing calculator)
3. Click on
4. Change the rows to 3 and the columns to 4.
Using a Matrix Calculator (cont.)
2. Go to desmos.com/matrix (not the graphing calculator)
3. Click on
4. Change the rows to 3 and the columns to 4.
5. Enter the values from your matrix.
Using a Matrix Calculator (cont.)
2. Go to desmos.com/matrix (not the graphing calculator)
3. Click on
4. Change the rows to 3 and the columns to 4
5. Enter the values from your matrix
6. Click on (reduced row-echelon form) and then
Using a Matrix Calculator (cont.)
2. Go to desmos.com/matrix (not the graphing calculator)
3. Click on
4. Change the rows to 3 and the columns to 4
5. Enter the values from your matrix
6. Click on (reduced row-echelon form) and then
7. The solution will be in the
right-hand column:
(4, ‒3, 1)
Using a Matrix Calculator (cont.)
⚫ Some notes:
⚫ If we had used Gaussian elimination to solve the
previous system, we would have ended up with the
matrix
⚫ The difference is that we are doing “ref” or row-
echelon form; Desmos does “rref” or reduced row-
echelon form, which saves us from having to
substitute for the final solution.
1 1 1 8
0 1 12 15
0 0 1 1
 
−
 
− −
 
 
 
Using a Matrix Calculator (cont.)
⚫ Some notes (cont.):
⚫ Desmos defaults to giving decimal answers, but it
does have the ability to convert these to fractions.
⚫ Calculators always assume you know what you’re
doing, and that you’ve typed everything correctly.
Check your answers against the original equations!
Classwork
⚫ College Algebra 2e
⚫ 7.6: 6-14 (even); 7.5: 18, 20, 30-40 (even); 7.3: 52-58
(even)
⚫ Quiz 7.5

More Related Content

PDF
9.3 Solving Systems With Gaussian Elimination
PPT
chapter7_Sec1.ppt
PPT
Section-7.4-PC.ppt
PPTX
LINEAR EQUATION.pptx
PPTX
Direct Methods For The Solution Of Systems Of
PDF
9.3 Determinant Solution of Linear Systems
PDF
MATRICES-AND-SYSTEMS-OF-LINEAR-EQUATIONS_Part-1_Feb14.pdf
PPTX
Direct Methods to Solve Linear Equations Systems
9.3 Solving Systems With Gaussian Elimination
chapter7_Sec1.ppt
Section-7.4-PC.ppt
LINEAR EQUATION.pptx
Direct Methods For The Solution Of Systems Of
9.3 Determinant Solution of Linear Systems
MATRICES-AND-SYSTEMS-OF-LINEAR-EQUATIONS_Part-1_Feb14.pdf
Direct Methods to Solve Linear Equations Systems

Similar to 7.6 Solving Systems with Gaussian Elimination (20)

PPTX
Direct methods
PPTX
Direct methods
PPTX
Direct Methods to Solve Lineal Equations
PDF
2415systems_odes
PPTX
Matlab Tutorial
PDF
9.4 Cramer's Rule
PDF
9.3 Determinant Solution of Linear Systems
PPTX
Gauss Elimination and Gauss Jordan.pptx
PDF
Using Sparse Matrix for the Contact Calculation_ZhanWang
PDF
Chapter 3: Linear Systems and Matrices - Part 2/Slides
PPT
Solving Linear systems of Equations-Gauss elimination method
PDF
7.8 Cramer's Rule
PDF
7.3 Systems of Nonlinear Equations
PPTX
Simplex Algorithm
PDF
Chapter 3: Linear Systems and Matrices - Part 1/Slides
PPT
Matrix and its applications by mohammad imran
PPSX
Contéo de figuras
KEY
0908 ch 9 day 8
PDF
Ebook mst209 block3_e1i1_n9780749252830_l1 (2)
PDF
demo attachment
Direct methods
Direct methods
Direct Methods to Solve Lineal Equations
2415systems_odes
Matlab Tutorial
9.4 Cramer's Rule
9.3 Determinant Solution of Linear Systems
Gauss Elimination and Gauss Jordan.pptx
Using Sparse Matrix for the Contact Calculation_ZhanWang
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Solving Linear systems of Equations-Gauss elimination method
7.8 Cramer's Rule
7.3 Systems of Nonlinear Equations
Simplex Algorithm
Chapter 3: Linear Systems and Matrices - Part 1/Slides
Matrix and its applications by mohammad imran
Contéo de figuras
0908 ch 9 day 8
Ebook mst209 block3_e1i1_n9780749252830_l1 (2)
demo attachment
Ad

More from smiller5 (20)

PDF
T7.3 The Unit Circle and Angles Presentation
PDF
T7.2 Right Triangle Trigonometry Presentation
PDF
1.3 Factoring Quadratics (Presentation).pdf
PPTX
1.3 Factoring Polynomial and Quadratic Expressions
PDF
Trigonometry 7.1 Angles (Degrees and Radians)
PDF
6.7 Exponential and Logarithmic Models
PDF
4.5 Special Segments in Triangles
PDF
1.4 Conditional Statements
PDF
1.3 Distance and Midpoint Formulas
PDF
1.5 Quadratic Equations.pdf
PDF
3.2 Graphs of Functions
PDF
3.2 Graphs of Functions
PDF
3.1 Functions
PDF
2.5 Transformations of Functions
PDF
2.2 More on Functions and Their Graphs
PDF
1.6 Other Types of Equations
PDF
1.5 Quadratic Equations (Review)
PDF
2.1 Basics of Functions and Their Graphs
PDF
9.6 Binomial Theorem
PDF
13.3 Venn Diagrams & Two-Way Tables
T7.3 The Unit Circle and Angles Presentation
T7.2 Right Triangle Trigonometry Presentation
1.3 Factoring Quadratics (Presentation).pdf
1.3 Factoring Polynomial and Quadratic Expressions
Trigonometry 7.1 Angles (Degrees and Radians)
6.7 Exponential and Logarithmic Models
4.5 Special Segments in Triangles
1.4 Conditional Statements
1.3 Distance and Midpoint Formulas
1.5 Quadratic Equations.pdf
3.2 Graphs of Functions
3.2 Graphs of Functions
3.1 Functions
2.5 Transformations of Functions
2.2 More on Functions and Their Graphs
1.6 Other Types of Equations
1.5 Quadratic Equations (Review)
2.1 Basics of Functions and Their Graphs
9.6 Binomial Theorem
13.3 Venn Diagrams & Two-Way Tables
Ad

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Lesson notes of climatology university.
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Complications of Minimal Access Surgery at WLH
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
2.FourierTransform-ShortQuestionswithAnswers.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pre independence Education in Inndia.pdf
Pharma ospi slides which help in ospi learning
Abdominal Access Techniques with Prof. Dr. R K Mishra
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Computing-Curriculum for Schools in Ghana
TR - Agricultural Crops Production NC III.pdf
RMMM.pdf make it easy to upload and study
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Anesthesia in Laparoscopic Surgery in India
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Lesson notes of climatology university.
GDM (1) (1).pptx small presentation for students
Complications of Minimal Access Surgery at WLH
Supply Chain Operations Speaking Notes -ICLT Program
VCE English Exam - Section C Student Revision Booklet
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student

7.6 Solving Systems with Gaussian Elimination

  • 1. 7.6 Gaussian Elimination Chapter 7 Systems of Equations and Inequalities
  • 2. Concepts and Objectives ⚫ The objectives for this section are ⚫ Write the augmented matrix of a system of equations. ⚫ Write the system of equations from an augmented matrix. ⚫ Perform row operations on a matrix. ⚫ Solve a system of linear equations using matrices.
  • 3. Writing an Augmented Matrix ⚫ A matrix can serve as a device for representing and solving a system of equations written in standard form. 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, it is called an augmented matrix.
  • 4. Writing an Augmented Matrix ⚫ For example, the following system of equations, can be written as an augmented matrix: ⚫ Notice that the matrix is written so that the variables line up in their own columns: x-terms go in the first column, y-terms in the second column, etc. ⚫ If there is a missing variable term, the coefficient is 0. 3 4 7 4 2 5 x y x y + = − = 3 4 7 4 2 5     −  
  • 5. Writing a Coefficient Matrix ⚫ We can also write a matrix containing just the coefficients. This is called the coefficient matrix. ⚫ A 3 × 3 system of equations such as has a coefficient matrix 3 0 5 2 3 2 x y z x y x z − − = + = − = 3 1 1 1 1 0 2 0 3 − −         −  
  • 6. Writing a System From a Matrix ⚫ In the same fashion, we can take an augmented matrix, and generate a system of equations. For example, the augmented matrix can generate the following system of equations: 1 3 5 2 2 5 4 5 3 5 4 6   − − −   − −     −   3 5 2 2 5 4 5 3 5 4 6 x y z x y z x y z − − = − − − = − + + =
  • 7. Performing Row Operations ⚫ Now that we can write systems of equations in an augmented matrix form, we will examine the various row operations that can be performed on a matrix, such as addition, multiplication by a constant, and interchanging rows. ⚫ We can use row operations to solve a system of equations by converting the matrix to row-echelon form, in which there are ones down the main diagonal from the upper left corner to the lower right corner, and zeros in every position below the main diagonal as shown on the next slide.
  • 8. Performing Row Operations ⚫ We use row operations corresponding to equation operations to obtain a new matrix that is row-equivalent in a simpler form. Here are the guidelines to obtaining row- echelon form: 1 1 0 0 0 1 a b d           1. In any nonzero row, the first nonzero number is 1. It is called a leading 1. 2. Any all-zero rows are placed at the bottom on the matrix. 3. Any leading 1 is below and to the right of a previous leading 1. 4. Any column containing a leading 1 has zeros in all other positions in the column.
  • 9. Row Operations and Notation ⚫ To solve a system of equations we can perform the following row operations to convert the coefficient matrix to a row-echelon form and do back-substitution to find the solution. 1. Interchange rows. (Notation: ) 2. Multiply a row by a constant. (Notation: ) 3. Add the product of a row multiplied by a constant to another row. (Notation: ) i j R R  i cR i j R cR +
  • 10. Gaussian Elimination ⚫ The primary tool we will be using is called Gaussian elimination, named after the prolific German mathematician Karl Friedrich Gauss. While there is no definitive order in which operations are to be performed, there are specific guidelines as to what type of moves can be made. ⚫ To obtain a matrix in row-echelon form for finding solutions, we use row operations to obtain a 1 as the first entry so that row 1 can be used to convert the remaining rows.
  • 11. Procedure Given an augmented matrix, perform row operations to achieve row-echelon form. 1. The first equation should have a leading coefficient of 1. Interchange rows or multiply by a constant, if necessary. 2. Obtain zeros down the first column below the first entry of 1. 3. Obtain a 1 in row 2, column 2 4. Obtain zeros down column 2, below the entry of 1. 5. Continue this process for all rows until there is a 1 in every entry down the main diagonal and there are only zeros below. 6. If any rows contain all zeros, place them at the bottom.
  • 12. Procedure (cont.) ⚫ Example: Solve the given system by Gaussian elimination. 2 3 6 8 x y x y + = − =
  • 13. Procedure (cont.) ⚫ Example: Solve the given system by Gaussian elimination. 1. Write the system as an augmented matrix. 2 3 6 8 x y x y + = − = 2 3 6 1 1 8     −  
  • 14. Procedure (cont.) 2. Interchange row 1 and row 2 to put a 1 in row 1, column 1. 3. Multiply row 1 by ‒2 and add the result to row 2. 1 2 1 1 8 2 3 6 R R   −  →     1 2 2 1 1 8 2 0 5 10 R R R   − − + = →   −  
  • 15. Procedure (cont.) 4. Multiply row 2 by ⅕. 5. The second row of the matrix represents y = ‒2. Substitute y = ‒2 into the second equation. 6. The solution is (6, ‒2) 2 2 1 1 8 1 5 0 1 2 R R   − = →   −   ( ) 2 8 6 x x − − = =
  • 16. Using a Matrix Calculator ⚫ We can also use a matrix calculator to handle all of the tedious bits for us. ⚫ Example: Solve the system of linear equations using matrices. 8 2 3 2 3 2 9 9 x y z x y z x y z − + = + − = − − − =
  • 17. Using a Matrix Calculator ⚫ Example: Solve the system of linear equations using matrices. 1. Set up the augmented matrix. 8 2 3 2 3 2 9 9 x y z x y z x y z − + = + − = − − − = 1 1 1 8 2 3 1 2 3 2 9 9   −   − −     − −  
  • 18. Using a Matrix Calculator (cont.) 2. Go to desmos.com/matrix (not the graphing calculator) 3. Click on
  • 19. Using a Matrix Calculator (cont.) 2. Go to desmos.com/matrix (not the graphing calculator) 3. Click on 4. Change the rows to 3 and the columns to 4.
  • 20. Using a Matrix Calculator (cont.) 2. Go to desmos.com/matrix (not the graphing calculator) 3. Click on 4. Change the rows to 3 and the columns to 4. 5. Enter the values from your matrix.
  • 21. Using a Matrix Calculator (cont.) 2. Go to desmos.com/matrix (not the graphing calculator) 3. Click on 4. Change the rows to 3 and the columns to 4 5. Enter the values from your matrix 6. Click on (reduced row-echelon form) and then
  • 22. Using a Matrix Calculator (cont.) 2. Go to desmos.com/matrix (not the graphing calculator) 3. Click on 4. Change the rows to 3 and the columns to 4 5. Enter the values from your matrix 6. Click on (reduced row-echelon form) and then 7. The solution will be in the right-hand column: (4, ‒3, 1)
  • 23. Using a Matrix Calculator (cont.) ⚫ Some notes: ⚫ If we had used Gaussian elimination to solve the previous system, we would have ended up with the matrix ⚫ The difference is that we are doing “ref” or row- echelon form; Desmos does “rref” or reduced row- echelon form, which saves us from having to substitute for the final solution. 1 1 1 8 0 1 12 15 0 0 1 1   −   − −      
  • 24. Using a Matrix Calculator (cont.) ⚫ Some notes (cont.): ⚫ Desmos defaults to giving decimal answers, but it does have the ability to convert these to fractions. ⚫ Calculators always assume you know what you’re doing, and that you’ve typed everything correctly. Check your answers against the original equations!
  • 25. Classwork ⚫ College Algebra 2e ⚫ 7.6: 6-14 (even); 7.5: 18, 20, 30-40 (even); 7.3: 52-58 (even) ⚫ Quiz 7.5