Definition of a linear subspace, with several examples

 
 
 
 
 

What is the definition of a linear subspace?

We’re already familiar with two-dimensional space, R2\mathbb{R}^2, as the xyxy-coordinate plane. We can also think of R2\mathbb{R}^2 as the vector space containing all possible two-dimensional vectors, v=(x,y)\vec{v}=(x,y).

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

And we know about three-dimensional space, R3\mathbb{R}^3, which is xyzxyz-space. We can think of R3\mathbb{R}^3 as the vector space containing all possible three-dimensional vectors, v=(x,y,z)\vec{v}=(x,y,z).

And even though it’s harder (if not impossible) to visualize, we can imagine that there could be higher-dimensional spaces R4\mathbb{R}^4, R5\mathbb{R}^5, etc., up to any dimension Rn\mathbb{R}^n. The vector space R4\mathbb{R}^4 contains four-dimensional vectors, R5\mathbb{R}^5 contains five-dimensional vectors, and Rn\mathbb{R}^n contains nn-dimensional vectors.

Definition of a subspace

Notice how we’ve referred to each of these (R2\mathbb{R}^2, R3\mathbb{R}^3, ... Rn\mathbb{R}^n) as a “space.” Well, within these spaces, we can define subspaces. To give an example, a subspace (or linear subspace) of R2\mathbb{R}^2 is a set of two-dimensional vectors within R2\mathbb{R}^2, 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 VV in R2\mathbb{R}^2, v=(0,0)\vec{v}=(0,0) 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 VV in R3\mathbb{R}^3, v=(0,0,0)\vec{v}=(0,0,0) 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 v\vec{v} in the vector set VV, cvc\vec{v} must also be in VV. In other words, we need to be able to take any member v\vec{v} of the set VV, multiply it by any real-number scalar cc, and end up with a resulting vector cvc\vec{v} that’s still in VV.

In contrast, if you can choose a member of VV, multiply it by a real number scalar, and end up with a vector outside of VV, then by definition the set VV is not closed under scalar multiplication, and therefore VV is not a subspace.

3. Third, the set has to be closed under addition. This means that, if s\vec{s} and t\vec{t} are both vectors in the set VV, then the vector s+t\vec{s}+\vec{t} must also be in VV. In other words, we need to be able to take any two members s\vec{s} and t\vec{t} of the set VV, add them together, and end up with a resulting vector s+t\vec{s}+\vec{t} that’s still in VV. (Keep in mind that what we’re really saying here is that any linear combination of the members of VV will also be in VV.)

In contrast, if you can choose any two members of VV, add them together, and end up with a vector outside of VV, then by definition the set VV is not closed under addition.

To summarize, if the vector set VV includes the zero vector, is closed under scalar multiplication, and is closed under addition, then VV 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 cc, and cvc\vec{v} must also still be in VV. Which means we’re allowed to choose c=0c=0, in which case cvc\vec{v} 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 VV 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 R2\mathbb{R}^2.

M={[xy]R2  y0}M=\left\{\begin{bmatrix}x\\y\end{bmatrix}\in \mathbb{R}^2\ \big|\ y\le 0\right\}

Before we talk about why MM is not a subspace, let’s talk about how MM is defined, since we haven’t used this kind of notation very much at this point.

The notation tells us that the set MM is all of the two-dimensional vectors (x,y)(x,y) that are in the plane R2\mathbb{R}^2, where the value of yy must be y0y\le0. If we show this in the R2\mathbb{R}^2 plane, y0y\le0 constrains us to the third and fourth quadrants, so the set MM will include all the two-dimensional vectors which are contained in the shaded quadrants:

a graph showing the third and fourth quadrants shaded in

If we’re required to stay in these lower two quadrants, then xx can be any value (we can move horizontally along the xx-axis in either direction as far as we’d like), but yy must be negative to put us in the third or fourth quadrant.

If the set MM 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 MM does include the zero vector. That’s because there are no restrictions on xx, which means it can take any value, including 00, and the restriction on yy tells us that yy can be equal to 00. Since both xx and yy can be 00, the vector m=(0,0)\vec{m}=(0,0) is a member of MM, so MM includes the zero vector.

Second, let’s check whether MM is closed under addition. Let’s take two theoretical vectors in MM,

m1=[x1y1]m_1=\begin{bmatrix}x_1\\ y_1\end{bmatrix} and m2=[x2y2]m_2=\begin{bmatrix}x_2\\ y_2\end{bmatrix}

and find their sum.

