Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Similar documents
Section Gaussian Elimination

Lecture 18: The Rank of a Matrix and Consistency of Linear Systems

Midterm 1 Review. Written by Victoria Kala SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015

Matrices and RRE Form

Notes on Row Reduction

Chapter 1. Vectors, Matrices, and Linear Spaces

Lecture 22: Section 4.7

Linear Algebra I Lecture 8

1 - Systems of Linear Equations

Math "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

5x 2 = 10. x 1 + 7(2) = 4. x 1 3x 2 = 4. 3x 1 + 9x 2 = 8

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

Relationships Between Planes

Lecture 4: Gaussian Elimination and Homogeneous Equations

Math 1314 Week #14 Notes

Lecture 6 & 7. Shuanglin Shao. September 16th and 18th, 2013

System of Linear Equations

Solving Linear Systems Using Gaussian Elimination

DM559 Linear and Integer Programming. Lecture 2 Systems of Linear Equations. Marco Chiarandini

Chapter 2. Systems of Equations and Augmented Matrices. Creighton University

Exercise Sketch these lines and find their intersection.

Chapter 1: Systems of Linear Equations

Section 6.2 Larger Systems of Linear Equations

Methods for Solving Linear Systems Part 2

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

The matrix will only be consistent if the last entry of row three is 0, meaning 2b 3 + b 2 b 1 = 0.

Systems of Equations

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Math 3C Lecture 20. John Douglas Moore

Determine whether the following system has a trivial solution or non-trivial solution:

EBG # 3 Using Gaussian Elimination (Echelon Form) Gaussian Elimination: 0s below the main diagonal

4 Elementary matrices, continued

Lecture 3: Gaussian Elimination, continued. Lecture 3: Gaussian Elimination, continued

Lectures on Linear Algebra for IT

CHAPTER 9: Systems of Equations and Matrices

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

4 Elementary matrices, continued

Pre-Calculus I. For example, the system. x y 2 z. may be represented by the augmented matrix

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding

Lecture 2 Systems of Linear Equations and Matrices, Continued

Linear System Equations

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

1 Last time: linear systems and row operations

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

Section 1.1: Systems of Linear Equations

CHAPTER 9: Systems of Equations and Matrices

Linear Equations in Linear Algebra

System of Linear Equations

Chapter 4. Solving Systems of Equations. Chapter 4

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Linear Equations in Linear Algebra

Problem Sheet 1 with Solutions GRA 6035 Mathematics

MATH 2331 Linear Algebra. Section 1.1 Systems of Linear Equations. Finding the solution to a set of two equations in two variables: Example 1: Solve:

Solving Systems of Linear Equations

Matrix Solutions to Linear Equations

1300 Linear Algebra and Vector Geometry Week 2: Jan , Gauss-Jordan, homogeneous matrices, intro matrix arithmetic

Lecture 2e Row Echelon Form (pages 73-74)

Lectures on Linear Algebra for IT

Chapter 1 Matrices and Systems of Equations

9.1 - Systems of Linear Equations: Two Variables

Section 5.3 Systems of Linear Equations: Determinants

Solving Systems of Linear Equations Using Matrices

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

Definition of Equality of Matrices. Example 1: Equality of Matrices. Consider the four matrices

Lecture Notes: Solving Linear Systems with Gauss Elimination

MAC Module 1 Systems of Linear Equations and Matrices I

Lecture 1 Systems of Linear Equations and Matrices

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

Matrices, Row Reduction of Matrices

Elementary Matrices. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

PH1105 Lecture Notes on Linear Algebra.

7.6 The Inverse of a Square Matrix

Lecture 7: Introduction to linear systems

UNIT 3 INTERSECTIONS OF LINES AND PLANES

Elementary Linear Algebra

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

Matrix Algebra Lecture Notes. 1 What is Matrix Algebra? Last change: 18 July Linear forms

Lecture 6: Spanning Set & Linear Independency

Elimination Method Streamlined

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Chapter 6 Page 1 of 10. Lecture Guide. Math College Algebra Chapter 6. to accompany. College Algebra by Julie Miller

