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

Similar documents
Solving Linear Systems Using Gaussian Elimination

Linear Equations in Linear Algebra

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Section Gaussian Elimination

Row Reduced Echelon Form

Row Reduction and Echelon Forms

0.0.1 Section 1.2: Row Reduction and Echelon Forms Echelon form (or row echelon form): 1. All nonzero rows are above any rows of all zeros.

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

Matrices, Row Reduction of Matrices

1111: Linear Algebra I

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

1 Last time: linear systems and row operations

Notes on Row Reduction

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

Chapter 4. Solving Systems of Equations. Chapter 4

Matrix Inverses. November 19, 2014

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

Section 1.2. Row Reduction and Echelon Forms

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Methods for Solving Linear Systems Part 2

Matrices and RRE Form

System of Linear Equations

Lecture 4: Gaussian Elimination and Homogeneous Equations

Lecture 7: Introduction to linear systems

Section 6.2 Larger Systems of Linear Equations

Exercise Sketch these lines and find their intersection.

March 19 - Solving Linear Systems

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Lectures on Linear Algebra for IT

3.4 Elementary Matrices and Matrix Inverse

Relationships Between Planes

22A-2 SUMMER 2014 LECTURE 5

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

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

Lecture 3i Complex Systems of Equations (pages )

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

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

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

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

Elimination Method Streamlined

Chapter 1. Vectors, Matrices, and Linear Spaces

Math 3C Lecture 20. John Douglas Moore

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

Solving Systems of Linear Equations

Sections 1.5, 1.7. Ma 322 Spring Ma 322. Jan 24-28

Math 2331 Linear Algebra

Last Time. x + 3y = 6 x + 2y = 1. x + 3y = 6 y = 1. 2x + 4y = 8 x 2y = 1. x + 3y = 6 2x y = 7. Lecture 2

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

Math 1314 Week #14 Notes

Section 6.3. Matrices and Systems of Equations

MATH 54 - WORKSHEET 1 MONDAY 6/22

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

4 Elementary matrices, continued

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

Announcements Wednesday, August 30

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

Linear Algebra I Lecture 10

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

4 Elementary matrices, continued

Linear Algebra I Lecture 8

Using matrices to represent linear systems

SOLVING Ax = b: GAUSS-JORDAN ELIMINATION [LARSON 1.2]

Sections 6.1 and 6.2: Systems of Linear Equations

Matrices and Systems of Equations

Sections 1.5, 1.7. Ma 322 Fall Ma 322. Sept

Section 1.1: Systems of Linear Equations

9.1 - Systems of Linear Equations: Two Variables

Linear Equations in Linear Algebra

36 What is Linear Algebra?

M 340L CS Homework Set 1

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

1111: Linear Algebra I

Announcements Wednesday, August 30

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Section 5.3 Systems of Linear Equations: Determinants

Dylan Zwick. Fall Ax=b. EAx=Eb. UxrrrEb

14: Hunting the Nullspace. Lecture

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

UNIT 3 INTERSECTIONS OF LINES AND PLANES

Lecture 2 Systems of Linear Equations and Matrices, Continued

Math 54 HW 4 solutions

MAC Module 1 Systems of Linear Equations and Matrices I

Linear Algebra Handout

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

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

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

CHAPTER 8: MATRICES and DETERMINANTS

Lecture No. # 07 Linear System Part 4

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

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

22m:033 Notes: 1.2 Row Reduction and Echelon Forms

Chapter 1: Linear Equations

Chapter 1: Systems of Linear Equations

Systems of Linear Equations

Math 344 Lecture # Linear Systems

Linear Equation: a 1 x 1 + a 2 x a n x n = b. x 1, x 2,..., x n : variables or unknowns

Chapter 1: Linear Equations

10.3 Matrices and Systems Of

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

Transcription:

