Skip to main content

Section 2.8 Subspaces

Handout 2.8 Subspaces

Motivating Question: Given a matrix \(A\text{,}\) what is the set of vectors \(\vec b\) for which we can solve \(A\vec x=\vec b\text{?}\)

Definition 2.43. Subset of \(\mathbb{R}^n\).

A subset of \(\mathbb{R}^n\) is any collection of vectors contained in \(\mathbb{R}^n\text{.}\)

Definition 2.44. Subspace.

A subset \(H\) of \(\mathbb{R}^n\) is a subspace if:
  • \(\displaystyle \vec 0 \in H\)
  • \(\vec u+\vec v\in H\) for all \(\vec u,\vec v\in H\text{.}\)
  • \(c\vec u\in H\) for any scalar \(c\in\mathbb{R}\) and any \(\vec u\in H\text{.}\)
Note that scalar closure implies the zero vector must be in \(H\text{.}\)

Example 2.45.

Which of the following subsets could be subspaces of \(\mathbb{R}^2\text{?}\)
A graphic showing three subsets of \(\mathbb{R}^2\text{.}\) The first (a) is the unit square. The second (b) is a line through the origin. The third (c) is a line that does not pass throught the origin.

Example 2.46.

For each subset of \(\mathbb{R}^3\) given below, determine if it is a subspace of \(\mathbb{R}^3\text{.}\)
(b)
\(S_2 = \left\{\vec 0, \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix},\begin{bmatrix}-1 \\ 0 \\ -1\end{bmatrix} \right\}\)
(c)
\(S_3 = \left\{\begin{bmatrix}1 \\ 0 \\ 0 \end{bmatrix}, \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}, \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}\right\}\)
(d)
\(S_4 = \operatorname{Span}\left\{\begin{bmatrix}1 \\ 0 \\ 0 \end{bmatrix}, \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}, \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}\right\}\)

Example 2.47.

The following subsets of \(\mathbb{R}^2\) are written in set-builder notation. For each, determine if it is a subspace of \(\mathbb{R}^2\text{.}\) Note that \(\mathbb{Z} = \{\dots, -2, -1, 0, 1 , 2, \dots\}\) is the set of integers.
(a)
\(T_1 = \left\{\begin{bmatrix} x \\ -x \end{bmatrix} \in \mathbb{R}^2 \ \Big \rvert \ x\in\mathbb{Z}\right\}\)
(b)
\(T_2 = \left\{\begin{bmatrix} x \\ -x \end{bmatrix} \in \mathbb{R}^2 \ \Big \rvert \ x\in\mathbb{R}\right\}\)
(c)
\(T_3 = \left\{\vec x \in \mathbb{R}^2 \ \Big \rvert \ \begin{bmatrix} 1 \amp 2 \\ 2 \amp 4 \end{bmatrix}\vec x = \begin{bmatrix} 0 \\ 0 \end{bmatrix}\right\}\)
(d)
\(T_4 = \left\{\vec x \in \mathbb{R}^2 \ \Big \rvert \ \begin{bmatrix} 1 \amp 2 \\ 2 \amp 4 \end{bmatrix}\vec x = \begin{bmatrix} 1 \\ 2 \end{bmatrix}\right\}\)
Recall that for vectors \(\vec v_1,\dots,\vec v_p\in\mathbb{R}^n\text{,}\) \(\operatorname{Span}\{\vec v_1,\dots,\vec v_p\}\) is the subspace consisting of all linear combinations of these vectors. Not only is the span of vectors an example of a subspace of \(\mathbb{R}^n\text{,}\) they are the only examples of subspace of \(\mathbb{R}^n\text{.}\)

Definition 2.49. Column Space and Null Space.

Let \(A=\begin{bmatrix}\vec a_1 \amp \cdots \amp \vec a_n\end{bmatrix}\) be an \(m\times n\) matrix.
  • The column space of \(A\text{,}\) \(\operatorname{Col}(A)\text{,}\) is the subspace of \(\mathbb{R}^m\) spanned by \(\vec a_1,\dots,\vec a_n\text{.}\)
  • The null space of \(A\text{,}\) \(\operatorname{Nul}(A)\text{,}\) is the subspace of \(\mathbb{R}^n\) consisting of all solutions to \(A\vec x=\vec 0\text{.}\)

Example 2.51.

Is \(\vec b\) in the column space of \(A\text{?}\)
\begin{equation*} A= \begin{bmatrix} 1 \amp -3 \amp -4\\ -4 \amp 6 \amp -2\\ -3 \amp 7 \amp 6 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 0 \amp 5\\ 0 \amp 1 \amp 3\\ 0 \amp 0 \amp 0 \end{bmatrix} = B, \qquad \vec b= \begin{bmatrix} 3\\3\\-4 \end{bmatrix}. \end{equation*}

Example 2.52.

Determine whether \(\vec v\) is in \(\operatorname{Nul}(A)\text{.}\)
\begin{equation*} A = \begin{bmatrix} 1 \amp -3 \amp -4\\ -4 \amp 6 \amp -2\\ -3 \amp 7 \amp 6 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 0 \amp 5\\ 0 \amp 1 \amp 2\\ 0 \amp 0 \amp 0 \end{bmatrix} = B, \qquad \vec v= \begin{bmatrix} -5t\\ -3t\\ t \end{bmatrix}, \quad t\in\mathbb{R}. \end{equation*}

Definition 2.53. Basis.

A basis for a subspace \(H\) is a set of linearly independent vectors in \(H\) that span \(H\text{.}\)
In MATH 1554, each basis will be a finite set of vectors. For every subspace other than the trivial subspace \(\left\{\vec 0\right\}\text{,}\) there are infinitely many choices for the basis.
Be careful to NEVER include \(\Span\) when writing your basis. Writing \(\Span\) of the basis gives the entire subspace. A basis is NOT the entire subspace, but a finite set of building blocks used to build the space.

Example 2.54.

\begin{equation*} H=\left\{ \begin{bmatrix} x_1\\x_2\\x_3\\x_4 \end{bmatrix} \in\mathbb{R}^4\;\middle|\; x_1+2x_2+x_3+5x_4=0 \right\}. \end{equation*}
(b)
Find a matrix \(A\) such that \(H=\operatorname{Nul}(A)\text{.}\)

Example 2.55.

Construct a basis for \(\operatorname{Nul}(A)\) and \(\operatorname{Col}(A)\text{.}\)
\begin{equation*} A= \begin{bmatrix} -3 \amp 6 \amp -1 \amp 0\\ 1 \amp -2 \amp 2 \amp 0\\ 2 \amp -4 \amp 5 \amp 0 \end{bmatrix} \sim \begin{bmatrix} 1 \amp -2 \amp 0 \amp 0\\ 0 \amp 0 \amp 1 \amp 0\\ 0 \amp 0 \amp 0 \amp 0 \end{bmatrix} = B. \end{equation*}

Example 2.56.

\begin{equation*} V=\left\{ \begin{bmatrix} a\\b \end{bmatrix} \in\mathbb{R}^2\;\middle|\;ab=0 \right\}. \end{equation*}