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

Similar documents
Lecture 4: Gaussian Elimination and Homogeneous Equations

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

Section Gaussian Elimination

Row Reduction and Echelon Forms

Solving Linear Systems Using Gaussian Elimination

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Chapter 4. Solving Systems of Equations. Chapter 4

Section 6.2 Larger Systems of Linear Equations

Methods for Solving Linear Systems Part 2

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Notes on Row Reduction

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

Relationships Between Planes

Exercise Sketch these lines and find their intersection.

Linear Algebra I Lecture 10

4 Elementary matrices, continued

Solving Systems of Linear Equations

9.1 - Systems of Linear Equations: Two Variables

1 - Systems of Linear Equations

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

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

Lecture 7: Introduction to linear systems

Recall, we solved the system below in a previous section. Here, we learn another method. x + 4y = 14 5x + 3y = 2

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

Linear Equations in Linear Algebra

Homework 1 Due: Wednesday, August 27. x + y + z = 1. x y = 3 x + y + z = c 2 2x + cz = 4

4 Elementary matrices, continued

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

Math 1021, Linear Algebra 1. Section: A at 10am, B at 2:30pm

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

Chapter 1. Vectors, Matrices, and Linear Spaces

4.3 Row operations. As we have seen in Section 4.1 we can simplify a system of equations by either:

10.3 Matrices and Systems Of

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

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

EXAM. Exam #1. Math 2360, Second Summer Session, April 24, 2001 ANSWERS

PH1105 Lecture Notes on Linear Algebra.

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

Introduction to Systems of Equations

Matrices and RRE Form

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.

Linear Algebra Handout

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

MATH 2050 Assignment 6 Fall 2018 Due: Thursday, November 1. x + y + 2z = 2 x + y + z = c 4x + 2z = 2

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

Row Reduced Echelon Form

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

Lecture 2 Systems of Linear Equations and Matrices, Continued

MAC Module 1 Systems of Linear Equations and Matrices I

Lecture 1 Systems of Linear Equations and Matrices

1 Last time: linear systems and row operations

Sections 6.1 and 6.2: Systems of Linear Equations

System of Linear Equations

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

Section 6.3. Matrices and Systems of Equations

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

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

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Review for Exam Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions.

Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS

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

Math 2331 Linear Algebra

CHAPTER 9: Systems of Equations and Matrices

Chapter 1: Systems of Linear Equations and Matrices

Section 1.1: Systems of Linear Equations

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

Linear Methods (Math 211) - Lecture 2

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Linear Equations in Linear Algebra

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

Section 1.1 System of Linear Equations. Dr. Abdulla Eid. College of Science. MATHS 211: Linear Algebra

MATH 152 Exam 1-Solutions 135 pts. Write your answers on separate paper. You do not need to copy the questions. Show your work!!!

Chapter 1: Systems of Linear Equations

Linear Algebra Practice Problems

2.1 Gaussian Elimination

6-2 Matrix Multiplication, Inverses and Determinants

Elementary Linear Algebra

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

POLI270 - Linear Algebra

Section 5.3 Systems of Linear Equations: Determinants

Elimination Method Streamlined

Row Reducing Matrices

I am trying to keep these lessons as close to actual class room settings as possible.

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

Math 51, Homework-2. Section numbers are from the course textbook.

CHAPTER 9: Systems of Equations and Matrices

Chapter 4 Systems of Linear Equations; Matrices

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

3. Replace any row by the sum of that row and a constant multiple of any other row.

Matrix Solutions to Linear Equations

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

Matrix Factorization Reading: Lay 2.5

Math 1314 Week #14 Notes

3.4 Elementary Matrices and Matrix Inverse

UNIT 3 INTERSECTIONS OF LINES AND PLANES

Math 51, Homework-2 Solutions

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

Lectures on Linear Algebra for IT

Transcription:

