Download pdf - General Vector Spaces

Transcript
Page 1: General Vector Spaces

Lecture 16

General Vector Spaces

Basis of Row Space and Column Space

Rank and Nullity

Covered Range : 4.8 +οΌ”.9

2021/11/17Lec16_LA21_ Singling Lee 1

Page 2: General Vector Spaces

Terminologies

Row Space ;

Column Space ;

Null Space ;

2021/11/17Lec16_LA21_ Singling Lee 2

Page 3: General Vector Spaces

Recap Row(A), Col(A)and Null(A)

Definition 2 : A is an mΓ—nmatrix A=[aij]

Row(A) βŠ† Rn: Row space of A β‡’ span{r1,r2,…,rm}

Col(A) βŠ† Rm: Column space of A β‡’ span{c1,c2,…,cn}

Null(A) βŠ† Rn: Null space of A β‡’ Solution of Ax=0

Note : Ax=0 always has a solution x=0 (Orthogonal to each row vector)

The solution set is a vector subspace of Rn

2021/11/17Lec16_LA21_ Singling Lee 3

Page 4: General Vector Spaces

Recap Col (A) and the Solution of Ax=b

Theorem4.7.1 Ax = b is consistent if and only if b is in the column space of A.

Means b ∈ Col(A) = span {c1, c2, … ,cn}.

Ax : Linear combinations of column vectors of A .

2021/11/17Lec16_LA21_ Singling Lee 4

Page 5: General Vector Spaces

Recap Orthogonality of Row(A) and Null(A)

Theorem 3.4.3 : If 𝐴 is an π‘š Γ— 𝑛 matrix, then the solution set of the homogeneous linear system 𝐴𝐱 = 𝟎 consists of all vectors in 𝑅𝑛 that are orthogonal to every row vector of 𝐴.

2021/11/17Lec16_LA21_ Singling Lee 5

Page 6: General Vector Spaces

Recap Relation Between Ax = 0 and Ax = b

Theorem 4.8.2 : If x0 is any solution of a consistent linear system of Ax = b and ifS={v1 ,v2 , … , vk} is a basis for the null pace of A, then every solution of Ax = b can be expressed in the form

x = x0 + c1v1 + c2v2 + … + ckvk

2021/11/17Lec16_LA21_ Singling Lee 6

Page 7: General Vector Spaces

Recap Subspace of Ax = 0 by Spanning (II)

Example 6 :

x2 = r, x4 = s, x5 = t

Solution : 𝐱 = (βˆ’3π‘Ÿ βˆ’ 4𝑠 βˆ’ 2𝑑, π‘Ÿ, βˆ’2𝑠, 𝑠, 𝑑, 0)

parametric equation : (x1, x2, x3, x4, x5 , x6) =

r (-3, 1, 0, 0, 0, 0) + s (-4, 0, -2, 1, 0, 0) + t (-2, 0, 0, 0, 1, 0)

β‡’ 𝐯𝟏 = βˆ’3,1,0,0,0,0 , 𝐯2 = βˆ’4,0, βˆ’2,1,0,0 , 𝐯3 = (βˆ’2,0,0,0,1,0)

linearly ind. span the solution space and dimension = 3

2021/11/17Lec16_LA21_ Singling Lee 7

1 3 0 4 2 0 00 0 1 2 0 0 00 0 0 0 0 1 00 0 0 0 0 0 0

Page 8: General Vector Spaces

Recap Row Operations : Row(A) ,Null(A)

Theorem 4.8.3 :

a) Row equivalent matrices have same row space

b) Row equivalent matrices have same null space

Elementary row operations do not change the row space and null space of a matrix

2021/11/17Lec16_LA21_ Singling Lee 8

Page 9: General Vector Spaces

Recap Bases for Row(A) and Col(A) on ref Matrix

Theorem 4.8.4 :

If a matrix R is in row echelon form, then the rowvectors with the leading 1's (the nonzero rowvectors) form a basis for the row space of R, and thecolumn vectors with the leading 1's of the rowvectors from a basis for the column space of R.

