Definition of a linear subspace, with several examples
What is the definition of a linear subspace?
We’re already familiar with two-dimensional space, , as the -coordinate plane. We can also think of as the vector space containing all possible two-dimensional vectors, .
Hi! I'm krista.
I create online courses to help you rock your math class. Read more.
And we know about three-dimensional space, , which is -space. We can think of as the vector space containing all possible three-dimensional vectors, .
And even though it’s harder (if not impossible) to visualize, we can imagine that there could be higher-dimensional spaces , , etc., up to any dimension . The vector space contains four-dimensional vectors, contains five-dimensional vectors, and contains -dimensional vectors.
Definition of a subspace
Notice how we’ve referred to each of these (, , ... ) as a “space.” Well, within these spaces, we can define subspaces. To give an example, a subspace (or linear subspace) of is a set of two-dimensional vectors within , where the set meets three specific conditions:
1. The set includes the zero vector.
2. The set is closed under scalar multiplication.
3. The set is closed under addition.
A vector set is not a subspace unless it meets these three requirements, so let’s talk about each one in a little more detail.
1. First, the set has to include the zero vector. For example, if we’re talking about a vector set in , needs to be a member of the set in order for the set to be a subspace. Or if we’re talking about a vector set in , needs to be a member of the set in order for the set to be a subspace.
2. Second, the set has to be closed under scalar multiplication. This means that, for any in the vector set , must also be in . In other words, we need to be able to take any member of the set , multiply it by any real-number scalar , and end up with a resulting vector that’s still in .
In contrast, if you can choose a member of , multiply it by a real number scalar, and end up with a vector outside of , then by definition the set is not closed under scalar multiplication, and therefore is not a subspace.
3. Third, the set has to be closed under addition. This means that, if and are both vectors in the set , then the vector must also be in . In other words, we need to be able to take any two members and of the set , add them together, and end up with a resulting vector that’s still in . (Keep in mind that what we’re really saying here is that any linear combination of the members of will also be in .)
In contrast, if you can choose any two members of , add them together, and end up with a vector outside of , then by definition the set is not closed under addition.
To summarize, if the vector set includes the zero vector, is closed under scalar multiplication, and is closed under addition, then is a subspace.
Keep in mind that the first condition, that a subspace must include the zero vector, is logically already included as part of the second condition, that a subspace is closed under multiplication.
That’s because we’re allowed to choose any scalar , and must also still be in . Which means we’re allowed to choose , in which case will be the zero vector. Therefore, if we can show that the subspace is closed under scalar multiplication, then automatically we know that the subspace includes the zero vector.
Which means we can actually simplify the definition, and say that a vector set is a subspace when
1. the set is closed under scalar multiplication, and
2. the set is closed under addition.
How to show that a vector set is technically a subspace
Take the course
Want to learn more about Linear Algebra? I have a step-by-step course for that. :)
Showing that the set is NOT a subspace
Example
Show that the set is not a subspace of .
Before we talk about why is not a subspace, let’s talk about how is defined, since we haven’t used this kind of notation very much at this point.
The notation tells us that the set is all of the two-dimensional vectors that are in the plane , where the value of must be . If we show this in the plane, constrains us to the third and fourth quadrants, so the set will include all the two-dimensional vectors which are contained in the shaded quadrants:
If we’re required to stay in these lower two quadrants, then can be any value (we can move horizontally along the -axis in either direction as far as we’d like), but must be negative to put us in the third or fourth quadrant.
If the set is going to be a subspace, then we know it includes the zero vector, is closed under scalar multiplication, and is closed under addition. We need to test to see if all three of these are true.
First, we can say does include the zero vector. That’s because there are no restrictions on , which means it can take any value, including , and the restriction on tells us that can be equal to . Since both and can be , the vector is a member of , so includes the zero vector.
Second, let’s check whether is closed under addition. Let’s take two theoretical vectors in ,
and
and find their sum.
Because and can both be either positive or negative, the sum can be either positive or negative. But because and must both be negative, the sum can only be negative.
A vector with a negative and a negative will lie in the third quadrant, and a vector with a positive and a negative will lie in the fourth quadrant. So the sum still falls within the original set , which means the set is closed under addition.
Third, and finally, we need to see if is closed under scalar multiplication. Given a vector in like
we need to be able to multiply it by any real number scalar and find a resulting vector that’s still inside . Multiplying by any positive scalar will result in a vector that’s still in . That’s because will stay positive and will stay negative, which keeps us in the fourth quadrant.
But multiplying by any negative scalar will result in a vector outside of ! That’s because will become negative (which isn’t a problem), but will become positive, which is problem, since a positive -value will put us outside of the third and fourth quadrants where is defined. When becomes positive, the resulting vector lies in either the first or second quadrant, both of which fall outside the set .
Therefore, while contains the zero vector and is closed under addition, it is not closed under scalar multiplication. And because the set isn’t closed under scalar multiplication, the set is not a subspace of two-dimensional vector space, .
Let’s look at another example where the set isn’t a subspace.
Keep in mind that the first condition, that a subspace must include the zero vector, is logically already included as part of the second condition, that a subspace is closed under multiplication.
Example
Show that the set is not a subspace of .
The vector set is defined as all the vectors in for which the product of the vector components and is . In other words, a vector is in , because the product of ’s components is , .
Let’s try to figure out whether the set is closed under addition. Both and are in .
and
If we find their sum, we get
The components of do not have a product of , because the product of its components are . Therefore, and are in , but is not in , which proves that is not closed under addition, which means that is not a subspace.
Possible subspaces
In the last example we were able to show that the vector set is not a subspace. In fact, there are three possible subspaces of .
1. is a subspace of .
2. Any line through the origin is a subspace of .
3. The zero vector is a subspace of .
Similarly, there are four possible subspaces of .
1. is a subspace of .
2. Any line through the origin is a subspace of .
3. Any plane through the origin is a subspace of .
4. The zero vector is a subspace of .
And we could extrapolate this pattern to get the possible subspaces of , as well.