Chapter 4
Chapter 4
4
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
4.7 Coordinates & Change of Basis
4.8 Applications of Vector Spaces
4.1 Vectors in Rn
Vectors in the plane (R2) is represented geometrically by
a directed line segment whose initial point is the origin
and whose terminal point is the point x = (x1, y1).
x1, y1: the components of x y
u = (u1, u2), v = (v1, v2), c is a scalar Terminal
Equal: u = v iff u1 = v1& u2 = v2 point (x1, y1)
Scalar multiplication: x
cv = c(v1, v2) = (cv1, cv2)
x
Initial
point
Ming-Feng Yeh Chapter 4 4-2
Section 4-
1
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)
(u1 + v1, u2 + v2)
(u1, u2)
u+v u2
u (v1, v2)
v v2
v1 u1
Ming-Feng Yeh Chapter 4 4-4
Section 4-
1
Example 3
Given v = (2, 5) and u = (3, 4) y
(a) ½v
(2, 132 )
= ( ½(2), ½(5) )
= (1, 5/2) ( 2, 5)
0.5v +u
(b) u v
v (3, 4)
= ( 3(2), 45 )
= (5, 1) ( 1, 52 )
u
(c) ½v + u 2 v
1
Theorem 4.1
Let u, v, and w be vectors in the plane, and
let c and d be scalars.
Vector Addition Scalar Multiplication
1. u + v is a vector in the plane 6. cu is a vector in the plane
(closure under addition) (closure under scalar multi.)
2. u + v = v + u 7. c(u + v) = cu + cv
(commutative property) (left distributive property)
3. (u + v) + w = v + (u + w) 8. (c + d)u = cu + du
(associative property) (right distributive property)
4. u + 0 = u 9. c(du) = (cd)u
5. u + (u) = 0 10. 1(u) = u
Vectors in Rn
A vector in n-space is represented by an ordered n-tuple.
x = (x1, x2, x3, …, xn)
The set of all n-tuples is called n-space (Rn)
R1 = 1-space = set of all real numbers
R2 = 2-space = set of all ordered pairs of real numbers
R3 = 3-space = set of all ordered triples of real numbers
R4 = 4-space = set of all ordered quadruples of real numbers
:
:
Rn = n-space = set of all ordered n-tuples of real numbers
Theorem 4.2
Let u, v, and w be vectors in the Rn, and
let c and d be scalars.
Vector Addition Scalar Multiplication
1. u + v is a vector in the plane 6. cu is a vector in the plane
(closure under addition) (closure under scalar multi.)
2. u + v = v + u 7. c(u + v) = cu + cv
(commutative property) (left distributive property)
3. (u + v) + w = v + (u + w) 8. (c + d)u = cu + du
(associative property) (right distributive property)
4. u + 0 = u 9. c(du) = (cd)u
5. u + (u) = 0 10. 1(u) = u
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)
or
u1
u
u 2
an n1 column matrix (column vector)
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
Example 4
The Vector Space of All Polynomials of Degree 2 or Less
Let P2 be the set of all polynomials of the form
p(x) = a2x2 + a1x + a0; q(x) = b2x2 + b1x + b0
where a0(b0), a1(b1), and a2(b2) are real numbers.
The sum of two polynomials p(x) and q(x) is defined by
p(x) + q(x) = (a2+b2)x2 + (a1+b1)x + (a0+b0),
and the scalar multiple of p(x) by the scalar c is defined by
cp(x) = ca2x2 + ca1x + ca0
Show that P2 is a vector space.
proof: omitted
Ming-Feng Yeh Chapter 4 4-17
Section 4-
2
Theorem 4.4
Properties of Scalar Multiplication
Let v be any element of a vector space V, and let c be any
scalar. Then the following properties are true.
1. 0v = 0. 2. c0 = 0.
3. If cv = 0, then c = 0 or v = 0. 4. (1)v = v.
pf: Suppose that cv = 0. To show that this implies either c =
0 or v = 0, assume that c 0.
Because c 0, we can you the reciprocal 1/c to show that
v = 0 as follows v 1v (1 c)(c) v (1 c)(cv ) (1 c)0 0
Example 6 ~ 7
Example 6
The set of integers is NOT a vector space
The set of all integers (with the standard operations) does
Example 7
The set of second-degree polynomials is NOT a vector space
The set of all 2nd-degree polynomials is not a vector space
p( x) x 2
2 p ( x) q ( x) x 1 (the 1st-degree
q ( x) x x 1 Chapter 4 poly.) 4-20
Section 4-
2
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.
pf: 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.
Example 1
A subspace of R3
Show that the set W={(x , 0, x ): x , x R} is a subspace of
1 3 1 3
R3 with the standard operations.
The set W can be interpreted as simply the xz-plane.
Example 1 (cont.)
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.
Theorem 4.5
Test for a Subspace
If W is a nonempty subset of a vector space V, then W is a
subspace of V if and only if the following closure
conditions hold.
1. If u and v are in W, then u + v is in W.
2. If u is in W and c is any scalar, then cu is in W.
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.
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.
Example 2
A Subspace of M2,2
Let W be the set of all 22 symmetric matrices. Show
Example 3
The Set of Singular Matrices is NOT a Subspace of Mn,n
Let W be the set of singular matrices of order 2. Show
Example 4
The Set of First-Quadrant Vectors is NOT a Subspace of R2
Show that W = {(x , x ): x 0 and x 0}, with the
1 2 1 2
standard operations, is NOT a subspace of R2.
pf: W is nonempty and closed under addition. It is NOT,
however, closed under scalar multiplication.
Note that (1, 1) is in W, but the scalar multiple
(1)(1, 1) = (1, 1)
is not in W. Therefore, W is not a subspace of R2.
Theorem 4.6
If V and W are both subspaces U
of a vector space U, then the
intersection of V and W V V W W
(denoted by VW) is also
a subspace of U.
Subspace of R2
If W is a subspace of R2, then it is a subspace if and only if
one of the following is true.
1. W consists of the single point (0, 0).
2. W consists of all points on a line that passes through
the origin.
3. W consists of all of R2.
y y y
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
Sol: 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.
Ming-Feng Yeh Chapter 4 4-33
Section 4-
3
Example 6 (cont.)
Which of these two subsets is a subspace of R2?
(b) The set of points on the line given by x + 2y = 1
Sol: This subset of R2 is not a subspace of R2
because every subspace must contain the zero vector,
and the zero vector (0, 0) is not on the line.
Example 7
Show that the subset of R2 that consists of all points on the
unit circle x2 + y2 = 1 is not a subspace.
Sol: [Method I] This subset R2 is not a subspace of R2
because every subspace must contain y
the zero vector, and the zero vector
(0, 0) is not on the circle.
[Method II] This subset R2 is not
a subspace of R2 because the points x
(1, 0) and (0, 1) are in the subset,
but their sum (1, 1) is not. So this
subset is not closed under addition.
Ming-Feng Yeh Chapter 4 4-35
Section 4-
3
Subspace of R3
If W is a subspace of R3, then it is a subspace if and only if
one of the following is true.
1. W consists of the single point (0, 0, 0).
2. W consists of all points on a line that passes through
the origin.
3. W consists of all points on a plane that passes through
the origin.
4. W consists of all of R3.
Example 8
Let W = {(x1, x1+x3, x3): x1 and x3 are real number}.
Show that W is a subspace of R3.
pf: 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.
Ming-Feng Yeh Chapter 4 4-37
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
S = { (1, 3, 1), (0, 1, 2), (1, 0, 5)} in R3,
v1 v2 v3
v1 is a linear combination of v2 and v3 because
v1 = 3v2 + v3 = 3(0, 1, 2) + (1, 0, 5)
= (1, 3, 1)
Ming-Feng Yeh Chapter 4 4-38
Section 4-
4
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
v1 is a linear combination of v2, v3 and v4 because
v1 v 2 2 v 3 v 4
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 ,
2
1c c 2 1 c2 1 2t , t R
3c1 2c2 c3 1 c3 t ,
w 2 v1 3v 2 v 3 (let t 1)
Ming-Feng Yeh Chapter 4 4-40
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
2
1c c 2 2
3c1 2c2 c3 2 0 0 0 7
The system of equations is inconsistent, and therefore
there is no solution.
Consequently, 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.
Example 4: Standard Spanning Sets
a. The set S = {(1, 0, 0), (0, 1, 0), (0, 0, 1)} spans R3
because any vector u = (u1, u2, u3) in R3 can be written
as u = u1(1, 0, 0) + u2(0, 1, 0) + u3(0, 0, 1) = (u1, u2, u3)
b. The set S = {1, x, x2} spans P2.
p(x) = a(1) + b(x) + c(x2) = a + bx + cx2
Example 5
A Spanning Set for R3
Show that the set S = {(1, 2, 3), (0, 1, 2), (2, 0, 1)} spans
R3.
Pf: Let u = (u1, u2, u3) be any vector in R3.
(u1 , u2 , u3 ) c1 (1, 2, 3) c2 (0,1, 2) c3 ( 2, 0,1)
(c1 2c3 , 2c1 c2 , 3c1 2c2 c3 )
c1 c3 u1 The coefficient matrix has a nonzero
2c1 c2 u2 determinant. Hence, the system has
3c1 2c2 c3 u3 a unique solution. Any vector in R3
can be written as a linear combination of the vectors in S,
and we can conclude that the set S spans R3.
Ming-Feng Yeh Chapter 4 4-43
Section 4-
4
Example 6
A Set That Does Not Spans R3
Show that the set S = {(1, 2, 3), (0, 1, 2), (1, 0, 1)} does
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
S2 = {(1, 2, 3), (0, 1, 2), (1, 0, 1)}
the vectors in S2 lie in a common plane
z z
y y
x x
Ming-Feng Yeh Chapter 4 4-45
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).
Pf: Suppose that u and v are any two vectors in span(S)
u = c1v1+c2v2+…+ckvk; v = d1v1+d2v2+…+dkvk. Then,
u + v = (c1+d1)v1+(c2+d2)v2+…+(ck+dk)vk
cu = cc1v1+ cc2v2 +…+ cckvk
which means that u + v and cu are also in span(S).
Therefore, span(S) is a subspace of V.
Example 7
Linearly Dependent Sets
The set S = {(1, 2), (3, 4)} in R2 is linearly dependent
Example 8
Testing for Linear Independence
Determine whether the set of vectors in R3 is linearly
dependent or linearly independent
S = { v1 = (1, 2, 3), v2 = (0, 1, 2), v3 = (2, 0, 1)}
Sol: c1v1 + c2v2 + c3v3 = 0
c1(1, 2, 3) + c2(0, 1, 2) + c3(2, 0, 1) = (0, 0, 0)
(c12c3, 2c1+c2, 3c1+2c2 +c3) = (0, 0, 0)
c1 = c2 = c3 = 0
Therefore, S is linearly independent.
Example 9
Testing for Linear Independence
Determine whether the set of vectors in P2 is linearly
dependent or linearly independent
S = { 1 + x 2x2, 2 + 5x x2, x + x2}
Sol: c1v1 + c2v2 + c3v3 = 0
c1(1 + x 2x2) + c2(2 + 5x x2) + c3(x + x2) = 0 + 0x + 0x2
(c1+2c2) + (c1+5c2+c3)x + (2c1c2+c3) x2 = 0 + 0x + 0x2
The system has an infinite number of solutions. Therefore,
the system must has nontrivial solutions, and we can
conclude that the set S is linearly dependent.
c1 = 2t, c2 = t, c3 = 3t, tR.
Ming-Feng Yeh Chapter 4 4-51
Section 4-
4
Example 10
Testing for Linear Independence
Determine whether the set of vectors in M2,2 is linearly
dependent or linearly independent
2 1 3 0 1 0
S , ,
1 1 2 1 2 0
Sol: c1v1 + c2v2 + c3v3 = 0
2 1 3 0 1 0 0 0
c1 1 1 c2 2 1 c3 2 0 0 0
The system has only the trivial solution. Hence the set S is
linear independently.
Example 11
Testing for Linear Independence
Determine whether the set of vectors in M4,1 is linearly
dependent or linearly independent
1 1 0 0
0 1 3 1
S , , ,
1 0 1 1
0 2 2 2
Sol: linear independence.
Theorem 4.8
A Property of Linearly Dependent Set
A set S = {v , v , …, v }, k2, is linear dependent if and
1 2 k
only if at least one of the vectors vj can be written as a
linear combination of the other vectors in S.
Pf: 」 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 c1 v1 c2 v 2 c3 v 3 ck v k
That is, v1 is a linear combination of the other vectors.
」 Suppose v1 in S is a linear combination of the other vectors,
i.e., v1 = c2v2 + c3v3 +… + ckvk. Then the equation
v1 + c2v2 + c3v3 +… + ckvk = 0 has at least one coefficient, 1, that
is nonzero. Hence, S is linearly dependent.
Ming-Feng Yeh Chapter 4 4-54
Section 4-
4
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.
Sol: One nontrivial solution is c1 = 2, c2 = 1, and c3 =3, which
yields
2(1 + x 2x2) + (1)(2 + 5x x2) + 3(x + x2) = 0.
Therefore, v2 = 2v1 + 3v3.
v2 can be written as a linear combination of v1 and v3.
Example 1
The Standard Basis for R3
Show that the set S = {(1, 0, 0), (0, 1, 0), (0, 0, 1)} is a basis
for R3.
pf: 1. Example 4(a) in Section 4.4 showed that S spans R3.
2. S is linear independent.
c1(1, 0, 0) + c2(0, 1, 0) + c3(0, 0, 1) = (0, 0, 0)
has only the trivial solution c1 = c2 = c3 = 0.
S is a basis for R3.
The Standard Basis for Rn
Example 2
A Nonstandard Basis for R2
Show that the set S = {v1(1, 1), v2(1, 1)} is a basis for R2.
pf: 1. Let x = (x1, x2) represent an arbitrary vector in R2.
Consider the linear combination c1v1 + c2v2 = x,
(c1 + c2, c1 c2) = (x1, x2)
c1 c2 x1
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.
Ming-Feng Yeh Chapter 4 4-59
Section 4-
5
Example 4
A Basis for Polynomials
Show that the vector space P3 has the following basis.
S = {1, x, x2, x3}
pf: 1. the span of S consists of all polynomials of the form
a0 + a1x + a2x2 + a3x3, a0, a1, a2, a3R
S spans P3.
2. Consider the following linear combination
a0 + a1x + a2x2 + a3x3 = 0(x) = 0, x
the solutions are a0 = a1 = a2 = a3 = 0. That is,
S is linear independent.
S is a basis for P3.
Ming-Feng Yeh Chapter 4 4-60
Section 4-
5
Theorem 4.9
Uniqueness of Basis Representation
If S = {v1, v2, …, vn} is a basis for a vector space V, then
every vector in V can be written in one and only one way as
a linear combination of vectors in S.
Pf: S spans V.
an arbitrary vector u in V can be expressed as
u = c 1 v1 + c 2 v2 + … + c n vn
Suppose that u has another representation
u = b1 v1 + b2 v2 + … + bn vn
(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.
Ming-Feng Yeh Chapter 4 4-62
Section 4-
5
Example 6
Uniqueness of Basis Representation
Let u = (u1, u2, u3)R3. Show that u = c1v1 + c2v2 + c3v3 has
a unique solution for the basis S = {v1, v2, v3} =
{ (1, 2, 3), (0, 1, 2), (2, 0, 1) }
Sol: (u1, u2, u3) = c1(1, 2, 3) + c2(0, 1, 2) + c3(2, 0, 1)
1 0 2 c1 u1
2 1 0 c2 u2 Ac u
3 2 1 c3 u3
det( A) 0, c A 1u
that is, u has a unique solution for the basis S.
Ming-Feng Yeh Chapter 4 4-63
Section 4-
5
Theorem 4.10
Bases & Linear Dependence
If S = {v , v , …, v } is a basis for a vector space V, then
1 2 n
every set containing morn than n vectors in V is linearly
dependent.
Pf: Let S1 = {u1, u2, …, um} V, m > n.
Consider: k1u1 + k2u2 + … + kmum = 0
If k1, k2 , …, km are not all zero, then S1 is linear dependent.
S is a basis for V.
each ui uicisva linear
c2i v 2combination
cni v n of vectors in S, i.e.,
1i 1
dSubstituting each of these representations of ui into
1 v1 d 2 v 2 d n v n 0, d i ci1k1 ci 2 k 2 cim,
km
Theorem 4.11
Number of Vectors in a Basis
If a vector space V has one basis with n vectors,
Example 8
Spanning Sets & Bases
Explain why each of the following statements is true.
(a) The set S1 = { (3, 2, 1), (7, 1, 4)} is NOT a basis for R3.
The standard basis for R3 has 3 vectors, and S1 has only 2.
Hence, S1 cannot be a basis for R3.
Example 9
Finding the Dimension of a Subspace
find a set of linearly independent vectors that spans the subspace
Determine the dimension of each subspace of R3.
(a) W = { (d, cd, c): c, d R}
Sol: (d, cd, c) = c(0, 1, 1) + d(1, 1, 0)
W is spanned by the set S = {(0, 1, 1), (1, 1, 0)}.
Hence, dim(W) = 2.
(b) W = { (2b, b, 0): b R}
Sol: W is spanned by the set S = {(1, 1, 0)}.
Hence, dim(W) = 1.
Example 10
Finding the Dimension of a Subspace
Find the dimension of the subspace W of R4 spanned by
S = { v1(1, 2, 5, 0), v2(3, 0, 1, 2), v3(5, 4, 9, 2)}
Sol: Although W is spanned by the set S, S is NOT a basis for
W because S is a linear dependent set.
v3 = 2v1 v2
This means that W is spanned by the set S1 = {v1, v2}.
Moreover, S1 is linearly independent.
Hence, dim(W) = 2.
Example 11
Finding the Dimension of a Subspace
Let W be a subspace of all symmetric matrices M2,2.
What is the dimension of W?
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.
Theorem 4.14
Basis for the Row Space of a Matrix
If a matrix A is row-equivalent to a matrix B, then the
nonzero row vectors of B form a basis for the row space
of A.
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
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 w 1
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 a2 a3 a 4 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 3 2 1 0 3 3 2 w1
3 1 0 4 0 0 1 9 5 6 w
AT 2
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 forT theT row space
T
of A T
.
That is equivalent to saying that w1 , w 2 , and w 3
form a basis for the column space of A.
Ming-Feng Yeh Chapter 4 4-78
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 a 4
a1, a2, and a4 form a basis for the column space of A.
Example 6
The nullspace of A is also called the solution space of the
system Ax = 0.
Find the Solution Space of a Homogeneous System
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.
When homogeneous systems are solved from the reduced
row-echelon form, the spanning set is linear independent.
A is a 3 4 matrix, rank(A) = 2, nullity(A) = 2
rank(A) + nullity(A) = 4
Theorem 4.17
Dimension of the Solution Space
If A is an m n matrix of rank r, then the
dimension of the solution space of Ax = 0 is
n r. That is,
rank(A) + nullity(A) = n.
Example 7
Rank and Nullity of a Matrix
Let the column vectors of the matrix A be denoted by
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.
Ming-Feng Yeh Chapter 4 4-86
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
Theorem 4.18
Solutions of a Nonhomogeneous Linear System
If xp is a particular solution of Ax = b (b 0), then every
solution of this system can be written in the form
x = xp + xh,
where xh is a solution of Ax = 0.
Pf: Let x be any solution of Ax = b.
Then (x xp) is a solution of Ax = 0,
because A(x xp) = Ax Axp = b b = 0.
Let xh = x xp x = xp + xh
Example 8
Find the set of all solution vectors of the following system
x1 2 x3 x4 5
3x1 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 2 s t 5 2 1 5
x s 3t 7 1 3 1
x 2 s t , s , t R
x3 s 1 0 0
x
4 t 0 1 0
Ming-Feng Yeh Chapter 4 xh xp 4-90
Section 4-
6
Theorem 4.19
Solution of a System of Linear Equations
The system of linear equation Ax = b is consistent
if and only if b is in the column space of A.
Example 9
1 1 1 x1 1
1 0 1 x 3
Consider 2
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
[ Ab] 1 0 1 3 0 1 2 4 . rank ([ Ab]) 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.
Ming-Feng Yeh Chapter 4 4-92
Section 4-
6
Equivalent Conditions
If A is an n n matrix, then the following conditions are
equivalent.
A is invertible.
A is row-equivalent to I .
n
A 0
Rank(A) = n
The n row (column) vectors of A are linearly independent.
Example 2
Finding a Coordinate Matrix Relative to a Standard Basis
The coordinate matrix of x relative to the (nonstandard)
3
basis B = {v1, v2} = {(1, 0), (1, 2)} is [x]B
2
Find the coordinates of x relative to the standard basis
B = {u1, u2} = {(1, 0), (0, 1)}.
Sol: x = 3v1 + 2v2 = 3(1, 0) + 2(1, 2)
= (5, 4)
= 5(1, 0) + 4(0, 1) = 5u1 + 4u2 v2
5 u2
[ x ] B
4 v1 u1
Ming-Feng Yeh Chapter 4 4-95
Example 3
Finding a Coordinate Matrix Relative to a Nonstandard Basis
Find the coordinate matrix of x = (1, 2, 1) in R3 relative to
the (nonstandard) basis B = {u1, u2 , u3} = {(1, 0, 1),
(0, 1, 2), (2, 3, 5)}.
Sol: x = c1u1 + c2u2 + c3u3
(1, 2, 1) = c1(1, 0, 1) + c2(0, 1, 2) + c3(2, 3, 5)
1 0 2 c1 1 c1 5
0 1 3 c 2 c 8
2 [ x ] B 2
1 2 5 c3 1 c3 2
u1 u 2 u3 [x]B [x]B
Ming-Feng Yeh Chapter 4 4-96
Change of Basis in Rn
Transition matrix from B to B:P u1 u 2 u3
1 0 2 c1 1 c1 1 4 2 1 5
0 1 3 c 2 c 3 7 3 2 8
2 2
1 2 5 c3 1 c3 1 2 1 1 2
u1 u 2 u3 [x]B [x]B [x]B P 1
[x]B
Change of basis from B to B: P[x]B [x]B
Change of basis from B to B: [x]B P 1[x]B
P 1
transition matrix from B to B: