Professional Documents
Culture Documents
MM Ch04
MM Ch04
Vector Spaces
4.1 Vectors in Rn
4.2 Vector Spaces
4.3 Subspaces of Vector Spaces
4.4 Spanning Sets and Linear Independence
4.5 Basis and Dimension
4.6 Rank of a Matrix and Systems of Linear Equations
4.7 Coordinates and Change of Basis
4.8 Applications of Vector Spaces 4.1
n
4.1 Vectors in R
An ordered n-tuple (有序的n項) :
a sequence of n real numbers ( x1 , x2 , , xn )
n
R -space (n維空間) :
the set of all ordered n-tuples
n=1 R1-space = set of all real numbers
(R1-space can be represented geometrically by the x-axis)
4.2
Notes:
(1) An n-tuple ( x1 , x2 ,, xn ) can be viewed as a point in Rn
with the xi’s as its coordinates (座標)
(2) An n-tuple ( x1 , x2 ,, xn ) also can be viewed as a vector
x ( x1 , x2 , , xn ) in Rn with the xi’s as its components (分量)
Ex:
x1 , x2 x1 , x2
or
0,0
a point a vector
※ A vector on the plane is expressed geometrically by a directed line segment
whose initial point is the origin and whose terminal point is the point (x1, x2)
4.3
u u1 , u2 , , un , v v1, v2 , , vn (two vectors in Rn)
Equality:
u v if and only if u1 v1 , u2 v2 , , un vn
Notes:
The sum of two vectors and the scalar multiple of a vector
in Rn are called the standard operations in Rn
4.4
Difference between u and v:
u v u (1) v (u1 v1 , u2 v2 , u3 v3 ,..., un vn )
4.5
Notes:
A vector u (u1 , u2 ,, un ) in R n can be viewed as:
Use comma to separate components
Sol: (a) x 2u ( v 3w )
2u (1)( v 3w )
2u v 3w (distributive property of scalar multiplication over vector addition)
(4, 2, 10, 0) (4, 3, 1, 1) ( 18, 6, 0, 9)
(4 4 18, 2 3 6, 10 1 0, 0 1 9)
(18, 11, 9, 8)
4.9
(b) 3(x w ) 2u v x
3x 3w 2u v x (distributive property of scalar multiplication over vector addition)
3x x 2u v 3w (subtract (3w+x) from both sides)
2x 2u v 3w
x u 12 v 32 w (scalar multiplication for the both sides with a scalar to be 1/2)
2, 1,5, 0 2, 23 , 21 , 12 9, 3, 0, 29
9, 211 , 92 , 4
4.10
Notes:
(1) The zero vector 0 in Rn is called the additive identity (加法單
位元素) in Rn (see Property 4)
(2) The vector –u is called the additive inverse (加法反元素) of
u (see Property 5)
4.13
4.2 Vector Spaces
Vector spaces (向量空間):
Let V be a set on which two operations (addition and scalar
multiplication) are defined. If the following ten axioms are
satisfied for every element u, v, and w in V and every scalar (real
number) c and d, then V is called a vector space, and the
elements in V are called vectors
Addition:
(1) u+v is in V
(2) u+v = v+u
(3) u+(v+w) = (u+v)+w
(4) V has a zero vector 0 such that for every u in V, u+0 = u
(5) For every u in V, there is a vector in V denoted by –u
such that u+(–u) = 0
4.14
Scalar multiplication:
(6) cu is in V
(7) c(u v) cu cv
(8) (c d )u cu du
(9) c(du) (cd )u
(10) 1(u ) u
4.15
Notes:
4.16
Four examples of vector spaces are shown as follows. (It is
straightforward to show that these vector spaces satisfy the above ten axioms)
n
(1) n-tuple space: R
(u1 , u2 ,un ) (v1 , v2 , v2 ) (u1 v1 , u2 v2 ,un vn ) (standard vector addition)
k (u1 , u2 ,un ) (ku1 , ku2 , kun ) (standard scalar multiplication for vectors)
※ By the fact that the sum of two continuous function is continuous and the
product of a scalar and a continuous function is still a continuous
function, C (, ) is a vector space
4.18
Summary of important vector spaces
R set of all real numbers
R 2 set of all ordered pairs
R 3 set of all ordered triples
R n set of all n-tuples
C (, ) set of all continuous functions defined on the real number line
C[a, b] set of all continuous functions defined on a closed interval [a, b]
P set of all polynomials
Pn set of all polynomials of degree n
M m,n set of m n matrices
M n ,n set of n n square matrices
※ The standard addition and scalar multiplication operations are considered if there is
no other specification
※ Each element in a vector space is called a vector, so a vector can be a real number,
an n-tuple, a matrix, a polynomial, a continuous function, etc. 4.19
Notes: To show that a set is not a vector space, you need
only find one axiom that is not satisfied
Ex 6: The set of all integers (整數) is not a vector space
Pf: 1V , and 12 is a real-number scalar
( 12 )(1) 12 V (it is not closed under scalar multiplication)
noninteger
scalar
integer
※ The proofs are valid as long as they are logical. It is not necessary to follow the
same proofs in the text book or the solution manual 4.23
Keywords in Section 4.2:
vector space: 向量空間
n-space: n維空間
matrix space: 矩陣空間
polynomial space: 多項式空間
function space: 函數空間
4.24
4.3 Subspaces of Vector Spaces
Subspace (子空間):
(V , , ) : a vector space
W
: a nonempty subset of V
W V
(W , , ) : The nonempty subset W is called a subspace if W is
a vector space under the operations of vector
addition and scalar multiplication defined on V
Trivial subspace (顯然子空間):
Every vector space V has at least two subspaces
(1) Zero vector space {0} is a subspace of V (It satisfies the ten axioms)
(2) V is a subspace of V
※ Any subspaces other than these two are called proper (or nontrivial) subspaces
4.25
Examination of whether W being a subspace
– Since the vector operations defined on W are the same as
Sol:
1 0 0 0
A W , B W
0 0 0 1
1 0
A B I W (W is not closed under vector addition)
0 1
W is not a subspace of M 22
4.29
Ex 4: The set of first-quadrant vectors is not a subspace of R2
Show that W {( x1 , x2 ) : x1 0 and x2 0} , with the standard
operations, is not a subspace of R2
Sol:
Let u (1, 1) W
1u 11, 1 1, 1W
(W is not closed under scalar multiplication)
W is not a subspace of R 2
4.30
2
Ex 6: Identify subspaces of R
Which of the following two subsets is a subspace of R2?
(a) The set of points on the line given by 𝑥 + 2𝑦 = 0
(b) The set of points on the line given by 𝑥 + 2𝑦 = 1
Sol:
(a) W ( x, y) x 2 y 0 (2t, t ) t R
(Note: the zero vector
(0,0) is on this line)
W is a subspace of R 2
4.31
(b) W x, y x 2 y 1 (Note: the zero vector (0, 0) is not on this line)
Consider v (1, 0) W
1 v 1,0 W W is not a subspace of R 2
Notes: Subspaces of R2
(1) W consists of the single point 0 0, 0 (trivial subspace)
(2) W consists of all points on a line passing through the origin
(3) R 2 (trivial subspace)
4.32
Ex 8: Identify subspaces of R3
Which of the following subsets is a subspace of R 3?
(a) W ( x1 , x2 ,1) x1 , x2 R (Note: the zero vector is not in W)
(b) W ( x1 , x1 x3 , x3 ) x1 , x3 R (Note: the zero vector is in W)
Sol:
(a)
4.33
(b)
4.35
Theorem 4.6: The intersection (交集) of two subspaces is a subspace
If V and W are both subspaces of a vector space U ,
then the intersection of V and W (denoted by V W )
is also a subspace of U
Pf:
(1) For v1 and v 2 in V W , since v1 and v 2 are in V (and W ),
v1 v 2 is in V (and W ). Therefore, v1 v 2 is in V W
(2) For v1 in V W , since v1 is in V (and W ),
cv1 is in V (and W ). Therefore, cv1 is in V W
4.37
4.4 Spanning Sets and Linear Independence
This section introduces the spanning set, linear independence, and
linear dependence
The above three notions are associated with the representation of
any vector in a vector space as a linear combination of a selected
set of vectors in that vector space
u c1v1 c2 v 2 ck v k ,
4.38
Ex 2 and 3: Finding a linear combination
v1 (1,2,3) v 2 (0,1,2) v 3 ( 1,0,1)
Prove (a) w (1,1,1) is a linear combination of v1 , v 2 , v 3
(b) w (1, 2,2) is not a linear combination of v1 , v 2 , v3
Sol:
(a) w c1v1 c2 v 2 c3 v3
1,1,1 c1 1,2,3 c2 0,1,2 c3 1,0,1
(c1 c3 , 2c1 c2 , 3c1 2c2 c3 )
c1 c3 1
2c1 c2 1
3c1 2c2 c3 1
4.39
1 0 1 1 1 0 1 1
2 1 0 1
G.-J. E.
0 1 2 1
3 2 1 1 0 0 0 0
c1 1 t , c2 1 2t , c3 t
4.40
(b)
w c1 v1 c2 v 2 c3 v 3
1 0 1 1 1 0 1 1
2 1 0 2
G.-J. E.
0 1 2 4
3 2 1 2 0 0 0 7
4.41
The span of a set: span(S)
If S = {v1, v2,…, vk} is a set of vectors in a vector space V,
then the span of S is the set of all linear combinations of
the vectors in S,
span(S ) c1v1 c2 v 2 ck v k ci R
(the set of all linear combinations of vectors in S )
4.42
Notes: The above statement can be expressed as follows
span( S ) V
S spans (generates) V
V is spanned (generated) by S
S is a spanning set of V
Ex 4:
(a) The set S {(1, 0, 0), (0,1, 0), (0, 0,1)} spans R3 because any vector
u (u1 , u2 , u3 ) in R 3 can be written as
u u1 (1, 0, 0) u2 (0,1, 0) u3 (0, 0,1)
span( S ) R3
Notes:
※ For any set S1 containing the set S, if S can span R3, S1 can span R3 as well
(e.g., S1 v1 , v2 , v3 , v4 (1, 2,3),(0,1, 2),(2,0,1),(1,0,0)).
※ Actually, in this case, what S1 can span is only R3. Since v1, v2, and v3
span R3, v4 must be a linear combination of v1, v2, and v3. So, adding v4
will not generate more combinations. As a consequence, v1, v2, v3, and v4
can only span R3
4.45
Theorem 4.7: span(S) is a subspace of V
If S = {v1, v2,…, vk} is a set of vectors in a vector space V, then
(a) span(S) is a subspace of V
(b) span(S) is the smallest subspace of V that contains S, i.e.,
every other subspace of V containing S must contain span(S)
any subspace
containing S
v1
vk
v3 v2
span(S)
V
※ For example, V = R5, S = {(1, 0, 0, 0, 0), (0, 1, 0, 0, 0), (0, 0, 1, 0, 0)} and
thus span(S) = R3, and U = R4, U contains S and contains span(S) as well
4.46
Pf:
(a)
Consider any two vectors u and v in span(S ), that is,
u =c1 v1 c2 v 2 ck v k and v =d1 v1 d 2 v 2 d k v k
4.47
(b)
Let U be another subspace of V that contains S , and we want to
show span(S ) U
k
Consider any u span(S ), i.e., u = ci v i , where v i S
i =1
(because U is closed under
U is a subspace k vector addition and scalar
U contains S v i U u = ci v i U multiplication, and any linear
combination can be evaluated
i =1 with finite vector additions
and scalar multiplications)
4.48
Definitions
of Linear Independence (L.I.) (線性獨立) and Linear
Dependence (L.D.) (線性相依):
For c1v1 c2 v 2 ck v k 0
(1) If the equation has only the trivial solution (c1 c2 ck 0)
then S (or v1 , v 2 , , v k ) is called linearly independent
(2) If the equation has a nontrivial solution (i.e., not all ci 's are zero),
then S (or v1 , v 2 , , v k ) is called linearly dependent (The name of
linear dependence is from the fact that in this case, there exist at least
one v i which can be represented by the linear combination of {v1 , v 2 ,
, v i 1 , v i 1 , v k } in which the coefficients are not all zeros. This
statement will be proved in Theorem 4.8 on Slide 4.54) 4.49
Ex 8: Testing for linear independence
Determine whether the following set of vectors in R3 is L.I. or L.D.
S v1 , v 2 , v 3 1, 2, 3 , 0, 1, 2 , 2, 0, 1
Sol: c1 2c3 0
c1v1 c2 v 2 c3 v 3 0 2c1 c2 0
3c1 2c2 c3 0
1 0 2 0 1 0 0 0
2 1 0 0 G.-J. E.
0 1 0 0
3 2 1 0 0 0 1 0
c1 c2 c3 0 only the trivial solution
(or det(A) 1 0, so there is only the trivial solution)
S is (or v1, v 2 , v3 are) linearly independent 4.50
Ex 9: Testing for linear independence
Determine whether the following set of vectors in P2 is L.I. or L.D.
S v1 , v 2 , v 3 1 x 2 x 2 ,2 5 x x 2 ,x x 2
Sol:
c1v1+c2v2+c3v3 = 0
i.e., c1(1+x – 2x2) + c2(2+5x – x2) + c3(x+x2) = 0+0x+0x2
c1+2c2 =0 1 2 0 0 1 2 0 0
1 5 1 0
c1+5c2+c3 = 0
G. E.
0 1 3 0
1
–2c1– c2+c3 = 0 2 1 1 0
0 0 0 0
This system has infinitely many solutions
(i.e., this system has nontrivial solutions, e.g., c1=2, c2= – 1, c3=3)
S is (or v1, v2, v3 are) linearly dependent
4.51
Ex 10: Testing for linear independence
Determine whether the following set of vectors in the 2×2
matrix space is L.I. or L.D.
2 1 3 0 1 0
S v1 , v 2 , v3 , ,
0 1 2 1 2 0
Sol:
c1v1+c2v2+c3v3 = 0
2 1 3 0 1 0 0 0
c1 c2 c3
0 1 2 1 2 0 0 0
4.52
2c1+3c2+ c3 = 0
c1 =0
2c2+2c3 = 0
c1 + c2 =0
2 3 1 0 1 0 0 0
1 0 0 0 G.-J. E. 0 1 0 0
0 2 2 0 0 0 1 0
1 1 0 0 0 0 0 0
S is linearly independent
4.53
Theorem 4.8: A property of linearly dependent sets
A set S = {v1,v2,…,vk}, for k 2, is linearly dependent if
and only if at least one of the vectors vi in S can be written
as a linear combination of the other vectors in S
Pf:
()
c1v1+c2v2+…+civi+…+ckvk = 0
ci 0 for some i
c1 ci 1 ci 1 ck
vi v1 vi 1 vi 1 vk
ci ci ci ci 4.54
()
Let vi = d1v1+…+di-1vi-1+di+1vi+1+…+dkvk
d1v1+…+di-1vi-1+(–1)vi +di+1vi+1+…+dkvk = 0
c1 = d1 , c2 = d2 ,…, ci = –1 ,…, ck = dk (there exits at least this
nontrivial solution)
S is linearly dependent
4.55
Keywords in Section 4.4:
linear combination: 線性組合
spanning set: 生成集合
trivial solution: 顯然解
linear independence: 線性獨立
linear dependence: 線性相依
4.56
4.5 Basis and Dimension
Basis (基底): Linearly
Spanning Bases
V: a vector space Sets
Independent
Sets
S = {v1, v2, …, vn}V
V
(1) S spans V (i.e., span(S) = V)
(For any u V , ci v i Ax u has at least one solution (If there is
exact one solution (det( A) 0) or if there are infinitely many
solutions (det( A) 0))
(2) S is linearly independent
(For ci v i = Ax 0, there is only the trivial solution (det(A) 0).
See the definition on Slide 4.49 and Ex 8 on Slide 4.50)
4.58
(3) the standard basis for mn matrix space:
aij 1
{ Eij | 1im , 1jn }, and in Eij
other entries are zero
Ex: 2 2 matrix space:
1 0 0 1 0 0 0 0
, , ,
0 0 0 0 1 0 0 1
4.59
Ex 2: The nonstandard basis for R2
Show that S {v1 ,v 2 } {(1,1), (1, 1)} is a basis for R 2
c1 c2 u1
(1) For any u (u1 , u2 ) R , c1 v1 c2 v 2 u
2
c1 c2 u2
Because the coefficient matrix of this system has a nonzero determinant, the
system has a unique solution for each u. Thus you can conclude that S spans R2
c1 c2 0
(2) For c1 v1 c2 v 2 0
c1 c2 0
Because the coefficient matrix of this system has a nonzero determinant, you
know that the system has only the trivial solution. Thus you can conclude that S is
linearly independent
Finite dimensional:
A vector space V is finite dimensional if it has a basis
consisting of a finite number of elements
Infinite dimensional:
If a vector space V is not finite dimensional, then it is called
infinite dimensional
4.65
Notes: dim(V) = n
Linearly
(1) dim({0}) = 0 Spanning
Bases Independent
Sets Sets
(If V consists of the zero vector alone,
the dimension of V is defined as zero)
dim(V) = n
Linearly
Spanning
Bases Independent
Sets
Sets
#(S) n #(S) n
#(S) = n 4.70
Keywords in Section 4.5:
basis: 基底
dimension: 維度
finite dimension: 有限維度
infinite dimension: 無限維度
4.71
4.6 Rank of a Matrix and Systems of Linear Equations
4.72
row vectors: (with size 1×n) row vectors of A
a11 a12 a1n A1 (a11 a12 a1n ) A(1)
a a a A (a21 a22 a2n ) A(2)
2
A 21 22 2n
am1 am 2 amn m
A (am1 am 2 amn ) A(m )
※ So, the row vectors are vectors in Rn
column vectors: (with size m×1) column vectors of A
a11 a12 a1n a11 a12 a1n
a a22 a2 n a a a
A 21
A1 A 2 A n 21 22 2 n
am1 am 2 amn am1 am 2 amn
|| || ||
(1) (2) (n)
※ So, the column vectors are vectors in Rm A A A
4.73
Let A be an m×n matrix:
Row space (列空間) of A is a subspace of Rn spanned by the
row vectors of A:
RS ( A) { 1 A(1) 2 A( 2 ) ... m A( m ) | 1 , 2 ,..., m R}
(If A(1), A(2), …, A(m) are linearly independent, A(1), A(2), …, A(m) can form a basis for RS(A))
Notes:
(1) The definitions of RS(A) and CS(A) satisfy automatically the
closure conditions of vector addition and scalar multiplication
(2) dim(RS(A)) (or dim(CS(A)) equals the number of linearly
independent row (or column) vectors of A 4.74
In Ex 5 of Section 4.4, S = {(1, 2, 3), (0, 1, 2), (–2, 0, 1)} spans R3.
Use these vectors as row vectors to construct A
1 2 3
A 0 1 2 RS ( A) R3
2 0 1
(Since (1, 2, 3), (0, 1, 2), (–2, 0, 1) are linearly independent, they can form a basis for RS(A))
Since S1 = {(1, 2, 3), (0, 1, 2), (–2, 0, 1), (1, 0, 0)} also spans R3,
1 2 3
0 1 2
A1 RS ( A1 ) R 3
2 0 1
1 0 0
(Since (1, 2, 3), (0, 1, 2), (–2, 0, 1) (1, 0, 0) are not linearly independent, they cannot be a
basis for RS(A1))
Notes: dim(RS(A)) = 3 and dim(RS(A1)) = 3 4.75
Theorem 4.13: Row-equivalent matrices have the same row space
If an mn matrix A is row equivalent to an mn matrix B,
then the row space of A is equal to the row space of B
Pf:
(1) Since B can be obtained from A by elementary row operations,
the row vectors of B can be expressed as linear combinations of
the row vectors of A The linear combinations of row vectors
in B must be linear combinations of row vectors in A any
vector in RS(B) lies in RS(A) RS(B) RS(A)
(2) Since A can be obtained from B by elementary row operations,
the row vectors of A can be written as linear combinations of
the row vectors of B The linear combinations of row vectors
in A must be linear combinations of row vectors in B any
vector in RS(A) lies in RS(B) RS(A) RS(B)
RS ( A) = RS ( B) 4.76
Notes:
(1) The row space of a matrix is not changed by elementary
row operations
RS(r(A)) = RS(A) r: any elementary row operation
(2) But elementary row operations will change the column space
Theorem 4.14: Basis for the row space of a matrix
If a matrix A is row equivalent to a matrix B in the (reduced)
row-echelon form, then the nonzero row vectors of B form a
basis for the row space of A
1. The row space of A is the same of the row space of B (Thm. 4.13), spanned by all row vectors in B
2. For the row space of B, it can be constructed by the linear combinations of only nonzero row
vectors since it is impossible to generate more combinations when taking zero row vectors into
consideration (i.e., nonzero row vectors span the row space of B)
3. Since it is impossible to express a nonzero row vector as the linear combination of other nonzero
row vectors in a row-echelon form matrix (see Ex. 2 on the next slide), according to Thm. 4.8, we
can conclude that the nonzero row vectors in B are linearly independent
4. As a consequence, since the nonzero row vectors in B are linearly independent and span the row
space of B, according to the definition on Slide 4.57, they form a basis for the row space of B and
for the row space of A as well 4.77
Ex 2: Finding a basis for a row space
1 3 1 3
0 1 1 0
Find a basis of the row space of A = 3 0 6 1
3 4 2 1
2 0 4 2
Sol: 1 3 1 3 1 3 1 3 w 1
0 1 1 0 0 1 1 0 w 2
3 0 6 1 1 w 3
A=
G. E.
B = 0 0 0
3 4 2 1 0 0 0 0
2 0 4 2 0 0 0 0
a1 a2 a3 a4 b1 b2 b3 b4
4.78
a basis for RS(A) = {the nonzero row vectors of B} (Thm 4.14)
= {w1, w2, w3} = {(1, 3, 1, 3), (0, 1, 1, 0), (0, 0, 0, 1)}
(Check: w1, w2, w3 are linearly independent, i.e., aw1 + bw2 + cw3 = 0 has only the
trivial solution or it is impossible to express any one of them to be the linear
combination of the others (Theorem 4.8))
Notes:
Although row operations can change the column space of a
matrix (mentioned in Slide 4.77), they do not change the
dependency relationships among columns
(1) {b1 , b 2 , b 4 } is L.I. (because these columns have the leading 1's)
{a1 , a2 , a4 } is L.I.
(2) b3 2b1 b2 a3 2a1 a2
(The linear combination relationships among column vectors in B still hold for
column vectors in A)
4.79
Ex 3: Finding a basis for a subspace using Thm. 4.14
Find a basis for the subspace of R3 spanned by
v1 v2 v3
S {(1, 2, 5), (3, 0, 3), (5, 1, 8)}
Sol:
1 2 5 v 1 1 2 5 w1
A = 3 0 3 v 2 G. E.
B 0 1 3 w 2
5 1 8 v 3 0 0 0
(Construct A such that RS(A) = span(S))
4.82
Sol. 2: 1 3 1 3 1 3 13
0 1 1 0 0 1 10
A 3 0 6 1 G. E.
B 0 0 01
3 4 2 1 0 0 00
2 0 4 2 0 0 00
a1 a2 a3 a4 b1 b2 b3 b4
Leading 1’s {b1, b2, b4} is a basis for CS(B) (not for CS(A))
{a1, a2, a4} is a basis for CS(A)
※ This method utilizes that B is with the same dependency relationships among columns as
A (mentioned on Slides 4.77 and 4.79), which does NOT mean CS(B) = CS(A)
Notes:
The bases for the column space derived from Sol. 1 and Sol. 2
are different. However, both these bases span the same CS(A),
which is a subspace of R5 4.83
Theorem 4.16: The definition of the nullspace (零空間)
If A is an mn matrix, then the set of all solutions of the
homogeneous system of linear equations Ax = 0 is a subspace of Rn
called the nullspace of A, which is denoted as NS ( A) {x Rn | Ax 0}
Pf:
NS ( A) R n
NS ( A) is not empty ( A0 0)
Let x1 , x 2 NS ( A) (i.e., Ax1 0 and Ax 2 0)
Then (1) A(x1 x 2 ) Ax1 Ax 2 0 0 0 (closure under addition)
Thus NS ( A) is a subspace of R n
Notes: The nullspace of A is also called the solution space (解
空間) of the homogeneous system Ax = 0 4.84
Ex 6: Finding the solution space (or the nullspace) of a
homogeneous system with the coefficient matrix A as follows.
1 2 2 1
A 3 6 5 4
1 2 0 3
Sol: The nullspace of A is the solution space of Ax = 0
1 2 2 1 0 1 2 0 3 0
augmented matrix 3 6 5 4 0 G.-J. E.
0 0 1 1 0
1 2 0 3 0 0 0 0 0 0
x1 = –2s – 3t, x2 = s, x3 = –t, x4 = t
x1 2 s 3t 2 3
x s 1 0
x 2 s t sv 1 t v 2
x3 t 0 1
4
x t 0 1
NS ( A) {sv1 tv 2 | s, t R} 4.85
Theorem 4.15: Row and column space have equal dimensions
If A is an mn matrix, then the row space and the column
space of A have the same dimension
dim(RS(A)) = dim(CS(A))
※You can verify this result numerically through comparing Ex 2 (bases for
the row space) with Ex 4 (bases for the column space) in this section. In
these two examples, A is a 54 matrix, dim(RS(A)) = #(basis for RS(A)) = 3,
and dim(CS(A)) = #(basis for CS(A)) = 3
Rank (秩):
The dimension of the row (or column) space of a matrix A
is called the rank of A
rank(A) = dim(RS(A)) = dim(CS(A))
Nullity (核次數):
The dimension of the nullspace of A is called the nullity of A
nullity(A) = dim(NS(A)) 4.86
Theorem 4.17: Dimension of the solution space
If A is an mn matrix of rank r, then the dimension of
the solution space of Ax = 0 (the nullsapce of A) is n – r, i.e.,
n = rank(A) + nullity(A) = r + (n – r)
(n is the number of columns or the number of unknown variables)
Pf:
Since rank(A) r , the reduced row echelon form of [A|0] after G.-J. E. should be
1 0 0 c11 c12 c1,n-r 0 1. From Thm 4.14, the nonzero row
0 1 0 c c c2,n-r 0
vectors of B, which is the (reduced)
21 22
r row-echelon form of A, forms a
basis for RS(A)
0 0 1 cr1 cr 2 cr ,n-r 0 2. From the definition that rank(A) =
0 0 0 0 0 0 0 dim(RS(A)) = r
m r ※ According to the above two facts,
the reduced row echelon form
0 0 0 0 0 0
0 should have r nonzero rows like
r nr the left matrix 4.87
Therefore, the corresponding system of linear equations is
x1 c11 xr 1 + c12 xr 2 + + c1, n r xn = 0
x2 + c21 xr 1 + c22 xr 2 + + c2, n r xn = 0
xr + cr1 xr 1 + cr 2 xr 2 + + cr , n r xn = 0
1 0 2 1 0 1 0 2 0 1
0 1 3 1 3 0 1 3 0 4
A B
2 1 1 1 3 0 0 0 1 1
0 3 9 0 12 0 0 0 0 0
a1 a2 a3 a4 a5 b1 b2 b3 b4 b5
4.90
(b) Leading 1’s
{b1 , b 2 , b 4} is a basis for CS ( B)
{a1 , a 2 , a 4} is a basis for CS ( A)
1 0 1
0 1 1
a1 , a 2 , and a 4 ,
2 1 1
0 3 0
4.91
Theorem 4.18: Solutions of a nonhomogeneous linear system
If xp is a particular solution of the nonhomogeneous system
Ax = b, then every solution of this system can be written in
the form x = xp + xh , wher xh is a solution of the
corresponding homogeneous system Ax = 0
Pf:
Let x be another solution of Ax = b other than xp
A(x x p ) Ax Ax p b b 0
(x x p ) is a solution of Ax = 0
Let x h be the solution of Ax 0 and x h x x p
x x p xh
4.92
Ex 8: Finding the solution set of a nonhomogeneous system
Find the set of all solution vectors of the system of linear equations
x1 2 x3 x4 5
3x1 x2 5 x3 8
x1 2 x2 5 x4 9
Sol:
1 0 2 1 5 1 0 2 1 5
3 1 5 0 8 G.-J. E.
0 1 1 3 7
1 2 0 5 9 0 0 0 0 0
s t
4.93
x1 2s t 5 2 1 5
x s 3t 7 1 3 7
x 2 s t
x3 s 0t 0 0 0 0
x4 0s t 0 1 1 0
su1 tu 2 x p
5
7
i.e., x p is a particular solution vector of Ax = b,
0
0
det(A) ≠ 0 det(A) = 0
4.96
Theorem 4.19: Solution of a system of linear equations
The system of linear equations Ax = b is consistent if and only
if b is in the column space of A (i.e., b can be expressed as a
linear combination of the column vectors of A)
Pf:
Let
a11 a12 a1n x1 b1
a a22 a2 n x b
A 21
, x 2 , and b 2
am1 am 2 amn xn bn
be the coefficient matrix, the unknown vector, and the
constant-term vector, respectively, of the system Ax = b
4.97
Then
a11 a12 a1n x1 a11 x1 a12 x2 a1n xn
a a a x a x a x a2 n xn
Ax 21 22 2n 2 21 1 22 2
m1
a a m2 a mn xn am1 x1 am 2 x2 amn xn
a11 a12 a1n
a a a
x1 21 x2 22 xn 2 n x1 A(1) x2 A(2) xn A( n ) b
m1
a am 2 amn
4.102
4.7 Coordinates and Change of Basis
Coordinate representation relative to a basis
Let B = {v1, v2, …, vn} be an ordered basis for a vector space V
and let x be a vector in V such that
x c1v1 c2 v 2 cn v n .
※ The “ordered” basis means the sequence of the vectors in the basis is
specified (被指定的)
The scalars c1, c2, …, cn are called the coordinates of x relative
to the basis B (x於基底B的座標). The coordinate matrix of x
relative to B is a real-number column matrix whose components
are the coordinates of x
c1
c
xB 2
cn 4.103
Ex 1: Coordinates and components in Rn
Find the coordinate matrix of x = (–2, 1, 3) in R3
relative to the standard basis
S = {(1, 0, 0), ( 0, 1, 0), (0, 0, 1)}
Sol:
x (2, 1, 3) 2(1, 0, 0) 1(0, 1, 0) 3(0, 0, 1)
2
[x]S 1
3
※ For the standard basis in Rn, the coordinates of a vector are the
same as the components of that vector
4.104
Ex 3: Finding a coordinate matrix relative to a nonstandard basis
Find the coordinate matrix of x = (1, 2, –1) in R3 relative to the
following (nonstandard) basis
B' = {u1, u2, u3}={(1, 0, 1), (0, – 1, 2), (2, 3, – 5)}
Sol:
x c1u1 c2u 2 c3u3
(1, 2, 1) c1 (1, 0, 1) c2 (0, 1, 2) c3 (2, 3, 5)
c1 2c3 1 1 0 2 c1 1
c2 3c3 2 0 1 3 c 2
2
c1 2c2 5c3 1 1 2 5 c3 1
c1 5
[x]B c2 8
c3 2 4.105
Change of basis problem (基底變換問題):
You were given the coordinates of a vector relative to one
basis B' and were asked to find the coordinates relative to
another basis B
Ex: Change of basis
Consider two bases for a vector space V
B {u1 , u2}, B {u1 , u2 } (B’ is the original basis and B is the
target basis)
a c (To represent the basis vectors in B’ by
If [u1 ]B , [u2 ]B the coordinate matrices relative to B)
b d
i.e., u1 au1 bu 2 , u2 cu1 du 2
4.106
k1 (v is expressed as a coordinate matrix
Consider any v V , [ v]B relative to the basis B’)
k 2
v k1u1 k 2u2
k1 (au1 bu 2 ) k 2 (cu1 du 2 )
(k1a k 2 c)u1 (k1b k 2 d )u 2 (v can be expressed as a coordinate
matrix relative to the basis B)
k1a k2c a c k1
[ v ]B k
1
k b k 2
d b d 2
u1 B u2 B v B
4.107
Transition matrix from B' to B:
Let B {u1 , u 2 ,..., u n } and B {u1 , u2 ..., un } be two bases
for a vector space V
If [v]B is the coordinate matrix of v relative to B
[v]B’ is the coordinate matrix of v relative to B'
(the coordinate matrix relative to the target basis B is
then [ v]B P [ v]B derived by multiplying the transition matrix P to the left
of the coordinate matrix relative to the original basis B')
(The next slide uses the case of n = 2 to show why B B
G.-J. E.
I n P
works) 4.110
Consider two bases for a vector space V, B {u1 , u2}, B {u1 , u2 }
The transition matrix P from B ' to B is
a c
If [u1 ]B , [u2 ]B a c
b d (see the slide 4.107), so finding P
b d
i.e., u1 au1 bu 2 , u2 cu1 du 2 a c
is equivalent to solving and
b d
au11 bu21 u11 u21 a
u11 a
u au bu u B
12 12 22 12 u22 b b u11 u21
B u u B B
u11 1 0 aˆ 12 22
B G.-J. E.
u
12 0 1 ˆ
b 1 0 aˆ cˆ
G.-J. E.
ˆ ˆ [ I P]
cu11 du21 u11 u21 c
u21 c 0 1 b d
u cu du u B
22 12 22 12 u22 d d ※ This method is very similar to
the method for solving A-1
u21 1 0 cˆ through G.-J. E., i.e.
B G.-J. E. A | I I | A1
ˆ
G.-J. E.
u 22 0 1 d
4.111
Ex 5: (Finding a transition matrix)
B = {(–3, 2), (4,–2)} and B' = {(–1, 2), (2,–2)} are two bases for R2
1 2
For the original basis: B
2 2
3 4
For the target basis: B
2 2
4.112
Sol:
(a) 3 4 1 2 1 0 3 2
2 2 2 2
G.-J. E.
0 1 2 1
B B' I P
3 2
P (the transition matrix from B' to B)
2 1
(b)
3 2 1 1
[ v]B P [ v]B
2 1 2 0
4.113
(c)
1 2 3 4 1 0 1 2
2 2 2 2 G.-J. E.
0 1 2 3
–1
B' B I P
1 2
1
P (the transition matrix from B to B')
2 3
Check:
1 3 2 1 2 1 0
PP I
2 1 2 3 0 1
4.114
Ex 6: Coordinate representation in P3(x)
Find the coordinate matrix of p = 3x3 – 2x2 + 4 relative to the
nonstandard basis in P3(x), S = {1, 1 + x, 1 + x2, 1 + x3}
Sol:
Solve p = a(1) + b(1+x) + c(1+x2 ) + d(1+x3 )
p = 3(1) + 0(1+x) + (–2)(1+x2 ) + 3(1+x3 )
3
0
[p]S =
2
3
4.115
Ex: Coordinate representation in M2x2
Find the coordinate matrix of x =
5 6
relative to
7 8
the standard basis in M2x2
1 0 0 1 0 0 0 0
B = , , ,
0 0 0 0 1 0 0 1
Sol:
5 6 1 0 0 1 0 0 0 0
x 5 6 7 8
7 8 0 0 0 0 1 0 0 1
5
6
x B
7
8
4.116
Keywords in Section 4.7:
coordinates of x relative to B: x於基底B的座標
coordinate matrix: 座標矩陣
change of basis problem: 基底變換問題
transition matrix from B' to B: 從 B' 到 B的轉移矩陣
4.117
4.8 Applications of Vector Spaces
Conic Sections (二次曲線) and Rotation (see Application in
Ch4.pdf)
4.118