Professional Documents
Culture Documents
Chapter 4 PDF
Chapter 4 PDF
Vector Spaces
4.1 Vectors in Rn
4.2 Vector Spaces
4.3 Subspaces of Vector Space
4.4 Spanning Sets & Linear Independent
4.5 Basis & Dimension
4.6 Rank of a Matrix & Systems of Linear Equations
MAT1041 - Chapter 4 1
4.1 Vectors in R n
x
u = (u1, u2), v = (v1, v2), c is a scalar
x
Equal: u = v iff u1 = v1& u2 = v2 Initial point
Scalar multiplication: cv = c(v1, v2) = (cv1, cv2)
u u
x x
cu, c < 0
Vector Addition
Given u = (u1, u2) and v = (v1, v2)
Vector addition: u + v = (u1, u2) + (v1, v2) = (u1 + v1, u2 + v2)
Difference of u and v: u v = u + (v)
Example 3
y
(2, 5)
0.5v + u
(a) ½v =(½(2), ½(5))= (1, 5/2) v (3, 4)
(1, 52 )
(b) u v =(3(2), 45)= (5, 1) 1
v
u
2
x
(c) ½v + u = (1, 5/2) + (3, 4) = (2, 13/2) v-u (5, 1)
Theorem 4.1
Let u, v, and w be vectors in the plane, and let c and d be scalars.
Vectors in R n
Theorem 4.2
Let u, v, and w be vectors in the Rn, and let c and d be scalars.
Example 5
Let u = (2, 1, 5, 0), v = (4, 3, 1, 1), and w = (6, 2, 0, 3) be vectors
in R4. Solve for x in each of the following.
x = 2u (v + 3w)
x = 2u v 3w
= 2(2, 1, 5, 0) (4, 3, 1, 1) 3(6, 2, 0, 3)
= (18, 11, 9, 8)
3(x + w) = 2u v + x
3x + 3w = 2u v + x
x = ½(2u v 3w) = (9, 11/2, 9/2, 4)
Theorem 4.3: Let v be a vector in Rn, and let c be a scalar. Then the
following properties are true.
1. The additive identity is unique. That is, if v + u = v, then u = 0.
2. The additive inverse of v is unique. That is, if v + u = 0, then u = v.
3. 0v = 0.
4. c0 = 0.
5. If cv = 0, then c = 0 or v = 0.
6. (v) = v
MAT1041 - Chapter 4 4-12
Section 4-1
or
u1
u
an n1 column matrix (column vector) u 2
un
Examples 1 ~ 3
Example 1: R2 with the standard operations is a vector space
see Theorem 4.1
Example 2: Rn with the standard operations is a vector space
see Theorem 4.2
Example 3: Show that the set of all 23 matrices with the operations
of matrix addition and scalar multiplication is a vector space.
Sol: If A and B are 23 matrices and c is a scalar, then A+B and cA are also
23 matrices. Hence, the set is closed under matrix addition and scalar
multiplication. Moreover, the other eight vector space axioms follow
from Theorems 2.1 and 2.2. Thus, the set is a vector space.
proof: omitted
Example 6 ~ 7
Example 6 The set of integers is NOT a vector space
The set of all integers (with the standard operations) does not form
Example 8
Let V = R2, the set of all ordered pairs of real number, with the
standard addition and the following nonstandard definition of
scalar multiplication: c(x1, x2) = (cx1, 0).
Show that V is not a vector space.
proof: This example satisfies the first nine axioms of the definition of a vector
space. For example, let u = (1, 1), v = (3, 4), and c = 2, then we have
c(u + v) = 2(1+3, 1+4) = (8, 0), cu = (2, 0), cv = (6, 0).
Therefore, c(u + v) = cu + cv.
However, when c =1, 1(1, 1) = (1, 0) (1,1). The tenth axiom is not verified.
Hence, the set (together with the two given operations) is not a vector space.
MAT1041 - Chapter 4 4-21
4.3 Subspaces of Vector Spaces
Definition of Subspace of a Vector Space
A nonempty subset W of a vector space V is called a subspace of V
if W is itself a vector space under the operations of addition and
scalar multiplication defined in V.
Example 1 A subspace of R3
Show that the set W={(x1, 0, x3): x1, x3 R} is a subspace of R3 with
the standard operations.
(The set W can be interpreted as simply the xz-plane.)
proof: The set W is nonempty because it contains the zero vector (0, 0, 0).
The set W is closed under addition because the sum of any two vectors in the xz-
plane must also lie in the xz-plane. That is, if (x1, 0, x3) and (y1, 0, y3) are in W,
then their sum (x1+y1, 0, x3 +y3) is also in W.
To see that W is closed under scalar multiplication, let (x1, 0, x3) be in W and let
c be a scalar. Then c(x1, 0, x3) = (cx1, 0, cx3) has zero as its second component and
must therefore be in W.
The other eight vector space axioms can be verified as well, and these
verifications as left to you.
MAT1041 - Chapter 4 4-23
Section 4-3
Remark: To establish that a set W is a vector space, you must verify all ten vector
space properties. However, if W is a subset of a larger vector space V (and the
operations defined on W are the same as those defined on V), then most of the ten
properties are inherited from the larger space and need no verification.
MAT1041 - Chapter 4 4-24
Section 4-3
Zero Subspace
The simplest subspace of a vector space is the one containing of only
the zero vector, W = {0}.
This subspace is called the zero subspace.
If W is a subspace of a vector space V, then both W and V must have
the same zero vector 0.
Another obvious subspace of V is V itself.
Every vector space contains two trivial subspaces (the zero subspace
and the vector space itself), and subspaces other than these two are
called proper (or nontrivial) subspace.
Show that W = {(x1, x2): x1 0 and x2 0}, with the standard
operations, is NOT a subspace of R2.
W V U
Theorem 4.6
If V and W are both subspaces of a vector space U, then the
intersection of V and W (denoted by VW) is also a subspace of U.
U
V W
V W
MAT1041 - Chapter 4 4-29
Section 4-3
Subspace of R 2
x x x
Example 6
Which of these two subsets is a subspace of R2?
(a) The set of points on the line given by x + 2y = 0.
(b) The set of points on the line given by x + 2y = 1.
Sol (a): A point in R2 is on the line x + 2y = 0 if and only if
it has the form (2t, t), tR.
1. The set is nonempty since it contains the origin (0, 0).
2. Let v1 = (2t1, t1) and v2 = (2t2, t2) be any two points on the line. Then
v1+v2 = (2(t1+t2), t1 +t2) = (2t3, t3).
Thus v1+v2 is on the line, and the set is closed under addition.
3. Similarly, you can show that the set is closed under scalar multiplication.
Therefore, this set is a subspace of R2.
MAT1041 - Chapter 4 4-32
Section 4-3
Example 6 (cont.)
Which of these two subsets is a subspace of R2?
(a) The set of points on the line given by x + 2y = 0.
(b) The set of points on the line given by x + 2y = 1.
x
Example 7
Show that the subset of R2 that consists of all points on the unit
circle x2 + y2 = 1 is not a subspace.
Subspace of R 3
Example 8
Let W = {(x1, x1+x3, x3): x1 and x3 are real number}. Show that W is a
subspace of R3.
proof: Let v = (v1, v1+v3, v3) and u = (u1, u1+u3, u3) be two vectors in W,
and let c be any real number.
1. W is nonempty because it contains the zero vector.
2. v + u = (v1+ u1, (v1+ u1)+(v3+ u3), v3+ u3) = (x1, x1+x3, x3).
Hence, v + u is in W (W is closed under addition).
3. cv = (cv1, c(v1+v3), cv3) = (x1, x1+x3, x3).
Hence, cv is in W.
We can conclude that W is a sunspace of R3.
MAT1041 - Chapter 4 4-36
4.4 Spanning Sets & Linear
Independence
Linear Combination
A vector v in a vector space V is called a linear combination of the
vectors u1, u2, …, uk in V if
v = c1u1 + c2u2 + … + ckuk,
where c1, c2, …, ck are scalars.
Example 1.a
Example 1.b
For the set of vectors in M2,2,
v1 v2 v3 v4
0 8 0 2 1 3 2 0
S , , ,
2 1 1 0 1 2 1 3
Example 2
Write the vector w = (1, 1, 1) as a linear combination of vectors in
the set S.
v1 v2 v3
S = { (1, 2, 3), (0, 1, 2), (1, 0, 1)}
Sol: w = c1v1 + c2v2 + c3v3
(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 c1 1 t ,
1
2c c 2 1 c2 1 2t , t R
3c1 2c2 c3 1 c3 t ,
w 2 v1 3v 2 v 3 (let t 1)
MAT1041 - Chapter 4 4-39
Section 4-4
Example 3
If possible, write the vector w = (1, 2, 2) as a linear combination of
vectors in the set S given in Example 2.
Sol:
c1 c3 1 1 0 1 1
0 1 2 4
1
2c c 2 2
3c1 2c2 c3 2 0 0 0 7
The system of equations is inconsistent, and therefore there is no solution.
Therefore, w CANNOT be written as a linear combination of v1, v2, and v3.
Spanning Sets
Definition: Let S = {v1, v2, …, vk} be a subset of a vector space V. The
set S is called a spanning set of V if every vector in V can be written as a
linear combination of vectors in S. In such cases it is said that S spans V.
Proof: We can see form Example 3 that the vector w = (1, 2, 2) is in R3
and cannot be expressed as a linear combination of the vectors in S.
Therefore, the set S does not span R3.
Example 5 vs Example 6
S1 = {(1, 2, 3), (0, 1, 2), (2, 0, 1)}
the vectors in S1 do not lie in a common plane
y y
x x
MAT1041 - Chapter 4 4-44
Section 4-4
Theorem 4.7
If S = {v1, v2, …, vk} is a set of vectors in V, then span(S) is a subspace of
V. Moreover, span(S) is the smallest subspace of V that contains S in the
sense that every other subspace of V that contains S must contain span(S).
Example 7
Linearly Dependent Sets
The set S = {(1, 2), (3, 4)} in R2 is linearly dependent
The set S = {(1, 0), (0, 1), (2, 5)} in R2 is linearly dependent
2(1, 0) 5(0, 1) + 1(2, 5) = (0, 0)
2 1 3 0 1 0 0 0
c1 c2 2 1 c3 2 0 0 0
1 1
The system has only the trivial solution. Hence the set S is linear independently.
Proof: 」Assume that S is a linearly dependent set. Then there exist scalars
c1, c2, …, ck (not all zero) such that c1v1 + c2v2 + … + ckvk = 0
Assume that c10. Then c1v1 c2 v 2 c3 v 3 ck v k
That is, v1 is a linear combination of the other vectors.
Example 12
In Example 9, you determine set
S = { 1 + x 2x2, 2 + 5x x2, x + x2}
is linearly dependent. Show that one of the vectors in this set can be
written as a linear combination of the other two.
z
Example 13
(a) S = { (1, 2, 0) , (2, 2, 1) }
linear independent.
Show that the set S = {(1, 0, 0), (0, 1, 0), (0, 0, 1)} is a basis for R3.
Show that the set S = {v1(1, 1), v2(1, 1)} is a basis for R2.
proof:
1. Let x = (x1, x2) represent an arbitrary vector in R2. Consider the linear
combination c1v1 + c2v2 = x,
(c1 + c2, c1 c2) = (x1, x2)
c c x1
1 2
c1 c2 x2
the coefficient matrix has a nonzero determinant, the system has a unique
solution. S spans R2.
2. S is linearly independent (verify it).
S is a basis for R2.
MAT1041 - Chapter 4 4-58
Section 4-5
1 0 0 1 0 0 0 0
Standard basis for M2,2: , , ,
0 0 0 0 1 0 0 1
Standard basis for Mm,n:
The set that consists of the mn distinct m n matrices having a single 1
and all other entries equal to zero.
Proof: S spans V.
an arbitrary vector u in V can be expressed as
u = c1v1 + c2v2 + … + cnvn
Suppose that u has another representation
u = b1v1 + b2v2 + … + bnvn
(c1 b1)v1 + (c2 b2)v2 + … + (cn bn)vn = 0
S is linear independent. The only solution to is c1 b1 = 0, c2 b2 = 0,
cn bn = 0 ci = bi for all i.
Hence, u has only one representation for S.
MAT1041 - Chapter 4 4-61
Section 4-5
Proof: Let S1 = {v1, v2, …, vn} be a given basis for V, and let S2 = {u1,
u2, …, um} be another basis for V.
Because S1 is a basis and S2 is linearly independent, Theorem 4.10
implies that m n.
Similarly, n m because S1 is linearly independent and S2 is a basis.
Consequently, n = m.
(b) The set S2 = { x + 2, x2, x3 1, 3x +1, x2 2x + 3} is NOT a basis for P3.
The standard basis for P3 has 4 vectors.
The set S2 has too many elements to be a basis for P3.
dim(Rn) = n
dim(Pn) = n +1
dim(Mm,n) = mn
Sol: a b 1 0 0 1 0 0
b c a 0 0 b 1 1 c 0 1
1 0 0 1 0 0
S , ,
0 0 1 1 0 1
S is linearly independent and S spans W.
Hence, dim(W) = 3.
MAT1041 - Chapter 4 4-70
Section 4-5
Example 2
Find a basis for a row space of A.
Sol: 1 3 1 3 1 3 1 3 w1
0 1 1 0 0 1 1 0 w 2
A 3 0 6 1 B 0 0 0 1 w 3
3 4 2 1 0 0 0 0
2 0 4 2 0 0 0 0
w1 = (1, 3, 1, 3), w2 = (0, 1, 0, 1), and w3 = (0, 0, 0, 1)
form a basis for the row space of A.
Example 3
Find a basis for the subspace of R3 spanned by
S = { (1, 2, 5), (3, 0, 3), (5, 1, 8) }
Sol: 1 2 5 v1 1 2 5 w1
A 3 0 3 v 2 B 0 1 3 w 2
5 1 8 v 3 0 0 0
w1 = (1, 2, 5) and w2 = (0, 1, 3) form a basis for the row space of A.
That is, they form a basis for the subspace spanned by S.
Column Vectors of
Row-Equivalent Matrices
1 3 1 3 1 3 1 3
0 1 1 0 0 1 1 0
A 3 0 6 1 B 0 0 0 1
3 4 2 1 0 0 0 0
2 0 4 2 0 0 0 0
a1 a 2 a3 a4 b1 b2 b3 b4
b3 = 2b1 + b2 a3 = 2a1 + a2
The column vectors b1, b2, and b4 of matrix B are linearly independent,
and so are the corresponding columns of A.
Example 4
Find a basis for the column space of the matrix A.
Sol: [Method 1]
1 0 3 2 1
3 0 3 3 2 w1
3 1 0 0 0
4 1 9 5 6 w 2
AT
1 1 6 2 4 0 0 1 1 1 w 3
3 0 1 1 2 0 0 0 0 0
w1 = (1, 0, 3, 3, 2), w2 = (0, 1, 9, 5, 6), and w3 = (0, 0, 1, 1, 1)
form a basis for the row space of AT.
That is equivalent to saying that w1T , wT2 , and wT3 form a basis for the
column space of A.
MAT1041 - Chapter 4 4-77
Section 4-6
Example 4 (cont.)
Sol: [Method 2]
1 3 1 3 1 3 1 3
0 1 1 0 0 1 1 0
A 3 0 6 1 B 0 0 0 1
3 4 2 1 0 0 0 0
2 0 4 2 0 0 0 0
a1 a 2 a3 a4
a1, a2, and a4 form a basis for the column space of A.
Example 5:
1 2 0 1 1 2 0 1
A 2 1 5 3 B 0 1 1 1 rank ( A) 3
0 1 3 5 0 0 1 3
MAT1041 - Chapter 4 4-79
Section 4-6
Proof: 1. Nonempty: A0 = 0
2. Addition: Ax1 = 0 and Ax2 = 0
A(x1+x2) = Ax1+ Ax2 = 0
3. Scalar multiplication: A(cx1) = c(Ax1) = 0
Remark of Example 6
2 3
1 0
A basis for N(A) is { , }
0 1
0 1
because all solutions of Ax = 0 are linear combinations of these two vectors.
Example 7 (cont.)
(b) Find a set of the column vectors of A that forms a basis for the
column space of A.
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
1 0 1
0 1 1
a1 , a 2 , a 4 ,
2 1 1
0
3 0
form a basis for the column space of A.
MAT1041 - Chapter 4 4-85
Section 4-6
Example 7 (cont.)
(c) If possible, write the third column of A as a linear combination of
the first two columns.
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
b 3 2b1 3b 2 a 3 2a1 3a 2
Example 8
Find the set of all solution vectors of the following system
x1 2 x3 x4 5
3 x1 x2 5 x3 8
x1 2 x2 5 x4 9
1 0 2 1 5 1 0 2 1 5
3 1 5 0 8 0 1 1 3 7
1 2 0 5 9 0 0 0 0 0
x1 2s t 5 2 1 5
x s 3t 7 1 3 1
x 2 s t , s, t R
x3 s 1 0 0
4
x t 0 1 0
x
h 4
MAT1041 - Chapter
xp 4-89
Section 4-6
Example 9
1 1 1 x1 1
Consider 1 0 1 x2 3
3 2 1 x3 1
1 1 1 1 0 1
A 1 0 1 0 1 2. rank ( A) 2
3 2 1 0 0 0
1 1 1 1 1 0 1 3
b] 1 0
[ A 1 3 0 1 2 4. rank ([ A
b]) 2
3 2 1 1 0 0 0 0
The rank of A is equal to the rank of [A b]. Hence, b is in the column
space of A, and the system is consistent.
MAT1041 - Chapter 4 4-91
Section 4-6
Equivalent Conditions
If A is an n n matrix, then the following conditions are equivalent.
A is invertible.
Ax = b has a unique solution for any n 1 matrix b.
Ax = 0 has only trivial solution.
A is row-equivalent to In.
A 0
Rank(A) = n
The n row (column) vectors of A are linearly independent.