Elementary operation matrices: row addition

Similar documents
Chapter 2 Subspaces of R n and Their Dimensions

Math 54 HW 4 solutions

Inverses and Elementary Matrices

Solutions to Exam I MATH 304, section 6

Lecture 2 Systems of Linear Equations and Matrices, Continued

x y + z = 3 2y z = 1 4x + y = 0

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

3.4 Elementary Matrices and Matrix Inverse

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

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

February 20 Math 3260 sec. 56 Spring 2018

ORIE 6300 Mathematical Programming I August 25, Recitation 1

Chapter 8: Linear Algebraic Equations

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

4. Matrix inverses. left and right inverse. linear independence. nonsingular matrices. matrices with linearly independent columns

MTH 102A - Linear Algebra II Semester

P = 1 F m(p ) = IP = P I = f(i) = QI = IQ = 1 F m(p ) = Q, so we are done.

Math 2940: Prelim 1 Practice Solutions

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

4.9 The Rank-Nullity Theorem

MATH 167: APPLIED LINEAR ALGEBRA Chapter 2

Matrix operations Linear Algebra with Computer Science Application

1. What is the determinant of the following matrix? a 1 a 2 4a 3 2a 2 b 1 b 2 4b 3 2b c 1. = 4, then det

Elementary Linear Algebra Review for Exam 2 Exam is Monday, November 16th.

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

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

Notes on Row Reduction

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices

Lecture 1 Systems of Linear Equations and Matrices

INVERSE OF A MATRIX [2.2]

Math 414 Lecture 1. Reading assignment: Text: Pages 1-29 and Scilab Users Guide: Sections 1-3.

Linear Algebra 1 Exam 2 Solutions 7/14/3

Solution Set 3, Fall '12

This lecture is a review for the exam. The majority of the exam is on what we ve learned about rectangular matrices.

Review Solutions for Exam 1

Review Let A, B, and C be matrices of the same size, and let r and s be scalars. Then

THE NULLSPACE OF A: SOLVING AX = 0 3.2

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

Chapter 1. Matrix Algebra

Chapter 1. Linear equations

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

Section 3.3. Matrix Rank and the Inverse of a Full Rank Matrix

MATH 2360 REVIEW PROBLEMS

1300 Linear Algebra and Vector Geometry

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

Linear Equations in Linear Algebra

Linear Algebra and Matrix Inversion

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Properties of Transformations

Review : Powers of a matrix

3.2 Subspace. Definition: If S is a non-empty subset of a vector space V, and S satisfies the following conditions: (i).

Determinants Chapter 3 of Lay

1 Positive definiteness and semidefiniteness

Math 403 Linear Algebra

Example. Addition, subtraction, and multiplication in Z are binary operations; division in Z is not ( Z).

Chapter 2: Matrix Algebra

Math 33A Discussion Notes

Chapter 2. Matrix Arithmetic. Chapter 2

Math 370 Spring 2016 Sample Midterm with Solutions

MATH SOLUTIONS TO PRACTICE PROBLEMS - MIDTERM I. 1. We carry out row reduction. We begin with the row operations

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

DM559 Linear and Integer Programming. Lecture 6 Rank and Range. Marco Chiarandini

Chapter 8 Linear Algebraic Equations

Math 344 Lecture # Linear Systems

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

Miderm II Solutions To find the inverse we row-reduce the augumented matrix [I A]. In our case, we row reduce

Math 353, Practice Midterm 1

Math Matrix Theory - Spring 2012

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

ELEMENTARY LINEAR ALGEBRA

Matrices and systems of linear equations

SSEA Math 51 Track Final Exam August 30, Problem Total Points Score

Solutions to Math 51 First Exam October 13, 2015

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

j=1 u 1jv 1j. 1/ 2 Lemma 1. An orthogonal set of vectors must be linearly independent.

Math 314H EXAM I. 1. (28 points) The row reduced echelon form of the augmented matrix for the system. is the matrix

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

Inverses. Stephen Boyd. EE103 Stanford University. October 28, 2017

ELEMENTARY LINEAR ALGEBRA

