library(dasc2594)
11 Subspaces of \(\mathcal{R}^n\)
3 Blue 1 Brown – Linear combinations, span, and basis vectors
3 Blue 1 Brown – Inverse Matrices, column space, and null space
First, let’s recall the definition of a subset. A set \(A\) is a subset of a set \(B\) if all elements of \(A\) are also members of \(B\). For example, the integers \(\mathcal{Z}\) are a subset of the real numbers \(\mathbf{R}\) (\(\mathcal{Z} \subset \mathcal{R}\)) and the real numbers are a subset of the complex numbers \(\mathcal{C}\) (\(\mathcal{R} \subset \mathcal{C}\)).
Subspaces are a generalization of the idea of subsets that are useful for understanding vector spaces.
Definition 11.1 A subspace \(\mathcal{H}\) of \(\mathcal{R}^n\) is a set that has the properties
The zero vector \(\mathbf{0} \in \mathcal{H}\)
For each \(\mathbf{u}, \mathbf{v} \in \mathcal{H}\), the sum \(\mathbf{u} + \mathbf{v}\) is in \(\mathcal{H}\)
For each \(\mathbf{u} \in \mathcal{H}\) and scalar \(c\), the scalar multiple \(c \mathbf{u}\) is in \(\mathcal{H}\)
Example 11.1 Let \(\mathbf{u}\) and \(\mathbf{v}\) be vectors in \(\mathcal{R}^n\). Then the vector space defined by span\(\{\mathbf{u}, \mathbf{v} \}\) is a subspace of \(\mathcal{R}^n\)
Example 11.2 Recall that a solution to the matrix equation \(\mathbf{A} \mathbf{x} = \mathbf{0}\) that has one free variable is a line through the origin and the solution to the matrix equation \(\mathbf{A} \mathbf{x} = \mathbf{b}\) that has one free variable is a line parallel to the prior line that does not go through the origin.
Is a line through the origin a subspace?
Is a line not through the origin a subspace?
- Note: For any vectors \(\mathbf{u}_1, \ldots, \mathbf{u}_k \in \mathcal{R}^n\), the span\(\{\mathbf{u}_1, \ldots, \mathbf{u}_k\}\) is a subspace of \(\mathcal{R}^n\).
11.1 Special subspaces: column space and null space
Definition 11.2 The column space, denoted \(\operatorname{col}(\mathbf{A})\), of a \(m \times n\) matrix \(\mathbf{A}\) which has columns \(\mathbf{a}_1, \ldots, \mathbf{a}_n \in \mathcal{R}^m\) is the set of vectors that are linear combinations of the columns of \(\mathbf{A}\) which is equivalent to the span\(\{\mathbf{a}_1, \ldots, \mathbf{a}_n\}\).
Example 11.3
Given the matrix \(\mathbf{A} = \begin{pmatrix} 1 & -8 & -9 \\ -3 & 3 & -5 \\ 1 & 0 & 6 \\ -2 & -1 & -1 \end{pmatrix}\) with columns \(\mathbf{a}_1\), \(\mathbf{a}_2\), and \(\mathbf{a}_3\), what is the column space of \(\mathbf{A}\)?
Definition 11.3 The null space, denoted \(\operatorname{null}(\mathbf{A})\), of a matrix \(\mathbf{A}\) is the set of all solutions to the homogeneous matrix equation \(\mathbf{A} \mathbf{x} = \mathbf{0}\).
While the idea of a null space might at first glance seem unclear, the null space is the set of all vectors which the matrix transformation defined by \(\mathbf{A}\) maps to \(\mathbf{0}\). In other words, the null space of \(\mathbf{A}\) is the set of vectors \(\{ \mathbf{x} : \mathbf{A} \mathbf{x} = \mathbf{0} \}\).
Example 11.4
Given the matrix \(\mathbf{A} = \begin{pmatrix} -3 & -3 & -4 & -5 & -2 \\ -4 & 2 & -4 & 5 & 3 \\ 4 & -4 & 4 & -3 & 5 \end{pmatrix}\) with columns \(\mathbf{a}_1\), \(\mathbf{a}_2\), \(\mathbf{a}_3\), and \(\mathbf{a}_4\), find vectors that span the null space of \(\mathbf{A}\).
Theorem 11.1 The null space of a n \(m \times m\) matrix \(\mathbf{A}\) is a subspace of \(\mathcal{R}^n\).
- Example: give \(\mathbf{A}\) and \(\mathbf{x}\) and determine if \(\mathbf{x}\) is in the null space of \(\mathbf{A}\) using
R
11.2 The basis of a subspace
Definition 11.4 A basis for a subspace \(\mathcal{H}\) of \(\mathcal{R}^n\) is
- a linearly independent set in \(\mathcal{H}\) that
- spans \(\mathcal{H}\).
Equivalently, a basis is a set of linearly independent vectors \(\mathbf{u}_1, \ldots, \mathbf{u}_k\) such that span\(\{\mathbf{u}_1, \ldots, \mathbf{u}_k\} = \mathcal{H}\).
The requirement that the vectors of a basis are linearly independent while spanning a subspace \(\mathcal{H}\) means that a basis is a minimal spanning set for the subspace \(\mathcal{H}\)
Example 11.5 Is a basis for a vector space unique?
Definition 11.5 The standard basis for \(\mathcal{R}^n\) is the set of vectors \(\left\{ \mathbf{e}_1, \mathbf{e}_2, \ldots, \mathbf{e}_n \right\}\) of length \(n\) where the vector \(\mathbf{e}_j\) is a vector that is 0 in every value except for a 1 in the \(j\)th position. For example, \[ \begin{aligned} \mathbf{e}_1 = \begin{pmatrix} 1 \\ 0 \\ 0 \\ \vdots \\ 0 \end{pmatrix}, && \mathbf{e}_2 = \begin{pmatrix} 0 \\ 1 \\ 0 \\ \vdots \\ 0 \end{pmatrix}, && \mathbf{e}_3 = \begin{pmatrix} 0 \\ 0 \\ 1 \\ \vdots \\ 0\end{pmatrix}, && \ldots, && \mathbf{e}_n = \begin{pmatrix} 0 \\ 0 \\ 0 \\ \vdots \\ 1 \end{pmatrix}. \end{aligned} \] Notice that the matrix defined as having columns \(\mathbf{e}_1, \mathbf{e}_2, \ldots, \mathbf{e}_n\) is the identity matrix \(\mathbf{I}\).
Example 11.6 What is the standard basis for \(\mathcal{R}^3\)?
Example 11.7 Do the following set of vectors form a basis for \(\mathcal{R}^3\)?
\(\mathbf{x} = \begin{pmatrix} 2 \\ 1 \\ 2 \end{pmatrix}\), \(\mathbf{y} = \begin{pmatrix} -1 \\ 1 \\ 1 \end{pmatrix}\), and \(\mathbf{z} = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix}\)
Example 11.8 Do the following set of vectors form a basis for \(\mathcal{R}^3\)?
\(\mathbf{w} = \begin{pmatrix} 2 \\ 1 \\ 2 \end{pmatrix}\), \(\mathbf{x} = \begin{pmatrix} -1 \\ 1 \\ 1 \end{pmatrix}\), \(\mathbf{y} = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix}\), and \(\mathbf{z} = \begin{pmatrix} 4 \\ 2 \\ -2 \end{pmatrix}\)
Example 11.9 Do the following set of vectors form a basis for \(\mathcal{R}^3\)?
\(\mathbf{x} = \begin{pmatrix} 4 \\ 3 \\ 2 \end{pmatrix}\), \(\mathbf{y} = \begin{pmatrix} 3 \\ -3 \\ 4 \end{pmatrix}\), and \(\mathbf{z} = \begin{pmatrix} 5 \\ 9 \\ 0 \end{pmatrix}\)
Example 11.10 Using R
, find a basis for the null space of the matrix \[
\mathbf{A} = \begin{pmatrix} 2 & 4 & 1 & 3 \\ -1 & -2 & 6 & 5 \\ 1 & 2 & -3 & 2 \end{pmatrix}
\]
Theorem 11.2 The pivot columns of a matrix \(\mathbf{A}\) form a basis for the column space of \(\mathbf{A}\).
Note: Use the columns of \(\mathbf{A}\), not the columns of the matrix in echelon form.
Example 11.11 Find a basis for the column space of the matrix \[ \mathbf{A} = \begin{pmatrix} 3 & 1 & 2 & -3 \\ 4 & 1 & -3 & -2 \\ 4 & -1 & -3 & 1 \end{pmatrix} \]
Example 11.12
Find a basis for the column space of the matrix \[ \begin{pmatrix} -4 & 1 \\ 8 & -2 \\ 6 & 3 \\ 9 & 7 \end{pmatrix} \]