Vector subspace
A vector subspace is a subset of a vector space that is still closed under addition and scalar multiplication.
Definition
Let V be a vector space. A vector subspace W is then a subset of V that is itself a vector space. A non-empty subset W ⊆ V must therefore satisfy the following two conditions to be a vector subspace of V: for all x, y ∈ W and for every a ∈ ℝ:
- x + y ∈ W,
- a · x ∈ W.
So we have to choose a subset of V whose vectors are closed under addition and multiplication.
A subspace of R3
Let's take the space ℝ3 and look for a subspace.
- What about all triples of the form (a, a, a), where a ∈ ℝ? That is, triples such as
or (−π, −π, −π). Such a subspace, which we call W1, would be a subset of ℝ3, that is, W1 ⊆ ℝ3, because ℝ3 contains all triples.
Such a space would be closed under vector addition, because
After adding two vectors we get a new vector with three equal entries again, and such a vector belongs to the set W1. So the set W1 satisfies the first condition for a vector subspace. But does it satisfy the second condition?
Yes, it does, because multiplying by k changes all three components of the vector, and changes them in exactly the same way:
Again we get a vector with all three components equal, and such a vector is in the set W1. So the set W1 is a vector subspace of ℝ3.
-
We could try taking all triples (a, b, c) such that a, b, c ∈ [−1, 1]. We call this set W2, and its elements include, for example, the triples
and . Are the elements of W2 closed under addition? Definitely not, because is equal to the triple , which does not belong to W2. So the set W2 is not a subspace of ℝ3; in fact, the set W2 is not a vector space at all. -
Now let's take all triples of the form (a, 0, b), where a, b ∈ ℝ. These are all the triples whose second component is zero. We call this set W3. Is this set closed under addition? Yes, it is, because
The result is the triple (a + c, 0, b + d), whose second component is zero and whose other two components are real numbers. This triple is certainly in W3. Is W3 closed under multiplication? Yes, it is, because
Again we get the triple (k · a, 0, k · b), whose second component is always zero and whose other components are real numbers. Such a triple is an element of W3. So the set W3 forms a subspace of ℝ3. Notice that if the triples had the form (a, b, 0) or (a, 0, 0), they would also form a vector subspace.
A subspace of polynomials
In the previous article we showed a vector space made up of polynomials. To recap: a polynomial is an expression of the form
We assume that an ≠ 0. The degree of such a polynomial is then exactly the number n. The real numbers a0, …, an are called the coefficients of the polynomial. An example of a polynomial is the expression 4 + 3x − 7x2. Let's try to find a vector subspace. Let P(x) be the vector space of all polynomials.
-
First let's try the set of all polynomials of degree n, where n ≥ 0, and call this set W1. In the previous article we already said that this is not a vector space at all, so it is hardly going to be a vector subspace of P(x). Let's repeat why: if we multiply a polynomial in W1 by zero, we get the polynomial p(x) = 0, which by definition has degree −1. So this element is certainly not in any W1.
-
For W2 let's try taking all polynomials of degree n or lower. So for n = 2, W2 contains all polynomials of degree 2, 1, 0, −1. Is this set closed under addition? Yes, it is, because the sum of two polynomials of degree n never has a degree greater than n; it can only be lower. This set is also closed under multiplication, because any scalar multiple k · p(x) of a polynomial p(x) is either a polynomial of the same degree or the zero polynomial. The set W2 covers both possibilities, so W2 forms a subspace of P(X).
Basic properties of subspaces
Let V be a vector space and W1 and W2 two of its subspaces. Then the following hold:
-
The intersection W1 ∩ W2 is a vector subspace of V.
Take the vector space ℝ3 and subspaces W1 and W2 such that W1 consists of triples of the form (a, b, 0) and W2 of triples of the form (a, 0, b), where a, b ∈ ℝ. The intersection W1 ∩ W2 is then the set containing triples of the form (a, 0, 0) – such a set is clearly a subspace of ℝ3.
Of course, that is not a proof. A proof would look like this: take any vector space V and two of its subspaces W1 and W2. We want to prove that for all x, y ∈ W1 ∩ W2 we have x + y ∈ W1 ∩ W2.
Since the vectors x and y are in the intersection W1 ∩ W2, it must be true that x, y ∈ W1 and also x, y ∈ W2 (this follows from the definition of the intersection of sets). Since W1 and W2 are vector spaces, it must also hold that x + y ∈ W1 and also x + y ∈ W2 (this follows from the definition of vector spaces). But now we have x + y ∈ W1 and also x + y ∈ W2, which implies that x + y ∈ W1 ∩ W2 (again from the definition of the intersection of sets – if an element lies in the set W1 and also in the set W2, it must lie in their intersection).
Next we must check closure under multiplication. We must prove that for all k ∈ ℝ and x ∈ W1 ∩ W2 we have k · x ∈ W1 ∩ W2. The procedure is the same. Since x ∈ W1 ∩ W2, we have both x ∈ W1 and x ∈ W2. Since W1 and W2 are spaces, k · x ∈ W1 and also k · x ∈ W2, and therefore k · x ∈ W1 ∩ W2. □
-
The union W1 ∪ W2 is not necessarily a subspace of V.
To prove the second property, it is enough to find a suitable counterexample. We can make do with the previous spaces W1 and W2, which have triples of the form (a, b, 0) and (a, 0, b) respectively. If we take their union, we get all the triples that must have a zero in the second or third place. So the vectors (1, 0, 1) and (1, 1, 0) are certainly in the union W1 ∪ W2. But their sum is the vector (2, 1, 1), which has no zero anywhere. This vector is in neither W1 nor W2, so it cannot be in W1 ∪ W2. So we have found two vectors whose sum does not belong to the same set, which means that the union cannot be a vector space.
Chapters: Vector spaces, Examples of vector spaces, Vector subspace, Linear combination of vectors, Span, Basis of a vector space, Dimension of a vector space, Change-of-basis matrix