← Back to Math 010

4.9 Rank, Nullity, and the Fundamental Matrix Spaces: Class Notes

Theorem 4.9.1

The row space and column space of a matrix A have the same dimension.

Definition

The common dimension of the row space and column space of a matrix A is called the rank of A and is denoted by rank(A); the dimension of the null space of A is called the nullity of A and is denoted by nullity(A). That is, rank(A)=dim[row(A)] =dim[col(A)] and nullity(A)=dim[null(A)].

#1

Find the rank and nullity of the matrix A by reducing it to row echelon form.

a. A=[12−1124−2236−3348−44]

b. A=[1−223−1−36−11−72−4584]

Solution

a. Every row is a multiple of row 1, so subtracting multiples of row 1 gives

[12−11000000000000]

There is one leading 1, so rank(A)=1.

The one equation gives x1=−2x2+x3−x4. Then, with x2=r, x3=s, and x4=t,

x→=[−2r+s−trst]=[−2100]r+[1010]s+[−1001]t.

There are three parameters, so nullity(A)=3.

Answer: rank(A)=1,nullity(A)=3

b.

A⟶[1−20−100012000001]

rank(A)=3 (the number of leading 1’s, or leading variables).

nullity(A)=2 (the number of free variables, or parameters).

Answer: rank(A)=3,nullity(A)=2

Theorem 4.9.2 Dimension Theorem for Matrices

If A is a matrix with n columns, then rank(A)+nullity(A)=n.

In terms of the system Ax→=0→: n is the number of variables, rank(A) is the number of leading variables, and nullity(A) is the number of parameters (free variables).

Theorem 4.9.3

If A is an m×n matrix, then
a) rank(A) = the number of leading variables in the general solution of A𝐱=𝟎.
b) nullity(A) = the number of parameters in the general solution of A𝐱=𝟎.

Theorem 4.9.4

If A𝐱=𝐛 is a consistent linear system of m equations in n unknowns, and if A has rank r, then the general solution of the system contains n−r parameters.

Fundamental Spaces of a Matrix

Considering a matrix A and its transpose AT, we have six spaces: row(A), col(A), null(A), row(AT), col(AT), and null(AT). Since the rows of A are the columns of AT and the columns of A are the rows of AT, two pairs are the same:

row(A)=col(AT)col(A)=row(AT)

The four fundamental spaces of a matrix A are row(A), col(A), null(A), and null(AT). The null space of AT is also called the left null space of A. The left nullity of A is nullity(AT)=dim[null(AT)].

It is called the left null space because ATx→=0→ becomes x→TA=0→T (transpose both sides), with x→T multiplying A on the left.

Theorem 4.9.5

If A is any matrix, then rank(A)=rank(AT).

Let A be m×n. Since AT has m columns, the dimension theorem gives rank(AT)+nullity(AT)=m, and Theorem 4.9.5 lets us replace rank(AT) by rank(A):

rank(A)+nullity(AT)=m.

So, with r=rank(A),

dim[row(A)]=r,dim[col(A)]=r,dim[null(A)]=n−r,dim[null(AT)]=m−r.

Finding bases for the four fundamental spaces

To find bases for the 4 fundamental spaces of an m×n matrix A, form [AIm] and reduce it to [RE], where R is the reduced row echelon form of A.

(The proof is in the textbook at the end of this section.)

#11

Find the dimensions and bases for the four fundamental spaces of the matrix.

A=[1403−90]

Solution

Here m=3, so augment with I3 and row reduce. The pivot rows of R give the row space, the columns of A that correspond to the pivot columns of R give the column space, and the bottom row of E gives the left null space.

[1410003010−90001]⟶[101−430010130009−121]

row(A) basis: {(1,0),(0,1)}, dim 2

col(A) basis: {[10−9],[430]}, dim 2

null(AT) basis: {[9−121]}, dim 1

n=2 with rank(A)=2, so nullity(A)=0. Basis: ∅.

Answer:

row(A): {(1,0),(0,1)}, dim 2

