09 Math2121 Fall2020
09 Math2121 Fall2020
TLDR
Quick summary of today’s notes. Lecture starts on next page.
• If A and B are n × n matrices with AB = In , then BA = In and A−1 = B.
• A subspace H of Rn is a subset of Rn containing the zero vector that is closed under linear combi-
nations. This means that 0 ∈ H and if u, v ∈ H and c ∈ R then u + v ∈ H and cv ∈ H.
The zero subspace of Rn is the set {0} containing just 0 ∈ Rn .
• Let A be an m × n matrix.
The column space of A is the span of the columns of A. Denoted Col A. This is a subspace of Rm .
1 0 0
1 0 0
a
0 1 2
0 1 2 b
Col = R-span , , = : a, b ∈ R ⊆ R4
1 0 0 1 0 0 a
0 0 0 0 0 0 0
The null space of A is the set of vectors Nul A = {v ∈ Rn : Av = 0}. This is a subspace of Rn .
1 0 0
0 1 x 0
2
y ∈ R3 : x = y + 2z = 0 = −2z : z ∈ R ⊆ R3 .
Nul 1 0 =
0
z z
0 0 0
H = R-span{v1 , v2 , . . . , vp }.
The standard basis of Rn is e1 , e2 , . . . , en where ei ∈ Rn is the vector with 1 in row i and 0 in all
other rows. Any subspace of Rn has a basis with at most n vectors.
• The pivot columns of an m × n matrix A form a basis for Col A.
• Both A and RREF(A) always have the same null space. Usually Col A 6= Col RREF(A).
To find a basis for Nul A, determine the indices i1 , i2 , . . . , ip of the non-pivot columns of A.
Then there are unique vectors v1 , v2 , . . . , vp ∈ Rn such that any
x1
x2
x = . ∈ Rn with RREF(A)x = 0
..
xn
can be written as x = xi1 v1 + xi2 v2 + · · · + xip vp . The vectors v1 , v2 , . . . , vp are a basis for Nul A.
1 2 0 4 −1
For example, if RREF(A) = then any x ∈ R5 with RREF(A)x = 0 has
0 0 1 0 2
x1 −2x2 − 4x4 + x5 −2 −4 1
x2
x2
1
0
0
x=
x3 =
−2x5 = x2
0 + x4
0 + x5
−2 .
x4 x4 0 1 0
x5 x5 0 0 1
The three vectors on the right are a basis for Nul A = Nul RREF(A).
0
MATH 2121 — Linear algebra (Fall 2020) Lecture 9
1
MATH 2121 — Linear algebra (Fall 2020) Lecture 9
Proof. We already know that (a) implies both (b) and (c).
Assume just (b) holds. Then A has a pivot position in every column, so RREF(A) = In since A has the
same number of rows and columns. But this implies that A is invertible.
Similarly, if (c) holds then A has a pivot position in every row, so RREF(A) = In and A is invertible.
3 Subspaces of Rn
0
0
Let n be a positive integer. Write 0 = ∈ Rn .
..
.
0
n
Definition. Let H be a subset of R . The subset H is a subspace if these three conditions hold:
1. 0 ∈ H.
2. u + v ∈ H for all u, v ∈ H.
3. cv ∈ H for all c ∈ R and v ∈ H.
Common examples
Rn is a subspace of itself.
The set {0} consisting of just the zero vector is a subspace of Rn .
The empty set ∅ is not a subspace since it does not contain 0.
A subset H ⊆ R2 is a subspace if and only if H = {0} or H = R2 or H = R-span{v} for some v ∈ R2
The span of any set of vectors in Rn is a subspace.
Later, we will see that every subspace is the span of some set of vectors.
2
MATH 2121 — Linear algebra (Fall 2020) Lecture 9
and
cv1 + cv2 + cv3 = c(v1 + v2 + v3 ) = 0
so u + v ∈ H and cv ∈ H.
Any matrix A gives rise to two subspaces, called the column space and null space.
Col A ⊆ Rm
Nul A ⊆ Rn
Each subspace is completely determined by a finite amount of data. This data will be called a basis.
Definition. Let H be a subspace of Rn . A basis for H is a set of vectors {v1 , v2 , . . . , vk } ⊆ H that are
linearly independent and have span equal to H.
The empty set ∅ = {} is considered to be a basis for the zero subspace {0}.
3
MATH 2121 — Linear algebra (Fall 2020) Lecture 9
1 0
0
1
n
Example. The set {e1 , e2 , . . . , en } ⊆ R where e1 =
0 , e2 =
0 , and so on, is a basis for Rn .
.. ..
. .
0 0
We call this the standard basis of Rn .
This means that v is in the span of the vectors in B. Since v ∈ H is an arbitrary vector, we conclude
that the span of the vectors in B is all of H, so B is a basis for H.
−3 6 −1 1 −7
Example. Let A = 1 −2 2 3 −1 .
2 −4 5 8 −4
How can we find a basis for Nul A? Well, finding a basis for Nul A is more or less the same task as finding
all solutions to the homogeneous equation Ax = 0. So let’s first try to solve that equation.
If we row reduce the 3 × 6 matrix A 0 , we get
1 −2 0 −1 3 0
A 0 ∼ 0 0 1 2 −2 0 = RREF( A 0 ).
0 0 0 0 0 0
(
x1 − 2x2 − x4 + 3x5 = 0
This tells us that Ax = 0 if and only if
x3 + 2x4 − 2x5 = 0.
Therefore x ∈ Nul A if and only if
x1 2x2 + x4 − 3x5 2 1 −3
x2 x2 1 0 0
x= x
3
= −2x 4 + 2x 5
= x2
0 + x4
−2 + x5
2 .
x4 x4 0 1 0
x5 x5 0 0 1
The vectors
2 1 −3
1 0 0
0 ,
−2 ,
2
0 1 0
0 0 1
4
MATH 2121 — Linear algebra (Fall 2020) Lecture 9
are a basis for Nul A: we just computed that these vectors span the null space, and they are linearly
independent since each has a nonzero entry in a row (namely, either row 2, 4, or 5) where the others have
zeros. (Why does this imply linear independence?)
This example is important: the procedure just described works to construct a basis of Nul A for any
matrix A. The size of this basis will always be equal to the number of free variables in the linear system
Ax = 0. How to find a basis for Nul A is something you should remember at the end of this course.
1 0 −3 5 0
0 1 2 −1 0
Example. Let B = 0 0
.
0 0 1
0 0 0 0 0
This matrix is in reduced echelon form. How to find a basis for Col B?
The columns of B automatically span Col B, but they might not be linearly independent.
The largest linearly independent subset of the columns of B will be a basis for Col B, however.
In our example, the pivot columns 1, 2 and 5 are linearly independent since each has a row with a 1
where the others have 0s. These columns span columns 3 and 4, so a basis for Col B is
1 0 0
0 1 0
, , .
0 0 1
0 0 0
This example was special since the matrix B was already in reduced echelon form. To find a basis of the
column space of an arbitrary matrix, we rely on the following observation:
Proposition. Let A be any matrix. The pivot columns of A form a basis for Col A.
5
MATH 2121 — Linear algebra (Fall 2020) Lecture 9
is row equivalent to the matrix B in the previous example. Columns 1, 2, and 5 of A have pivots, so
1 3 −9
−2 , −2 , 2
2 3 1
3 4 −8
Next time: we will show that if H is a subspace of Rn then all of its bases have the same size. The
common size of each basis is the dimension of H.
6
MATH 2121 — Linear algebra (Fall 2020) Lecture 9
4 Vocabulary
Keywords from today’s lecture:
1. Subspace of Rn
4. Basis of a subspace H ⊆ Rn