Week 8: 5.2 Independence & Dimension
Week 8: 5.2 Independence & Dimension
Note: The vector equation x1~v1 + x2~v2 + x3~v3 = ~0 is equivalent to the matrix equation A~x = ~0. By
placing the vectors ~v1 , ~v2 , ~v3 as columns of a matrix A, we can see that the vectors are dependent
because the matrix equation A~x = ~0 has non-trivial solutions.
Invertible Matrix Theorem
Let A be an n n matrix. TFAE
1. A is invertible
2. The RREF of A is In .
3. A~x = ~0 has just the trivial solution.
1
8. The columns of A
9. The rows of A
.
.
3. A set of two vectors {~u, ~v } is linearly dependent iff one of the vectors is a scalar multiple of the
other.
4. A set S = {~v1 , ~v2 , . . . , ~vk } is linearly dependent iff at least one of the vectors can be written as
a linear combination of the others.
This last result will be useful in creating a largest linearly independent set of vectors by adding
vectors that do not lie in the span of the original set.
2. Any invertible n n matrix A has columns that form a basis for Rn . What happens if we have
a non-square matrix? Could these columns form a basis for Rn ?
~ d~ =
3. Lines through the origin in R3 have dimension 1 since L = span{d},
6 ~0.
4. Planes through the origin in R3 have dimension 2 since P = span{~u, ~v }, where ~u, ~v 6= ~0 and
~u 6= k~v .
Fundamental Theorem
If a subspace U has a basis B = {~u1 , ~u2 , . . . , ~um }, then any set of vectors in U containing more than
m vectors must be linearly dependent.
Proof:
Let {w
~ 1, w
~ 2, . . . , w
~ k } be a set in U with k > m vectors.
Since B is a basis for U , then B spans U and each w
~ i U can be written as a linear combination of
vectors in B.
Thus,
w
~ 1 = a11~u1 + a12~u2 + . . . + a1m~um
w
~ 2 = a21~u1 + a22~u2 + . . . + a2m~um
..
.
w
~ k = ak1~u1 + ak2~u2 + . . . + akm~um
We want to show that {w
~ 1, w
~ 2, . . . , w
~ k } is linearly dependent, so we need to show the following
equation has non-trivial solutions:
c1 w
~ 1 + c2 w
~ 2 + . . . + ck w
~ k = ~0
(1)
Proof:
(a) (By contradiction) If m linearly independent vectors did not span U , we could add another
vector not in the span of these m vectors. This would give us m + 1 linearly independent
vectors in a subspace of dimension m. This contradicts the Fundamental Theorem.
(b) (By contradiction) If m vectors were linearly dependent, we could remove dependent vectors
until we have a basis for U .
Now we have less than m vectors forming a basis for U which has dimension m. This is a
contradiction of the definition of a basis.
Theorem 4:
Let U and W be two subspaces of Rn with U W .
(a) dim(U ) dim(W )
(b) If dim(U ) = dim(W ), then U = W .
Proof:
Let dim(W ) = k and let B be a basis for U .
Then U =span(B) so B is an independent set of vectors in U .
(a) (By Contradiction) If dim(U ) > k, then B is an independent set with more than k vectors from
U (and thus in W ). This contradicts the Fundamental Theorem.
(b) If dim(U ) = k (= dim(W )), then B (a basis for U ) is an independent set of vectors in U (and
in W ) containing k vectors. Thus, B automatically spans W by Theorem 3a), and so W =
span(B) = U .
Example:
2
6
0
Fine a basis for the subspace U , where U = span 2 , 2 , 16 .
1
0
5
1 2 2 1
Find the Row Space, Column Space and Null Space of A = 3 6 5 0 .
1 2 1 2
Solution:
Recall that Row(A) = span{rows of A} and Col(A) = span{columns of A}.
To find a basis for the row space, we already have a set of vectors that span the row space, but they
may not be linearly independent. However, by performing EROs we can find the rows that are linear
combinations of the others by identifying zero rows.
When we reduce A above by the sequence R2 3R1 , R3 R1 and R3 R2 , we get the matrix
1 2 2 1
R = 0 0 1 3
0 0 0
0
If we treat the original rows of A as row vectors ~ri , we have ~r3 ~r1 (~r2 3~r1 ) = ~0 or ~r3 = ~r2 2~r1 .
Since ~r3 can be written as a linear combination of ~r2 and ~r1 , the three vectors are linearly dependent,
but if we remove the vector ~r3 , the remaining rows will be linearly independent and still span Row(A).
Thus, a basis for the Row Space of A is {[1 2 2 1], [0 0 1 3]}, and dim(Row(A)) = 2.
In general we should take the rows from the reduced matrix just in case one of our EROs was a row
swap and we accidentally remove the wrong vector from our set.
To find a basis for the column space, we can again use the reduced matrix R above. If we continue
to reduce R to RREF, we get the matrix
1 2 0 5
0 0 1 3
0 0 0 0
This tells us that the column vectors of A in column 1 and 3 are linearly independent and that
columns 2 and 4 are making the set dependent. In fact we can see that both column 2 and 4 can be
written as linear combinations of columns 1 and 3.
2
1
A basis for the column space of A is 3 , 5 and dim(Col(A)) = 2.
1
1
Note that we took the corresponding columns from the matrix A not from R. Columns 1 and 3 of
R will be linearly independent but they do NOT span the column space. To see this try to express
8
any column of A using only columns 1 and 3 of R. We will always get a 0 in the bottom entry.
Theorem:
If A is any m n matrix, then
dim(Row(A)) = dim(Col(A)) = Rank(A)
This is because on the left side we are counting non-zero rows in RREF and in the middle we are
counting leading ones. This is the same thing since each non-zero row must have a leading one. In
Chapter 1, we referred to the number of leading ones as the Rank of A.
Returning to our example, we can use the RREF of A one more time to find a basis for the Null
Space of A. Recall that the Null Space of A is the set of all solutions to the homogeneous system
A~x = ~0. We know the augmented matrix in reduced form looks like
1 2 0 5 0
0 0 1 3 0
0 0 0 0 0
We have two leading variables and two free variables. Let x2 = s and x4 = t. Then the solutions to
the homogeneous system are
2s 5t
x1
2
5
x2
s
=
= 1 s + 0 t
x3 3t 0
3
x4
t
0
1
5
1 0
A basis for the Null Space of A is , and the dimension of the Null Space is 2. (The
0
3
0
1
number of free variables or parameters).
Theorem:
If A is an m n matrix, then
dim(Null(A)) + Rank(A) = n
Examples
Find bases for the row space, column space and null space of the following matrices:
1 4 0 2 1
3 6 1 1 7
3 12 1 5 5
A = 1 2 2 3 1 , B =
2 8 1 3 2
2 4 5 8 4
5 20 2 8 8
.
.
10.
11.
12.
13.
14.
10
1 0 0
Basis for Null(A) =
0 , 2 , 2 .
0 1 0
0
0
1
1
3
1 , 2 .
Basis for Col(A) =
2
5
Basis for Row(A) = {[1 2 0 1 3], [0 0 1 2 2]}.
4
2
1 0
Basis for Null(B) =
0 , 1 .
0 1
0
0
1
0
1
3
1
, , 5 .
Basis for Col(B) =
2 1 2
5
2
8
Basis for Row(B) = {[1 4 0 2 0], [0 0 1 1 0], [0 0 0 0 1]}.
11