Lecture 2e Row Echelon Form (pages 73-74) At the end of Lecture 2a I said that we would develop an algorithm for solving a system of linear equations, and now that we have our matrix notation, we can proceed with that plan. The first thing we are going to do is pay attention to our goal. In Lecture 2b we looked at the back-substitution procedure, which gave us some idea of where we would like to end up. But some idea isn t good enough for an algorithm, so we now define the following: Definition: A matrix is in row echelon form (REF) if (1) When all entries in a row are zeros, this row appears below all rows that contain a non-zero entry. (2) When two non-zero rows are compared, the first non-zero entry (called the leading entry), in the upper row is to the left of the leading entry in the lower row. Note that it follows from these properties that all entries in a column beneath a leading entry must be 0. Definition: The leading entry in a non-zero row of a matrix in reduced echelon form in known as a pivot. Example: The matrix is NOT in row echelon form, because when we compare the second and third rows, the leading entry in the second row is not to the left of the leading entry in the third row. We also note that there is a non-zero entry below the leading entry of the second row. But, if we interchange the second and third rows, we get R2 R 3 and the new matrix IS in row echelon form. 1

Example: The matrix [ 1 2 2 4 13 0 0 1 3 8 ] is in row echelon form. These examples are taken from Lecture 2b, to emphasize the connection between row echelon form, and the situation we had in Lecture 2b where the elimination steps had been completed and all that was left were the back-substitution steps. Using our new terminology for matrices, our first goal will be to row reduce our augmented matrix until it is in row echelon form, and then we will translate our matrix back into a system of equations and use back-substitution to solve the system. With our goal defined, we now begin the procedure for getting there. The textbook gives a description of how to get to row echelon form, and I shall provide my own description here, in the hopes that at least one of them will makes sense to you. Step 0 Is the matrix already in row echelon form? If yes, you re done! If not, continue to the next step. Step 1 Establish a pivot in the first row. To do this, we will identify the first COLUMN that contains a non-zero entry. (Usually this is the first column, but not always.) Let s call it Column A. Interchanging rows if necessary, make the entry in Column A of the first row non-zero. This will be the pivot for row 1. Then use elementary row operations of type (3) to make all of the entries in Column A below the first row equal to zero. (Because of the calculations involved in this step, you will find it convenient to have the pivot be 1. So when you are establishing a pivot in row 1 you might want to look for a row that has a 1 in Column A, or failing that you can look for a row whose entries are all a multiple of their entry in Column A, so that you can divide by that entry and get a 1 in Column A. This won t always be possible, however.) If the matrix is now in row echelon form, you re done. Otherwise, continue to the next step. Before we discuss Step 2, let s look at an example of Step 1: Example: Consider the matrix 5 11 27 5 4 8 Step 0: This matrix is not in row echelon form, since the leading entry in the 2

first row is not to the left of the leading entry in the second row. So we move on to... Step 1: The first column contains non-zero entries, so we will interchange rows to make the entry in the first column of the first row non-zero. Seeing that the first entry in row 3 is a 1, I will interchange row 1 and row 3, getting 5 11 27 5 4 8 R 1 R 3 5 11 27 5 4 8 Now I need to eliminate the 3 from the first column of the second row... 3() R 2 3R 1 3 6 15 3 0 3 5 11 27 5 4 8 5 11 27 5 4 8 and the 5 from the first column of the fourth row... 5() 5 10 25 5 0 5 5 11 27 5 4 8 5 11 27 5 4 8 R 4 5R 1 and the -1 from first column of the fifth row... R 5 + R 1 3

