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

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

Row Reduction and Echelon Forms

Lecture 2 Systems of Linear Equations and Matrices, Continued

Row Reduced Echelon Form

Lecture 3i Complex Systems of Equations (pages )

Methods for Solving Linear Systems Part 2

Chapter 1. Vectors, Matrices, and Linear Spaces

Notes on Row Reduction

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

Linear Equations in Linear Algebra

Lecture 1 Systems of Linear Equations and Matrices

10.3 Matrices and Systems Of

March 19 - Solving Linear Systems

Relationships Between Planes

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Number of solutions of a system

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

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

1 - Systems of Linear Equations

Linear Algebra Handout

Chapter 4. Solving Systems of Equations. Chapter 4

Sections 6.1 and 6.2: Systems of Linear Equations

Linear Algebra I Lecture 10

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

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

4 Elementary matrices, continued

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

9.1 - Systems of Linear Equations: Two Variables

CHAPTER 8: MATRICES and DETERMINANTS

Chapter 1: Linear Equations

Section Gaussian Elimination

Chapter 1: Linear Equations

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

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Linear Algebra I Lecture 8

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

Linear Equations in Linear Algebra

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

Section 6.3. Matrices and Systems of Equations

Homework Set #1 Solutions

Solving Linear Systems Using Gaussian Elimination

36 What is Linear Algebra?

MTH 2032 Semester II

(I.D) Solving Linear Systems via Row-Reduction

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

Matrices and RRE Form

1300 Linear Algebra and Vector Geometry

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

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

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

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

3 Fields, Elementary Matrices and Calculating Inverses

A linear equation in two variables is generally written as follows equation in three variables can be written as

Math 344 Lecture # Linear Systems

MTH 464: Computational Linear Algebra

Linear Methods (Math 211) - Lecture 2

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

MATH 54 - WORKSHEET 1 MONDAY 6/22

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Problem Sheet 1 with Solutions GRA 6035 Mathematics

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

Topic 14 Notes Jeremy Orloff

Math 1314 Week #14 Notes

Lecture 9: Elementary Matrices

MATH240: Linear Algebra Review for exam #1 6/10/2015 Page 1

3.4 Elementary Matrices and Matrix Inverse

MATH 310, REVIEW SHEET 2

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

Lecture 7: Introduction to linear systems

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

(Refer Slide Time: 1:02)

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

2 Systems of Linear Equations

Solutions of Linear system, vector and matrix equation

Math 54 HW 4 solutions

Name: Section Registered In:

And, even if it is square, we may not be able to use EROs to get to the identity matrix. Consider

Linear Algebra Practice Problems

1 System of linear equations

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

Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS

Multiplying matrices by diagonal matrices is faster than usual matrix multiplication.

Solving Linear Systems

Row Reduction

Lectures on Linear Algebra for IT

Introduction to Systems of Equations

For updated version of this document see LINEAR EQUATION. Chickens and Rabbits

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

a s 1.3 Matrix Multiplication. Know how to multiply two matrices and be able to write down the formula

Lecture 4: Gaussian Elimination and Homogeneous Equations

CHAPTER 9: Systems of Equations and Matrices

Lecture Notes: Solving Linear Systems with Gauss Elimination

Section 6.2 Larger Systems of Linear Equations

Homework 1.1 and 1.2 WITH SOLUTIONS

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

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

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.

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

Transcription:

January 9 Last Time 1. Last time we ended with saying that the following four systems are equivalent in the sense that we can move from one system to the other by a special move we discussed. (a) (b) (c) (d) 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 1. Which one of the above equations is quicker to solve? The second one, of course. Because you already know what y is, you can just plug it in the first equation and you have the x value. So, it is a reasonable thing to want to turn our system to that form. What do we do? We add the first equation to the second and replace the second equation with this. Then, we divide the second equation by 5. Easy. 2. If we understand how this worked, we can easily generalize this to more variables! It is easy to solve the system: 3y + z = 4 z = 1 if you start from the bottom. You start from the very bottom equation and when you go to the top you be like Started from the bottom now we here. If we do some manipulations as above, we see that this system and the following system have the same solution set: x + 5y + 4z = 10 2x + 4y + 7z = 13