is Use at most six elementary row operations. (Partial

S09 MTH 371 Linear Algebra NEW PRACTICE QUIZ 4, SOLUTIONS Prof. G.Todorov February 15, 2009 Please, justify your answers.

Rank and Nullity. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

Math 343 Midterm I Fall 2006 sections 002 and 003 Instructor: Scott Glasgow

LECTURE 6: VECTOR SPACES II (CHAPTER 3 IN THE BOOK)

Chapter 1 Vector Spaces

New concepts: rank-nullity theorem Inverse matrix Gauss-Jordan algorithm to nd inverse

GROUPS. Chapter-1 EXAMPLES 1.1. INTRODUCTION 1.2. BINARY OPERATION

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

Chapter 5: Matrices. Daniel Chan. Semester UNSW. Daniel Chan (UNSW) Chapter 5: Matrices Semester / 33

Mathematics I. Exercises with solutions. 1 Linear Algebra. Vectors and Matrices Let , C = , B = A = Determine the following matrices:

A matrix over a field F is a rectangular array of elements from F. The symbol

Linear Maps, Matrices and Linear Sytems

1 Last time: determinants

Miscellaneous Results, Solving Equations, and Generalized Inverses. opyright c 2012 Dan Nettleton (Iowa State University) Statistics / 51

Lecture 18: Section 4.3

EE5120 Linear Algebra: Tutorial 1, July-Dec Solve the following sets of linear equations using Gaussian elimination (a)

There are six more problems on the next two pages

MAT 2037 LINEAR ALGEBRA I web:

Systems of Linear Equations and Matrices

2/27/2018 FIRST HOURLY PRACTICE 9 Math 21b, Spring Name:

Transcription:

Elementary operation matrices: row addition For t a, let A (n,t,a) be the n n matrix such that { A (n,t,a) 1 if r = c, or if r = t and c = a r,c = 0 otherwise A (n,t,a) = I + e t e T a Example: A (5,2,4) = 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1

Elementary operation matrices: row addition For t a, let A (n,t,a) be the n n matrix such that { A (n,t,a) 1 if r = c, or if r = t and c = a r,c = 0 otherwise A (n,t,a) = I + e t e T a Lemma If B is an n m matrix, then A (n,t,a) B is obtained from B by the adding a-th row to the t-th row.

Elementary operation matrices: multiplying a row For real number α 0, let M (n,k,α) be the n n matrix such that 1 if r = c k M (n,k,α) r,c = α if r = c = k 0 otherwise M (n,k,α) = I + (α 1)e k e T k Example: M (5,2,4) = 1 0 0 0 0 0 4 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1

Elementary operation matrices: multiplying a row For real number α 0, let M (n,k,α) be the n n matrix such that 1 if r = c k M (n,k,α) r,c = α if r = c = k 0 otherwise M (n,k,α) = I + (α 1)e k e T k Lemma If B is an n m matrix, then M (n,k,α) B is obtained from B by multiplying the k-th row by α.

Elementary operation matrices: exchanging rows For r 1 r 2, let T (n,r 1,r 2 ) be the n n matrix such that 1 if r = c {r 1, r 2 } T (n,r 1,r 2 ) 1 if r = r 1 and c = r 2 r,c = 1 if r = r 2 and c = r 1 0 otherwise Example: T (5,2,4) = 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1

Elementary operation matrices: exchanging rows For r 1 r 2, let T (n,r 1,r 2 ) be the n n matrix such that 1 if r = c {r 1, r 2 } T (n,r 1,r 2 ) 1 if r = r 1 and c = r 2 r,c = 1 if r = r 2 and c = r 1 0 otherwise Lemma If B is an n m matrix, then T (n,r 1,r 2 ) B is obtained from B by exchanging the r 1 -th and the r 2 -th row.

Elementary operation matrices Definition A (n,t,a), M (n,k,α) and T (n,r 1,r 2 ) are elementary operation matrices. Lemma A B if and only if B = E 1 E 2 E m A for some elementary operation matrices E 1,..., E m.

Example 1 2 3 1 1 1 0 1 0 1 2 3 0 1 2 0 1 0 1 2 3 0 1 0 0 0 2 1 2 3 0 1 0 0 0 1 1 2 3 0 1 0 0 1 2 subtract 1st row from 2nd, exchange 2nd and 3rd row, add 2nd row to 3rd, multiply 3rd row by 1/2 1 2 3 0 1 0 0 0 1 where = M (3,3, 1/2) A (3,3,2) T (3,2,3) S (3,2,1) S (3,2,1) = M (3,1, 1) A (3,2,1) M (3,1, 1) 1 2 3 1 1 1 0 1 0,

Invertibility of elementary row operations If we exchange rows r 1 and r 2, and then exchange them again, we obtain the original matrix. T (n,r 1,r 2 ) T (n,r 1,r 2 ) = I (n) If we multiply r-th row by α, and then by 1/α, we obtain the original matrix. M (n,r,1/α) M (n,r,α) = I (n) If we add the a-th row to the t-th, and then subtract the a-th row from the t-th, we obtain the original matrix. Equivalently, multiply the a-th row by 1, add a-th row to the t-th one, and multiply the a-th row by 1. [ M (n,a, 1) A (n,t,a) M (n,a, 1)] A (n,t,a) = I (n)

Invertibility of row equivalence Corollary A B if and only if A = E 1 E 2 E m B for some elementary operation matrices E 1,..., E m.

Inverse to elementary row operations Definition For an elementary operation matrix E, let M (n,a, 1) A (n,t,a) M (n,a, 1) if E = A (n,t,a) E 1 = M (n,r,1/α) if E = M (n,r,α) T (n,r 1,r 2 ) if E = T (n,r 1,r 2 ) So that E 1 E = I = EE 1 Lemma For an elementary operation matrix E, Ex = b if and only if x = E 1 b.

Matrix division? For real numbers: β α is the solution to αx = β. Except if α = 0: no or infinitely many solutions. For matrices: Solution to AX = B or XA = B? Non-zero elements: matrices A for that there always exists exactly one solution?

Example ( 1 2 3 4 ) ( 8 5 X = 20 13 Equivalent to two systems of linear equations with the same left-hand sides: ( ) ( ) ( ) ( ) ( ) ( 1 2 X1,1 8 1 2 X1,2 5 = = 3 4 20 3 4 13 X 2,1 They can be solved at the same time: ( ) ( 1 2 8 5 1 0 4 3 RREF = 3 4 20 13 0 1 2 1 ) X 2,2 ) X = ( 4 3 2 1 ) )

Consequences for matrix division Let A be n m matrix. The following are equivalent: AX = B has unique solution for every n p matrix B. Ax = b has unique solution for every vector b When is this the case? A must be square; otherwise there are either too many equations: no solution, or too few equations: infinitely many solutions. Not sufficient.

Equivalent characterizations of regularity The following claims are equivalent for any n n matrix A. 1 For every b, Ax = b has exactly one solution. 2 Ax = 0 has only one solution (x = 0). 3 RREF(A) = I 4 rank(a) = n 5 A I 6 A is a product of elementary operation matrices. 7 For every b, Ax = b has a solution.

Proofs 1 2 3 5 6 1 1 7 3, 3 4 1 For every b, Ax = b has exactly one solution. 2 Ax = 0 has only one solution (x = 0). Trivial.

Proofs 1 2 3 5 6 1 1 7 3, 3 4 2 Ax = 0 has only one solution (x = 0). 3 RREF(A) = I If RREF(A) I, then not all columns of A are basis, and has infinitely many solutions. (A 0) (RREF(A) 0)

Proofs 1 2 3 5 6 1 1 7 3, 3 4 3 RREF(A) = I 5 A I Trivial, since A RREF(A).

Proofs 1 2 3 5 6 1 1 7 3, 3 4 5 A I 6 A is a product of elementary operation matrices. As we observed before, A I if and only if A = E 1 E 2 E m I = E 1 E 2 E m for some elementary operation matrices E 1,..., E m.

Proofs 1 2 3 5 6 1 1 7 3, 3 4 6 A is a product of elementary operation matrices. 1 For every b, Ax = b has exactly one solution. Let A = E 1 E m for elementary operation matrices E 1,..., E m. E 1 E 2 E 3 E m x = b if and only if E 2 E 3 E m x = E 1 1 b if and only if E 3 E m x = E 1 b if and only if... 2 E 1 1 x = Em 1 E 1 3 E 1 2 E 1 1 b

Proofs 1 2 3 5 6 1 1 7 3, 3 4 1 For every b, Ax = b has exactly one solution. 7 For every b, Ax = b has a solution. Trivial.

Proofs 1 2 3 5 6 1 1 7 3, 3 4 7 For every b, Ax = b has a solution. 3 RREF(A) = I If RREF(A) I, the last row of RREF(A) is 0, and RREF(A)x = e n has no solution. We have A = E 1 E m RREF(A) for some elementary operation matrices E 1,..., E m. Consequently, (RREF(A) e n ) (A E 1 E m e n ), and thus Ax = E 1 E m e n has no solution.

Proofs 1 2 3 5 6 1 1 7 3, 3 4 3 RREF(A) = I 4 rank(a) = n Trivial from the definition of rank.

Regular matrices Definition A square matrix A is regular if it satisfies any of the described equivalent conditions.

Further remarks on regular matrices Lemma A B iff there exists a regular matrix Q such that A = QB. Lemma Let A and B be n n matrices. Then AB is regular if and only if both A and B are regular. Proof. If A, B are products of elementary operation matrices, then so is AB. If B is not regular, then there exists x 0 such that Bx = 0, and thus ABx = 0; hence AB is not regular. If B is regular and A is not regular, then there exists y 0 such that Ay = 0, and x such that Bx = y (clearly, x 0). Hence, again, ABx = 0 implying that AB is not regular.

Matrix inverse Definition Let A be a square matrix. If AC = I, then C is a right inverse to A. If DA = I, then D is a left inverse to A. Lemma If A has both a left inverse D and a right inverse C, then C = D. Hence, if both left and right inverses exist, they are unique. Proof. D = DI = D(AC) = (DA)C = IC = C

Inverse and regularity Lemma If a square matrix A has a left or right inverse, then A is regular. Proof. I is regular, so if XY = I, then X and Y are regular.

Existence of an inverse Lemma If A is regular, then it has both a left and a right inverse. Proof. Since A is regular, A = E 1 E m for some elementary operation matrices E 1,..., E m. Then, E 1 m E 1 1 A = I = AE 1 m E 1 1.

Existence of an inverse, another way Lemma If A is regular, then it has both a left and a right inverse. Proof. If A is regular, then there exist column matrices c 1,..., c n such that Ac 1 = e 1, Ac 2 = e 2,..., Ac n = e n. Hence, AC = I, where C = (c 1 c 2... c n ). Note that A(I CA) = A (AC)A = A A = O. Since A is regular, AX = O if and only if X = O. Hence, I CA = O and CA = I.

Matrix inverse: summary The following claims are equivalent for a square matrix A: 1 A is regular 2 A has a left inverse 3 A has a right inverse 4 A has a unique left inverse and a unique right inverse, and they are equal. Definition For a regular square matrix A, the inverse A 1 is the matrix satisfying AA 1 = A 1 A = I.

Inverse, regularity and matrix multiplication For regular n n matrices A and B: A 1 is regular, and A is its inverse. (AB) 1 = B 1 A 1 Since (AB) [ B 1 A 1] = A [ BB 1] A 1 = AIA 1 = AA 1 = I. Let C and D be n m matrices. Then AC = AD if and only if C = D. AC = AD implies A 1 AC = A 1 AD For m n matrices C and D, C A = D A if and only if C = D. AX = C has unique solution X = A 1 C XA = C has unique solution X = C A 1

Computing an inverse matrix Lemma For a regular matrix A, RREF(A I) = (I A 1 ). Proof. Solution to n systems of linear equations Ac 1 = e 1,..., Ac n = e n.

Example 1 2 3 1 0 0 1 1 1 0 1 0 0 1 0 0 0 1 1 2 3 1 0 0 0 1 0 0 0 1 0 1 2 1 1 0 1 2 3 1 0 0 0 1 0 0 0 1 0 0 1 1 2 1 2 1 2 1 2 3 1 0 0 0 1 2 1 1 0 0 1 0 0 0 1 1 2 3 1 0 0 0 1 0 0 0 1 0 0 2 1 1 1 1 2 0 1 3 3 2 2 2 0 1 0 0 0 1 1 0 0 1 2 1 2 1 2 1 0 0 1 3 2 2 1 2 0 1 0 0 0 1 1 0 0 1 2 1 2 1 2

Example Hence, 1 2 3 1 0 0 1 1 1 0 1 0 0 1 0 0 0 1 1 2 3 1 1 1 0 1 0 1 = 3 2 1 2 1 0 0 1 2 0 1 0 0 0 1 1 0 0 1 2 1 2 1 2 1 2 3 2 1 2 0 0 1 1 2 1 2 1 2