Definition The process of solving a system of linear equations by converting the system to an augmented matrix is called Gaussian Elimination. The general strategy is as follows: Convert the system of linear equations into an augmented matrix. Perform various Elementary Row Operations on the augmented matrix until it is in a desirable form. Read off or write down the solution set. In solving a system of linear equations using Gaussian Elimination, we are free to convert back to a system of linear equations from any augmented matrix that arises during the elimination process. Crucial Fact: Any new system of equations that arises along the way has the same solution set as the original system of equations.

Definition Elementary Row operations: Interchange two rows: R i R j Multiple a row by a non-zero number: R j becomes λ R j, λ 0 Add a multiple of one row to another row: R i becomes R i + λ R j. Crucial Fact Revisited: Given a system of linear equations, the solution set does not change as we perform elementary row operations on the corresponding augmented matrix.

General Principle If at any stage in the process of Gaussian elimination, we arrive at an augmented matrix having a row of the form [0 0 0 0 δ], with δ 0, we may stop and conclude that the system has no solution. Otherwise, the system will have a unique solution or infinitely many solutions. Conversely, if the system has no solution, Gaussian elimination will always lead to a row of the form with δ 0. [0 0 0 0 δ],

General Principle continued ALTERNATELY: The system has a solution if and only if Gaussian elimination does NOT lead to a row of the form with δ 0. [0 0 0 0 δ], Such a system is said to be CONSISTENT.

Second General Principle If we have a consistent system of linear equations in n variables, then the system will have a unique solution if and only if we can put the augmented matrix into the form 1 0 1 0 0 1........, 0 0 0 1 0 0 0 0 0......... with n 1s down the main diagonal and zeros below. Important: In this case, the number of leading ones equals the number of variables.

