Solving Consistent Linear Systems

Similar documents
Matrix Operations: Determinant

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

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

MATH 2360 REVIEW PROBLEMS

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Chapter 4. Solving Systems of Equations. Chapter 4

MODEL ANSWERS TO THE FIRST QUIZ. 1. (18pts) (i) Give the definition of a m n matrix. A m n matrix with entries in a field F is a function

Math 4377/6308 Advanced Linear Algebra

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

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

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

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

4 Elementary matrices, continued

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

3.4 Elementary Matrices and Matrix Inverse

22A-2 SUMMER 2014 LECTURE 5

y b where U. matrix inverse A 1 ( L. 1 U 1. L 1 U 13 U 23 U 33 U 13 2 U 12 1

Math 344 Lecture # Linear Systems

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

Study Guide for Linear Algebra Exam 2

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

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

18.06 Problem Set 3 Due Wednesday, 27 February 2008 at 4 pm in

Lecture 9: Elementary Matrices

Solutions to Exam I MATH 304, section 6

Math 2331 Linear Algebra

This MUST hold matrix multiplication satisfies the distributive property.

Solution Set 3, Fall '12

4 Elementary matrices, continued

MATH 54 - WORKSHEET 1 MONDAY 6/22

REPLACE ONE ROW BY ADDING THE SCALAR MULTIPLE OF ANOTHER ROW

MODEL ANSWERS TO THE THIRD HOMEWORK

1 Last time: linear systems and row operations

POLI270 - Linear Algebra

Conceptual Questions for Review

Row Reducing Matrices

THE NULLSPACE OF A: SOLVING AX = 0 3.2

2.1 Gaussian Elimination

Matrices and systems of linear equations

Department of Aerospace Engineering AE602 Mathematics for Aerospace Engineers Assignment No. 4

Solving Linear Systems Using Gaussian Elimination

Linear Algebra I Lecture 8

pset3-sol September 7, 2017

Matrices. Ellen Kulinsky

is Use at most six elementary row operations. (Partial

Linear Equations in Linear Algebra

Math Final December 2006 C. Robinson

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

Elementary Linear Algebra

Linear Algebra Math 221

2. Every linear system with the same number of equations as unknowns has a unique solution.

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

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

Relationships Between Planes

Lecture 2 Systems of Linear Equations and Matrices, Continued

E k E k 1 E 2 E 1 A = B

Matrix Solutions to Linear Equations

Math 313 Chapter 1 Review

Name: MATH 3195 :: Fall 2011 :: Exam 2. No document, no calculator, 1h00. Explanations and justifications are expected for full credit.

System of Linear Equations

Notes on Row Reduction

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

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

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

Linear Algebra 1 Exam 1 Solutions 6/12/3

Matrices. Ellen Kulinsky

Lecture 22: Section 4.7

Introduction to Mathematical Programming

Solving Systems of Linear Equations

Chapter 1. Vectors, Matrices, and Linear Spaces

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

System of Linear Equations

30.3. LU Decomposition. Introduction. Prerequisites. Learning Outcomes

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

Linear Algebra Linear Algebra : Matrix decompositions Monday, February 11th Math 365 Week #4

Linear Algebra I Lecture 10

MATH 3511 Lecture 1. Solving Linear Systems 1

Chapter 1: Systems of Linear Equations and Matrices

Section Gaussian Elimination

Solving Linear Systems Using Gaussian Elimination. How can we solve

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

1 Last time: determinants

CHAPTER 8: Matrices and Determinants

MTH 464: Computational Linear Algebra

Linear independence, span, basis, dimension - and their connection with linear systems

Announcements Monday, October 29

Eigenvalues and Eigenvectors

Math 3C Lecture 20. John Douglas Moore

Lecture 1 Systems of Linear Equations and Matrices

Topic 14 Notes Jeremy Orloff

Matrix Factorization Reading: Lay 2.5

Math 54 HW 4 solutions

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

Question 7. Consider a linear system A x = b with 4 unknown. x = [x 1, x 2, x 3, x 4 ] T. The augmented

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

Linear algebra I Homework #1 due Thursday, Oct Show that the diagonals of a square are orthogonal to one another.

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

SOLVING LINEAR SYSTEMS

Transcription:

Solving Consistent Linear Systems

Matrix Notation An augmented matrix of a system consists of the coefficient matrix with an added column containing the constants from the right sides of the equations. For the given system of equations, 2 2 5 8 9 8 9 is called the augmented matrix of the system.

Augmented matrix Augmented matrix is a matrix obtained by appending the columns of two given matrices. In the case of Ax = b, we are interested to work with the augmented matrix A b Example: If A = 2 3 2 and b = Note 2 3 2 and 2 are different. then A b is 2 3 2 cannot be augmented, since their number of rows 3

Elimination Elimination is a systematic way to solve linear equations. Example: x 2x 2 = 3x + 2x 2 = 2 3 2 We can remove the factor of x in the second equation by subtracting three times of the first equation from the second equation. 3x + 2x 2 3 x 2x 2 = 3() 8x 2 = 8 As shown above, the second equation becomes 8x 2 = 8, and independent ofx. Therefore, we are left with: x 2x 2 = 8x 2 = 8 From the new second equation we get x 2 =. 2 8 x x 2 = x x 2 = 8 By back-substituting the value of x 2 = in the first equation, it becomes x 2 =. So, we can find x = 3 as well.

Elimination Elimination can be done on augmented matrix, to help solving matrix equations. The elimination process is also called row reduction. Example: 2 x 3 2 y = Construct the augmented matrix: 2 3 2 Subtract three times of first row from the second row. 2 3 3() 2 3( 2) 3() = 2 8 8 Now, if we convert the augmented matrix back to matrix equation form we have: 2 x 8 y = 8 A becomes an upper-triangular matrix. We can easily find y and then x, by back-substitution. 5

Row operations Within the process of elimination, the following operations are valid:. One row is replaced by a linear combination of that row with another row. a b c d a b c + γa d + γb, γεr 2. A row is replaced by a scaled version of the same row. a b c d a b γc γd, γεr 3. Two rows are exchanged. a b c d c d a b 6

Row operations The goal is to do the row reduction on the augmented matrix to reach to upper-triangular matrix, and solve the equation by back-substitution. Order the equations such that the main diagonal coefficients are nonzero. 2. -Use the first equation to eliminate the first variable from all the equations (rows) bellow it. - Use the second equation to eliminate the second variable from all the equations (rows) bellow. - And so on 3. If any diagonal element become zero, swap that equation (row) with any other equation below it.

Elimination procedure Example: Do the row reduction on the following linear equations to reach to upper-triangular matrix, and solve the equation by back-substitution. x 2x 2 + x 3 = 2x 2 8x 3 = 8 x + 5x 2 + 9x 3 = 9 The equivalent matrix equation is: 2 2 8 5 9 x x 2 x 3 = 8 9 The augmented matrix becomes: 2 2 5 8 8 9 9 8

Elimination procedure Example Cont d The first element in the second row is already. If we replace -times of the first row plus the third row, the first element of the third row becomes. (r 3 r + r 3 ) 2 2 2 8 8 = 2 8 8 + () 5 + ( 2) 9 + () 9 + () 3 3 9 Now all the elements below the first diagonal element become. We continue elimination in the second column by adding 3 of the second to the third 2 row. (r 3 3 r 2 2 + r 3 ) 2 2 2 8 8 = 3 + 3 (2) 3 + 3 ( 8) 9 + 3 2 8 8. (8) 2 2 2 3 The final result is called the Echelon form of the matrix (definition later) 9

Echelon vs. reduced echelon form

Echelon vs. reduced echelon form The following matrices are in echelon form: 2 2 2 8 8, 2 8 8 3 The following matrices are in reduced echelon form 29 5 6, 2 6 3

Elimination procedure Contd. Continuing with the earlier example: We can compute the solution from Echelon form using back substitution, or continue with the row reduction to create what is called the reduced echelon form. Solving using back substitution Converting back the augmented matrix to equation form we have: x 2x 2 + x 3 = 2x 2 8x 3 = 8 x 3 = 3 We have x 3 = 3. Back-substitute x 3 = 3 in the second equation 2x 2 2 = 8, so x 2 = 6. Back-substitute x 3 = 3 and x 2 = 6 in the first equation x 32 + 3 =, so x = 29. We found the matrix equation has one solution which is 29 6 3. 2

Elimination procedure Solving using reduced echelon form from the last example. 2 2 8 8 3 We should make the all elements above and below the leading non-zero element (aka pivot) in each row zero. Add 8-times of the third row to the second row and replace the second row with the result. (r 2 8r 3 + r 2 ) 2 2 2 8 + 8() 8 + 8(3) = 2 32 3 3 Now subtract the third row from the first row and replace the first row with the result. (r r 3 r ) 2 2 () (3) 32 3 = 2 2 3 32 3. 3

Elimination procedure Example Cont d We are done with the third column, so we should make the element above the diagonal element in the second column become. Add the second row with the first row and replace the first row with result. (r r 2 + r ) 2 + (2) 3 + (32) 29 2 32 = 2 32 3 3 Divide the second row by 2, in order to make diagonals all. 29 2 32 = 2 2 29 6 3 3 We have found the reduced echelon form of the augmented matrix, and it directly gives the solution that we found earlier.

Pivots of a matrix First non-zero element in each row of the echelon form of A is a pivot. Note that in augmented matrices pivots must be belong to A and NOT b. Each column of A has at most one pivot. The columns of A that has a pivot are called pivot columns. Example: A = 2 2 Pivot Columns, B = 2 2 5 The boxed elements are pivots. Pivot Columns 5

Rank of matrix Number of pivots in a matrix is the rank of that matrix. Example: A = 2 2, Rank A = 3, B = 2 2 5, Rank B = 2 A square n n matrix is full rank if rank of the matrix is n. If the rank of square matrix is not n the matrix is rank deficient. Full rank square matrices are invertible (has inverse), where rank deficient matrices are NOT invertible. 6

Pivots and rank Example: Find the pivots and rank of the matrix in the following augmented matrix: 2 3 2 3 5 3 3 9 We do the row reduction procedure until we get echelon form of the matrix. Since the first row begins with a and we cannot make other elements of the first column zero by adding multiples of zero to them, we exchange the first row with the last row. 2 3 2 3 5 3 3 9 9 7 2 2 3 3 9 7 5 9 3 3 7 9 7

Pivots and rank Example cont d: Then making elements below the pivot element of the first row (in the first column). 5 9 7 5 9 7 2 3 2 2 2 3 3 2 3 3 5 3 9 3 9 3 Now making the elements below the pivot element of the second row. 5 9 7 5 9 7 2 2 5 5 5 3 9 3 9 We got an all-zero row in the third row. We exchange this row with the last row. 2 3 5 9 7 9 2 3 5 9 7 9 5 9 5 7 5 9 8

Pivots and rank Example cont d: We continue making elements below the second row pivot. 5 9 7 5 9 7 2 2 3 9 5 All elements below the pivot element of the third row is already, and the fourth row does not have any pivot element. So we have now the echelon form of the original matrix. The pivots are shown in red, and rank of matrix is 3. The first, second, and forth column of matrix A, which have pivot elements are pivot columns. 5 9 7 2 5 9

Free variables The elements of x that are multiplied by non-pivot columns are free variables. Example: Find free variables in previous example. In previous example the augmented matrix reduced to its echelon form and we found three pivots. We re-write it in matrix equation form: 5 9 7 5 9 x 7 2 2 x 2 5 5 x = 3 x Re-write the above augmented matrix in the form of vector equation: 5 9 7 x + x 2 2 +x 3 + x = 5 x 3 is a free variable since it is multiplying in the non-pivot column. 2

Free and basic variables The x i s that are scale factors of non-pivot columns are free variables. The x i s that are scale factors of pivot columns are basic variables. Example: In previous example x, x 2, and x are basic variables, while x 3 is free variable. If matrix m n matrix A has rank of r, then A has r pivot columns and n r non-pivot columns. In Ax = b, the solution, if it exists, has r basic and n r free variables. 2 5 9 5 7 2 5 9 5 x x 2 x 3 x = 7 2