Matrices, Row Reduction of Matrices

Similar documents
Section Gaussian Elimination

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

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

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

Notes on Row Reduction

Exercise Sketch these lines and find their intersection.

Matrix Factorization Reading: Lay 2.5

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

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Chapter 4. Solving Systems of Equations. Chapter 4

1 - Systems of Linear Equations

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

Methods for Solving Linear Systems Part 2

1 Last time: linear systems and row operations

Lecture 2 Systems of Linear Equations and Matrices, Continued

6.3. MULTIVARIABLE LINEAR SYSTEMS

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

Chapter 1. Linear Equations

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

Introduction to Systems of Equations

3 Fields, Elementary Matrices and Calculating Inverses

March 19 - Solving Linear Systems

2 Systems of Linear Equations

Solving Systems of Linear Equations Using Matrices

Linear Algebra I Lecture 8

Lecture 9: Elementary Matrices

Matrix Inverses. November 19, 2014

Math 1314 Week #14 Notes

Row Reducing Matrices

A Quick Introduction to Row Reduction

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

Topic 14 Notes Jeremy Orloff

Lecture 1 Systems of Linear Equations and Matrices

Lectures on Linear Algebra for IT

Lecture 4: Gaussian Elimination and Homogeneous Equations

1111: Linear Algebra I

Numerical Methods Lecture 2 Simultaneous Equations

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

Math 3C Lecture 20. John Douglas Moore

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

MATRIX DETERMINANTS. 1 Reminder Definition and components of a matrix

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

Linear Algebra for Beginners Open Doors to Great Careers. Richard Han

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

CHAPTER 9: Systems of Equations and Matrices

Linear Algebra, Summer 2011, pt. 2

Linear Equations in Linear Algebra

Gaussian elimination

Linear equations The first case of a linear equation you learn is in one variable, for instance:

Numerical Methods Lecture 2 Simultaneous Equations

Determinant: 3.3 Properties of Determinants

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

Linear Independence Reading: Lay 1.7

Matrices and Systems of Equations

x y = 1, 2x y + z = 2, and 3w + x + y + 2z = 0

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Connor Ahlbach Math 308 Notes

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

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

Matrix Solutions to Linear Equations

Matrices and Determinants

MAT2342 : Introduction to Applied Linear Algebra Mike Newman, fall Projections. introduction

CHAPTER 9: Systems of Equations and Matrices

INVERSE OF A MATRIX [2.2]

Math 138: Introduction to solving systems of equations with matrices. The Concept of Balance for Systems of Equations

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

Chapter 2 Linear Equations and Inequalities in One Variable

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

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

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

Chapter 5 Simplifying Formulas and Solving Equations

8.2 Systems of Linear Equations: Augmented Matrices

Elimination Method Streamlined

Section Matrices and Systems of Linear Eqns.

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Designing Information Devices and Systems I Spring 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

Solving Systems of Equations: A brief tutorial for

Chapter 2 Notes, Linear Algebra 5e Lay

Chapter 1. Vectors, Matrices, and Linear Spaces

Lesson 3. Inverse of Matrices by Determinants and Gauss-Jordan Method

Row Reduced Echelon Form

System of Linear Equations

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Mon Feb Matrix inverses, the elementary matrix approach overview of skipped section 2.5. Announcements: Warm-up Exercise:

Section 1.2. Row Reduction and Echelon Forms

Solving Equations with Addition and Subtraction

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

Solving Equations with Addition and Subtraction. Solving Equations with Addition and Subtraction. Solving Equations with Addition and Subtraction

CHAPTER 8: MATRICES and DETERMINANTS

A Primer on Solving Systems of Linear Equations

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

Matrices. A matrix is a method of writing a set of numbers using rows and columns. Cells in a matrix can be referenced in the form.

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

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

Systems of equation and matrices

Lecture Notes: Solving Linear Systems with Gauss Elimination

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Transcription:

Matrices, Row Reduction of Matrices October 9, 014 1 Row Reduction and Echelon Forms In the previous section, we saw a procedure for solving systems of equations It is simple in that it consists of only applying one of three operations on equations, and then rewriting the system with the result in place of one of the other equations However, when several variables are involved, this can be quite cumbersome Thus, we will now introduce a simplifying formalism which is particularly convenient for automating the computations involved (say, by using a computer) The fundamental concept we need is that of a matrix (plural: matrices) Simply put, a matrix is simply a collection of numbers, written in the form of a rectangle, usually written with either brackets or parentheses around them For example, the following are both matrices, and are in fact the same matrix, even though I have written them slightly differently: [ 5 1 ] 1 1 4 and ( 5 1 ) 1 1 4 Note that they have to be symmetrical in the following way: you cannot have more numbers in one line than in another line Aside from that, they can have as many lines as you want, and each line can contain as many numbers as you want Thus, the following are also perfectly valid matrices (though in this case they are not the same): 5 1 ( 1 1 4 5 1 0 0 0 0 1 and 1 1 4 10 10 5 0 0 1 )

Each number in a matrix is called an entry We refer to all the entries along any horizontal line as a row, and the entries along a vertical line are called a column If a matrix has m rows and n columns, we denote its size as m n Thus, the matrix 5 1 1 1 4 0 0 1 5 0 0 is a 4 3 matrix (not a 1 matrix ) Matrices and Systems of Linear Equations Now that we have introduced matrices, we would like to see how they make our life easier in solving systems of equations The idea is simple: to each system of equations, we can attach a matrix whose entries are simply the coefficients in the equations This leads us to the following definitions Definition 1 Given a system of equations, the coefficient matrix for the system is a matrix where each row is determined by one equation in the system, and each column corresponds to one of the variables present in the system, such that each entry is the corresponding coefficient for that equation and that variable This definition may sound complicated, but an example will show how simple it really is Example 1 The system of equations x 1 + x = x 1 x = 0 has the corresponding coefficient matrix 1 1 1 1 Example The system of equations x 1 + x x 3 = x 1 + x 3 = 0

has the corresponding coefficient matrix 1 1 0 1 Definition Given a system of equations, the augmented matrix for the system is the same as the coefficient matrix for the system, except that we add an extra column which corresponds to the right hand side of the equal signs in the system Example 3 The system of equations x 1 + x = x 1 x = 0 has the corresponding augmented matrix 1 1 0 Example 4 The system of equations x 1 + x x 3 = x 1 + x 3 = 0 has the corresponding augmented matrix 1 1 0 1 0 Often, the augmented matrix is written with a dashed vertical line in between the last two columns to indicated that the equal signs go in between the two numbers We will not do this here Solving Linear Systems with Matrices Recall that when we discussed solving systems in the previous lecture, we stated that any system can be solved by repeatedly applying the following three operations: 1 Multiplying or dividing an equation by a non-zero number Adding or subtracting two equations from each other 3

3 Switching two equations Each time we apply one of these operations, we obtain a new (but equivalent) system of equations, which will have its own corresponding coefficient and augmented matrices Thus, instead of discussing operations on an equation or equations, we can talk about operations on a row or rows of a matrix, and equivalent matrices It should (hopefully) be clear that the three operations we discussed for equations in a system correspond to the following operations on a matrix 1 Multiplying or dividing a row by a non-zero number Adding or subtracting two rows from each other 3 Switching two rows In the same way as for equations, we say that two matrices are equivalent if one can be obtained from the other simply by performing any combination of the three operations stated above Based on everything we have said so far, you may think that to use a matrix to solve a system, we will simply write the system as a matrix, and then proceed as we learned in the previous section This is mostly correct, except there are a few modifications we can make which will make the procedure more suited for automation (This class is meant for computer science students, after all) The procedure we will use goes by several names It is usually referred to as Gauss-Jordan elimination, named after Carl Friedrich Gauss (whom you may know of from the many other things he has done) and Wilhelm Jordan (who no one cares about) Another name for the algorithm is simply row reduction I will use the latter Before we describe the algorithm, more definitions Definition 3 The first non-zero entry in a row of a matrix (when read from left to right) is called the leading entry of the row Definition 4 We say that a matrix is in echelon form if: 1 All rows with only zeros are at the bottom Each leading entry in a row is to the right of the previous leading entry 4

3 Each entry below a leading entry is zero We say that a matrix is in reduced echelon form if it satisfies the additional properties 4 The leading entry in each row is 1 5 Each leading 1 is the only non-zero entry in its column Example 5 The following matrix is in echelon form 1 1 0 1 0, 0 0 3 3 while the following matrix is in reduced echelon form 1 0 0 0 1 0 0 0 0 1 3 We can now state the algorithm known as Gauss-Jordan elimination Step 1: Start with the first entry in the first row If it is 0, switch rows so it is non-zero Once it is non-zero, we call it the first pivot Step : Use the row with the pivot to put zeros in all entries below the pivot by using combinations of the three allowed row operations on each row Step 3: Go down one entry, right one entry If this entry is zero, switch with a row below it to make it non-zero Once it is not zero, this is your new pivot If you cannot make it non-zero, go right one entry and try again Keep going like this until you find a non-zero entry to be your new pivot Step 4: Repeat steps and 3 until you reach the last row Step 5: Beginning with the last pivot, create zeros in each entry above the pivot Divide each row by an appropriate number to make each leading entry 1 Example 6 Put the matrix in reduced echelon form [ 1 1 ] 1 1 0 5

Solution: We make the first pivot the leading 1 in the first row Then, we put zeros in the entry below the pivot by performing the following computation: R 1 1 0 R 1 0 We can divide the new R by - to get 1 in the leading entry: 1 0 R 0 1 1 Since we are in the last row, we can use the last pivot to put zeros in the previous rows: 1 0 1 R 0 1 1 1 R 0 1 1 This matrix is in reduced echelon form Example 7 Put the matrix 1 1 4 in reduced echelon form Solution: Since we have a 1 in the top left, we use it as the first pivot Then, the next step is to use that pivot to put zeros below the pivot Since the last row has a zero already, we only need to get rid of the in the second row: 4 R R 1 0 0 0 Next, we go down one, right one from the first pivot, which gives us the zero in the middle of the second row Since we do not want a zero there, we switch with row 3: 0 0 0 Switch R and R 3 0 0 0 6

Since we now have a 1 in the leading entry, we can go down one, right one entry But you can see that there is no way to put a 1 in that entry So we can go to Step 5, returning to the last pivot, which is in the second row, and using that to put zeros in the entries above it: R 1 R 0 0 0 This matrix is in reduced echelon form 1 0 3 0 0 0 7