Lecture 2 Systems of Linear Equations and Matrices, Continued

Similar documents
Lecture 1 Systems of Linear Equations and Matrices

Methods for Solving Linear Systems Part 2

Solutions of Linear system, vector and matrix equation

Linear Algebra I Lecture 10

Chapter 1. Vectors, Matrices, and Linear Spaces

Solving Systems of Linear Equations Using Matrices

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

is Use at most six elementary row operations. (Partial

Linear Algebra I Lecture 8

Chapter 4. Solving Systems of Equations. Chapter 4

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

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

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

4 Elementary matrices, continued

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

Number of solutions of a system

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

4 Elementary matrices, continued

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

9.1 - Systems of Linear Equations: Two Variables

1 Last time: linear systems and row operations

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

Row Reduced Echelon Form

Notes on Row Reduction

Row Reduction and Echelon Forms

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

1 - Systems of Linear Equations

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

Matrices and RRE Form

Math x + 3y 5z = 14 3x 2y + 3z = 17 4x + 3y 2z = 1

Linear Algebra Handout

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

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

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

7.6 The Inverse of a Square Matrix

Matrices and systems of linear equations

Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS

Linear System Equations

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

Section Gaussian Elimination

1 Last time: inverses

Chapter 3. Linear Equations. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 1 / 33

Math 3C Lecture 20. John Douglas Moore

Lectures on Linear Algebra for IT

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

MAC Module 1 Systems of Linear Equations and Matrices I

Linear Methods (Math 211) - Lecture 2

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

Math 344 Lecture # Linear Systems

Linear Algebra Practice Problems

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

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

Math 1314 Week #14 Notes

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

March 19 - Solving Linear Systems

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

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

18.06 Problem Set 3 - Solutions Due Wednesday, 26 September 2007 at 4 pm in

Math 54 HW 4 solutions

Math 1314 College Algebra 7.6 Solving Systems with Gaussian Elimination (Gauss-Jordan Elimination)

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Math 2331 Linear Algebra

System of Linear Equations

Chapter 1: Linear Equations

CHAPTER 9: Systems of Equations and Matrices

Ma 322 Spring Ma 322. Jan 18, 20

Chapter 1: Linear Equations

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

The Gauss-Jordan Elimination Algorithm

3x + 2y 2z w = 3 x + y + z + 2w = 5 3y 3z 3w = 0. 2x + y z = 0 x + 2y + 4z = 3 2y + 6z = 4. 5x + 6y + 2z = 28 4x + 4y + z = 20 2x + 3y + z = 13

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

b for the linear system x 1 + x 2 + a 2 x 3 = a x 1 + x 3 = 3 x 1 + x 2 + 9x 3 = 3 ] 1 1 a 2 a

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

CHAPTER 9: Systems of Equations and Matrices

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

Exercise Sketch these lines and find their intersection.

Solving Linear Systems Using Gaussian Elimination

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

MIDTERM 1 - SOLUTIONS

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

Lecture Notes: Solving Linear Systems with Gauss Elimination

INVERSE OF A MATRIX [2.2]

Final Exam Practice Problems Answers Math 24 Winter 2012

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

Sections 6.1 and 6.2: Systems of Linear Equations

Solving Systems of Linear Equations

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:

1111: Linear Algebra I

Lecture 21: 5.6 Rank and Nullity

ORIE 6300 Mathematical Programming I August 25, Recitation 1

System of Linear Equations

3 Fields, Elementary Matrices and Calculating Inverses

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

1111: Linear Algebra I

Lecture 03. Math 22 Summer 2017 Section 2 June 26, 2017

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

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics. The Basics of Linear Algebra

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

Transcription:

Lecture 2 Systems of Linear Equations and Matrices, Continued Math 19620 Outline of Lecture Algorithm for putting a matrix in row reduced echelon form - i.e. Gauss-Jordan Elimination Number of Solutions Rotation Matrices Matrix Algebra Gauss-Jordan Elimination Theorem. For any matrix A, there exists a unique matrix rref(a) which is obtained from A by a sequence of elementary row operations, and is in row reduced echelon form. I will explain the algorithm to find rref(a) given A. Let A be an m n matrix. The algorithm to put a matrix in row reduced echelon form goes column by column. We say that we have reduced to the j th column, if when we remove the (j +1) st through the n th columns, the matrix is row-reduced. For example, the following matrix is reduced to the 4th column: B = 0 0 0 0 0 2 0 0 0 0 3 6 Note that B is NOT row reduced - the fifth and sixth columns must be finished. We suppose that we have reduced to the j th th column - we will now reduce to the (j + 1) st column. Note that if j = 0, this means that we have just started the algorithm, and we are trying to reduce the first column. 1

