Chapter 4
Chapter 4
除了標註※之簡報外,其餘採用李宏毅教授之投影片教材
Subspaces
(Chapter 4.1)
Subspace
• A vector set V is called a subspace of a vector
space W if it has the following three properties:
• 1. The zero vector 0 belongs to V
• 2. If u and w belong to V, then u+w belongs to V
Closed under (vector) addition
• 3. If u belongs to V, and c is a scalar, then cu
belongs to V
Closed under scalar multiplication
Subspace of
R3?
Property 1. 0 W 6(0) 5(0) + 4(0) = 0
Property 2. u, v W u+v W
u = [ u1 u2 u3 ]T, v = [ v1 v2 v3 ]T u+v=[ u1+v1 u2+v1 u3+v1 ]T
6(u1+v1) 5(u2+v2) + 4(u3+v3)
= (6u1 5u2 + 4u3 ) + (6v1 5v2 + 4v3 ) = 0 + 0 = 0
Property 3. u W cu W
6(cu1) 5(cu2) + 4(cu3) = c(6u1 5u2 + 4u3) = c0 = 0
Examples
V = {cw c R} Subspace?
Subspace? u S1, u 0 u S1
1 1 1 1
Subspace? 1, 1 S2 but 1 1 S2
Property 1. ∈
Property 2. , ∈ , + ∈V
Property 3. ∈ ,c ∈
Span Subspace
Next lecture
Column Space and Row Space
Standard matrix
Range of T =
RREF
• Original Matrix A vs. its RREF R
• Columns:
• The relations between the columns are the
same.
• The span of the columns are different.
• Rows:
• The relations between the rows are changed.
• The span of the rows are the same.
Consistent
Ax = b have a solution (consistent)
b is the linear combination of columns of A
b is in the span of the columns of A
b is in Col A
2 2
u 1 Col A? v 1 Col A?
1 3
Solving Ax = u Solving Ax = v
• Null A is a subspace in Rn
= 1
= 1
0
a generating set for the null space
Basis
(Chapter 4.2)
Basis Why nonzero?
{ } is a basis for R2
RREF
pivot columns
Col A = Span
Property
• (a) S is contained in Span S Basis is always in
its subspace
Example
Find dim V
=3 −5 +6
dim V = 3
Reduction Theorem
There is a basis containing in any generating
set S.
S can be reduced to a basis for V by removing
some vectors.
Theorem 1 – Reduction Theorem
所有的 generating set 心中都有一個 basis
Subspace = = = Span
1 2 −1 2 1 2 Smallest generating set
= −1 , −2 , 1 , 2 , 3 , 6
2 4 −3 2 0 3
−3 6 2 0 3 9 Generation set
RREF
=
Theorem 2
A basis is the largest independent set in the subspace.
Extension Theorem
Given an independent vector set S in the space
S can be extended to a basis by adding more vectors
Theorem 2 – Extension Theorem
Independent set:
我不是一個 basis 就是正在成為一個 basis
There is a subspace V
Given a independent vector set S (elements of S are in V)
If Span S = V, then S is a basis
If Span S ≠ V, find v1 in V, but not in Span S
S = S ⋃ {v1} is still an independent set
If Span S = V, then S is a basis
If Span S ≠ V, find v2 in V, but not in Span S
S = S ⋃ {v2} is still an independent set V
…… You will find the basis in the end.
Textbook P245
Null B
Theorem 3 Null C
Is C a basis of V ?
Independent? yes
Generating set? difficult
generates V
Another way
Find a basis for V
• Given a subspace V, assume that we already know that dim
V = k. Suppose S is a subset of V with k vectors
If S is independent S is basis
If S is a generating set S is basis
If S is independent S is basis
Example
• Is B a basis of V ?
Dim V = ? 3 B is a basis of V.
●
Example
• Is B a basis of V = Span S ? B is a subset of V with 3
vectors
1 0 0 −2/3
= 0 1 0 1/3
0 0 1 2/3
0 0 0 0
1 0 0
= 0 1 0
0 0 1 B is a basis of V.
0 0 0
Dimension of Basis
(Chapter 4.3)
Col A = Range
• Basis: The pivot columns of A form a basis for Col A.
Col A = Span
• Dimension:
Dim (Col A) = number of pivot columns
= rank A
Rank A (revisit)
Maximum number of Independent Columns
RREF
R=
• Proof
3 1 −2 1 5 10 1 0 1
Null A =
1 0 1 0 1
=
01−50 4
−5−2 5 −5 −3 00 0 1−2
−2−1 3 2 −10 00 0 0 0
• Basis:
• Solving Ax = 0
• Each free variable in the parametric representation of
the general solution is multiplied by a vector.
• The vectors form the basis.
=− − −1 −1
+ + =0 =5 −4 5 −4
−5 +4 =0 = 1 + 0
= (free) 0 2
−2 =0 =2 0 1
= (free)
Basis
Null A
• Basis:
• Solving Ax = 0
• Each free variable in the parametric representation of
the general solution is multiplied by a vector.
• The vectors form the basis.
• Dimension:
Dim (Null A) = number of free variables
= Nullity A
= n - Rank A
Dimension Theorem
A A
range
Four fundamental
subspaces of
Rn Rm
: Rn → Rm
one-to-one
Rn Rm
※
No Solution
One Solution
Infinite Solutions
+
z
※
The Meaning of Matrix Transpose
A=
: Rn → Rm : Rm → Rn
x Ax
ATy y
AT
Preservation of dot product in Rn and Rm
※
Finite vs. Infinite-dimension
Vector Space
• Care has to be taken when dealing with infinite-
dimension vector spaces.
• E.g. Consider the “vector space” containing all
polynomial functions with basis P={1, , , …}
Is it really a vector space?
No!
B -coordinate vector of v:
B
(用 B 的觀點來看 )
New Coordinate System B
E =
1
=
−1
{e1, e2} is a coordinate system 1 1
6 8
8
4 E =
4 4B =
6
−2
8
−2
8 8
=8 +4 =6 + (−2)
4 4
Vector
1 0 2 0
= = = =
0 1 0.5 0.5
2 2
3 3
4
for left
2.5
4
2 +3 =
2.5
Vector
1 0 2 0
= = = =
0 1 0.5 0.5
2 home 2
home
3 3
4
for left
2.5
4
2 +3 =
2.5
New Coordinate System B
E =
1
=
−1
{e1, e2} is a coordinate system 1 1
6
8
4 E =
4 B=
6
−2
8
−2
8 8
=8 +4 =6 + (−2)
4 4
E= (standard vectors) E
E is Cartesian coordinate system (直角坐標系)
Coordinate System
• A vector set B can be considered as a coordinate
system for Rn if:
• 1. The vector set B spans the Rn
Every vector should have a representation
B is a basis of Rn
Why Basis?
• Let vector set B= , , ⋯ , be independent.
• Any vector v in Span B can be uniquely represented as a
linear combination of the vectors in B.
• That is, there are unique scalars , , ⋯ , such that =
+ + ⋯+
• Proof:
Unique? = + + ⋯+
= + + ⋯+
− + − + ⋯+ − =0
B is independent a1 b1 = a2 b2 = = ak bk = 0
Change Coordinate
(Chapter 4.4)
Coordinate System
• Let vector set B= , ,⋯, be a basis for a subspace
Rn
B is a coordinate system
B -coordinate vector of v:
B
(用 B 的觀點來看 )
Other System → Cartesian
1 1 1 3
B= 1 , −1 , 2 B= 6
1 1 2 −2
1 1 1 7
= 3 1 + 6 −1 − 2 2 = −7
1 1 2 5
1 4 7 3
C= 2 , 5 , 8 C= 6
3 6 9 −2
1 4 7 13
=3 2 +6 5 −2 8 = 20
3 6 9 27
Other System → Cartesian
• Let vector set B= be a basis for a
subspace Rn
• Matrix
B (matrix-vector product)
Cartesian → Other System
1 1 1 1
= −4 B= 1 , −1 , 2 find [v]B
4 1 1 2
[v]B
1 1 1
= 1 −1 2 B is invertible (?) independent
1 1 2
B B
Cartesian Other System
• Let B = {b1 , b2 , , bn}
B
B
Equation of ellipse
Rotate 45◦
2 2 3
3
x2 y2
2
2 1 ?
3 2
●
Equation of ellipse
Use another coordinate system
B ={ }
2 3
( x) 2 ( y) 2
2
2 1
3 2
●
Equation of ellipse
B ={ }
( x) 2 ( y) 2
2
2 1
3 2
Linear Function in
Coordinate System
(Chapter 4.5)
Basic Idea
Simple Function
Another output’
Input’
coordinate
system
Cartesian
coordinate Input Output
system Complex Function
Basic Idea
Simple Function
Another output’
Input’
coordinate
system
Cartesian
coordinate Input Output
system Complex Function
Sometimes a function can be
complex ……
• T: reflection about a line L through the origin in R2
Sometimes a function can be
complex ……
• T: reflection about a line L through the origin in R2
′ ′ ′
= =−
Describing the function in another
coordinate system
• T: reflection about a line L through the origin in R2
B=
=−
=
Describing the function in another
coordinate system
• T: reflection about a line L through the origin in R2
B B
reflection about the
horizontal line
B
B B
C
C C
Corresponding matrix of operator T depends on
the coordinate system
※
B
B B
reflection about the
horizontal line
同一件事情
不同的詮釋
Cartesian
coordinate
system
B B
similar similar
• Example: reflection operator T about the line y = (1/2)x
0.4 0.2 2 −1
= =
−1 −0.2 0.4 1 2
=
2 y = (1/2)x
B
B B
2
=
1
0 y = (1/2)x
= =?
1
1
=
0
B
• Example: reflection operator T about the line y = (1/2)x
0.4 0.2 2 −1
= =
−0.2 0.4 1 2
B
B B
−0.5 y = (1/2)x
=
1
4
=
2
=?
B
Example (P279)
B =?
3 0 1 B B
= 1 1 0
−1 −1 3 B=
1 1 2
= 1 2 1
1 3 1
3 −9 8 is known
−1 3 −3
B=
1 6 1 = B
Example (P279) Determine T
b1 c1 b2 c2 b3 c3
b1 b2 b3 c1 c2 c3
Example (P279) Determine T
B= =
[ ]= B = =
b1 b2 b3 c1 c2 c3
Conclusion
B
B coordinate
B B
system
B=
Cartesian
coordinate
system
= B