Linear Subspaces
Contents
14. Linear Subspaces#
Two important definitions.
14.1. Column Space#
The column space of a matrix \(A\) is the span (all linear combinations) of the columns of \(A\).
where
Example
Calculate the column space of \(A = \begin{pmatrix}1&1\\1&1\\1&1\end{pmatrix}\).
Solution
The column space of \(A\) is a straight line through the origin in the direction \(\begin{pmatrix}1\\1\\1\end{pmatrix}\).
The column space of an \(m \times n\) matrix \(A\) is the set of all possible values of \(Ax\) for any \(x\) in \(\mathbb{R}^n\).
14.2. Null Space#
The null space of a matrix \(A\) is the set of all solutions to the equation
The null space of \(A\) is also written \(\mathrm{Null}(A)\).
Example
Calculate the null space of \(A = \begin{pmatrix}1&1\\1&1\\1&1\end{pmatrix}\).
Solution
The reduced row echelon form of \(A\) is \(\begin{pmatrix}1&1\\0&0\\0&0\end{pmatrix}\).
This gives the equation \(x_1 + x_2 = 0\), or:
which results in parametric vector form:
The null space of \(A\) is a straight line through the origin in the direction \(\begin{pmatrix}-1\\1\end{pmatrix}\).
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:
In fact, \(\left\{\begin{pmatrix}1\\1\\1\end{pmatrix}\right\}\)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 \(\mathrm{Col}(A)\).
The vectors in the parametric vector form of the general solution to \(Ax = 0\) form a basis for \(\mathrm{Null}(A)\).
Example
Calculate bases for the column space and null space of
Solution
The first two columns are the pivot columns, therefore the first two columns of \(A\) form a basis for \(\mathrm{Col}(A)\):
To find a basis for the null space, use the RREF to write the solution to \(Ax = 0\) in parametric form:
which gives the following basis for \(\mathrm{Null}(A)\):
The vectors in the basis of \(\mathrm{Null}(A)\) found from the reduced row echelon form of \(A\) are called the special solutions to \(Ax=0\).
14.4. Rank-Nullity Theorem#
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.
Let \(A\) be an \(m \times n\) matrix. Then