We have now established a pivot in row 1, but the resulting matrix is not in row echelon form, as the leading entry in the second row is not to the left of the leading entry in the third row. So we will move on to the next step. Step 2 Establish a pivot in the second row. From this point on we will ignore row 1. So, let Column B be the first column that has a non-zero entry in any row strictly below row 1. (Note that Column B will be to the right of Column A, since in Step 1 we made certain that every entry in Column A that is below row 1 was equal to 0.) Interchange rows if necessary to make the entry in column B of row 2 non-zero. As before, it is desirable to have this entry be a 1, since we will now proceed to use elementary row operations of type (3) to make every entry in Column B below row 2 equal to zero. If the matrix is now in row echelon form, you are done. Otherwise, move on to the next step. Example continued: Step 2: If we ignore row 1, we see that the first column with a non-zero entry is column 2. Row 2 already has a non-zero entry in column 2, and it is even a 1, so we do not need to interchange rows. Instead, we proceed to remove the 4 from row 3, the 1 from row 4, and the 3 from row 5. (I did these steps separately in Step 1, but this time I will do them all at the same time.) R 3 4R 2 R 4 R 2 R 5 3R 2 1() 0 1 2 0 2 5 0 0 0 0 5 20 4() 0 4 8 0 8 20 0 0 0 0 5 20 3() 0 3 6 0 6 15 At this point, we have eliminated many of our entries, but the resulting matrix is still not in row echelon form, as the leading entry in row 3 is not to the left of the leading entry in row 4. So we will move on to the next step. 4

Step i Establish a pivot in row i. Here is a generic description of a step. By the time you reach step i, you will have established a pivot in each of rows 1 to i 1. We may then ignore these rows. Let Column I be the first column that has a non-zero entry in a row below row i 1. Interchange rows if necessary to make the entry in Column I of row i non-zero. Then use elementary row operations of type (3) to make every entry in Column I below row i equal to zero. If the matrix is now in row echelon form, you are done. Otherwise, proceed to step i + 1. Example continued: Step 3: We now ignore row 1 and row 2, and we see that the first column with a non-zero entry in the remaining rows is column 5. Row 3 already has a non-zero entry in column 5, and we see that if we multiply row 3 by -1/5, we can get the leading entry to be a 1: 0 0 0 0 5 20 ( 1/5)R 3 To complete step 3, we simply need to eliminate the 2 from row 4: 2() 0 0 0 0 2 8 R 4 2R 3 This matrix is not in row echelon form, because row 4 is a row whose entries are all zeros, but it is above row 5, which is a row that contains non-zero entries. So we need to move on to Step 4, where we will establish a pivot in row 4. So, we notice that column 6 is the first (and only) column to contain a non-zero entry below row 3. We will interchange rows 4 and 5 to put a non-zero entry in column 6 of row 4: R4 R 5 5

We now have a matrix in row echelon form! More on this example: During this example, I was focused on the matrix as an object, and ignoring the system of linear equations that generated it. But if we look at row 4 of our REF matrix, we see that this comes from the equation 0 = 12. As this is never true, we know that our system of linear equations has no solutions. However, we first saw the equation 0 = 12 in Step 3 of our row reduction, before we reached row echelon form. It will be important to distinguish between the instruction Solve the system of linear equations and Obtain a row equivalent matrix in row echelon form. If our goal had been to solve the system, we could have stopped after step 3 and declared that there were no solutions. However, for this particular example, the goal was to put a matrix in row echelon form, so even after we saw that the corresponding system had no solutions, we needed to continue until we reached row echelon form. Notes on combining elementary row operations: When I did Step 1 in my example, I painstakingly made sure that every row operation was performed separately. But in Step 2 I saved myself a bit of time and space by performing three elementary row operations at the same time. I still wrote down the three calculations involved, but instead of changing the corresponding rows once per matrix, I jumped to the final matrix featuring three new rows. The rule to follow when deciding to do multiple operations at once is to make sure that you never change a row more than once, and you never use a row you are changing in an operation (3) for another row. So, for example, while I subtracted a (different) multiple of row 2 from three different rows in my Step 2, I did not alter row 2 at the same time. Other examples of things that would be fine would be to combine R 1 R 2 with R 3 R 4, but not R 1 R 2 with R 3 R 2, as the latter would lead to confusion as to which R 2 you were referring to. Similarly, we can combine 2R 1 with 2R 2, but not 2R 1 with R 2 + 2R 1, as this again leads to confusion as to which R 1 you are referring to. Note that we also do not want to combine steps 2R 2 with R 2 + 3R 1 into a step like 2R 2 + 3R 1. In this particular case, there wouldn t be any confusion, but later in the course it will be important to be able to single out our elementary row operations, and 2R 2 + 3R 1, though it does result in a row equivalent matrix, is not an elementary row operation. 6