Subspaces appear as soon as we notice that many linear problems do not use the whole ambient vector space. The solution set of a homogeneous system, the set of symmetric matrices, and the set of polynomials vanishing at a chosen point are all smaller collections inside larger vector spaces.
A subset is a subspace when its inherited addition and scalar multiplication still satisfy the vector-space laws.
Why only a few axioms need checking
Suppose is already a vector space and . If we use on the same addition and scalar multiplication already defined on , then we do not need to reprove associativity, commutativity, or the distributive laws from the ground up. Those identities are already true in .
The real question is narrower:
- does addition of two vectors in stay inside ?
- does scalar multiplication stay inside ?
- does still contain the vectors needed for the vector-space structure, especially the zero vector?
That is why the subspace test is a closure test.
Definition
Subspace definition
Let be a vector space. A subset is called a subspace of if:
- is nonempty;
- for all ;
- for all and all .
The word “inherited” is essential. A subset with newly invented operations may be a vector space in its own right without being a subspace of the original space. Here all sums and scalar multiples are calculated in . Closure says these already defined operations also have outputs in ; only then can they serve as operations on .
There is one further logical point in reducing ten axioms to three conditions. Identities such as associativity restrict automatically to elements of , but the existence of a zero and inverses inside needs proof. Choose , using nonemptiness. Scalar closure gives . For any , it also gives . These are exactly the ambient zero and inverse, so their identity equations continue to hold with all required elements inside . Together with the inherited identities, this proves that the three conditions give a vector space.
The nonempty condition cannot be deleted. If , the statements “for every ” have no inputs to test, so both closure assertions are vacuously true. Nevertheless there is no zero vector in . One actual member is enough to start the proof above; checking the ambient zero directly is usually the most convenient way to supply it.
A single linear-combination condition packages the two closure checks into a convenient form.
Theorem
Equivalent subspace test
Let be a vector space and . Then is a subspace of if and only if:
-
;
-
for every and every , the vector
also belongs to .
Proof
Why the equivalent test works
Assume first that is a subspace. Because is nonempty, choose some . Since is closed under scalar multiplication,
Now let and let . Closure under scalar multiplication gives and , and then closure under addition gives
Conversely, suppose and whenever and . Then is nonempty because it contains . If , choose to get
If and , choose and , to get
So the original three-part definition is satisfied.
Standard examples from equations
Linear equations provide the first examples: their zero right-hand sides explain why addition and scalar multiplication preserve membership.
Worked example
A line through the origin in
Let
To prove that is a subspace of , check the three defining conditions.
-
is nonempty because satisfies .
-
If , then and . Therefore
so .
-
If and , then , so
which means .
Hence is a subspace of .
The geometry matches the algebra: is a line through the origin. The phrase "through the origin" is not decorative. It is the visible sign that the zero vector belongs to the set.
Worked example
A plane cut out by one homogeneous equation
Now let
Again we check the definition.
-
is nonempty because satisfies the equation.
-
If and lie in , then
Adding these equations gives
so .
-
If and , then
so .
Thus is a subspace of .
This example is the model case for a set defined by a homogeneous linear equation. The zero right-hand side is what makes the closure argument work.
In the checker, compare which of the zero-vector and closure conditions hold for each set.
Consequences of the subspace test
Once is known to be a subspace, several facts follow immediately.
The earlier argument already gave and whenever . These elements are inherited from ; the subspace does not choose new ones.
Two immediate examples now become unavoidable:
- is a subspace of every vector space, so it is the smallest subspace;
- itself is a subspace of , so it is the largest subspace.
Null spaces are subspaces
The first important family of subspaces coming from matrix theory is the null space.
Theorem
The null space of a matrix is a subspace
Let be an matrix, and let
Then is a subspace of .
Proof
Why is a subspace
First, because
Now let and let . Then and , so
and
Therefore and , so is a subspace of .
This theorem explains why the phrase null space is not just convenient terminology. The solution set to a homogeneous system really is a vector space.
Worked example
A homogeneous equation defines a null space
Let
Then
So the plane from the earlier example is exactly the null space of a matrix. Solving for gives
and therefore every vector in the null space has the form
So this subspace is a plane through the origin generated by two vectors.
Worked example
Symmetry conditions on matrices and polynomials
Let be the set of real symmetric matrices. The zero matrix is symmetric. If , and , then
Thus is a subspace of the fixed ambient matrix space. We used linearity of transpose and the two membership equations, not a claim that arbitrary matrix products preserve symmetry. Products are irrelevant to the subspace test.
Similarly, let consist of the even polynomials in : those satisfying for every real . The zero polynomial belongs to . For and real ,
The identity holds for every , so the resulting polynomial remains even; it remains in by the ambient vector-space operations. Hence is a subspace. In both examples the defining equality survives every linear combination. Neither a matrix entry nor one sample function value alone would verify that whole equality.
A broader pattern: matrix conditions that preserve subspaces
We can generalize the null-space condition. Instead of requiring , require to belong to a known subspace; closure in that target space will supply the proof.
Worked example
Preimage of a subspace under matrix multiplication
Let be a matrix, let be a subspace of , and define
Then is a subspace of .
The proof is a direct application of the subspace test:
-
because , and ;
-
if , then , so
which means ;
-
if and , then , so
which means .
The null space is the special case where .
This viewpoint is worth remembering. Many subspaces are best described not by listing their elements, but by writing a condition that is preserved by linear operations.
Common ways a subset fails
The subspace test is short, but it is unforgiving. A set can fail in more than one way.
Common mistake
A translated line loses the zero vector
The set is not a subspace, because does not satisfy its equation. Its shape as a line does not supply the missing algebraic condition. Conversely, containing zero is only one part of the test, as the next example shows.
Counterexample mode
Zero and scalar closure do not imply a subspace
False claim. Every subset of a real vector space that contains zero and is closed under every real scalar multiple is a subspace.
Consider the actual real symmetric matrix and its quadratic zero set
Writing , we have . Thus . Also, for every real , so really is closed under all scalar multiples, including negative ones and zero.
Now take and . Direct substitution gives and . Both vectors belong to , but has . Therefore : closure under addition is the precise failed axiom.
The expansion explains the failure. For any real square of matching size,
For the displayed matrix, . Since is a scalar, . Only with this justification can the two cross terms be combined as . Here , so the expansion gives , agreeing with the direct calculation. For an unspecified nonsymmetric matrix the four-term expansion remains valid, but replacing the cross terms by twice one of them need not be valid.
Repaired statement. A subset of a real vector space, using the inherited operations, is a subspace exactly when it contains zero and is closed under every combination of its members. Equivalently, nonemptiness together with both addition closure and scalar closure suffices. In this example the missing addition condition cannot be inferred from the other two: each was explicitly verified and the sum still failed.
Separating the closure conditions
Different examples reveal different missing conditions. The half-space , for , contains zero and is closed under addition: two nonnegative first coordinates have a nonnegative sum. But the first standard coordinate vector belongs to while does not. Positive-scalar closure is insufficient when the field is all of .
By contrast, is closed under all real scalar multiples because . Yet and , so addition fails. This simpler example isolates the same distinction as the quadratic zero set above.
Failure need not be geometric. The singular real matrices contain the zero matrix, and every scalar multiple of a singular matrix remains singular. Nevertheless and are singular and their sum is the invertible identity. Thus the singular matrices are not a subspace. “Being a collection of matrices” does not decide the issue; the defining condition must survive the inherited operations.
Likewise, polynomials of degree exactly are not a subspace of : multiplication of by zero produces the zero polynomial, which does not have degree exactly . This argument also works for . For , and additionally witness addition failure, since their sum is one. The degree restriction must therefore be checked at boundary scalars as well as at generic ones.
Quick checks
Checkpoint
Why is a subspace of ?
Use the value at as the quantity that has to stay unchanged under the subspace test.
Solution
The zero polynomial belongs to because . If , then , so
If and , then
So is closed under addition and scalar multiplication, hence it is a subspace of .
Fix a real matrix for the following check.
Checkpoint
Let . Why does this set form a subspace?
Treat the defining equation the same way you treated .
Solution
The zero matrix belongs to because
If and , then
So also belongs to , and the equivalent subspace test applies.
Checkpoint
Why is not a subspace, even though it is still a line?
Answer this without drawing a graph.
Solution
It fails at the first necessary step: the zero vector is not in the set, because
Since every subspace must contain , this line cannot be a subspace.
Exercise: recover the ordinary subspace test
Suppose , , and the following conditions hold: whenever , we have ; whenever and , we have . Prove that is a subspace using the inherited operations. The expression itself is not the ordinary scalar multiple, so scalar closure still needs an argument.
Solution · Remove the fixed vector before applying the test
Since , difference closure gives . Now take arbitrary and . The second condition gives ; subtracting using difference closure yields . Thus genuine scalar closure has been established, including multiplication by . If , we consequently know , so difference closure gives . All three conditions of the subspace test now hold.
The given nonzero vector supplied nonemptiness but was not a proposed new zero. Each use of difference closure had two previously justified members of . Writing directly from without justifying the subtraction would omit the central step of the proof.
Exercise: an entry condition and a curved condition
Decide whether each set is a subspace with the usual operations: in , and . Prove a positive answer for arbitrary members; for a negative answer, give an actual member whose required operation leaves the set.
Solution · Follow the defining condition through the operation
For , define the entry expression . The zero matrix has . If and are real, ordinary entrywise operations give . Thus every such combination belongs to , proving it is a subspace.
For , the vector satisfies the defining equation, but its triple does not: . Therefore scalar closure fails and is not a subspace, even though it contains zero. These arguments depend on how the condition behaves under the operations, rather than on whether the elements are presented as matrices or pairs.
Read this first
This section depends on 6.1 Vector spaces for the axioms and on 4.1 Homogeneous systems and null space for the meaning of .
Continue with
The next section, 6.3 Linear combinations and span, uses subspaces as the natural output of a generating process.