What the Subspace Test Checks
A subset of a vector space can use the same addition and scalar multiplication as the larger space without itself being a vector space. The subspace test gives a short way to decide when it does: check that the subset is nonempty, closed under addition, and closed under multiplication by real scalars. The reason these few checks suffice is that the other vector space rules are already true in the ambient space, while the two closure conditions ensure that the operations stay inside the subset.
Throughout this tutorial, \(V\) is a vector space over \(\mathbb{R}\), and \(S\) is a subset of \(V\). The operations on \(S\) are the ones inherited from \(V\): we do not define new addition or scalar multiplication. A subset is closed under addition if \(\mathbf{u}+\mathbf{v}\in S\) whenever \(\mathbf{u},\mathbf{v}\in S\). It is closed under real scalar multiplication if \(c\mathbf{u}\in S\) whenever \(c\in\mathbb{R}\) and \(\mathbf{u}\in S\).
The test applies to a subset of a vector space, not to an arbitrary collection with no specified ambient space or operations. Its nonempty condition also matters: the empty set satisfies both closure statements vacuously, because it contains no elements that could violate them, but it is not a vector space.
Why Scalar Closure Supplies Zero and Negatives
In a subspace, the zero vector and additive inverses must belong to the subset. In the subspace test, we do not need to check these separately: scalar closure supplies them once the subset is nonempty. The next lemma records the exact reasoning.
Proof. Since \(S\) is nonempty, choose \(\mathbf{v}\in S\). Scalar closure with scalar \(0\) gives \(0\mathbf{v}\in S\). In a vector space, \(0\mathbf{v}=\mathbf{0}\), so \(\mathbf{0}\in S\). Now take any \(\mathbf{u}\in S\). Scalar closure with scalar \(-1\) gives \((-1)\mathbf{u}\in S\), and the scalar multiplication axioms give \((-1)\mathbf{u}=-\mathbf{u}\). Hence \(-\mathbf{u}\in S\). \(\square\)
The vector space identities used here follow from the axioms in \(V\). For example, distributivity gives \(0\mathbf{v}=(0+0)\mathbf{v}=0\mathbf{v}+0\mathbf{v}\); cancellation in vector addition then gives \(0\mathbf{v}=\mathbf{0}\). Also, \((-1)\mathbf{u}+\mathbf{u}=((-1)+1)\mathbf{u}=0\mathbf{u}=\mathbf{0}\), so \((-1)\mathbf{u}\) is the additive inverse of \(\mathbf{u}\).
The Subspace Test, Proved
- \(S\) is nonempty;
- \(\mathbf{u}+\mathbf{v}\in S\) for all \(\mathbf{u},\mathbf{v}\in S\);
- \(c\mathbf{u}\in S\) for all \(c\in\mathbb{R}\) and \(\mathbf{u}\in S\).
Proof. First suppose that \(S\) is a subspace. As a vector space, \(S\) contains its zero vector, so it is nonempty. Its addition and scalar multiplication are inherited from \(V\) and have values in \(S\), which gives closure under addition and real scalar multiplication.
Conversely, suppose that \(S\) is nonempty and satisfies both closure conditions. By the lemma, \(\mathbf{0}\in S\) and every \(\mathbf{u}\in S\) has its additive inverse \(-\mathbf{u}\in S\). The addition and scalar multiplication operations take values in \(S\) by the two closure assumptions. The remaining vector space axioms hold because each is an equality involving elements of \(S\) and scalars in \(\mathbb{R}\), and the same equality already holds in \(V\). Thus \(S\), with the inherited operations, is a vector space. Therefore \(S\) is a subspace of \(V\). \(\square\)
This proof explains the practical method: show that a candidate is nonempty, then take arbitrary elements of it and check both closure conditions. To disprove that a set is a subspace, one failed condition is enough. A single pair whose sum leaves the set, or a single scalar multiple that leaves it, is a complete counterexample.
Applying the Test
Worked Example: A Line Through the Origin in \(\mathbb{R}^2\)
Let \(L=\{(t,-2t):t\in\mathbb{R}\}\). We check whether \(L\) is a subspace of \(\mathbb{R}^2\).
First, \(t=0\) gives \((0,-2\cdot0)=(0,0)\in L\), so \(L\) is nonempty. Take any two elements of \(L\), written \(\mathbf{u}=(s,-2s)\) and \(\mathbf{v}=(t,-2t)\). Their sum is
Since \(s+t\in\mathbb{R}\), this sum has the required form and belongs to \(L\). For any \(c\in\mathbb{R}\), scalar multiplication gives
which also has the required form. Thus \(L\) is a subspace by the test. For a numerical check, \((1,-2)\) and \((3,-6)\) belong to \(L\); their sum \((4,-8)\) is \((t,-2t)\) with \(t=4\), and \(-2(1,-2)=(-2,4)\) is in \(L\) with \(t=-2\).
Worked Example: A Subspace of \(2\times2\) Matrices
Consider the subset \(M\) of \(\mathbb{R}^{2\times2}\) consisting of matrices of the form
Taking \(a=b=0\) gives the zero matrix, so \(M\) is nonempty. Let \(\mathbf{A}\) have parameters \(a,b\), and let \(\mathbf{B}\in M\) have parameters \(d,e\). Entrywise addition gives
This is in \(M\), with parameters \(a+d\) and \(b+e\). For \(c\in\mathbb{R}\),
which is in \(M\), with parameters \(ca\) and \(cb\). Therefore \(M\) is a subspace. For instance, adding the matrices with parameters \((a,b)=(1,2)\) and \((d,e)=(-3,1)\) gives
which has the defining form with parameters \((-2,3)\). Multiplying the first matrix by \(-2\) gives \(\begin{bmatrix}-2&-4\\4&-2\end{bmatrix}\), also of the required form.
Worked Example: An Affine Line That Fails the Test
Let \(A=\{(x,y)\in\mathbb{R}^2:x+y=1\}\). The point \((1,0)\) belongs to \(A\), so the set is nonempty. But scalar closure fails: multiplying this point by \(2\) gives
Thus \((2,0)\notin A\), and \(A\) is not a subspace. The zero vector also does not belong to \(A\), since \(0+0\ne1\), which independently rules out subspace status. The scalar-multiple calculation is already sufficient to apply the test.
Common Mistake: Checking Pieces Instead of the Whole Set
Suppose \(X\) is the union of the two coordinate axes in \(\mathbb{R}^2\): \(X=\{(x,0):x\in\mathbb{R}\}\cup\{(0,y):y\in\mathbb{R}\}\). A tempting but incorrect argument is that each axis is a subspace, so their union must be a subspace. The test requires closure for every pair of elements of the union, including one taken from each axis.
For a concrete failure, \((1,0)\in X\) and \((0,1)\in X\), but
The correction is to test the whole set, not just its pieces separately: this sum shows that \(X\) is not closed under addition, so it is not a subspace. By contrast, multiplying a point on either axis by any real scalar keeps it on that same axis. Checking only scalar multiplication would therefore miss the failure.
Using the Test Efficiently
For a candidate described by a formula or parameter, translate each condition of the test into a direct calculation. Start by finding one element, often the zero vector or zero matrix. Then represent arbitrary elements using the defining rule, add them, and check whether the result still satisfies that rule. Finally, multiply an arbitrary element by an arbitrary real scalar and check again. The word “arbitrary” matters: verifying closure for just one pair or one scalar does not establish closure for the whole set.
The test is also a way to organize a disproof. If nonemptiness fails, stop. If the set is nonempty, find a specific failure of addition or scalar multiplication. In the affine-line example, one scalar multiple was enough; in the union-of-axes example, a sum was enough. A failed check settles the question, whereas a successful check must cover all elements and all real scalars.
Check Your Understanding
For each candidate, use the subspace test and state which condition decides the result.
- Is \(\{(t,4t):t\in\mathbb{R}\}\) a subspace of \(\mathbb{R}^2\)? Show the general addition and scalar-multiplication checks.
- For \(S=\{(x,y)\in\mathbb{R}^2:x-y=0\}\), check nonemptiness and both closure conditions.
- Is \(\{(x,y)\in\mathbb{R}^2:x+y=3\}\) a subspace? Give a specific failed test.
- Let \(T\) be the set of diagonal \(2\times2\) real matrices. Check whether \(T\) is a subspace of \(\mathbb{R}^{2\times2}\).
- Give two vectors in the union of the coordinate axes whose sum is not in that union, and explain what the calculation shows.