Week-4 Session 2
Week-4 Session 2
Karthik Thiagarajan
1. 4
2. 4
3. 5
4. 6
5. 6
6. 7
7. 8
8. 9
9. 10
10. 10
11. 10
12. 11
13. 12
14. 13
15. 14
16. 14
17. 15
18. 17
19. 17
20. 17
21. 17
22. 18
23. 19
24. 20
25. 20
26. 20
27. 20
Span, Basis and Dimension
Span
span S ( ) = { av
1 1
+ ⋯ + an vn ai R| ∈ }
Examples
If S R , then:
= {(1, 2)} ⊂
2
span S a a a R ( ) = {( , 2 ) | ∈ }
If S R , then:
= {(1, 0), (0, 1)} ⊂
2
span S a ( b
) = { ab R ab ab R
(1, 0) + (0, 1) | , ∈ } = {( , ) | , ∈ }
If S - R
= {(0, 1, 2), (1, 3, 4), (5, 0, 1)} ⊂
3
span S a ( b
) = { c - abc R
(0, 1, 2) + (1, 3, 4) + (5, 0, 1) | , , ∈ }
b c a b a b-c a b c R
= {( +5 , +3 ,2 +4 ) | , , ∈ }
Basis
Examples
Consider:
B = {(1, 0), (0, 1)}
( xy x
, ) = (1, 0) + y (0, 1)
xy a b x a a x b y-x
y a b
=
( , ) = (1, 1) + (0, 1) ⟹ ⟹ = , =
= +
( xy x
, ) = (1, 1) + ( y-x )(0, 1)
Dimension
The dimension of a vector space is the cardinality of its basis. Thus the
dimension of Rn is n.
Useful Results
| | <
1.
Which of the following statements are true regarding a vector space V and
a non-empty spanning set S V?
If v is an element of S, then S v is also a spanning set.
⊂
S could be a basis of V.
∪{ }
set.
2.
Which of the following statements are true regarding a vector space V and
a non-empty linearly independent setS V?
If v is an element of S, then S v is also linearly independent.
⊂
S could be a basis of V.
∪{ }
S
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
= 0 0 0 , 1 0 0 , 0 0 0 , 0 1 0 , 0 0 0 , 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1
( ) ( )
a b c d e f
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 + 1 0 0 + 0 0 0 + 0 1 0 + 0 0 0 + 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1
a
bd
0 0
cef
0
Since all the entries above the main diagonal are zero, any element in
span S is a lower triangular matrix. This implies span S is the set of
S
( ) ( )
a
bd a b c d e f
0 0 0 0 0
cef
0 = 0 0 0 ⟹ = = = = = = 0
0 0 0
⊂ ( )
4.
If S v
= { vn is a basis of Rm, what is the value of m - n?
1, ⋯ , }
5.
Find a basis for R.
B 1
= { 1 }, B 2
= { 2 }, B 3
= 𝜋
2
+ e 2
x
({ }) = { | ∈ }
– x av a = ⟹ =
v
6.
Check if V is a subspace of R : 3
• V
x y z x y z V x y - z and x y - z
(0, 0, 0) ∈
x x y y-z z x x y y z z V
( 1
, 1
, 1
), ( 2
, 2
, 2
) ∈ ⟹ 1
= 1 1 2
= 2 2
⟹
•
• x y z V x y - z ax ay- az a x y z V
1
+ 2
= 1
+ 2
( 1
+ 2
) ⟹ ( 1
+ 2
, 1
+ 2
, 1
+ 2
) ∈
( , , ) ∈ ⟹ = ⟹ = ⟹ ( , , ) ∈
1- 1 1
V as:
1 2 1 2
V = {( x y z x y-z t -t t t t t t R
, , ) | = } = {( 1 2, 1, 2) | 1, 2, 3 ∈ }
t -t t t t
( 1
t - 2
, 1
, 2
) = 1
(1, 1, 0) + 2
( 1, 0, 1)
Therefore:
V span
= ({(1, 1, 0), ( - 1, 0, 1)})
is a basis for
7.
Find a basis for the following vector space:
yx
V y x y xy R
0
= 0 0 | + = 0, and , ∈
0 0 0
0 0 = 0 0 = 0 0 1
0 0 0 0 0 0 0 0 0
-
V span -
0 1 1
= 0 0 1
0 0 0
-
V is this singleton set: -
0 1 1
xy
V x xy R
0
= 0 0 | , ∈
0 0 0
• Is V a subspace of M ? Yes
• V is the set of all matrices A that have the following property:
3×3
A A
• First find a spanning set for V by reducing A in terms of simpler
12 = 23
yx
y y x
0 0 1 0 0 0 1
0 0 = 0 0 1 + 0 0 0
0 0 0 0 0 0 0 0 0
B
0 1 0 0 0 1
= 0 0 1 , 0 0 0
0 0 0 0 0 0
span B V( ) =
Standard basis for M 3×3 will have nine elements, three of which are:
B
0 1 0 0 0 0 0 0 1
= ⋯ 0 0 0 , 0 0 1 , 0 0 0 ⋯
0 0 0 0 0 0 0 0 0
9.
Let S be a subset of R 5
such that span S R . What is the smallest
5
cardinality of S?
( ) =
10.
If V 1
and V 2
are subspaces of V. Is V V 1
∩ 2
a subspace of V?
Yes
11.
If V 1
and V 2
are subspaces of V. Is V V 1
∪ 2
a subspace of V?
False. Here is a counter example:
V 1
= {( x , 0) | x R V
∈ }, 2
= {(0, y y R
) | ∈ }
In this problem V V
1
∪ 2
is the x-axis and the y-axis.
12.
Let V x y z w x z y w R . Construct a basis for V.
= {( , , , ) | + = + } ⊂
4
1- 1 1 - 1
x t -t t y t z t w t = 1 2 + 3, = 1, = 2, = 3
V t -t t t t t t t t R
= {( 1 2
+ 3
, 1
, 2
, 3
) | 1
, 2
, 3
∈ }
The way we do this is to set one independent variable to 1 and the rest of
the independent variables to 0 and then solve for the dependent variable:
( t -t t t t t
1 2 + t3, 1, t - 2, t 3) = 1 (1, 1, 0, 0) + 2( 1, 0, 1, 0) + 3 (1, 0, 0, 1)
V span -
= ({(1, 1, 0, 0), ( 1, 0, 1, 0), (1, 0, 0, 1)})
Let V x xn w x
= ( 1
, ⋯ , wn xn and w wn
) | 1 1
Rn . Show
+ ⋯ + = 0 1
⋯ ≠ 0 ⊂
x -w
1
• Set x x 2
xn . Then w x w
= 1, 3
=⋯=
w . This
= 0 1 1
+ 2
= 0 ⟹ 1
=
2
-w
1
w
2
gives us one vector: . , 1, 0, ⋯ , 0
x -w
1
• Set x x x3 = 1, xn . Then w x w
2 = 4 =⋯=
w . This = 0 1 1 + 3 = 0 ⟹ 1 =
2
-w
1
w
3
gives us another vector: . , 1, 0, ⋯ , 0
1
B -w -w -wn
w w w
2 3
= , 1, 0, ⋯ , 0 , , 0, 1, ⋯ , 0 , ⋯ , , 0, 0, ⋯ , 1
1 1 1
B v v vn = { 2
, 3
, ⋯ , }
n
1
3
1 1
+ 2 2
+ 3 3
= 0
14.
If v v v is a basis of V, which of the following are also bases of V?
v v v v
{ 1
, 2
, 3
}
v v v v v
{ 1
, 2
, 1
+ 3
}
v v v v -v
{ 1
, 1
+ 2
, 1
+ 3
}
v v -v v -v
{ 1
, 1
+ 2
, 1 3
}
{ 1
, 1 2
, 1 3
}
linearly independent.
av b v v c v v a b c v bv cv
1 + ( 1 + 2) + ( 1 + 3) = ( + + ) 1 + 2 + 3 = 0
a b c b c a b c + + = 0, = 0, = 0 ⟹ = = = 0
16.
Find the dimension of the following vector space:
V A
= | sum of entries in each row is 0, and A M R
∈ 3×2
( )
x -x
A y -y
z -z
=
-
A x y - z
1 1 0 0 0 0
-
= 0 0 + 1 1 + 0 0
0 0 0 0 1 1
-
V span B where B -
1 1 0 0 0 0
0 0 0 0 1 1
S - =
-
1
1
0
2
,
0
1
1
1
,
1
0
1
1
,
1
1
2
1 0 0 1 0 0 0 0
, , ,
0 0 0 0 1 0 0 1
dimensional vector space. This means that every vector in 2×2 ( ) can be
uniquely mapped to a vector in R . This is how we map the two bases:
4
1 0
↔ (1, 0, 0, 0)
0 0
0 1
↔ (0, 1, 0, 0)
0 0
0 0
↔ (0, 0, 1, 0)
1 0
0 0
↔ (0, 0, 0, 1)
0 1
Think about this as flattening the matrix into a vector row-wise. Now, we
can represent any matrix in M 2×2 in terms of a vector in R 4
and vice
versa:
ab abcd
cd ↔ ( , , , )
S =
-
1
1
0
2
,
0
1 -
1
1
,
1
0
1
1
,
1
1
2
- - -
- - -
1 0 1 2 1 0 1 2 1 0 1 2
- -
0 1 1 1 0 1 1 1 0 1 1 1
→ →
-
1 1 0 1 0 1 1 1 0 1 1 1
1 2 1 0 1 2 1 0 0 2 2 2
- - -
- - -
1 0 1 2 1 0 1 2 1 0 1 2
-
0 1 1 1 0 1 1 1 0 1 1 1
→ →
- -
0 1 1 1 0 0 0 0 0 0 0 0
0 2 2 2 0 2 2 2 0 0 0 0
( )
B =
-
1
1
0
2
,
0
1 -
1
1
0
2
+ b - 0
1
1
1
=
0
0
0
0
⟹ a b
= = 0
18.
Find the dimension of the following vector space:
V = ( xyzw x y z wx w y z
, , , ) | + = + , + = + , and xyzw R
, , , ∈
Homework
19.
Find a basis for span S ( ) where S = {(1, 0, 1, 2, 1), (0, - 1, 1, 2, 1), (1, - 1, 2, 4, 2)}.
Add all the vectors as rows of a matrix. Find the RREF of this matrix.
Discard the zero rows. Add the non-zero rows as vectors in B. B is a
basis for span S .( )
- - - -
1 0 1 2 1 1 0 1 2 1
-
0 1 1 2 1 → 0 1 1 2 1
1 1 2 4 2 0 0 0 0 0
20.
Find the rank of the following matrix:
0 1 3 1
1 0 0 1
3 2 0 3
Rank of a matrix is the number of non-zero rows in the RREF of the matrix.
Reduce the matrix to RREF and find the number of non-zero rows.
21.
Find a basis for span S ( ) where S = {(1, 2, 0), (0, 3, 1), (3, 3, - 1), (3, 0, - 2)}.
Add all the vectors as rows of a matrix and find its RREF:
1 2 0 1 2 0 1 2 0
- - - - -
0 3 1 0 3 1 0 3 1
→ →
- - - -
3 3 1 0 3 1 0 3 1
3 0 2 3 0 2 0 6 2
1 2 0 1 2 0 1 2 0
- -
0 3 1 0 3 1 0 3 1
→ →
- - - -
0 3 1 0 0 0 0 0 0
0 6 2 0 6 2 0 0 0
1 2 0
1 2 0 1 0
- 2
3
0 3 1 1 1
0 1 3 0 1
→ → 3
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
B = 1, 0,
- 2
3 , 0, 1,
1
3
22.
What is the maximum and minimum value for the rank of an arbitrary m n
×
matrix?
The row rank and the column rank of a matrix is the same. The column rank
is defined as the dimension of the column space. The column space is the
span of all the columns of the matrix. There are n columns, each of which
is a vector in Rm. So, the dimension of the column space could be at most
min (m n . The smallest value that the rank of matrix could take is .
, ) 0
rank A 0 ⩽ mn ( ) ⩽ min ( , )
23.
-
- a.
2 3 4
1 3
- - a - a
- - -
2 3 4 1 3 1 3
→ →
- a -a -a
0 1 2 0 1 2 0 1 2
1 3 0 3 4 2 0 0 10 2
If a ≠ 5, then the rank of the matrix is 3. Since rank is 2, the last row
should be a zero row, therefore a = 5.
24.
x y z
2 2 2
Homework
25.
Show that the span of the rows of a matrix is equal to the span of the
rows of its RREF.
M r r r
= { 1, 2, 3}
26.
Show that all the non-zero rows of a matrix in reduced row echelon form
are linearly independent.
Homework
27.
If the rank of a n n matrix is n, show that the rows form a basis for
×
Rn.
Homework