Skip to main content
Mathematics LibreTexts

5.1E: Subspaces and Spanning Exercises

  • Page ID
    132820
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    We often write vectors in \(\mathbb{R}^n\) as rows.

    Exercise \(\PageIndex{1}\)

    In each case determine whether \(U\) is a subspace of \(\mathbb{R}^3\). Support your answer.

    1. \(U = \{(1, s, t) \mid s \mbox{ and }t \mbox{ in }\mathbb{R}\}\).
    2. \(U = \{(0, s, t) \mid s \mbox{ and } t \mbox{ in } \mathbb{R}\}\).
    3. \(U = \{(r, s, t) \mid r, s,\mbox{ and } t \mbox{ in } \mathbb{R}, -r + 3s + 2t = 0\}\).
    4. \(U = \{(r, 3s, r - 2) \mid r \mbox{ and } s \mbox{ in } \mathbb{R}\}\).
    5. \(U = \{(r, 0, s) \mid r^{2} + s^{2} = 0, r \mbox{ and } s \mbox{ in } \mathbb{R}\}\).
    6. \(U = \{(2r, -s^{2}, t) \mid r, s, \mbox{ and } t \mbox{ in } \mathbb{R}\}\).
    Answer
    1. Yes
    2. No
    3. No.
    Exercise \(\PageIndex{2}\)

    In each case determine if \(\mathbf{x}\) lies in \(U = span \;\{\mathbf{y}, \mathbf{z}\}\). If \(\mathbf{x}\) is in \(U\), write it as a linear combination of \(\mathbf{y}\) and \(\mathbf{z}\); if \(\mathbf{x}\) is not in \(U\), show why not.

    1. \(\mathbf{x} = (2, -1, 0, 1)\), \(\mathbf{y} = (1, 0, 0, 1)\), and \(\mathbf{z} = (0, 1, 0, 1)\).
    2. \(\mathbf{x} = (1, 2, 15, 11)\), \(\mathbf{y} = (2, -1, 0, 2)\), and \(\mathbf{z} = (1, -1, -3, 1)\).
    3. \(\mathbf{x} = (8, 3, -13, 20)\), \(\mathbf{y} = (2, 1, -3, 5)\), and \(\mathbf{z} = (-1, 0, 2, -3)\).
    4. \(\mathbf{x} = (2, 5, 8, 3)\), \(\mathbf{y} = (2, -1, 0, 5)\), and \(\mathbf{z} = (-1, 2, 2, -3)\).
    Answer
    1. No
    2. Yes, \(\mathbf{x} = 3\mathbf{y} + 4\mathbf{z}\).
    Exercise \(\PageIndex{3}\)

    In each case determine if the given vectors span \(\mathbb{R}^4\). Support your answer.

    1. \(\{(1, 1, 1, 1), (0, 1, 1, 1), (0, 0, 1, 1), (0, 0, 0, 1)\}\).
    2. \(\{(1, 3, -5, 0), (-2, 1, 0, 0), (0, 2, 1, -1),\\ (1, -4, 5, 0)\}\).
    Answer
    1. No
    Exercise \(\PageIndex{4}\)

    Is it possible that \(\{(1, 2, 0), (2, 0, 3)\}\) can span the subspace \(U = \{(r, s, 0) \mid r \mbox{ and } s \mbox{ in } \mathbb{R}\}\)? Defend your answer.

    Exercise \(\PageIndex{5}\)

    Give a spanning set for the zero subspace \(\{\mathbf{0}\}\) of \(\mathbb{R}^n\).

    Exercise \(\PageIndex{6}\)

    Is \(\mathbb{R}^2\) a subspace of \(\mathbb{R}^3\)? Defend your answer.

    Exercise \(\PageIndex{7}\)

    If \(U = span \;\{\mathbf{x}, \mathbf{y}, \mathbf{z}\}\) in \(\mathbb{R}^n\), show that \(U = span \;\{\mathbf{x} + t\mathbf{z}, \mathbf{y}, \mathbf{z}\}\) for every \(t\) in \(\mathbb{R}\).

    Exercise \(\PageIndex{8}\)

    If \(U = span \;\{\mathbf{x}, \mathbf{y}, \mathbf{z}\}\) in \(\mathbb{R}^n\), show that \(U = span \;\{\mathbf{x} + \mathbf{y}, \mathbf{y} + \mathbf{z}, \mathbf{z} + \mathbf{x}\}\).

    Exercise \(\PageIndex{9}\)

    If \(a \neq 0\) is a scalar, show that \(span \;\{a\mathbf{x}\} = span \;\{\mathbf{x}\}\) for every vector \(\mathbf{x}\) in \(\mathbb{R}^n\).

    Exercise \(\PageIndex{10}\)

    If \(a_{1}, a_{2}, \dots, a_{k}\) are nonzero scalars, show that \(span \;\{a_{1}\mathbf{x}_{1}, a_{2}\mathbf{x}_{2}, \dots, a_{k}\mathbf{x}_{k}\} = span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) for any vectors \(\mathbf{x}_{i}\) in \(\mathbb{R}^n\).

    Answer

    \(span \;\{a_{1}\mathbf{x}_{1}, a_{2}\mathbf{x}_{2}, \dots, a_{k}\mathbf{x}_{k}\} \subseteq span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) by Theorem 5.1.1 because, for each \(i\), \(a_{i}\mathbf{x}_{i}\) is in \(span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\). Similarly, the fact that \(\mathbf{x}_{i} = a_{i}^{-1}(a_{i}\mathbf{x}_{i})\) is in \(span \;\{a_{1}\mathbf{x}_{1}, a_{2}\mathbf{x}_{2}, \dots, a_{k}\mathbf{x}_{k}\}\) for each \(i\) shows that \(span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\} \subseteq span \;\{a_{1}\mathbf{x}_{1}, a_{2}\mathbf{x}_{2}, \dots, a_{k}\mathbf{x}_{k}\}\), again by Theorem 5.1.1.

    Exercise \(\PageIndex{11}\)

    If \(\mathbf{x} \neq \mathbf{0}\) in \(\mathbb{R}^n\), determine all subspaces of \(span \;\{\mathbf{x}\}\).

    Exercise \(\PageIndex{12}\)

    Suppose that \(U = span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) where each \(\mathbf{x}_{i}\) is in \(\mathbb{R} ^n\). If \(A\) is an \(m \times n\) matrix and \(A\mathbf{x}_{i} = \mathbf{0}\) for each \(i\), show that \(A\mathbf{y} = \mathbf{0}\) for every vector \(\mathbf{y}\) in \(U\).

    Answer

    If \(\mathbf{y} = r_{1}\mathbf{x}_{1} + \dots + r_{k}\mathbf{x}_{k}\) then \(A\mathbf{y} = r_{1}(A\mathbf{x}_{1}) + \dots + r_{k}(A\mathbf{x}_{k}) = 0\).

    Exercise \(\PageIndex{13}\)

    If \(A\) is an \(m \times n\) matrix, show that, for each invertible \(m \times m\) matrix \(U\), \(\text{null}(A) = \text{null}(UA)\).

    Exercise \(\PageIndex{14}\)

    If \(A\) is an \(m \times n\) matrix, show that, for each invertible \(n \times n\) matrix \(V\), \(im \;(A) = im \;(AV)\).

    Exercise \(\PageIndex{15}\)

    Let \(U\) be a subspace of \(\mathbb{R}^n\), and let \(\mathbf{x}\) be a vector in \(\mathbb{R}^n\).

    1. If \(a\mathbf{x}\) is in \(U\) where \(a \neq 0\) is a number, show that \(\mathbf{x}\) is in \(U\).
    2. If \(\mathbf{y}\) and \(\mathbf{x} + \mathbf{y}\) are in \(U\) where \(\mathbf{y}\) is a vector in \(\mathbb{R}^n\), show that \(\mathbf{x}\) is in \(U\).
    Answer
    1. \(\mathbf{x} = (\mathbf{x} + \mathbf{y}) - \mathbf{y} = (\mathbf{x} + \mathbf{y}) + (-\mathbf{y})\) is in \(U\) because \(U\) is a subspace and both \(\mathbf{x} + \mathbf{y}\) and \(-\mathbf{y} = (-1)\mathbf{y}\) are in \(U\).
    Exercise \(\PageIndex{16}\)

    In each case either show that the statement is true or give an example showing that it is false.

    1. If \(U \neq \mathbb{R}^n\) is a subspace of \(\mathbb{R}^n\) and \(\mathbf{x} + \mathbf{y}\) is in \(U\), then \(\mathbf{x}\) and \(\mathbf{y}\) are both in \(U\).
    2. If \(U\) is a subspace of \(\mathbb{R}^n\) and \(r\mathbf{x}\) is in \(U\) for all \(r\) in \(\mathbb{R}\), then \(\mathbf{x}\) is in \(U\).
    3. If \(U\) is a subspace of \(\mathbb{R}^n\) and \(\mathbf{x}\) is in \(U\), then \(-\mathbf{x}\) is also in \(U\).
    4. If \(\mathbf{x}\) is in \(U\) and \(U = span \;\{\mathbf{y}, \mathbf{z}\}\), then \(U = span \;\{\mathbf{x}, \mathbf{y}, \mathbf{z}\}\).
    5. The empty set of vectors in \(\mathbb{R}^n\) is a subspace of \(\mathbb{R}^n\).
    6. \(\left[ \begin{array}{r} 0 \\ 1 \end{array} \right]\) is in \(span \; \left\{ \left[ \begin{array}{r} 1 \\ 0 \end{array} \right],\ \left[ \begin{array}{r} 2 \\ 0 \end{array} \right] \right\}\).
    Answer
    1. True. \(\mathbf{x} = 1\mathbf{x}\) is in \(U\).
    2. True. Always \(span \;\{\mathbf{y}, \mathbf{z}\} \subseteq span \;\{\mathbf{x}, \mathbf{y}, \mathbf{z}\}\) by Theorem 5.1.1. Since \(\mathbf{x}\) is in \(span \;\{\mathbf{x}, \mathbf{y}\}\) we have \(span \;\{\mathbf{x}, \mathbf{y}, \mathbf{z}\} \subseteq span \;\{\mathbf{y}, \mathbf{z}\}\), again by Theorem 5.1.1.
    3. False. \(a \left[ \begin{array}{r} 1 \\ 0 \end{array} \right] + b \left[ \begin{array}{r} 2 \\ 0 \end{array} \right] = \left[ \begin{array}{c} a + 2b \\ 0 \end{array} \right]\) cannot equal \(\left[ \begin{array}{r} 0 \\ 1 \end{array} \right]\).
    Exercise \(\PageIndex{17}\)
    1. If \(A\) and \(B\) are \(m \times n\) matrices, show that \(U = \{\mathbf{x}\) in \(\mathbb{R}^n\) | \(A\mathbf{x} = B\mathbf{x}\}\) is a subspace of \(\mathbb{R}^n\).
    2. What if \(A\) is \(m \times n\), \(B\) is \(k \times n\), and \(m \neq k\)?
    Exercise \(\PageIndex{18}\)

    Suppose that \(\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\) are vectors in \(\mathbb{R}^n\). If \(\mathbf{y} = a_{1}\mathbf{x}_{1} + a_{2}\mathbf{x}_{2} + \dots + a_{k}\mathbf{x}_{k}\) where \(a_{1} \neq 0\), show that \(span \;\{\mathbf{x}_{1}\, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\} = span \;\{\mathbf{y}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\).

    Exercise \(\PageIndex{19}\)

    If \(U \neq \{\mathbf{0}\}\) is a subspace of \(\mathbb{R}\), show that \(U = \mathbb{R}\).

    Exercise \(\PageIndex{20}\)

    Let \(U\) be a nonempty subset of \(\mathbb{R}^n\). Show that \(U\) is a subspace if and only if S2 and S3 hold.

    Answer

    If \(U\) is a subspace, then S2 and S3 certainly hold. Conversely, assume that S2 and S3 hold for \(U\). Since \(U\) is nonempty, choose \(\mathbf{x}\) in \(U\). Then \(\mathbf{0} = 0\mathbf{x}\) is in \(U\) by S3, so S1 also holds. This means that \(U\) is a subspace.

    Exercise \(\PageIndex{21}\)

    If \(S\) and \(T\) are nonempty sets of vectors in \(\mathbb{R}^n\), and if \(S \subseteq T\), show that \(span \;\{S\} \subseteq span \;\{T\}\).

    Exercise \(\PageIndex{22}\)

    Let \(U\) and \(W\) be subspaces of \(\mathbb{R}^n\). Define their intersection \(U \cap W\) and their sum \(U + W\) as follows:

    • \(U \cap W = \{\mathbf{x} \in \mathbb{R}^n \mid \mathbf{x}\mbox{ belongs to both } U \mbox{ and } W\}\).
    • \(U + W = \{\mathbf{x} \in \mathbb{R}^n \mid \mathbf{x}\mbox{ is a sum of a vector in } U \mbox{ and a vector in } W\}\).
    1. Show that \(U \cap W\) is a subspace of \(\mathbb{R}^n\).
    2. Show that \(U + W\) is a subspace of \(\mathbb{R}^n\).
    Answer
    1. The zero vector \(\mathbf{0}\) is in \(U + W\) because \(\mathbf{0} = \mathbf{0} + \mathbf{0}\). Let \(\mathbf{p}\) and \(\mathbf{q}\) be vectors in \(U + W\), say \(\mathbf{p} = \mathbf{x}_{1} + \mathbf{y}_{1}\) and \(\mathbf{q} = \mathbf{x}_{2} + \mathbf{y}_{2}\) where \(\mathbf{x}_{1}\) and \(\mathbf{x}_{2}\) are in \(U\), and \(\mathbf{y}_{1}\) and \(\mathbf{y}_{2}\) are in \(W\). Then \(\mathbf{p} + \mathbf{q} = (\mathbf{x}_{1} + \mathbf{x}_{2}) + (\mathbf{y}_{1} + \mathbf{y}_{2})\) is in \(U + W\) because \(\mathbf{x}_{1} + \mathbf{x}_{2}\) is in \(U\) and \(\mathbf{y}_{1} + \mathbf{y}_{2}\) is in \(W\). Similarly, \(a(\mathbf{p} + \mathbf{q}) = a\mathbf{p} + a\mathbf{q}\) is in \(U + W\) for any scalar \(a\) because \(a\mathbf{p}\) is in \(U\) and \(a\mathbf{q}\) is in \(W\). Hence \(U + W\) is indeed a subspace of \(\mathbb{R}^n\).
    Exercise \(\PageIndex{23}\)

    Let \(P\) denote an invertible \(n \times n\) matrix. If \(\lambda\) is a number, show that

    \[E_{\lambda}(PAP^{-1}) = \{P\mathbf{x} \mid \mathbf{x} \mbox{ is in } E_{\lambda}(A)\} \nonumber \]

    for each \(n \times n\) matrix \(A\).

    Exercise \(\PageIndex{24}\)

    Show that every proper subspace \(U\) of \(\mathbb{R}^2\) is a line through the origin. [Hint: If \(\mathbf{d}\) is a nonzero vector in \(U\), let \(L = \mathbb{R} \mathbf{d} = \{r\mathbf{d} \mid r \mbox{ in }\mathbb{R}\}\) denote the line with direction vector \(\mathbf{d}\). If \(\mathbf{u}\) is in \(U\) but not in \(L\), argue geometrically that every vector \(\mathbf{v}\) in \(\mathbb{R}^2\) is a linear combination of \(\mathbf{u}\) and \(\mathbf{d}\).]


    This page titled 5.1E: Subspaces and Spanning Exercises was last modified on Sat, 17 Jan 2026 00:22:36 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by W. Keith Nicholson.