2021/11/17Lec16_LA21_ Singling Lee 9

Page 10: General Vector Spaces

Recap Bases for Row(A) and Col(A) on ref Matrix

Example 3 pp 268 : (Row-Echelon Matrix)

𝑅 =

1 βˆ’2 5 0 30 1 3 0 00 0 0 1 00 0 0 0 0 Theorem 4.8.4

𝐫𝟏 = 1 βˆ’2 5 0 3𝐫𝟐 = 0 1 3 0 0π«πŸ‘ = 0 0 0 1 0

𝐜𝟏 =

1000

, 𝐜𝟐 =

βˆ’2100

, πœπŸ’ =

0010

β‡’

2021/11/17Lec16_LA21_ Singling Lee 10

Page 11: General Vector Spaces

Recap Find the Basis of Row(A)

Find the basis of Row(A):

1. Use Gaussian Elimination to construct R : R : ref matrix of A,

2. Basis of Row Space of A are formed by β€œrows with leading 1's” in R.

2021/11/17Lec16_LA21_ Singling Lee 11

Page 12: General Vector Spaces

Recap Basis for Column Space Theorem 4.8.5 : If A and B are row equivalent matrices,

1) A given set of column vectors of A is linearly independent iff the corresponding column vectors of Bis linearly independent

2) A given set of column vectors of A forms a basis of the column space of A iff the corresponding column vectors of B forms a basis for the column space of B

How to use this theorem?

2021/11/17Lec16_LA21_ Singling Lee 12

Page 13: General Vector Spaces

Recap Examples for Basis of Col(A) Example 5 pp.270 Basis for Col(A)

𝐴 =

1 βˆ’3 4 βˆ’2 5 42 βˆ’6 9 βˆ’1 8 22 βˆ’6 9 βˆ’1 9 7

βˆ’1 3 βˆ’4 2 βˆ’5 βˆ’4

β‡’

R =

1 βˆ’3 4 βˆ’2 5 40 0 1 3 βˆ’2 βˆ’60 0 0 0 1 50 0 0 0 0 0

The correspond vectors in A :

c1, c2, c5 is a basis of Col(A)

2021/11/17Lec16_LA21_ Singling Lee 13

Reduce A to a row-echelon matrix (Gaussian Elimination) R

𝐜1β€² =

1000

𝐜3β€² =

4100

𝐜5β€² =

5βˆ’210

β‡’

c1’, c3’, c5’,

basis of Col(R)

𝐜𝟏 =

122

βˆ’1

πœπŸ‘ =

499

βˆ’4

𝐜5 =

589

βˆ’5

Page 14: General Vector Spaces

Lecture 16

General Vector Spaces

Basis of Row Space and Column Space

Rank and Nullity

Covered Range : 4.8 +οΌ”.9

2021/11/17Lec16_LA21_ Singling Lee 14

Page 15: General Vector Spaces

Basis from the Rows of AExample 6 pp. 270: Find a basis for row(A) spanned by r1, r2, r3, r4 of A

Consisting entirely of row vectors from A {δ½Ώη”¨εŽŸδΎ†ηš„vectors r1, r2, r3, r4 }

Use AT:

β†’ column 1, 2, 4 for AT

2021/11/17Lec16_LA21_ Singling Lee 15

1 2 0 0 3

2 5 3 2 6

0 5 15 10 0

2 16 18 8 6

A

1 2 0 2 1 2 0 2

2 5 5 6 0 1 5 10

0 3 15 18 0 0 0 1

0 2 10 8 0 0 0 0

3 6 0 6 0 0 0 0

TA

1 2 31, 2,0,0,3 2, 5, 3, 2,6 2,6,18,8,6 r r r

β†’ consists entirely of row vectors from A

Page 16: General Vector Spaces

Find Basis Vectors and Linear Comb. of Nonbasis Vectors

Example 8 pp. 272 :

