rank and range vector spaces
play

Rank and Range Vector Spaces Marco Chiarandini Department of - PowerPoint PPT Presentation

DM559 Linear and Integer Programming Lecture 6 Rank and Range Vector Spaces Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Rank Range Outline Vector Spaces 1. Rank 2. Range 3. Vector


  1. DM559 Linear and Integer Programming Lecture 6 Rank and Range Vector Spaces Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark

  2. Rank Range Outline Vector Spaces 1. Rank 2. Range 3. Vector Spaces 2

  3. Rank Range Outline Vector Spaces 1. Rank 2. Range 3. Vector Spaces 5

  4. Rank Range Rank Vector Spaces • Synthesis of what we have seen so far under the light of two new concepts: rank and range of a matrix • We saw that: every matrix is row-equivalent to a matrix in reduced row echelon form. Definition (Rank of Matrix) The rank of a matrix A , rank ( A ) , is • the number of non-zero rows, or equivalently • the number of leading ones in a row echelon matrix obtained from A by elementary row operations. � For an m × n matrix A , rank A ≤ min { m , n } , where min { m , n } denotes the smaller of the two integers m and n . 6

  5. Rank Range Vector Spaces Example   1 2 1 1 2 3 0 5 M =   3 5 1 6 R ′ R ′   2 = R 2 − 2 R 1   2 = − R 2   1 2 1 1 1 2 1 1 1 2 1 1 R ′ R ′ 3 = R 3 − 3 R 1 3 = R 3 − R 2 2 3 0 5 − − − − − − − → 0 − 1 − 2 3 − − − − − − − → 0 1 2 − 3       3 5 1 6 0 − 1 − 2 3 0 0 0 0 � rank ( M ) = 2 7

  6. Rank Range Extension of the main theorem Vector Spaces Theorem If A is an n × n matrix, then the following statements are equivalent: 1. A is invertible 2. A x = b has a unique solution for any b ∈ R 3. A x = 0 has only the trivial solution, x = 0 4. the reduced row echelon form of A is I. 5. | A | � = 0 6. the rank of A is n 8

  7. Rank Range Rank and Systems of Linear Equations Vector Spaces x + 2 y + z = 1 2 x + 3 y = 5 3 x + 5 y + z = 4 R ′ 2 = R 2 − 2 R 1 R ′  1 2 1 1   1 2 1 1  2 = − R 2  1 2 1 1  R ′ R ′ 3 = R 3 − 3 R 1 3 = R 3 − R 2 2 3 0 5 − − − − − − − → 0 − 1 − 2 3 − − − − − − − → 0 1 2 − 3       3 5 1 4 0 − 1 − 2 1 0 0 0 − 2 The last row is of the type x + 2 y + z = 1 0 = a , a � = 0, that is, the augmenting x + 2 z = − 3 matrix has a leading one in the last 0 x + 0 y + 0 z = − 2 column It is inconsistent! rank ( A ) = 2 � = rank ( A | b ) = 3 1. A system A x = b is consistent if and only if the rank of the augmented matrix is precisely the same as the rank of the matrix A . 9

  8. Rank Range Vector Spaces 2. If an m × n matrix A has rank m , the system of linear equations, A x = b , will be consistent for all b ∈ R n – Since A has rank m then there is a leading one in every row. Hence [ A | b ] cannot have a row [ 0 , 0 , . . . , 0 , 1 ] = ⇒ rank A � < rank ( A | b ) – [ A | b ] has also m rows = ⇒ rank ( A ) � > rank ( A | b ) – Hence, rank ( A ) = rank ( A | b ) Example     1 2 1 1 1 0 − 3 0  → · · · → B = 2 3 0 5 0 1 2 0 rank ( B ) = 3    3 5 1 4 0 0 0 1 Any system B x = d in 4 unknowns and 3 equalities with d ∈ R 3 is consistent. Since rank ( A ) is smaller than the number of variables, then there is a non-leading variable. Hence infinitely many solutions! 10

  9. Rank Range Vector Spaces Example     1 3 − 2 0 0 0 1 3 0 4 0 − 28 0 0 1 2 3 1 0 0 1 2 0 − 14     [ A | b ] =  → · · · →     0 0 0 0 1 5 0 0 0 0 1 5    0 0 0 0 0 0 0 0 0 0 0 0 rank ([ A | b ]) = 3 < 5 = n x 1 + 3 x 2 + 4 x 4 = − 28 x 3 + 2 x 4 = − 14 x 5 = 5 x 1 , x 3 , x 5 are leading variables; x 2 , x 4 are non-leading variables (set them to s , t ∈ R )         x 1 = − 28 − 3 s − 4 t x 1 − 28 − 3 − 4 x 2 = s x 2 0 1 0                 x 3 = − 14 − 2 t x = x 3 = − 14 + 0 s + − 2 t                 x 4 = t x 4 0 0 1         x 5 = 5 x 5 5 0 0 11

  10. Rank Range Summary Vector Spaces Let A x = b be a general linear system in n variables and m equations: • If rank ( A ) = r < m and rank ( A | b ) = r + 1 then the system is inconsistent. (the row echelon form of the augmented matrix has a row [ 0 0 . . . 0 1 ] ) • If rank ( A ) = r = rank ( A | b ) then the system is consistent and there are n − r free variables; if r < n there are infinitely many solutions, if r = n there are no free variables and the solution is unique Let A x = 0 be an homogeneous system in n variables and m equations, rank ( A ) = r (always consistent): • if r < n there are infinitely many solutions, if r = n there are no free variables and the solution is unique, x = 0 . 12

  11. Rank Range General solutions in vector notation Vector Spaces Example         x 1 − 28 − 3 − 4 x 2 0 1 0                 x = x 2 = − 14 + 0 s + − 2 t , ∀ s , t ∈ R                 x 4 0 0 1         x 5 5 0 0 For A x = b : x = p + α 1 v 1 + α 2 v 2 + · · · + α n − r v n − r , ∀ α i ∈ R , i = 1 , . . . , n − r Note: – if α i = 0 , ∀ i = 1 , . . . , n − r then A p = b , ie, p is a particular solution – if α 1 = 1 and α i = 0 , ∀ i = 2 , . . . , n − r then A p = b A ( p + v 1 ) = b − → A p + A v 1 = b − − − → A v 1 = 0 13

  12. Rank Range Vector Spaces Thus (recall that x = p + z , z ∈ N ( A ) ): • If A is an m × n matrix of rank r , the general solutions of A x = b is the sum of: • a particular solution p of the system A x = b and • a linear combination α 1 v 1 + α 2 v 2 + · · · + α n − r v n − r of solutions v 1 , v 2 , · · · , v n − r of the homogeneous system A x = 0 • If A has rank n , then A x = 0 only has the solution x = 0 and so A x = b has a unique solution: p 14

  13. Rank Range Outline Vector Spaces 1. Rank 2. Range 3. Vector Spaces 15

  14. Rank Range Range Vector Spaces Definition (Range of a matrix) Let A be an m × n matrix, the range of A , denoted by R ( A ) , is the subset of R m given by R ( A ) = { A x | x ∈ R n } That is, the range is the set of all vectors y ∈ R m of the form y = A x for some x ∈ R n , or all y ∈ R m for which the system A x = y is consistent. 16

  15. Rank Range Vector Spaces Recall, if x = ( α 1 , α 2 , . . . , α n ) T is any vector in R n and     a 11 a 12 · · · a 1 n a 1 i a 21 a 22 · · · a 2 n a 2 i     a i = i = 1 , . . . , n . A = . . . .  ...     , . . . .     . . . .    a m 1 a m 2 · · · a mn a mi � a 1 a 2 · · · a n � Then A = and A x = α 1 a 1 + α 2 a 2 + . . . + α n a n that is, vector A x in R n as a linear combination of the column vectors of A Proof? Hence R ( A ) is the set of all linear combinations of the columns of A . � the range is also called the column space of A : R ( A ) = { α 1 a 1 + α 2 a 2 + . . . + α n a n | α 1 , α 2 , . . . , α n ∈ R } Thus, A x = b is consistent iff b is in the range of A , ie, a linear combination of the columns of A 17

  16. Rank Range Vector Spaces Example   1 2 A = − 1 3   2 1 Then, for x = [ α 1 , α 2 ] T         1 2 α 1 + 2 α 2 1 2 � α 1 �  =  α 1 +  α 2 A x = − 1 3 = − α 1 + 3 α 2 − 1 3      α 2 2 1 2 α 1 + α 2 2 1 so    �  α 1 + 2 α 2 �   � R ( A ) = − α 1 + 3 α 2 α 1 , α 2 ∈ R   � � 2 α 1 + α 2   � 18

  17. Rank Range Vector Spaces Example   x + 2 y = 0 x + 2 y = 1   − x + 3 y = − 5 − x + 3 y = − 5 2 x + y = 3 2 x + y = 2       1 2 0 A x = 0 � � 2 A x = − 1 3 = − 5     − 1 2 1 3 has only the trivial solution x = 0 . (Why?) Only way:       0 1 2      = 2  = 2 a 1 − a 2 1 2 − 5 − 1  − 3     + 0  = 0 a 1 + 0 a 2 = 0 0 − 1 3 3 2 1   2 1 Hence no way to express [ 1 , − 5 , 2 ] as linear expression of the two columns of A . 19

  18. Rank Range Outline Vector Spaces 1. Rank 2. Range 3. Vector Spaces 20

  19. Rank Range Premise Vector Spaces • We move to a higher level of abstraction • A vector space is a set with an addition and scalar multiplication that behave appropriately, that is, like R n • Imagine a vector space as a class of a generic type (template) in object oriented programming, equipped with two operations. 21

Recommend


More recommend