Skip to main content
Mathematics LibreTexts

2.6: Subspaces

  • Page ID
    70191
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\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}}\)

    Objectives
    1. Learn the definition of a subspace.
    2. Learn to determine whether or not a subset is a subspace.
    3. Learn the most important examples of subspaces.
    4. Learn to write a given subspace as a column space or null space.
    5. Recipe: compute a spanning set for a null space.
    6. Picture: whether a subset of \(\mathbb{R}^2\) or \(\mathbb{R}^3\) is a subspace or not.
    7. Vocabulary words: subspace, column space, null space.

    In this section we discuss subspaces of \(\mathbb{R}^n\). A subspace turns out to be exactly the same thing as a span, except we don’t have a particular set of spanning vectors in mind. This change in perspective is quite useful, as it is easy to produce subspaces that are not obviously spans. For example, the solution set of the equation \(x + 3y + z = 0\) is a span because the equation is homogeneous, but we would have to compute the parametric vector form in order to write it as a span.

    clipboard_e1b15c35e6a9db55a9e20f15057850fb0.png

    Figure \(\PageIndex{1}\)

    (A subspace also turns out to be the same thing as the solution set of a homogeneous system of equations.)

    Subspaces: Definition and Examples

    Definition \(\PageIndex{1}\): Subset

    A subset of \(\mathbb{R}^n\) is any collection of points of \(\mathbb{R}^n\).

    For instance, the unit circle

    \[ C = \bigl\{ (x,y)\text{ in }\mathbb{R}^2 \bigm| x^2 + y^2 = 1 \bigr\} \nonumber \]

    is a subset of \(\mathbb{R}^2\).

    Above we expressed \(C\) in set builder notation, Note 2.2.3 in Section 2.2: in English, it reads “\(C\) is the set of all ordered pairs \((x,y)\) in \(\mathbb{R}^2\) such that \(x^2+y^2=1\).”

    Definition \(\PageIndex{2}\): Subspace

    A subspace of \(\mathbb{R}^n\) is a subset \(V\) of \(\mathbb{R}^n\) satisfying:

    1. Non-emptiness: The zero vector is in \(V\).
    2. Closure under addition: If \(u\) and \(v\) are in \(V\text{,}\) then \(u+v\) is also in \(V\).
    3. Closure under scalar multiplication: If \(v\) is in \(V\) and \(c\) is in \(\mathbb{R}\text{,}\) then \(cv\) is also in \(V\).

    As a consequence of these properties, we see:

    • If \(v\) is a vector in \(V\text{,}\) then all scalar multiples of \(v\) are in \(V\) by the third property. In other words the line through any nonzero vector in \(V\) is also contained in \(V\).
    • If \(u,v\) are vectors in \(V\) and \(c,d\) are scalars, then \(cu,dv\) are also in \(V\) by the third property, so \(cu+dv\) is in \(V\) by the second property. Therefore, all of \(\text{Span}\{u,v\}\) is contained in \(V\)
    • Similarly, if \(v_1,v_2,\ldots,v_n\) are all in \(V\text{,}\) then \(\text{Span}\{v_1,v_2,\ldots,v_n\}\) is contained in \(V\). In other words, a subspace contains the span of any vectors in it.

    If you choose enough vectors, then eventually their span will fill up \(V\text{,}\) so we already see that a subspace is a span. See this Theorem \(\PageIndex{1}\) below for a precise statement.

    Remark

    Suppose that \(V\) is a non-empty subset of \(\mathbb{R}^n\) that satisfies properties 2 and 3. Let \(v\) be any vector in \(V\). Then \(0v = 0\) is in \(V\) by the third property, so \(V\) automatically satisfies property 1. It follows that the only subset of \(\mathbb{R}^n \) that satisfies properties 2 and 3 but not property 1 is the empty subset \(\{\}\). This is why we call the first property “non-emptiness”.

    Example \(\PageIndex{1}\)

    The set \(\mathbb{R}^n\) is a subspace of itself: indeed, it contains zero, and is closed under addition and scalar multiplication.

    Example \(\PageIndex{2}\)

    The set \(\{0\}\) containing only the zero vector is a subspace of \(\mathbb{R}^n\text{:}\) it contains zero, and if you add zero to itself or multiply it by a scalar, you always get zero.

    Example \(\PageIndex{3}\): A line through the origin

    A line \(L\) through the origin is a subspace.

    clipboard_e06eca3f2a685561d126e38822e15be7b.png

    Figure \(\PageIndex{2}\)

    Indeed, \(L\) contains zero, and is easily seen to be closed under addition and scalar multiplication.

    Example \(\PageIndex{4}\): A plane through the origin

    A plane \(P\) through the origin is a subspace.

    clipboard_e63ef451ad03fb5874bcae9ecd05e212b.png

    Figure \(\PageIndex{3}\)

    Indeed, \(P\) contains zero; the sum of two vectors in \(P\) is also in \(P\text{;}\) and any scalar multiple of a vector in \(P\) is also in \(P\).

    Example \(\PageIndex{5}\): Non-example (A line not containing the origin)

    A line \(L\) (or any other subset) that does not contain the origin is not a subspace. It fails the first defining property: every subspace contains the origin by definition.

    clipboard_ea65abf8b49f05e5ba7a3e4abac7b130b.png

    Figure \(\PageIndex{4}\)

    Example \(\PageIndex{6}\): Non-example (A circle)

    The unit circle \(C\) is not a subspace. It fails all three defining properties: it does not contain the origin, it is not closed under addition, and it is not closed under scalar multiplication. In the picture, one red vector is the sum of the two black vectors (which are contained in \(C\)), and the other is a scalar multiple of a black vector.

    clipboard_e696da49948bb1312e4fbf9cfcd2f23d1.png

    Figure \(\PageIndex{5}\)

    Example \(\PageIndex{7}\): Non-example (The first quadrant)

    The first quadrant in \(\mathbb{R}^2\) is not a subspace. It contains the origin and is closed under addition, but it is not closed under scalar multiplication (by negative numbers).

    clipboard_e804da2f047900577818bc231545795cd.png

    Figure \(\PageIndex{6}\)

    Example \(\PageIndex{8}\): Non-example (A line union a plane)

    The union of a line and a plane in \(\mathbb{R}^3\) is not a subspace. It contains the origin and is closed under scalar multiplication, but it is not closed under addition: the sum of a vector on the line and a vector on the plane is not contained in the line or in the plane.

    clipboard_ee8af6f48530b1b6c052fb928f24daac3.png

    Figure \(\PageIndex{7}\)

    Note \(\PageIndex{1}\): Subsets versus Subspaces

    A subset of \(\mathbb{R}^n\) is any collection of vectors whatsoever. For instance, the unit circle

    \[ C = \bigl\{ (x,y)\text{ in }\mathbb{R}^2 \bigm| x^2 + y^2 = 1 \bigr\} \nonumber \]

    is a subset of \(\mathbb{R}^2\text{,}\) but it is not a subspace. In fact, all of the non-examples above are still subsets of \(\mathbb{R}^n\). A subspace is a subset that happens to satisfy the three additional defining properties.

    In order to verify that a subset of \(\mathbb{R}^n\) is in fact a subspace, one has to check the three defining properties. That is, unless the subset has already been verified to be a subspace: see this important note, Note \(\PageIndex{3}\), below.

    Example \(\PageIndex{9}\): Verifying that a subset is a subspace

    Let

    \[V=\left\{\left(\begin{array}{c}a\\b\end{array}\right)\text{ in }\mathbb{R}^{2}|2a=3b\right\}.\nonumber\]

    Verify that \(V\) is a subspace.

    Solution 

    First we point out that the condition “\(2a = 3b\)” defines whether or not a vector is in \(V\text{:}\) that is, to say \({a\choose b}\) is in \(V\) means that \(2a = 3b\). In other words, a vector is in \(V\) if twice its first coordinate equals three times its second coordinate. So for instance, \({3\choose 2}\) and \({1/2\choose 1/3}\) are in \(V\text{,}\) but \({2\choose 3}\) is not because \(2\cdot 2\neq 3\cdot 3\).

    Let us check the first property. The subset \(V\) does contain the zero vector \({0\choose 0}\text{,}\) because \(2\cdot 0 = 3\cdot 0\).

    Next we check the second property. To show that \(V\) is closed under addition, we have to check that for any vectors \(u = {a\choose b}\) and \(v = {c\choose d}\) in \(V\text{,}\) the sum \(u+v\) is in \(V\). Since we cannot assume anything else about \(u\) and \(v\text{,}\) we must treat them as unknowns.

    We have

    \[\left(\begin{array}{c}a\\b\end{array}\right)+\left(\begin{array}{c}c\\d\end{array}\right)=\left(\begin{array}{c}a+c\\b+d\end{array}\right).\nonumber\]

    To say that \(a+c\choose b+d\) is contained in \(V\) means that \(2(a+c) = 3(b+d)\text{,}\) or \(2a + 2c = 3b + 3d\). The one thing we are allowed to assume about \(u\) and \(v\) is that \(2a = 3b\) and \(2c = 3d\text{,}\) so we see that \(u+v\) is indeed contained in \(V\).

    Next we check the third property. To show that \(V\) is closed under scalar multiplication, we have to check that for any vector \(v = {a\choose b}\) in \(V\) and any scalar \(c\) in \(\mathbb{R}\text{,}\) the product \(cv\) is in \(V\). Again, we must treat \(v\) and \(c\) as unknowns. We have

    \[c\left(\begin{array}{c}a\\b\end{array}\right)=\left(\begin{array}{c}ca\\cb\end{array}\right).\nonumber\]

    To say that \(ca\choose cb\) is contained in \(V\) means that \(2(ca) = 3(cb)\text{,}\) i.e., that \(c\cdot 2a = c\cdot 3b\). The one thing we are allowed to assume about \(v\) is that \(2a = 3b\text{,}\) so \(cv\) is indeed contained in \(V\).

    Since \(V\) satisfies all three defining properties, it is a subspace. In fact, it is the line through the origin with slope \(2/3\).

    clipboard_e59f9d34d0163b833b7268076f6518994.png

    Figure \(\PageIndex{8}\)

    Example \(\PageIndex{10}\): Showing that a subset is not a subspace

    Let

    \[V=\left\{\left(\begin{array}{c}a\\b\end{array}\right)\text{ in }\mathbb{R}^{2}|ab=0\right\}.\nonumber\]

    Is \(V\) a subspace?

    Solution

    First we point out that the condition “\(ab=0\)” defines whether or not a vector is in \(V\text{:}\) that is, to say \({a\choose b}\) is in \(V\) means that \(ab=0\). In other words, a vector is in \(V\) if the product of its coordinates is zero, i.e., if one (or both) of its coordinates are zero. So for instance, \({1\choose 0}\) and \({0\choose 2}\) are in \(V\text{,}\) but \({1\choose 1}\) is not because \(1\cdot 1\neq 0\).

    Let us check the first property. The subset \(V\) does contain the zero vector \({0\choose 0}\text{,}\) because \(0\cdot 0=0\).

    Next we check the third property. To show that \(V\) is closed under scalar multiplication, we have to check that for any vector \(v = {a\choose b}\) in \(V\) and any scalar \(c\) in \(\mathbb{R}\text{,}\) the product \(cv\) is in \(V\). Since we cannot assume anything else about \(v\) and \(c\text{,}\) we must treat them as unknowns.

    We have

    \[c\left(\begin{array}{c}a\\b\end{array}\right)=\left(\begin{array}{c}ca\\cb\end{array}\right).\nonumber\]

    To say that \(ca\choose cb\) is contained in \(V\) means that \((ca)(cb)=0\). Rewriting, this means \(c^2(ab)=0\). The one thing we are allowed to assume about \(v\) is that \(ab=0\text{,}\) so we see that \(cv\) is indeed contained in \(V\).

    Next we check the second property. It turns out that \(V\) is not closed under addition; to verify this, we must show that there exists some vectors \(u,v\) in \(V\) such that \(u+v\) is not contained in \(V\). The easiest way to do so is to produce examples of such vectors. We can take \(u={1\choose 0}\) and \(v={0\choose 1}\text{;}\) these are contained in \(V\) because the products of their coordinates are zero, but

    \[\left(\begin{array}{c}1\\0\end{array}\right)+\left(\begin{array}{c}0\\1\end{array}\right)=\left(\begin{array}{c}1\\1\end{array}\right)\nonumber\]

    is not contained in \(V\) because \(1\cdot 1\neq 0\).

    Since \(V\) does not satisfy the second property (it is not closed under addition), we conclude that \(V\) is not a subspace. Indeed, it is the union of the two coordinate axes, which is not a span. 

    clipboard_ea00b46aebd5031bcbb90485a586fe9b4.png

    Figure \(\PageIndex{9}\)

    Common Types of Subspaces

    Theorem \(\PageIndex{1}\): Spans are Subspaces and Subspaces are Spans

    If \(v_1,v_2,\ldots,v_p\) are any vectors in \(\mathbb{R}^n\text{,}\) then \(\text{Span}\{v_1,v_2,\ldots,v_p\}\) is a subspace of \(\mathbb{R}^n\). Moreover, any subspace of \(\mathbb{R}^n\) can be written as a span of a set of \(p\) linearly independent vectors in \(\mathbb{R}^n\) for \(p\leq n\).

    Proof

    To show that \(\text{Span}\{v_1,v_2,\ldots,v_p\}\) is a subspace, we have to verify the three defining properties.

    1. The zero vector \(0 = 0v_1 + 0v_2 + \cdots + 0v_p\) is in the span.
    2. If \(u = a_1v_1 + a_2v_2 + \cdots + a_pv_p\) and \(v = b_1v_1 + b_2v_2 + \cdots + b_pv_p\) are in \(\text{Span}\{v_1,v_2,\ldots,v_p\}\text{,}\) then
      \[ u + v = (a_1+b_1)v_1 + (a_2+b_2)v_2 + \cdots + (a_p+b_p)v_p \nonumber \]
      is also in \(\text{Span}\{v_1,v_2,\ldots,v_p\}\).
    3. If \(v = a_1v_1 + a_2v_2 + \cdots + a_pv_p\) is in \(\text{Span}\{v_1,v_2,\ldots,v_p\}\) and \(c\) is a scalar, then
      \[ cv = ca_1v_1 + ca_2v_2 + \cdots + ca_pv_p \nonumber \]
      is also in \(\text{Span}\{v_1,v_2,\ldots,v_p\}\).

    Since \(\text{Span}\{v_1,v_2,\ldots,v_p\}\) satisfies the three defining properties of a subspace, it is a subspace.

    Now let \(V\) be a subspace of \(\mathbb{R}^n\). If \(V\) is the zero subspace, then it is the span of the empty set, so we may assume \(V\) is nonzero. Choose a nonzero vector \(v_1\) in \(V\). If \(V = \text{Span}\{v_1\}\text{,}\) then we are done. Otherwise, there exists a vector \(v_2\) that is in \(V\) but not in \(\text{Span}\{v_1\}\). Then \(\text{Span}\{v_1,v_2\}\) is contained in \(V\text{,}\) and by the increasing span criterion in Section 2.5, Theorem 2.5.2, the set \(\{v_1,v_2\}\) is linearly independent. If \(V = \text{Span}\{v_1,v_2\}\) then we are done. Otherwise, we continue in this fashion until we have written \(V = \text{Span}\{v_1,v_2,\ldots,v_p\}\) for some linearly independent set \(\{v_1,v_2,\ldots,v_p\}\). This process terminates after at most \(n\) steps by this important note in Section 2.5, Note 2.5.2.

    If \(V = \text{Span}\{v_1,v_2,\ldots,v_p\}\text{,}\) we say that \(V\) is the subspace spanned by or generated by the vectors \(v_1,v_2,\ldots,v_p\). We call \(\{v_1,v_2,\ldots,v_p\}\) a spanning set for \(V\).

    Any matrix naturally gives rise to two subspaces.

    Definition \(\PageIndex{3}\): Column Space and Null Space

    Let \(A\) be an \(m\times n\) matrix.

    • The column space of \(A\) is the subspace of \(\mathbb{R}^m\) spanned by the columns of \(A\). It is written \(\text{Col}(A)\).
    • The null space of \(A\) is the subspace of \(\mathbb{R}^n\) consisting of all solutions of the homogeneous equation \(Ax=0\text{:}\)

      \[ \text{Nul}(A) = \bigl\{ x \text{ in } \mathbb{R}^n\bigm| Ax=0 \bigr\}. \nonumber \]

    The column space is defined to be a span, so it is a subspace by the above Theorem, Theorem \(\PageIndex{1}\). We need to verify that the null space is really a subspace. In Section 2.4 we already saw that the set of solutions of \(Ax=0\) is always a span, so the fact that the null spaces is a subspace should not come as a surprise.

    Proof

    We have to verify the three defining properties. To say that a vector \(v\) is in \(\text{Nul}(A)\) means that \(Av = 0\).

    1. The zero vector is in \(\text{Nul}(A)\) because \(A0=0\).
    2. Suppose that \(u,v\) are in \(\text{Nul}(A)\). This means that \(Au=0\) and \(Av=0\). Hence
      \[A(u+v)=Au+Av=0+0=0\nonumber\]
      by the linearity of the matrix-vector product in Section 2.3, Proposition 2.3.1. Therefore, \(u+v\) is in \(\text{Nul}(A)\).
    3. Suppose that \(v\) is in \(\text{Nul}(A)\) and \(c\) is a scalar. Then
      \[A(cv)=cAv=c\cdot 0=0\nonumber\] by the linearity of the matrix-vector product, Proposition 2.3.1 in Section 2.3, so \(cv\) is also in \(\text{Nul}(A)\).

    Since \(\text{Nul}(A)\) satisfies the three defining properties of a subspace, it is a subspace.

    Example \(\PageIndex{11}\)

    Describe the column space and the null space of

    \[A=\left(\begin{array}{cc}1&1\\1&1\\1&1\end{array}\right).\nonumber\]

    Solution

    The column space is the span of the columns of \(A\text{:}\)

    \[\text{Col}(A)=\text{Span}\left\{\left(\begin{array}{c}1\\1\\1\end{array}\right),\:\left(\begin{array}{c}1\\1\\1\end{array}\right)\right\}=\text{Span}\left\{\left(\begin{array}{c}1\\1\\1\end{array}\right)\right\}.\nonumber\]

    This is a line in \(\mathbb{R}^3\).

    clipboard_ee80783603be1934c1458baf4b6cd5998.png

    Figure \(\PageIndex{10}\)

    The null space is the solution set of the homogeneous system \(Ax=0\). To compute this, we need to row reduce \(A\). Its reduced row echelon form is

    \[\left(\begin{array}{cc}1&1\\0&0\\0&0\end{array}\right).\nonumber\]

    This gives the equation \(x+y=0\text{,}\) or

    \[\left\{\begin{array}{rrr}x &=& -y\\ y &=& y\end{array}\right. \quad\xrightarrow{\text{parametric vector form}}\quad \left(\begin{array}{c}x\\y\end{array}\right)=y\left(\begin{array}{c}-1\\1\end{array}\right).\nonumber\]

    Hence the null space is \(\text{Span}\bigl\{{-1\choose 1}\bigr\}\text{,}\) which is a line in \(\mathbb{R}^2\).

    clipboard_ee4dbc1e65b1d3d30e2988c1c1d931137.png

    Figure \(\PageIndex{11}\)

    Notice that the column space is a subspace of \(\mathbb{R}^3\text{,}\) whereas the null space is a subspace of \(\mathbb{R}^2\). This is because \(A\) has three rows and two columns.

    The column space and the null space of a matrix are both subspaces, so they are both spans. The column space of a matrix \(A\) is defined to be the span of the columns of \(A\). The null space is defined to be the solution set of \(Ax=0\text{,}\) so this is a good example of a kind of subspace that we can define without any spanning set in mind. In other words, it is easier to show that the null space is a subspace than to show it is a span—see the proof above. In order to do computations, however, it is usually necessary to find a spanning set.

    Note \(\PageIndex{2}\): Null Spaces are Solution Sets

    The null space of a matrix is the solution set of a homogeneous system of equations. For example, the null space of the matrix

    \[A=\left(\begin{array}{ccc}1&7&2\\-2&1&3\\4&-2&-3\end{array}\right)\nonumber\]

    is the solution set of \(Ax=0\text{,}\) i.e., the solution set of the system of equations

    \[\left\{\begin{array}{rrrrrrl} x &+& 7y &+& 2z &=& 0\\ -2x &+& y &+& 3z &=& 0\\ 4x &-& 2y &-& 3z &=& 0.\end{array}\right.\nonumber\]

    Conversely, the solution set of any homogeneous system of equations is precisely the null space of the corresponding coefficient matrix.

    To find a spanning set for the null space, one has to solve a system of homogeneous equations.

    Recipe: Compute a Spanning Set for Null Space

    To find a spanning set for \(\text{Nul}(A)\text{,}\) compute the parametric vector form of the solutions to the homogeneous equation \(Ax=0\). The vectors attached to the free variables form a spanning set for \(\text{Nul}(A)\).

    Example \(\PageIndex{12}\): Two free variables

    Find a spanning set for the null space of the matrix

    \[A=\left(\begin{array}{cccc}2&3&-8&-5 \\ -1&2&-3&-8\end{array}\right).\nonumber\]

    Solution

    We compute the parametric vector form of the solutions of \(Ax=0\). The reduced row echelon form of \(A\) is

    \[\left(\begin{array}{cccc}1&0&-1&2 \\ 0&1&-2&-3\end{array}\right).\nonumber\]

    The free variables are \(x_3\) and \(x_4\text{;}\) the parametric form of the solution set is

    \[\left\{\begin{array}{rrrrr} x_1 &=& x_3 &-& 2x_4\\ x_2 &=& 2x_3 &+& 3x_4\\ x_3 &=& x_3&{}&{}\\ x_4 &=&{}&{}& x_4\end{array}\right. \quad\xrightarrow[\text{vector form}]{\text{parametric}}\quad \left(\begin{array}{c}x_1 \\x_2\\x_3\\x_4\end{array}\right)=x_3\left(\begin{array}{c}1\\2\\1\\0\end{array}\right)+x_4\left(\begin{array}{c}-2\\3\\0\\1\end{array}\right).\nonumber\]

    Therefore,

    \[\text{Nul}(A)=\text{Span}\left\{\left(\begin{array}{c}1\\2\\1\\0\end{array}\right),\:\left(\begin{array}{c}-2\\3\\0\\1\end{array}\right)\right\}.\nonumber\]

    Example \(\PageIndex{13}\): No free variables

    Find a spanning set for the null space of the matrix

    \[A=\left(\begin{array}{cc}1&3\\2&4\end{array}\right).\nonumber\]

    Solution

    We compute the parametric vector form of the solutions of \(Ax=0\). The reduced row echelon form of \(A\) is

    \[\left(\begin{array}{cc}1&0\\0&1\end{array}\right).\nonumber\]

    There are no free variables; hence the only solution of \(Ax=0\) is the trivial solution. In other words,

    \[\text{Nul}(A)=\{0\}=\text{Span}\{0\}.\nonumber\]

    It is natural to define \(\text{Span}\{\} = \{0\}\text{,}\) so that we can take our spanning set to be empty. This is consistent with the definition of dimension, Definition 2.7.2, in Section 2.7.

    Writing a subspace as a column space or a null space

    A subspace can be given to you in many different forms. In practice, computations involving subspaces are much easier if your subspace is the column space or null space of a matrix. The simplest example of such a computation is finding a spanning set: a column space is by definition the span of the columns of a matrix, and we showed above how to compute a spanning set for a null space using parametric vector form. For this reason, it is useful to rewrite a subspace as a column space or a null space before trying to answer questions about it.

    Note \(\PageIndex{3}\)

    When asking questions about a subspace, it is usually best to rewrite the subspace as a column space or a null space.

    This also applies to the question “is my subset a subspace?” If your subset is a column space or null space of a matrix, then the answer is yes.

    Example \(\PageIndex{14}\)

    Let

    \[V=\left\{\left(\begin{array}{c}a\\b\end{array}\right)\text{ in }\mathbb{R}^{2}|2a=3b\right\}\nonumber\]

    be the subset of a previous Example \(\PageIndex{9}\). The subset \(V\) is exactly the solution set of the homogeneous equation \(2x - 3y = 0\). Therefore,

    \[V=\text{Nul} (2-3)\nonumber\]

    In particular, it is a subspace. The reduced row echelon form of \(\left(\begin{array}{cc}2&-3\end{array}\right)\) is \(\left(\begin{array}{cc}1&-3/2\end{array}\right)\), so the parametric form of \(V\) is \(x = 3/2y\text{,}\) so the parametric vector form is \({x\choose y} = y{3/2\choose 1},\) and hence \(\bigl\{{3/2\choose 1}\bigr\}\) spans \(V\).

    Example \(\PageIndex{15}\)

    Let \(V\) be the plane in \(\mathbb{R}^3\) defined by

    \[V=\left\{\left(\begin{array}{c}2x+y \\ x-y \\ 3x-2y \end{array}\right) |x,y\text{ are in }\mathbb{R}\right\}.\nonumber\]

    Write \(V\) as the column space of a matrix.

    Solution

    Since

    \[\left(\begin{array}{c}2x+y \\ x-y \\ 3x-2y\end{array}\right)=x\left(\begin{array}{c}2\\1\\3\end{array}\right)+y\left(\begin{array}{c}1\\-1\\-2\end{array}\right),\nonumber\]

    we notice that \(V\) is exactly the span of the vectors

    \[\left(\begin{array}{c}2\\1\\3\end{array}\right)\quad\text{and}\quad\left(\begin{array}{c}1\\-1\\-2\end{array}\right).\nonumber\]

    Hence

    \[V=\text{Col}\left(\begin{array}{cc}2&1\\1&-1\\3&-2\end{array}\right).\nonumber\]


    This page titled 2.6: Subspaces is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Dan Margalit & Joseph Rabinoff via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?