Find a subset of vectors v1=(1, -2, 0, 3) v2=(2, -5,-3, 6) v3=(0, 1, 3, 0) v4=(2, -1, 4, -7) v5=(5, -8, 1, 2) that forms a basis

1) Use original vector as column vectors Column Space

2) Express each vector by the basis

2021/11/17Lec16_LA21_ Singling Lee 16

1 2 0 2 5βˆ’2 βˆ’5 1 βˆ’1 βˆ’80 βˆ’3 3 4 13 6 0 βˆ’7 2

β‡’

1 0 2 0 10 1 βˆ’1 0 10 0 0 1 10 0 0 0 0

𝐯𝟏 𝐯𝟐 π―πŸ‘ π―πŸ’ π―πŸ“ 𝐰𝟏 𝐰𝟐 π°πŸ‘ π°πŸ’ 𝐰 πŸ“

{𝐯𝟏 , 𝐯𝟐 , π―πŸ’ } ⇐ {𝐰𝟏 , 𝐰𝟐 , π°πŸ’ }

Page 17: General Vector Spaces

Find Basis Vectors and Linear Comb. of Nonbasis Vectors

Example 8 pp. 272 :

2) Express each vector by the basis

(b) w3 = 2w1 - w2 v3 = 2v1 - v2

w5 = w1 + w2 + w4 v5 = v1 + v2 + v4

2021/11/17Lec16_LA21_ Singling Lee 17

0130

= 2

1βˆ’203

βˆ’

2βˆ’5βˆ’36

𝐯3 𝐯1 𝐯2

5βˆ’812

=

1βˆ’230

+

2βˆ’5βˆ’36

+

2βˆ’147

𝐯5 𝐯1 𝐯2 𝐯4

1 2 0 2 5βˆ’2 βˆ’5 1 βˆ’1 βˆ’80 βˆ’3 3 4 13 6 0 βˆ’7 2

β‡’

1 0 2 0 10 1 βˆ’1 0 10 0 0 1 10 0 0 0 0

𝐯𝟏 𝐯𝟐 π―πŸ‘ π―πŸ’ π―πŸ“ 𝐰𝟏 𝐰𝟐 π°πŸ‘ π°πŸ’ 𝐰 πŸ“

{𝐯𝟏 , 𝐯𝟐 , π―πŸ’ } ⇐ {𝐰𝟏 , 𝐰𝟐 , π°πŸ’ }

Since 𝐸𝐯𝒋 = 𝑐1𝐸𝐯𝟏 + β‹― + π‘π‘˜πΈπ―π’Œ β‡’ 𝐯𝒋 = π‘πŸπ―πŸ + β‹― + π‘π’Œπ―π’Œ!

Page 18: General Vector Spaces

Steps to Find a Basis of Vectors and Linear Comb. Of Nonbasis Vectors

Given S = {v1, v2, …, vk } βŠ† Rn

Find a basis βŠ† S for span(S)

1) Matrix A has v1, v2, …, vk as it column vectors

2) Reduce A to reduced row-echelon form R.

3) Columns that contain leading 1’s in Rβ‡’ The corresponding vectors of A are the basis

4) Express each nonbasis column vector of R as a linear combination of the leading 1 columns in R!

5) Replace the linear combination of nonbasis column vectors in R by the corresponding column vectors in A

2021/11/17Lec16_LA21_ Singling Lee 18

Page 19: General Vector Spaces

Recap General Questions

Question 1 : What are the relationships between Ax = b and Row Space, Column Space and Null Space of the coefficient matrix A ?

Question 2: What are the relationships among Row(A), Col(A) and Null(A) of a given matrix A ?

2021/11/17Lec16_LA21_ Singling Lee 19

Page 20: General Vector Spaces

Conclusion

Ax = b is consistent if and only if b ∈ Col(A),

Use row echelon form (ref) to find basis of Row(A) and Col(A).

Use reduced row echelon form (rref) to find basis of Null(A).

General solutions of Ax = b : Special solution + Span (Basis of Null(A))

Orthogonality of Row(A) and Null(A).

