Skip to main content
Mathematics LibreTexts

5.11.1.2E: Subspaces and Spanning Sets Exercises

  • Page ID
    134816
  • \( \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{\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}\)
    Exercise \(\PageIndex{1}\)

    Which of the following are subspaces of \(\mathbf{P}_{3}\)? Support your answer.

    1. \(U = \{f(x) \mid f(x) \in\|{P}_{3}, f(2) = 1\}\)
    2. \(U = \{xg(x) \mid g(x) \in\|{P}_{2}\}\)
    3. \(U = \{xg(x) \mid g(x) \in\|{P}_{3}\}\)
    4. \(U = \{xg(x) + (1 - x)h(x) \mid g(x) \mbox{ and } h(x) \in\|{P}_{2}\}\)
    5. \(U =\) The set of all polynomials in \(\mathbf{P}_{3}\) with constant term \(0\)
    6. \(U = \{f(x) \mid f(x) \in\|{P}_{3}, \text{deg} f(x) = 3\}\)
    Answer
    1. Yes
    2. Yes
    3. No; not closed under addition or scalar multiplication, and \(0\) is not in the set.
    Exercise \(\PageIndex{2}\)

    Which of the following are subspaces of \(\mathbf{M}_{22}\)? Support your answer.

    1. \(U = \left\{ \left[ \begin{array}{rr} a & b \\ 0 & c \end{array} \right] \middle|\ a, b, \mbox{ and } c \mbox{ in } \mathbb{R} \right\}\)
    2. \(U = \left\{ \left[ \begin{array}{rr} a & b \\ c & d \end{array} \right] \middle|\ a + b = c + d;\ a, b, c, d \mbox{ in } \mathbb{R} \right\}\)
    3. \(U = \{A \mid A \in\|{M}_{22}, A = A^{T}\}\)
    4. \(U = \{A \mid A \in\|{M}_{22}, AB = 0\}\), \(B\) a fixed \(2 \times 2\) matrix
    5. \(U = \{A \mid A \in\|{M}_{22}, A^{2} = A\}\)
    6. \(U = \{A \mid A \in\|{M}_{22}, A \mbox{ is not invertible}\}\)
    7. \(U = \{A \mid A \in\|{M}_{22}, BAC = CAB\}\), \(B\) and \(C\) fixed \(2 \times 2\) matrices
    Answer
    1. Yes.
    2. Yes.
    3. No; not closed under addition.
    Exercise \(\PageIndex{3}\)

    Which of the following are subspaces of \(\mathbf{F}[0, 1]\)? Support your answer.

    1. \(U = \{f \mid f(0) = 0\}\)
    2. \(U = \{f \mid f(0) = 1\}\)
    3. \(U = \{f \mid f(0) = f(1)\}\)
    4. \(U = \{f \mid f(x) \geq 0 \mbox{ for all } x \mbox{ in } [0, 1]\}\)
    5. \(U = \{f \mid f(x) = f(y) \mbox{ for all } x \mbox{ and } y \mbox{ in } [0, 1]\}\)
    6. \(U = \{f \mid f(x + y) = f(x) + f(y) \mbox{ for all } \\ x \mbox{ and } y \mbox{ in } [0, 1]\}\)
    7. \(U = \{f \mid f \mbox{ is integrable and } \int_{0}^{1} f(x)dx = 0\}\)
    Answer
    1. No; not closed under addition.
    2. No; not closed under scalar multiplication.
    3. Yes.
    Exercise \(\PageIndex{4}\)

    Let \(A\) be an \(m \times n\) matrix. For which columns \(\mathbf{b}\) in \(\mathbb{R}^m\) is \(U = \{\mathbf{x} \mid \mathbf{x} \in \mathbb{R}^n, A\mathbf{x} = \mathbf{b}\}\) a subspace of \(\mathbb{R}^n\)? Support your answer.

    Exercise \(\PageIndex{5}\)

    Let \(\mathbf{x}\) be a vector in \(\mathbb{R}^n\) (written as a column), and define \(U = \{A\mathbf{x} \mid A \in\|{M}_{mn}\}\).

    1. Show that \(U\) is a subspace of \(\mathbb{R}^m\).
    2. Show that \(U = \mathbb{R}^m\) if \(\mathbf{x} \neq \mathbf{0}\).
    Answer
    1. If entry \(k\) of \(\mathbf{x}\) is \(x_{k} \neq 0\), and if \(\mathbf{y}\) is in \(\mathbb{R}^n\), then \(\mathbf{y} = A\mathbf{x}\) where the column of \(A\) is \(x_{k}^{-1}\mathbf{y}\), and the other columns are zero.
    Exercise \(\PageIndex{6}\)

    Write each of the following as a linear combination of \(x + 1\), \(x^{2} + x\), and \(x^{2} + 2\).

    1. \(x^{2} + 3x + 2\) \(2x^{2} - 3x + 1\) \(x^{2} + 1\) \(x\)
    2. \(-3(x + 1) + 0(x^{2} + x) + 2(x^{2} + 2)\)
    3. \(\frac{2}{3}(x + 1) + \frac{1}{3}(x^{2} + x) - \frac{1}{3}(x^{2} + 2)\)
    Answer
    1. \(-3(x+1)+0\left(x^2+x\right)+2\left(x^2+2\right)\)
    2. \(\frac{2}{3}(x+1)+\frac{1}{3}\left(x^2+x\right)-\frac{1}{3}\left(x^2+2\right)\)
    Exercise \(\PageIndex{7}\)

    Determine whether \(\mathbf{v}\) lies in \(span \;\{\mathbf{u}, \mathbf{w}\}\) in each case.

    1. \(\mathbf{v} = 3x^{2} - 2x - 1\); \(\mathbf{u} = x^{2} + 1\), \(\mathbf{w} = x + 2\)
    2. \(\mathbf{v} = x\); \(\mathbf{u} = x^{2} + 1\), \(\mathbf{w} = x + 2\)
    3. \(\mathbf{v} = \left[ \begin{array}{rr} 1 & 3 \\ -1 & 1 \end{array} \right]\); \(\mathbf{u} = \left[ \begin{array}{rr} 1 & -1 \\ 2 & 1 \end{array} \right]\), \(\mathbf{w} = \left[ \begin{array}{rr} 2 & 1 \\ 1 & 0 \end{array} \right]\)
    4. \(\mathbf{v} = \left[ \begin{array}{rr} 1 & -4 \\ 5 & 3 \end{array} \right]\); \(\mathbf{u} = \left[ \begin{array}{rr} 1 & -1 \\ 2 & 1 \end{array} \right]\), \(\mathbf{w} = \left[ \begin{array}{rr} 2 & 1 \\ 1 & 0 \end{array} \right]\)
    Answer
    1. No.
    2. Yes; \(\mathbf{v} = 3\mathbf{u} - \mathbf{w}\).
    Exercise \(\PageIndex{8}\)

    Which of the following functions lie in \(span \;\{\cos^{2}x, \sin^{2} x\}\)? (Work in \(\mathbf{F}[0, \pi]\).)

    1. \(\cos 2x\)
    2. \(1\)
    3. \(x^{2}\)
    4. \(1 + x^{2}\)
    Answer
    1. Yes; \(1 = \cos^{2} x + \sin^{2} x\)
    2. No. If \(1 + x^{2} = a \cos^{2} x + b \sin^{2} x\), then taking \(x = 0\) and \(x = \pi\) gives \(a = 1\) and \(a = 1 + \pi^{2}\).
    Exercise \(\PageIndex{9}\)
    1. Show that \(\mathbb{R}^3\) is spanned by \(\{(1, 0, 1), (1, 1, 0), (0, 1, 1)\}\).
    2. Show that \(\mathbf{P}_{2}\) is spanned by \(\{1 + 2x^{2}, 3x, 1 + x\}\).
    3. Show that \(\mathbf{M}_{22}\) is spanned by \[\left\{ \left[ \begin{array}{rr} 1 & 0 \\ 0 & 0 \end{array} \right] , \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right] , \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right] , \left[ \begin{array}{rrr} 1 & 1 \\ 0 & 1 \end{array} \right] \right\}. \nonumber\]
    Answer
    1. Because \(\mathbf{P}_{2} = span \;\{1, x, x^{2}\}\), it suffices to show that \(\{1, x, x^{2}\} \subseteq\) \(span \;\{1 + 2x^{2}, 3x, 1 + x\}\). But \(x = \frac{1}{3}(3x); 1 = (1 + x) - x\) and \(x^{2} = \frac{1}{2}[(1 + 2x^{2}) - 1]\).
    Exercise \(\PageIndex{10}\)

    If \(X\) and \(Y\) are two sets of vectors in a vector space \(V\), and if \(X \subseteq Y\), show that \(span \; X \subseteq span \; Y\).

    Exercise \(\PageIndex{11}\)

    Let \(\mathbf{u}\), \(\mathbf{v}\), and \(\mathbf{w}\) denote vectors in a vector space \(V\). Show that:

    1. \(span \;\{\mathbf{u}, \mathbf{v}, \mathbf{w}\} = span \;\{\mathbf{u} + \mathbf{v}, \mathbf{u} + \mathbf{w}, \mathbf{v} + \mathbf{w}\}\)
    2. \(span \;\{\mathbf{u}, \mathbf{v}, \mathbf{w}\} = span \;\{\mathbf{u} - \mathbf{v}, \mathbf{u} + \mathbf{w}, \mathbf{w}\}\)
    Answer
    1. \(\mathbf{u} = (\mathbf{u} + \mathbf{w}) - \mathbf{w}\), \(\mathbf{v} = -(\mathbf{u} - \mathbf{v}) + (\mathbf{u} + \mathbf{w}) - \mathbf{w}\), and \(\mathbf{w} = \mathbf{w}\)
    Exercise \(\PageIndex{12}\)

    Show that

    \[span \;\{\mathbf{v}_{1}, \mathbf{v}_{2}, \dots, \mathbf{v}_{n}, \mathbf{0}\} = span \;\{\mathbf{v}_{1}, \mathbf{v}_{2}, \dots, \mathbf{v}_{n}\} \nonumber \]

    holds for any set of vectors \(\{\mathbf{v}_{1}, \mathbf{v}_{2}, \dots, \mathbf{v}_{n}\}\).

    Exercise \(\PageIndex{13}\)

    If \(X\) and \(Y\) are nonempty subsets of a vector space \(V\) such that \(span \; X = span \; Y = V\), must there be a vector common to both \(X\) and \(Y\)? Justify your answer.

    Exercise \(\PageIndex{14}\)

    Is it possible that \(\{(1, 2, 0), (1, 1, 1)\}\) can span the subspace \(U = \{(a, b, 0) \mid a \mbox{ and } b \mbox{ in } \mathbb{R}\}\)?

    Answer

    No.

    Exercise \(\PageIndex{15}\)

    Describe \(span \;\{\mathbf{0}\}\).

    Exercise \(\PageIndex{16}\)

    Let \(\mathbf{v}\) denote any vector in a vector space \(V\). Show that \(span \;\{\mathbf{v}\} = span \;\{a\mathbf{v}\}\) for any \(a \neq 0\).

    Exercise \(\PageIndex{17}\)

    Determine all subspaces of \(\mathbb{R}\mathbf{v}\) where \(\mathbf{v} \neq \mathbf{0}\) in some vector space \(V\).

    Exercise \(\PageIndex{18}\)

    Suppose \(V = span \;\{\mathbf{v}_{1}, \mathbf{v}_{2}, \dots, \mathbf{v}_{n}\}\). If \(\mathbf{u} = a_{1}\mathbf{v}_{1} + a_{2}\mathbf{v}_{2} + \dots+ a_{n}\mathbf{v}_{n}\) where the \(a_{i}\) are in \(\mathbb{R}\) and \(a_{1} \neq 0\), show that \(V = span \;\{\mathbf{u}, \mathbf{v}_{2}, \dots, \mathbf{v}_{n}\}\).

    Answer

    \(\mathbf{v}_1 = \frac{1}{a_1}\mathbf{u} - \frac{a_2}{a_1}\mathbf{v}_2 - \dots - \frac{a_n}{a_1}\mathbf{v}_n\), so \(V \subseteq span \;\{\mathbf{u}, \mathbf{v}_2, \dots, \mathbf{v}_n \}\)

    Exercise \(\PageIndex{19}\)

    If \(\mathbf{M}_{nn} = span \;\{A_1, A_2, \dots, A_k\}\), show that \(\mathbf{M}_{nn} = span \;\{A_1^T, A_2^T, \dots, A_k^T\}\).

    Exercise \(\PageIndex{20}\)

    If \(\mathbf{P}_{n} = span \;\{p_{1}(x), p_{2}(x), \dots, p_{k}(x)\}\) and \(a\) is in \(\mathbb{R}\), show that \(p_{i}(a) \neq 0\) for some \(i\).

    Exercise \(\PageIndex{21}\)

    Let \(U\) be a subspace of a vector space \(V\).

    1. If \(a\mathbf{u}\) is in \(U\) where \(a \neq 0\), show that \(\mathbf{u}\) is in \(U\).
    2. If \(\mathbf{u}\) and \(\mathbf{u} + \mathbf{v}\) are in \(U\), show that \(\mathbf{v}\) is in \(U\).
    Answer
    1. \(\mathbf{v} = (\mathbf{u} + \mathbf{v}) - \mathbf{u}\) is in \(U\).
    Exercise \(\PageIndex{22}\)

    Let \(U\) be a nonempty subset of a vector space \(V\). Show that \(U\) is a subspace of \(V\) if and only if \(\mathbf{u}_{1} + a\mathbf{u}_{2}\) lies in \(U\) for all \(\mathbf{u}_{1}\) and \(\mathbf{u}_{2}\) in \(U\) and all \(a\) in \(\mathbb{R}\).

    Answer

    Given the condition and \(\mathbf{u} \in U\), \(\mathbf{0} = \mathbf{u} + (-1)\mathbf{u} \in U\). The converse holds by the subspace test.

    Exercise \(\PageIndex{23}\)

    Let \(U = \{p(x)\) in \(\|{P} \mid p(3) = 0\}\) be the set in Example 6.2.4. Use the factor theorem (see Section 6.5) to show that \(U\) consists of multiples of \(x - 3\); that is, show that \(U = \{(x - 3)q(x) \mid q(x) \in\|{P}\}\). Use this to show that \(U\) is a subspace of \(\mathbf{P}\).

    Answer

    Let \(A_{1}, A_{2}, \dots, A_{m}\) denote \(n \times n\) matrices. If \(\mathbf{0} \neq \mathbf{y} \in \mathbb{R}^n\) and \(A_{1}\mathbf{y} = A_{2}\mathbf{y} = \dots = A_{m}\mathbf{y} = \mathbf{0}\), show that \(\{A_{1}, A_{2}, \dots, A_{m}\}\) cannot \(span \;\|{M}_{nn}\).

    Exercise \(\PageIndex{24}\)

    Let \(\{\mathbf{v}_{1}, \mathbf{v}_{2}, \dots, \mathbf{v}_{n}\}\) and \(\{\mathbf{u}_{1}, \mathbf{u}_{2}, \dots, \mathbf{u}_{n}\}\) be sets of vectors in a vector space, and let

    \[X = \left[ \begin{array}{c} \mathbf{v}_1 \\ \vdots \\ \mathbf{v}_n \end{array} \right] \ Y = \left[ \begin{array}{c} \mathbf{u}_1 \\ \vdots \\ \mathbf{u}_n \end{array} \right] \nonumber \]

    as in Exercise 6.1.18.

    1. Show that \(span \;\{\mathbf{v}_{1}, \dots, \mathbf{v}_{n}\} \subseteq span \;\{\mathbf{u}_{1}, \dots, \mathbf{u}_{n}\}\) if and only if \(AY = X\) for some \(n \times n\) matrix \(A\).
    2. If \(X = AY\) where \(A\) is invertible, show that \(span \;\{\mathbf{v}_{1}, \dots, \mathbf{v}_{n}\} = span \;\{\mathbf{u}_{1}, \dots, \mathbf{u}_{n}\}\).
    Exercise \(\PageIndex{25}\)

    If \(U\) and \(W\) are subspaces of a vector space \(V\), let \(U \cup W = \{\mathbf{v} \mid \mathbf{v}\) is in \(U\) or \(\mathbf{v}\) is in \(W\}\). Show that \(U \cup W\) is a subspace if and only if \(U \subseteq W\) or \(W \subseteq U\).

    Exercise \(\PageIndex{27}\)

    Show that \(\mathbf{P}\) cannot be spanned by a finite set of polynomials.


    5.11.1.2E: Subspaces and Spanning Sets Exercises is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?