14. Linear Subspaces#

Two important definitions.

14.1. Column Space#

Definition

The column space of a matrix A is the span (all linear combinations) of the columns of A.

Col(A)=Span({v1,,vn})

where

A=(|||v1v2vn|||).

Example

Calculate the column space of A=(111111).

Solution

Col(A)=Span{(111),(111)}=Span{(111)}.

The column space of A is a straight line through the origin in the direction (111).

The column space of an m×n matrix A is the set of all possible values of Ax for any x in Rn.

14.2. Null Space#

Definition

The null space of a matrix A is the set of all solutions to the equation

Ax=0.

The null space of A is also written Null(A).

Example

Calculate the null space of A=(111111).

Solution

The reduced row echelon form of A is (110000).

This gives the equation x1+x2=0, or:

x1=x2x2=x1

which results in parametric vector form:

(x1x2)=(11).
Null(A)=Span{(11)}.

The null space of A is a straight line through the origin in the direction (11).

14.3. Calculating Bases for the Null Space and Column Space#

In the example above, we noticed that the column space of A was the span of two vectors, but that because the two vectors were linearly dependent we could more compactly write the column space as the span of a single vector:

Col(A)=Span{(111),(111)}=Span{(111)}.

In fact, {(111)}is a basis for the column space of A. It turns out that we can write a basis for the column space and null space of a matrix using its reduced row echelon form.

Basis for the Column Space and Null Space

The pivot columns of A form a basis for Col(A).

The vectors in the parametric vector form of the general solution to Ax=0 form a basis for Null(A).

Example

Calculate bases for the column space and null space of

A=(120123452402).

Solution

(120123452402)RREF(108701430000).

The first two columns are the pivot columns, therefore the first two columns of A form a basis for Col(A):

{(122),(234)}.

To find a basis for the null space, use the RREF to write the solution to Ax=0 in parametric form:

x=x3(8410)+x4(7301)

which gives the following basis for Null(A):

{(8410),(7301)}.
Definition

The vectors in the basis of Null(A) found from the reduced row echelon form of A are called the special solutions to Ax=0.

14.4. Rank-Nullity Theorem#

Definition

The number of vectors in a basis for the column space of A is called the rank of A.

The number of vectors in a basis for the null space of A is called the nullity of A.

In the previous example we saw that The rank of A is the the same as the number of pivots in the RREF of A, and the nullity of A is the same as the number of free variables. The sum of these must be the number of columns in A, which gives us a very important result called the rank-nullity theorem.

The Rank-Nullity Theorem

Let A be an m×n matrix. Then

Rank(A)+Nullity(A)=n.