2021/11/17Lec16_LA21_ Singling Lee 20

Page 21: General Vector Spaces

Lecture 16

General Vector Spaces

Basis of Row Space and Column Space

Rank and Nullity

Covered Range : 4.8 +οΌ”.9

2021/11/17Lec16_LA21_ Singling Lee 21

Page 22: General Vector Spaces

dim(Row(A)) = dim(Col(A))Theorem 4.9.1 : The row space and the column space

have the same dimension !

Basis of Row(A) : The leading one rows in R (row-echelon matrix)!

Basis of Col(A) : Column vectors in A corresponding to the leading one columns in R (row-echelon matrix)!

2021/11/17Lec16_LA21_ Singling Lee 22

Page 23: General Vector Spaces

Rank and Nullity

Definition 1 : Given a matrix A : mΓ—n

Rank(A) = dim(row space of A) = dim(column space of A)

Nullity(A) = dim(null space of A)

Rank(A) = Rank(AT)

Rank(A) ≦min(m , n)

2021/11/17Lec16_LA21_ Singling Lee 23

Page 24: General Vector Spaces

Examples for Rank and Nullity (I) Example 1 pp 277 : Rank and Nullity

The solution space of Ax=0

2021/11/17Lec16_LA21_ Singling Lee 24

A=

βˆ’1 2 0 4 5 βˆ’332

βˆ’7βˆ’5

22

04

16

41

4 βˆ’9 2 βˆ’4 βˆ’4 7

->

1 0 βˆ’4 βˆ’28 βˆ’37 1300

10

βˆ’20

βˆ’120

βˆ’160

50

0 0 0 0 0 0

From Row1: π‘₯1βˆ’4π‘₯3 βˆ’28 π‘₯4 βˆ’37 π‘₯5 + 13π‘₯6 = 0

Row2: π‘₯2 βˆ’2π‘₯3 βˆ’ 12π‘₯4 βˆ’16 π‘₯4 + 5π‘₯6 = 0

π‘₯1 =4π‘₯3 + 28π‘₯4 + 37π‘₯5 βˆ’ 13π‘₯6 ; π‘₯2 = 2π‘₯3 +12π‘₯4 + 16π‘₯5 βˆ’ 5π‘₯6

π‘₯3= r , π‘₯4 = π‘ οΌŒ π‘₯5 = π‘‘οΌŒ π‘₯6 = 𝑒π‘₯1= 4π‘Ÿ + 28𝑠 + 37𝑑 βˆ’ 13𝑒π‘₯2= 2π‘Ÿ + 12𝑠 + 16𝑑 βˆ’ 5𝑒

Page 25: General Vector Spaces

Examples for Rank and Nullity (II)

The Solution of Ax= 0 with 4 parameters

Rank =2 , dim(Null(A)) = 4; Nullity = 4

2021/11/17Lec16_LA21_ Singling Lee 25

π‘₯3= r , π‘₯4 = π‘ οΌŒ π‘₯5 = π‘‘οΌŒ π‘₯6 = 𝑒

A=

βˆ’1 2 0 4 5 βˆ’332

βˆ’7βˆ’5

22

04

16

41

4 βˆ’9 2 βˆ’4 βˆ’4 7

->

1 0 βˆ’4 βˆ’28 βˆ’37 1300

10

βˆ’20

βˆ’120

βˆ’160

50

0 0 0 0 0 0

π‘₯1= 4π‘Ÿ + 28𝑠 + 37𝑑 βˆ’ 13𝑒π‘₯2= 2π‘Ÿ + 12𝑠 + 16𝑑 βˆ’ 5𝑒

π‘₯1

π‘₯2

π‘₯3

π‘₯4

π‘₯5

π‘₯6

= r

421000

+ s

28120100

+ t

37160010

+ u

βˆ’13βˆ’50001

Page 26: General Vector Spaces

Find the basis of Null(A) (I)

Find the basis of Null(A):

1. Use Gaussian Elimination to construct RR : RR : Reduced row-echelon matrix of A,