col(A): {[10−9],[430]}, dim 2

null(A): basis ∅, dim 0

null(AT): {[9−121]}, dim 1

Recall

Recall (Theorem 3.4.3, which we saw in 3.3) that if A is an m×n matrix, then the solution set of the homogeneous system Ax→=0→ consists of all vectors in Rn that are orthogonal to every row vector of A.

Definition

If W is a subspace of Rn, then the set of all vectors in Rn that are orthogonal to every vector in W is called the orthogonal complement of W and is denoted by the symbol W⟂ (pronounced “W perp”).

Theorem 4.9.6

If W is a subspace of Rn, then:
a) W⟂ is a subspace of Rn.
b) The only vector common to W and W⟂ is 𝟎, that is, W∩W⟂={𝟎}.
c) The orthogonal complement of W⟂ is W, that is, (W⟂)⟂=W.

Proof of (a)

0→⟂v→ for all v→∈Rn, so 0→⟂w→ for all w→∈W, and 0→∈W⟂. So W⟂ is not empty.

Let w→1,w→2∈W⟂. Then w→1⟂w→ for all w→∈W and w→2⟂w→ for all w→∈W. Let w→∈W. Then

(w→1+w→2)·w→=w→1·w→+w→2·w→(property of the dot product)=0+0=0.

So w→1+w→2∈W⟂.

Let k∈R. Then

(kw→1)·w→=k(w→1·w→)(property of the dot product)=k(0)=0.

So kw→1∈W⟂, and therefore W⟂ is a subspace of Rn.

Theorem 4.9.7

If A is an m×n matrix, then:
a) The null space of A and the row space of A are orthogonal complements in Rn.
b) The null space of AT and the column space of A are orthogonal complements in Rm.

#15

Confirm the orthogonality statements in the two parts of Theorem 4.9.7 for the matrix

A=[1403−90].

Solution

From #11:

a) row(A) basis: {(1,0),(0,1)}, so row(A)=R2, and null(A)={0→}. These are orthogonal complements in R2. ✓

b) col(A) basis: {[10−9],[430]}={u→1,u→2}

null(AT) basis: {[9−121]}={v→1T}

We see that

u→1·v→1=9+0−9=0,u→2·v→1=36−36+0=0.

Thus these are orthogonal, so their spans are orthogonal (and since the dimensions add to 2+1=3, their spans are orthogonal complements in R3).

Answer:

a) null(A)={0→} and row(A)=R2 are orthogonal complements in R2

b) u→1·v→1=0,u→2·v→1=0, so col(A) and null(AT) are orthogonal complements in R3

#27

Suppose that A is a 3×3 matrix whose null space is a line through the origin in 3-space. Can the row or column space of A also be a line through the origin? Explain.

Solution

No. dim[row(A)]=dim[col(A)]=rank(A) and rank(A)+nullity(A)=n, the number of columns of A, which in this case is 3. A line has dimension 1, so nullity(A)=1 and rank(A)=2. The row and column spaces have to be planes.

Answer: No; rank(A)=3−1=2, so the row and column spaces are planes.

Theorem 4.9.8 Equivalent Statements (extends Theorem 2.3.8)

If A is an n×n matrix, then the following statements are equivalent.
a) A is invertible.
b) A𝐱=𝟎 has only the trivial solution.
c) The reduced row echelon form of A is In.
d) A is expressible as a product of elementary matrices.
e) A𝐱=𝐛 is consistent for every n×1 matrix 𝐛.
f) A𝐱=𝐛 has exactly one solution for every n×1 matrix 𝐛.
g) det(A)≠0.
h) The column vectors of A are distinct and linearly independent.
i) The row vectors of A are distinct and linearly independent.
j) The column vectors of A span Rn.
k) The row vectors of A span Rn.
l) The column vectors of A form a basis for Rn.
m) The row vectors of A form a basis for Rn.
n) A has rank n.
o) A has nullity 0.
p) The orthogonal complement of the null space of A is Rn.
q) The orthogonal complement of the row space of A is {𝟎}.