and this has the same solution set with x + 5y + 4z = 10 3x + 9y + 11z = 23 If we are given this last system, we should want to go back to the first system and solve that. 3. Imagine you are a mathematician in the beginning of 20th century and you are solving a lot of equations of this form with 10, 15 variables. The amount of work is already huge when you deal with 4 or more variables. What do you do? One answer: You invent computers. Another answer: You invent a new way to write these equations so that you don t have to keep writing the x, y, z all the time! Since all we do is to add/multiply the coefficients in front of x, y, z I only need the coefficients. As long as I remind myself which number is a coefficient for which variable in which equation, I am okay! So, I will transform the last system above to 1 2 3 x 6 1 5 4 y = 10 3 9 11 z 23 This is just a notation! We have an array - or a matrix of numbers on the left of the equation that we manipulate with the operations we discussed above. However, we should be careful and note that when we perform the abovementioned operations on this matrix of coefficients, we also perform them on the array of numbers on the right of the equation. In order not to forget this, we will completely forget x, y, z and we will write 1 2 3 6 1 5 4 10 with an augmentation line and call it an augmented matrix. 4. Now, we know what we should be doing. Example. Solve the system x + 5y + 4z = 10 3x + 9y + 11z = 23 Solution. We start with putting the system to augmented form: 1 2 3 6 1 5 4 10 and we perform the row operations we discussed last time in order to reduce it to an equivalent

- but easier - form 1 5 4 10 R 2 R 1 R 2 0 3 1 4 R 3 3R 1 R 3 0 3 1 4 0 3 2 5 R 3 R 2 R 3 0 3 1 4 0 0 1 1 This augmented form corresponds to the system which can be solved easily to find or in other words the solution set is 3y + z = 4 z = 1 z = 1, y = 1, x = 1 1 1 1 5. Now, we will do all of this in a more general setting. We will start with introducing some vocabulary. Note that you should start getting comfortable with new vocabulary - in this course you will learn a lot of new words. You should get comfortable with them quickly -via practice- because each new word depends on the previous ones. 6. We say that an equation of the form a 1 x 1 + a 2 x 2 +... + a n x n = b where a 1,..., a n are (real) numbers is a linear equation in n variables. The numbers a 1,..., a n are called coefficients and the number b is called the constant term. 7. We say that 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 k1 x 1 + a k2 x 2 +... + a kn x n = b k is a system of linear equations with k equations and n unknowns/variables. The augmented matrix of this system is a 11 a 12... a 1n b 1 a 21 a 22... a 2n b 2....... a k1 a k2... a kn b k

8. When we are given such a system, as we discussed earlier our algorithm is to reduces it to an easier but equivalent system with the following elementary row operations: Interchange two rows (R i R j ). Multiply a row by a nonzero number k (kr i R i ). Add a multiple of one row to another (R i + kr j R i ). Note that you can always combine the last two and have the operation ar i +br j R i where a 0. 9. Important. When you apply these row operations, apply one operation at a time and always write down the exact operations at each step as we did in the previous example. Not only it minimizes the risk of a simple error, but also it allows you to check your work easily after you are done. Also, it is less work for the graders in the exams! 10. Every elementary row operation preserves the set of solutions to the system - we discussed this in a simpler case in the first lecture. 11. During this course, you should frequently stop, go back, and remember what we have been trying to do. We would like to solve systems of linear equations. We saw that we can apply some row operations in order to get an easier system without changing the solution set. What do we exactly mean by an easier system? If we would liket to teach our algorithm to a computer, where should it stop? 12. An augmented matrix is in Row Echelon Form - REF if all the following properties hold: (a) All rows consisting entirely of zeroes are at the bottom of the matrix. (b) The first nonzero entry from the left in each nonzero row is equal to 1. (c) Each leading 1 is to the right of the leading 1s above it. Exercise. Give several examples of augmented matrices which are in echelon form, which are not in echelon form. If in addition to the above properties, we have the fourth property (d) Each leading 1 is the only nonzero entry in its column. then we say that our matrix is in Reduced Row Echelon Form - RREF. As an exercise, give examples of matrices which are in REF but not in RREF. 13. Make sure that you understand why RREF is much more better than REF. Indeed, start with an augmented matrix which is in RREF and write down the corresponding system. What do you see? 14. Fact. Every augmented matrix has a unique RREF. (Note: REF doesn t have to be unique). 15. Well, then, our main purpose is to start with a system and converting it to its RREF. This will allow us to solve our system and also we can tell a computer to do it for us! How do we convert an augmented matrix to its RREF? Gaussian Algorithm. It is really a simple algorithm, here is the recipe: If the matrix is all zeroes: Stop.