2. Basis of Null(A) (Rn) are formed by :

Finding Free variables (parameters) xk : without leading 1's columns in R

2021/11/17Lec16_LA21_ Singling Lee 26

Page 27: General Vector Spaces

Find the basis of Null(A) (II)

Find the basis of Null(A) (βŠ†Rn) :

Finding Free variables (parameters) xk : without leading 1's columns in R

Basis of Null (A) in Rn :

(a) having 1 at the position k for the corresponding vector,

(b) reverse the sign in column k of R at the appropriate positions in the vector,

(c) zeros at the positions for the other free variables!

2021/11/17Lec16_LA21_ Singling Lee 27

Page 28: General Vector Spaces

Basis of Null(A) (II)

The Solution of Ax= 0 with 4 parameters

Rank =2 , dim(Null(A)) = 4; Nullity = 4

2021/11/17Lec16_LA21_ Singling Lee 28

π‘₯3= r , π‘₯4 = π‘ οΌŒ π‘₯5 = π‘‘οΌŒ π‘₯6 = 𝑒

A=

βˆ’1 2 0 4 5 βˆ’332

βˆ’7βˆ’5

22

04

16

41

4 βˆ’9 2 βˆ’4 βˆ’4 7

->

1 0 βˆ’4 βˆ’28 βˆ’37 1300

10

βˆ’20

βˆ’120

βˆ’160

50

0 0 0 0 0 0

π‘₯1= 4π‘Ÿ + 28𝑠 + 37𝑑 βˆ’ 13𝑒π‘₯2= 2π‘Ÿ + 12𝑠 + 16𝑑 βˆ’ 5𝑒

π‘₯1

π‘₯2

π‘₯3

π‘₯4

π‘₯5

π‘₯6

= r

421000

+ s

28120100

+ t

37160010

+ u

βˆ’13βˆ’50001

reduced row echelon matrix

← Linearly Ind.

Page 29: General Vector Spaces

Dimension Theorem for MatrixTheorem 4.9.2: If A is a mΓ—n matrix then Rank(A) + Nullity(A) = n

From Reduced Row-Echelon form.

Rank(A) + = n

Rank(A) + Nullity(A) = n

Similarly : Rank(AT) + Nullity(AT) = m

Rank(A) + Nullity(AT) = m

β†’ If Rank(A) = r then , Nullity(A) = n-r ; Nullity(AT) = m - r

number of free

variables

2021/11/17Lec16_LA21_ Singling Lee 29

Page 30: General Vector Spaces

Nullity and Number of Parameters

Theorem 4.9.3: If A is an mΓ—n matrix then

(a) Rank(A) = number of leading one variables in rref of matrix A;

(b) Nullity(A) = number of parameters (free variables)

in general solution of Ax=0

2021/11/17Lec16_LA21_ Singling Lee 30

Page 31: General Vector Spaces

Rank, Nullity, and Linear Systems

Example 4 pp. 279

a) Find the number of parameters in general solution of Ax = 0 if A is a 5 x 7 matrix of rank 3!

b) Find the rank of a 5 x 7 matrix for which Ax=0 has a two-dimensional solution space.

Sol:

a) Nullity(A) = n- rank(A) = 7-3 = 4

b) Nullity(A) = 2. rank(A) = 7-2 = 5

2021/11/17Lec16_LA21_ Singling Lee 31

Page 32: General Vector Spaces

Equivalent Statements

Theorem 4.9.4 : If 𝐴𝐱 = 𝐛 is a consistent linear system of π‘š equations in n unknown, and if 𝐴 has rank π‘Ÿ, then the general solution of the system contains 𝑛 βˆ’ π‘Ÿ parameters.

2021/11/17Lec16_LA21_ Singling Lee 32

Page 33: General Vector Spaces

Fundamental Spaces of a Matrix

Theorem 4.9.5: If A is any matrix, rank(A)=rank(AT)

If A : m Γ— n matrix

rank(A) + nullity(A) = n

rank(A) + nullity(AT) = m