Math 2331 Linear Algebra

REPLACE ONE ROW BY ADDING THE SCALAR MULTIPLE OF ANOTHER ROW

MATH 304 Linear Algebra Lecture 20: Review for Test 1.

MA 1B PRACTICAL - HOMEWORK SET 3 SOLUTIONS. Solution. (d) We have matrix form Ax = b and vector equation 4

1.4 Gaussian Elimination Gaussian elimination: an algorithm for finding a (actually the ) reduced row echelon form of a matrix. A row echelon form

Applied Matrix Algebra Lecture Notes Section 2.2. Gerald Höhn Department of Mathematics, Kansas State University

Lecture 18: Section 4.3

Determinant: 3.2 Evaluation of Determinant with Elementary

March 19 - Solving Linear Systems

Systems of Linear Equations

Linear Independence x

1300 Linear Algebra and Vector Geometry

Linear Algebra I Lecture 10

Solving Consistent Linear Systems

Transcription:

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination Winfried Just, Ohio University September 22, 2017

Review: The coefficient matrix Consider a system of m linear equations in n variables. a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2. a m1 x 1 + a m2 x 2 + + a mn x n = b m The coefficient matrix of this system is a 11 a 12... a 1n a 21 a 22... a 2n A =... a m1 a m2... a mn

Review: The extended matrix a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2 a m1 x 1 + a m2 x 2 + + a mn x n = b m The coefficient matrix A does not give us complete information about this system. But the extended aka augmented matrix [A, b] does: a 11 a 12... a 1n b 1 [A, a 21 a 22... a 2n b 2 b] =.... a m1 a m2... a mn b m.

Review: Equivalent systems and their augmented matrices We will say that two systems of m linear equations in n variables are equivalent if they have the same sets of solutions. Similarly, we will say that two matrices [A 1, b 1 ], [A 2, b 2 ] of order m (n + 1) are equivalent if they represent equivalent systems of linear equations. Here a matrix [A, b] is said to represent a system of linear equations if it is the augmented matrix of the system. Note that any matrix with at least two columns represents some system of linear equations.

Review: What do we do when we solve a system? Essentially, solving a linear system that has exactly one solution boils down to transforming a system of the form a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2 a m1 x 1 + a m2 x 2 + + a mn x n = b m. into an equivalent system of the form: x 1 = c 1 x 2 = c 2. x n = c n where c 1, c 2,..., c n are numbers.

Elementary operations on systems of linear equations Consider a system of m linear equations in n variables. Each of the following operations preserves the set of solutions and thus transforms the system into an equivalent one: (i) Interchanging the positions of any two equations. (ii) Multiplying an equation by a nonzero scalar. (iii) Adding to one equation a scalar times another equation.

Elementary row operations on matrices Consider a matrix [A, b] of order m (n + 1). Each of the following elementary row operations transforms [A, b] into an equivalent matrix: (E1) Interchanging any two rows. (E2) Multiplying any row by a nonzero scalar. (E3) Adding to one row of the matrix a scalar times another row of the matrix.

Where do we want to go? An example. Solving systems of linear equations boils down to transforming them (or their extended matrices) into forms that clearly show the solution. Consider the following system and its augmented matrix: x 1 + 2x 2 3x 3 = 17 x 2 4x 3 = 5 x 3 = 3 [A, 1 2 3 17 b] = 0 1 4 5 0 0 1 3 For this system it is trivial to determine the unique solution x = [12 7 3] T by back-substitution, starting from the last equation.

Where do we want to go? A second example. x 1 + 2x 2 3x 3 = 17 x 3 x 4 = 13 x 4 = 33 [A, 1 2 3 0 17 b] = 0 0 1 1 13 0 0 0 1 33 The set of solutions of this system consists of all vectors 77 2x 2 x = x 2 20 33 It is still very easy to determine the set of solutions by back-substitution, starting from the last equation.

Where do we want to go? A third example. Consider the following system of m = 3 equation with n = 2 variables and its augmented matrix: x 1 + 2x 2 = 1.5 x 2 = 0.25 0 = 0 1 2 1.5 [A, b] = 0 1 0.25 0 0 0 For this [ system ] it is trivial to determine the unique solution 1 x = by back-substitution, starting from the last equation. 0.25