Third Scenario If neither principle holds, the system has infinitely many solutions. For example, if the system leads to the augmented matrix [ ] 1 0 1 0 1 99.99 0 1 0 1 0 7 then there are infinitely many solution. So, if the original system had variables x, y, z, w, u, then the augmented matrix yields x = 99.99 z u and y = 7 w. Introducing the independent parameters t 1, t 2, t 3 to replace z, w, u respectively, the solution set would be {((99.9 t 1 t 3, 7 t 2, t 1, t 2, t 3 ) t i, t 2, t 3 R}.

Class Example Use Gaussian elimination to determine which system has infinitely many solutions and which system has no solution. 2x + 3y = 6 6x + 9y = 18 x + 4y = 9 6x + 24y = 40 Solution: For the first system we have [ ] 2 3 6 1 [ ] 2 R1 1 3 2 3 6 9 18 6 9 18 ] 0 0 0, [ 6 R 1+R 2 1 3 2 3 and thus the first system has infinitely many solutions. For the second system [ ] [ ] 1 4 9 6 R 1+R 2 1 4 9, 6 24 40 0 0 14 and thus the second system has no solution.

Class Example Describe the nature of the solutions to the systems of equations associated to the following matrices: 1 0 6 A = 0 1 7 1 2 3 4 1 7 1 0 1 0 0 0, B = 0 0 0 5, C = 0 0 0 1 3 4 5 6 7 0 0 0 0 0 0 0 0 Solution: The system represented by A has a unique solution, (6, 7). The system represented by B has no solution. The system represented by C has infinitely many solutions. The solution set is {(1 + 7t 1 t 2, t 1, t 2, 3) t 1, t 2 R}.

Reduced Row Echelon Form An augmented matrix associated to a system of linear equations is said to be in Reduced Row Echelon Form (RREF) if the following properties hold: 1 The first non-zero entry from the left in each non-zero row is 1, and is called the leading 1 for that row. 2 All entries in any column containing a leading 1 are zero, except the leading 1 itself. 3 Each leading 1 is to the right of the leading 1s in the rows above it. 4 All rows consisting entirely of zeros are at the bottom of the matrix. The following matrices are in RREF: 1 0 0 0 1 2 0 3 0 2 0 0 1 4 0 3 0 0 0 0 1 4, 0 1 0 0 0 0 1 0 3 0 0 1 0 0 0 0 1, 0 0 0 1 2. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Goal of Gaussian Elimination Put the augmented matrix associated to a system of linear equations into RREF and write down the solutions. 1 2 0 3 0 2 For the matrix 0 0 1 4 0 3 0 0 0 0 1 4, the solutions are: 0 0 0 0 0 0 x 1 = 2 2t 1 3t 2, x 2 = t 1, x 3 = 3 4t 2, x 4 = t 2, x 5 = 4, for all real numbers t 1, t 2. The second system has no solution. 0 0 1 0 3 The solutions to the system corresponding to 0 0 0 1 2 are: 0 0 0 0 0 x 1 = t 1, x 2 = t 2, x 3 = 3, x 4 = 2.

Definition Recalling that each column of the coefficient matrix corresponds to a variable in the system of equations, we call each variable associated to a leading 1 in the RREF a leading variable. A variable (if any) that is not a leading variable is called a nonleading variable or a free variable. Thus, if the original system of equations has n variables, then n equals the number of leading variables plus the number of free variables. Extremely Important Point. When describing the solution set, each free variable is replaced by an independent parameter. Thus, the number of independent parameters describing the solution set equals the number of free variables. Equivalently: The number of parameters describing the solution set to a system of m equations in n unknowns equals n minus the number of leading 1s in the RREF of the augmented matrix.

Example Solve the given system of equations by rendering the associated augmented matrix into RREF. x 1 2x 2 x 3 + 3x 4 = 1 2x 1 4x 2 + x 3 = 5 x 1 2x 2 + 2x 3 3x 4 = 4 1 2 1 3 1 1 2 1 3 1 2 4 1 0 5 2 R1+R2 0 0 3 6 3 1 R 1 2 2 3 4 1+R 3 0 0 3 6 3 1 2 1 3 1 1 2 0 1 2 0 0 1 2 1 3 R2+R3 0 0 1 2 1 1 R 0 0 3 6 3 2+R 1 0 0 0 0 0 1 3 R2 Note that x 1, x 3 are leading variables and x 2, x 4 are free variables.

Example continued Thus, using independent parameters t and s, we have x 1 = 2 + 2t s, x 2 = t, x 3 = 1 + 2s, x 4 = s. In terms of a solution set, we have {(2 + 2t s, t, 1 + 2s, t) s, t R}.

Algorithm for Gaussian elimination The following steps lead effectively to the RREF of the augmented matrix: 1 Find the first column from the left containing a non-zero entry, say a, and interchange the row containing a with the first row.in this first step, a will more often than not be in the first row, first column of the augmented matrix. 2 Divide R 1 by a, so that the leading entry of R 1 is now 1. 3 Subtract multiples of R 1 from the rows below R 1 so that every entry in the matrix below the 1 in R 1 is 0. 4 Excluding the first column, find the first column from the left containing a non-zero entry, say b, and interchange the row containing b with R 2. Now divide R 2 by b to get leading entry 1. 5 Use the leading 1 in R 2 to get 0s above and below it. 6 Continue in this fashion until arriving at the RREF. Comment: If at any point in the process above, one arrives at a row consisting entirely of 0s, such a row should be moved to the bottom of the matrix.

Class Example Solve the system by reducing the augmented matrix to RREF. x 1 + 3x 2 + x 3 = 1 x 1 2x 2 + x 3 = 1 3x 1 + 7x 2 x 3 = 1. 1 3 1 1 1 3 1 1 1 2 1 1 R1+R2 0 1 2 2 3 R 3 7 1 1 1+R 3 0 2 4 4 1 3 1 1 1 0 5 5 2 R 2+R 3 0 1 2 2 3 R2+R1 0 1 2 2. 0 0 0 0 0 0 0 0. Note, x 1, x 2 are leading variables and x 3 is a free variable. Thus, x 1 = 5 + 5t, x 2 = 2 2t, x 3 = t, for all t R.