The most recent leading 1 is the leading 1 in the first j columns furthest to the right. Let i be the row it occurs in. In our example, i = 3. The first step is to look at column j + 1, strictly below row i. If every entry there is zero, we are done with this column, and column j + 1 corresponds to a free variable. Otherwise, let row k be the highest row which is strictly below row j and has nonzero entry c in column i + 1. If all entries are zero, we are in fact finished (and that column corresponds to a free variable). In our example, k = 6 and c = 3 - since the only rows below row 3 are 4, 5, and 6, and in rows 4 and 5, column 5 has a zero entry. Thus k = 6, and the entry at row 5 column 5 is c = 3. Apply the three following elementary row operations: First, swap rows i + 1 and k. Our example is now: 0 0 0 0 3 6 Second, divide row i + 1 by c (entry (i + 1, j + 1) will be a leading 1). Our example becomes: 0 0 0 0 1 2 Add multiples of row i + 1 to all other rows to clear column j + 1 except for the leading 1. In our example, we will add row 4 to row 3, and subtract twice row 4 from row 2: 0 0 1 0 0 12 0 0 0 1 0 4 0 0 0 0 1 2 To finish this example, we have to reduce to column 6. The final answer will be 1 2 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 2

Back to Systems of Linear Equations Consider the system y + 2z = 3 x + 2z = 14 x + y = 11 Last class, we learned how to write this system as 0 1 2 1 0 2 x y = 3 14 1 1 0 z 11 This equation is also written in augmented form: 0 1 2 3 1 0 2 14 1 1 0 11 This form is even more compact, but you can forget that you are working with an equation. However, in this form, it can be easier to remember that you must apply the row operations to both the coefficient matrix A and the constant vector b. Let s apply Gauss-Jordan elimination to this matrix. Final answer: 1 0 2 x 0 0 1 2 y = 0 0 0 0 z 1 Thus we have no solutions. The system is inconsistent. The Number of Solutions to a System There are three possibili- How many solutions exist for any given system of linear equations? ties: Infinitely many solutions One unique solution. No solutions. In fact, we can read off the behavior of the solutions from the rref: Consider the following examples: 1 2 0 0 a) 0 0 1 0 0 0 0 1 0 0 0 0 3

b) 1 2 0 1 0 0 1 2 0 0 0 0 c) 1 0 0 1 0 1 0 2 0 0 1 3 These augmented matrices are all in RREF, so it should be easy to determine the solutions. The examples correspond to the systems... thus a) has no solutions, b) has infinitely many solutions, and c) has a unique solution. Definitions A system of linear equations is consistent if it has at least one solution. Otherwise, it is inconsistent. The rank rank(a) of a matrix A is the number of leading 1 s in rrefa Theorem 1.3.1 of the book: Suppose A x = b is a system of linear equations, with m equations and n variables. (That is, A has m rows and n columns.) This system is inconsistent if and only if rref(a b) contains the row [ 0 0 0 1 ]. If a linear system is consistent, then it either has a unique solution, or it has infinitely many. We have rank(a) m and rank(a) n. If rank(a) = n, then the system is consistent. If rank(a) = m, then the system has at most one solution. If rank(a) < m, then the system has either infinitely many solutions, or none. Operations and Properties of Matrices and Vectors Notation: R n, standard unit vectors e i Sum, scaling of vectors Magnitude of a vector, unit vector Dot product of vectors A linear combination of vectors sums of matrices ( ) ( ) 1 2 3 7 3 1 + = 4 5 6 5 3 1 ( 8 5 ) 4 9 8 5 scalar multiple 3 ( 2 ) 1 1 3 A x (dot product with rows, linear combination of columns) 4

The columns of A give A applied to standard unit vectors. linearity of x Ax A function from F : R n R m is a rule which to each x 1 x 2 x =. Rn x n associates a unique vector F ( x) R m. A linear function is a function which satisfies: F ( x + y) = F ( x) + F ( y) for all vectors x, y R n F (c x) = c F ( x) for all scalars c and vectors x R n. Important Fact: every linear function F : R n R m can be represented by the action of a matrix A. That is, F ( x) = A x for all x. The columns of this matrix A are given by F ( e i ). Rotation Matrix Fix an angle θ. Consider the rule which associates to a vector v R 2 to R θ v which is obtained by rotating it by an angle θ. I claim that this is linear. Why? Check scaling and addition. Thus, it is represented by a matrix A θ. What is it? Reflections 5