Basis and Dimension
Basis and Dimension
1
The number of nonzero rows in the echelon matrix gives dimension of the
subspace and nonzero rows form a basis for the subspace.
Examples:
1. Let W be the subspace of R5 spanned by the following vectors u1 =
(1, 2, 1, 3, 2), u2 = (1, 3, 3, 5, 3), u3 = (3, 8, 7, 13, 8), u4 = (1, 4, 6, 9, 7),
u5 = (5, 13, 13, 25, 19). Find the basis of W and dim W .
⇒ Form amatrix M whose rows are given vectors
1 2 1 3 2 1 2 1 3 2 1 2 1 3 2
1 3 3 5 3 0 1 2 2 1 0 1 2 2 1
M = 3 8 7 13 8 ∼ 0 2 4 4 2 ∼
0 0 0 0 0 ∼
1 4 6 9 7 0 2 5 6 5 0 0 1 2 3
5 13 13 25 19 0 3 8 10 9 0 0 2 4 6
1 2 1 3 2 1 2 1 3 2
0 1 2 2 1 0 1 2 2 1
0 0 0 0 0 ∼ 0 0 1 2 3. The r1 , r2 , r3 corresponds to u1 , u2 , u4
0 0 1 2 3 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
forms basis of W . Thus dim W = 3.
2. Determine whether (1, 1, 1, 1), (1, 2, 3, 2), (2, 5, 6, 4), (2, 6, 8, 5) form a basis of
R4 . If not, nd dimension of the subspace they span.
⇒ Forma matrix
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 2 3 2 0 1 2 1 1 2 2 1 0 1 2 1
2 5 6 4 ∼ 0
B= ∼ ∼ .
3 4 2 0 0 −2 −1 0 0 2 1
2 6 8 5 0 4 6 3 0 0 −2 −1 0 0 0 0
The echelon form has zero row, all four rows are linear dependent. Hence, four
vector span a subspace of dim 3.
1 1 1 1 1 1 11
⇒ The matrix is ∼ . Let w1 = (1, 1, 1, 1), w2 =
2 2 3 4 0 0 12
(0, 0, 1, 2) spans same set of vectors as that by u1 and u2 .
Choose u3 = (0, 1, 0, 0), u4 = (0, 0, 0, 1), then form a matrix. Verify w1 , w2 , u3 , u4
are linear independent and then they form basis of R4 .
2
b)Extend the basis of W to basis of R4.
1 −2 5 −3 1 −2 5 −3
⇒ a) Form matrix A = 2 3 1 −4 ∼ 0 7 −9 2
3 8 −3 −5 0 14 −18 4
1 −2 5 −3
∼ 0 7 −9 2 . Hence non-zero rows (1, −2, 5, 3) and (0, 7, −9, 2)
0 0 0 0
forms basis of row space of A and W . Therefore dim W = 2.
b) To extend the basis of W to basis of R4 need to have four linear inde-
pendent vectors, which include the above two vectors. Choose (1, −2, 5, −3),
(0, 7, −9, 2), (0, 0, 1, 0) and (0, 0, 0, 1) which are linear independent. Therefore
forms basis of R4 .
6. Let W be the subspace of R5 spanned by u1 = (1, 2, −1, 3, 4), u2 = (2, 4, −2, 6, 8),
u3 = (1, 3, 2, 2, 6),u4 = (1, 4, 5, 1, 8), u5 = (2, 7, 3, 3, 9). Find subset of vectors
that form basis of W.
1 2 −1 3 4 1 2 −1 3 4
2 4 −2 6 8 0 0 0 0 0
⇒ The matrix M =
1 3 2 2 6 ∼ 0 1 3 −1 2
1 4 5 1 8 0 2 6 −2 4
2 7 3 3 9 0 3 5 −3 1
1 2 −1 3 4
0 0 0 0 0
. There are three non zero rows, which implies
∼ 0 1 3 −1 2
0 0 0 0 0
0 0 −1 0 −5
dim W = 3.
x1 − 2x2 − x4 + 3x5 = 0
x3 + 2x4 − 2x5 = 0
3
x1 2x2 + x4 − 3x5 2 1 −3
x2 x 2
1 0 0
x3 = −2x4 + 3x5 = x2 0 + x4 −2 + x5 2 = x2 u + x4 v +
x4 x4 0 1 0
x5 x5 0 0 1
x5 w. Which implies {(u, v, w)} spans Nul A and forms basis of Nul A. Therefore
Nul A=5 − 2 = 3.
1 −2 5 −7
2. Let A = 2 0 7 and u = 3 is u in Nul A?
−3 −5 −3 2
⇒ u ∈Nul A i Au =
0.
1 −2 5 −7 0
Au = 2 0 7 3 = 0, which implies u ∈ N ulA.
−3 −5 −3 2 0
b) x + 2y + z − 2t = 0
2x + 4y + 4z − 3t = 0
3x + 6y + 7z − 4t = 0.
⇒ First
reduce system
to echelon form
1 2 1 −2 1 2 1 −2 1 2 1 −2
2 4 4 −3 ∼ 0 0 2 1 ∼ 0 0 2 1 .
3 6 7 −4 0 0 4 2 0 0 0 0
Then corresponding system is
x + 2y + z − 2t = 0
2z + t = 0
4
x −2y − 5z −2 −5
y y 1 0
= = y +z
z z 0 1
t −2z 0 −2
Which implies u1 = (−2, 1, 0, 0), u2 = (−5, 0, 1, −2) forms basis of W and
dim W = 2.
c)x + y + 2z = 0
2x + 3y + 3z = 0
x + 3y
+ 5z =0
1 1 2 1 1 2 1 1 2
⇒ A = 2 3 3 ∼ 0 1 −1 ∼ 0 1 −2 which has all non zero rows,
1 3 5 0 2 3 0 0 5
implies 0 is the only solution. Hence dim W = 0.
5
1 1 2 x 1 1 2 x
3 4 3 y 0 1 −3 −3x + y
Set the last 3 entries in
−2
M = −3 −1 z ∼ 0 0 0 −x + y + z
2 4 −2 s 0 0 0 4x − 2y + s
3 2 9 t 0 0 0 −6x + y + t
the last column are equal to zero to obtain the following homogeneous system
whose solution set is U . That is −x + y + z = 0, 4x − 2y + s = 0, −6x + y + t = 0.
Similarly, be the
matrix
whose columns are wi and vi .
′
M
1 1 2 x 1 1 2 x
3 5 5 y 0 2 −1 −3x +y
′
0
M = −6 3 z ∼ 0 0 0 −9x + 3y + 2
2 6 2 s 0 0 0 4x − 2y + s
1 3 1 t 0 0 0 4x − 2y + t
again set last 3 entries of last column to zero to obtain following homogeneous
system whose solution set is W . That is −9x + 3y + z = 0, 4x − 2y + s =
0, 2x − y + t = 0 combine both of the above system to obtain homogeneous
system whose solution space is U ∩ W and reduce the system to echelon form.
−x + y + z = 0 ⇒ x = y + z
2y + 4z + s = 0 ⇒ s = −2y − 4z
8z + 5s + 2t = 0 ⇒ s = 2t
s − 2t = 0 ⇒ 8z = −5s − 2t
which implies t is only free variable. dim(U ∩ W ) = 1. Set t = 2, u =
(1, 4, −3, 4, 2) which forms basis of U ∩ W .
6
1 1 0 0 1 1 0 0
0 0 1 1 0 0 1 1
A= 1 −1 0 0 ∼ 0 −2
0 0
0 0 1 −1 0 0 0 −2
dim(W1 ∩ W2 ) = 4 − 4 = 0, which implies dim(W1 + W2 ) = 2 + 2 − 0 = 4.
a b a a
8. If V = M2 (R), W1 =
0 a
/a, b ∈ R , W2 =
0 b
/a, b ∈ R .
Find dim W1 , dim W2 , dim(W1 ∩ W2 ), dim(W1 + W2 ) and basis for all.
⇒ Let V = M2 (R)
, dimV = dim M 2 (R) = 2 × 2 = 4.
a b
Let W1 = /a, b ∈ R , here a and b can be chosen arbitrarily.
0 a
Which impliesdim W1= 2.
a a
Let W2 = /a, b ∈ R , similarly dim W2 = 2.
0 b
1 0 0 1
Basis of W1 = B1 = ,
0 1 0 0
1 1 0 0
Basis of W2 = B2 = , .
0 0 0 1
a a
W1 ∩ W2 = /a ∈ R , where a is only non trivial entry. Which
0 a
implies dim W1 ∩ W2 = 1 .
1 1
Basis of W1 ∩ W2 =
0 1
dim(W1 + W2 ) = dim W1 + dim W2 − dim W1 ∩ W2 = 2 + 2 − 1 = 3.
Basis of W1+ W2 ismaximum
linear
independent
set of B1 ∪ B2 .
1 0 0 1 1 1 0 0
B1 ∪ B2 = , , ,
0 1 0 0 0 0 0 1
1 1
observe that, is linear combination of remaining. That is
0 0
1 1 1 0 0 1 0 0
=1 +1 −1
0 0 0 1 0 0 0 1
1 0 0 1 0 0
Therefore , , forms basis of W1 + W2 .
0 1 0 0 0 1
9. Let V= P3 (R), W1 {P (x) ∈ P3 (R)/P (1) = 0, P (2) = 0, P (−1) = 0, P (−2) = 0, P (0) = 0}.
Find dim W1 , dim W2 , dim W1 ∩ W2 , dim W1 + W2 .
⇒ Consider P3 (x) = a0 + a1 (x) + a2 x2 + a3 x3
V = P3 (R), dim V = 3 + 1 = 4
P (1) = a0 + a1 + a2 + a3
P (−1) = a0 − a1 + a2 − a3
′
P (x) = a1 + 2a2 x + 3a3 x2
′
P (−1) = a1 − 2a2 + 3a3
P (1) = a1 + 2a2 + 3a3 .
′
1 1 1 1 1 1 1 1
1 −1 1 −1 0 −2 0 −2
The corresponding matrix is A =
0
∼ ,
1 2 3 0 1 2 3
0 1 −2 3 0 0 −4 0
which implies dim W1 = 4 − 4 = 0.
7
For W2 ,
P (1) = a0 + a1 + a2 + a3 = 0
P (2) = a0 + 2a1 + 4a2 + 8a3 = 0
P (−1) = a0 − a1 + a2 − a3 = 0
P (−2) = a2 − 2a1 + 4a2 − 8a3 = 0
P(0) = a0 = 0.
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 2 4 8 0 1 3 7 0 1 3 7 0 1 3 7
A=
1 −1 1 −1 ∼ 0 −2 0 −2 ∼ 0 0 6 12 ∼ 0 0 6 −12
1 −2 4 −8 0 −3 3 −9 0 0 12 12 0 0 0 −12
1 0 0 0 0 −1 −1 −1 0 0 2 6 0 0 0 0
For W1 ∩W2 = {P (x) ∈oP3 (R)/P (0) = 0, P (1) = 0, P (−1) = 0, P (2) = 0, P (−2) = 0,
P (1) = 0, P (−1) = 0 , which gives 7 × 4 matrix, rank(A) ≤ 4.
′ ′
Form matrix and verify the non zero rows, we get rank(A) = 4. Implies
dim(W1 ∩ W2 ) = 4 − 4 = 0
dim(W1 + W2 ) = dim W1 + dim W2 − dim W1 ∩ W2 = 0.