Find the first column with a nonzero c entry and move the row containing c to the top row via interchanging two rows. Multiply that row with 1/c to get a leading 1. Use this leading one to clear its column. Now apply the algorithm to the matrix without the first row. 16. Now, we know how to solve linear equations. Note that this algorithm can be explained to a computer. 17. Our next goal is to understand how many solutions a system can have. We look at three examples. (a) y = 2 One can immediately see that (1, 2) is a solution and it is the only solution. For the sake of exercise, let us solve this equation by reducing to RREF. 1 1 1 R 1 R 2 R 1 1 0 1 0 1 2 0 1 2 and the system corresponding to this augmented matrix is x = 1 y = 2 and the solution set is {} 2 1 (b) 2x + 2y = 6 Again, one can immediately see that there is no solution to this system. Indeed, if, one must have 2x + 2y = 2 but this would mean 2 = 6 which is not true. But, let s find the RREF. 2 2 6 1 2 R 1 R 1 1 1 3 R 2 R 1 R 2 1 1 3 1 1 1 1 1 1 0 0 2 which gives us 0 x + 0 y = 2 that is 0 = 2 which is obviously wrong. So, we conclude there is no solution. But here, the last observation is very important. In our augmented matrix, we have 0 0 2 and this is the key point which shows no solutions.

(c) 2x + 2y = 2 Here, we see that the second equation is equal to two times the first equation. Hence, any solution for the first equation is also a solution for the second and vice versa. So, we don t have any information that we already don t know from the first equation. So, the only information about the solution set is given by the first equation and we know that there are infinitely many solutions to this equation, hence to this system. Let s see how the RREF looks like. [ 1 1 1 2 2 2 and the corresponding system is ] R 2 2R 1 R 2 1 1 1 0 0 0 0 = 0 We know that x = 1 y and for any choice of y, we get a different solution. Namely, (1 y, y). Hence, the solution set looks like { } 1 y : y R y So, the solution set is parametrized by one variable. There are infinitely many solutions. 18. Here are more words that you should add to your linear algebra vocabulary: We say that a system is inconsistent is there is no solution to the system. So, in b) we have an inconsistent system. We say that a system is consistent if it is not inconsistent: that is, if there is at least one solution. So, a) and c) are consistent systems. 19. Example. Solve the following system and determine if it is consistent or inconsistent. x + 3z = 4 y + 2z = 5 The augmented matrix for this system is [ 1 0 3 ] 4 0 1 2 5 and it is already in RREF. We see that y = 5 2z and x = 4 3z. So, we can describe the solution set as 4 3z 5 2z : z R z Notice that in this example for any value of z, we get an x and a y value depending on z. We can change z as we wish and this will change x and y. We have a name for it!

20. Suppose that a system is in RREF. If the column corresponding to a variable has a leading 1, then that variable is called a leading variable. If the column corresponding to a variable does not have a leading 1, then that variable is called a free variable. 21. The system in the previous examples has two leading variables: x and y. It has one free variable: z. You can see that we have a 1-dimensional set of solutions. We did not define this word yet, but it vaguely means the degree of freedom is 1. 22. Suppose that we have a consistent system. We know that there is at least one solution. We also know that there is either one solution or there are infinitely many solutions (Why?). However, in the case of infinitely many solutions, we have a different notion of magnitude as well. We might have different number of free variables/parameters. We might have different degrees of freedom. 23. The rank of a system is the number of leading variables. That is, the number of leading 1s in its REF (or RREF). 24. Notice that (a) The rank of a system can not be bigger than the number of variables. (This is obvious by definition). (b) The rank of a system can not be bigger than the number of equations. (This is not too obvious, but still easy to see if you spend some time by looking at RREF). (c) When the ranks is larger, the number of free variables is smaller. And vice versa. (d) Theorem. If a system of m equations in n variables is consistent and it (or its augmented matrix) has rank r, then i. The set of solutions has n r parameters. ii. If r < n, then it has infinitely many solutions. iii. If n = r, then it has a unique solution.