m1+m2=[x1y1]+[x2y2]\vec{m}_1+\vec{m}_2=\begin{bmatrix}x_1\\ y_1\end{bmatrix}+\begin{bmatrix}x_2\\ y_2\end{bmatrix}

m1+m2=[x1+x2y1+y2]\vec{m}_1+\vec{m}_2=\begin{bmatrix}x_1+x_2\\ y_1+y_2\end{bmatrix}

Because x1x_1 and x2x_2 can both be either positive or negative, the sum x1+x2x_1+x_2 can be either positive or negative. But because y1y_1 and y2y_2 must both be negative, the sum y1+y2y_1+y_2 can only be negative.

A vector with a negative x1+x2x_1+x_2 and a negative y1+y2y_1+y_2 will lie in the third quadrant, and a vector with a positive x1+x2x_1+x_2 and a negative y1+y2y_1+y_2 will lie in the fourth quadrant. So the sum m1+m2\vec{m}_1+\vec{m}_2 still falls within the original set MM, which means the set is closed under addition.

Third, and finally, we need to see if MM is closed under scalar multiplication. Given a vector in MM like

m=[23]\vec{m}=\begin{bmatrix}2\\ -3\end{bmatrix}

we need to be able to multiply it by any real number scalar and find a resulting vector that’s still inside MM. Multiplying m=(2,3)\vec{m}=(2,-3) by any positive scalar will result in a vector that’s still in MM. That’s because xx will stay positive and yy will stay negative, which keeps us in the fourth quadrant.

But multiplying m\vec{m} by any negative scalar will result in a vector outside of MM! That’s because xx will become negative (which isn’t a problem), but yy will become positive, which is problem, since a positive yy-value will put us outside of the third and fourth quadrants where MM is defined. When yy becomes positive, the resulting vector lies in either the first or second quadrant, both of which fall outside the set MM.

Therefore, while MM 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 MM is not a subspace of two-dimensional vector space, R2\mathbb{R}^2.


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 R2\mathbb{R}^2.

V={[xy]R2  xy=0}V=\left\{\begin{bmatrix}x\\ y\end{bmatrix}\in \mathbb{R}^2\ \big|\ xy=0\right\}

The vector set VV is defined as all the vectors in R2\mathbb{R}^2 for which the product of the vector components xx and yy is 00. In other words, a vector v1=(1,0)v_1=(1,0) is in VV, because the product of v1v_1’s components is 00, (1)(0)=0(1)(0)=0.

Let’s try to figure out whether the set is closed under addition. Both v1v_1 and v2v_2 are in VV.

v1=[10]v_1=\begin{bmatrix}1\\ 0\end{bmatrix} and v2=[01]v_2=\begin{bmatrix}0\\ 1\end{bmatrix}

If we find their sum, we get

v1+v2=[10]+[01]v_1+v_2=\begin{bmatrix}1\\ 0\end{bmatrix}+\begin{bmatrix}0\\ 1\end{bmatrix}

v1+v2=[1+00+1]v_1+v_2=\begin{bmatrix}1+0\\ 0+1\end{bmatrix}

v1+v2=[11]v_1+v_2=\begin{bmatrix}1\\ 1\end{bmatrix}

The components of v1+v2=(1,1)v_1+v_2=(1,1) do not have a product of 00, because the product of its components are (1)(1)=1(1)(1)=1. Therefore, v1v_1 and v2v_2 are in VV, but v1+v2v_1+v_2 is not in VV, which proves that VV is not closed under addition, which means that VV is not a subspace.


Possible subspaces

In the last example we were able to show that the vector set MM is not a subspace. In fact, there are three possible subspaces of R2\mathbb{R}^2.

1. R2\mathbb{R}^2 is a subspace of R2\mathbb{R}^2.

2. Any line through the origin (0,0)(0,0) is a subspace of R2\mathbb{R}^2.

3. The zero vector O=(0,0)\vec{O}=(0,0) is a subspace of R2\mathbb{R}^2.

Similarly, there are four possible subspaces of R3\mathbb{R}^3.

1. R3\mathbb{R}^3 is a subspace of R3\mathbb{R}^3.

2. Any line through the origin (0,0,0)(0,0,0) is a subspace of R3\mathbb{R}^3.

3. Any plane through the origin (0,0,0)(0,0,0) is a subspace of R3\mathbb{R}^3.

4. The zero vector O=(0,0,0)\vec{O}=(0,0,0) is a subspace of R3\mathbb{R}^3.

And we could extrapolate this pattern to get the possible subspaces of Rn\mathbb{R}^n, as well.

 
 

Get access to the complete Linear Algebra course