Where do we want to go? A fourth example. Consider the following system of m = 3 equation with n = 3 variables and its augmented matrix: x 1 + 2x 2 + 3x 3 = 1.5 x 2 x 3 = 0.25 0 = 1 [A, b] = 1 2 3 1.5 0 1 1 0.25 0 0 0 1 We see immediately that this system has no solutions and is inconsistent.

What do all of these augmented matrices have in common? We have seen four examples for which the solution is very easy to read off the system. Their augmented matrices are: 1 2 3 17 1 2 3 0 17 0 1 4 5 0 0 1 1 13 0 0 1 3 0 0 0 1 33 1 2 1.5 1 2 3 1.5 0 1 0.25 0 1 1 0.25 0 0 0 0 0 0 1 What do all of these augmented matrices have in common?

Row-reduced matrices A matrix is in row-reduced form aka row echelon form, or simply a row-reduced matrix if: (R1) All zero rows appear below all nonzero rows when both types are present. (R2) The first nonzero entry in any nonzero row is 1. (R3) All elements in the same column below the first nonzero element of a nonzero row are 0. (R4) The first nonzero element in a nonzero row appears in a column further to the right of the first nonzero element in any preceding row.

The method of Gaussian elimination Gaussian elimination is a method for solving systems of linear equations. The method is named after Carl Friedrich Gauss (1777 1855). It usually works better for numerical solutions on the computer than the method of substitution. We will see later that it also gives us some additional insights. The method relies on transforming the augmented matrix of a given system into and equivalent row-reduced matrix by successive elementary row operations.

The method of Gaussian elimination: Example 1 Consider the following system of linear equations: 0.5x 1 x 2 + x 3 = 2 2x 1 7x 2 3x 3 = 0 x 1 + x 2 + x 3 = 5 The augmented matrix is 0.5 1 1 2 [A, b] = 2 7 3 0 1 1 1 5

Gaussian elimination for Example 1 0.5 1 1 2 2 7 3 0 1 1 1 5 1 2 2 4 2 7 3 0 1 1 1 5 1 2 2 4 0 3 7 8 1 1 1 5 multiply row 1 by 2 subtract 2(row 1) from row 2 subtract row 1 from row 3 1 2 2 4 2 7 3 0 1 1 1 5 1 2 2 4 0 3 7 8 1 1 1 5 1 2 2 4 0 3 7 8 0 3 1 1

Gaussian elimination for Example 1, continued 1 2 2 4 0 3 7 8 0 3 1 1 1 2 2 4 0 3 7 8 0 0 8 7 1 2 2 4 7 8 0 1 3 3 0 0 8 7 add row 2 to row 3 divide row 2 by -3 divide row 3 by -8 1 2 2 4 0 3 7 8 0 0 8 7 1 2 2 4 7 8 0 1 3 3 0 0 8 7 1 2 2 4 7 8 0 1 3 3 7 0 0 1 8

Example 1: Reading off the solution We have transformed the augmented matrix of the original system into an equivalent matrix in row-reduced form: 1 2 2 4 7 8 0 1 3 3 7 0 0 1 8 It represents the following equivalent system: x 1 2x 2 + 2x 3 = 4 x 2 + 7 3 x 3 = 8 3 x 3 = 7 8 Back-substitution gives the solution: x 3 = 7 8, x 2 = 5 8, x 1 = 7 2.

Some practice problems Homework 34: Solve the following linear systems using Gaussian elimination: (a) (b) (c) x 1 + 2x 2 = 3 4x 1 + 5x 2 = 6 x 1 + 2x 2 + x 3 = 1 x 1 x 2 + x 3 = 2 x 1 + x 2 x 3 = 3 x 1 + 2x 2 + x 3 + x 4 = 1 x 1 x 2 + x 3 + x 4 = 2 x 1 + x 2 x 3 + x 4 = 3 x 1 + x 2 + x 3 x 4 = 4