dim[row(A)] = dim[col(A)]= r = rank(A)

dim[null(A)]=n-r dim[null(AT)]=m-r

2021/11/17Lec16_LA21_ Singling Lee 33

Page 34: General Vector Spaces

The Consistence Theorem

If Ax = b and A is mΓ—n , then the following are equivalent.

a) Ax = b is consistent.

b) b ∈ Col (A)

c) Rank(A) = Rank( [A | b] )

2021/11/17Lec16_LA21_ Singling Lee 34

Page 35: General Vector Spaces

Condition for Ax = b has ≦1 Solution

A is mΓ—n, the following are equivalent.

1) Ax = 0 has only the trivial solution.

2) The column vectors of A are linearly independent

3) Ax = b has at most one solution (none or one)for every mΓ—1 vector b

2021/11/17Lec16_LA21_ Singling Lee 35

Page 36: General Vector Spaces

Orthogonal Complement

Definition 2: W is a subspace of Rn, the set of all vectors in Rn that are orthogonal to every vector in W is called the orthogonal complement(正亀補

逘) of W, denote WβŠ₯

2021/11/17Lec16_LA21_ Singling Lee 36

Page 37: General Vector Spaces

Properties of Orthogonal Complements (I)

Theorem 4.9.6: W: subspace of Rn

a) WβŠ₯ is a subspace of Rn

b) The only vector common to W and WβŠ₯ is 0

c) The orthogonal complement of WβŠ₯ is W

2021/11/17Lec16_LA21_ Singling Lee 37

Page 38: General Vector Spaces

Examples for Orthogonal Complements

1. In R2 , what is the orthogonal complement WβŠ₯ of a line W through the origin?

2. In R3 , what is the orthogonal complement WβŠ₯ of a plane W through the origin ?

3. In R3 , what is the orthogonal complement of zerovector ?

4. In R3 , what is the orthogonal complement WβŠ₯ of subspace W spanned by vectors (1,5,1) and (2,2,2)?

2021/11/17Lec16_LA21_ Singling Lee 38

Page 39: General Vector Spaces

Orthogonal Comp. for row(A) and null(A)

Theorem 4.9.7: A: m Γ— n matrix

a) Null(A) and Row(A) are orthogonal comp. in Rn

from Ax=0 : each element in row space is orthogonal to any solution x;

b) Null(AT) and Col(A) are orthogonal comp. in Rm

from ATy=0

2021/11/17Lec16_LA21_ Singling Lee 39

Page 40: General Vector Spaces

Fundamental Theorem of Linear Algebra

2021/11/17Lec16_LA21_ Singling Lee 40

Solving Ax = b for an π‘š Γ— 𝑛 matrix A with rank(A) = r

Page 41: General Vector Spaces

Equivalent StatementsTheorem 4.9.8: If A is an nΓ—n matrix, no duplicate

rows and columns, then the following are equivalent.

a) A is invertible.

b) Ax=0 has only the trivial solution.

c) The reduced row-echelon form of A is In.

d) A is expressible as a product of elementary matrices.

e) Ax=b is consistent for every nΓ—1 matrix b.

f) Ax=b has exactly one solution for every nΓ—1 matrix b.

2021/11/17Lec16_LA21_ Singling Lee 41

Page 42: General Vector Spaces

Equivalent Statements

g) det(A) β‰ 0.

h) The column vectors of A are linearly ind.

i) The row vectors of A are linearly ind.

j) The column vectors of A span Rn. (col(A) = Rn )

k) The row vectors of A span Rn. (row(A) = Rn )

l) The column vectors of A form a basis for Rn.

m) The row vectors of A form a basis for Rn.

2021/11/17Lec16_LA21_ Singling Lee 42

Page 43: General Vector Spaces

Equivalent Statements [cont.]

n) A has rank n.

o) A has nullity 0

p) The orthogonal complement of the null space of A is Rn.

q) The orthogonal complement of the row space of A is {0}.

2021/11/17Lec16_LA21_ Singling Lee 43


Recommended