Chapter 5. Spans and subspaces

§5.1 Subspaces

In general, when a vector space lives inside a bigger one, we use the word “subspace”

Definition 5.1 (Subspace). Let 𝑉 be a vector space. A subspace 𝑉′ of 𝑉 is a vector space 𝑉′ such that every element of 𝑉′ is also an element of 𝑉.

Given a vector space, many other vector spaces live inside it. This short chapter will introduce the words we use to describe them, but otherwise be rather boring.

Example: Subspaces of ℙ2

The following are examples of subspaces of ℙ2={𝑎𝑥2+𝑏𝑥+𝑐|𝑎,𝑏,𝑐∈ℝ}:

  • The subset of polynomials 𝑓 in ℙ2 that are even functions, meaning 𝑓(𝑥)=𝑓(−𝑥).
    (In ℙ2, this is equivalent to 𝑏=0.)
  • The subset of polynomials 𝑓 in ℙ2 that are odd functions, meaning 𝑓(𝑥)=−𝑓(𝑥).
    (In ℙ2, this is equivalent to 𝑎=𝑐=0.)
  • The subset of polynomials 𝑓 in ℙ2 such that 𝑥−3 divides 𝑓(𝑥).
  • The subset of polynomials 𝑓 in ℙ2 such that 𝑓(2+𝑖)=0. (Here 𝑖=−1.)
Exercise 5.2. Show that the subspaces in the previous example have dimension 2, 2, 1, respectively.
Example: Subspaces of ℝ𝑛
Let 𝑉=ℝ𝑛. The set of vectors ⟨𝑥1,…,𝑥𝑛⟩ for which 𝑥1+…+𝑥𝑛=0 is also a subspace of 𝑉.
Exercise 5.3. Show that this subspace has dimension 𝑛−1.

§5.2 Spans

Earlier, we referred to the concept that a set of vectors can be spanning. We can generalize this as follows:

Definition 5.4 (Span of a set). Let 𝑉 be a vector space and 𝑆 be any subset of vectors of 𝑉 (possibly infinite). The span of 𝑆, denoted span(𝑆), consists of any vector that can be written as a linear combination of vectors in 𝑆.

By definition, a span always contains 𝟎. Colloquially, the way you should think of this in your head is: “span(𝑆) is anything you can make out of 𝑆”. In particular, a set 𝑆 of vectors is spanning if span(𝑆)=𝑉 is the whole space. So the span measures how much you can make out of 𝑆.

The first thing you should know about spans is this:

Proposition 5.5. For any set 𝑆, span(𝑆) is a subspace of 𝑉.
Exercise 5.6. Prove this.

Conversely, if 𝑉′ is a subspace of 𝑉, and 𝐯1, …, 𝐯𝑘 form a basis of 𝑉′, then it’s also true that

𝑉′=span(𝐯1,…,𝐯𝑘).

So spans and subspaces are two ways of expressing the same idea.

TODO. provide examples

§5.3 Subspaces of ℝ3

§5.4 Completion of bases

Subspaces behave nicely with respect to bases.

Theorem 5.7 (Basis completion). Let 𝑉 be an 𝑛-dimensional space. Let 𝑉′ be a 𝑘-dimensional subspace of 𝑉, with basis 𝐯1, …, 𝐯𝑘. Then we can choose 𝑛−𝑘 additional vectors 𝐯𝑘+1, …, 𝐯𝑛 in 𝑉 such that the 𝑛 vectors collectively form a basis of 𝑉.
TODO. prove this

§5.5 Direct sums

TODO. clean this section up

Let’s return to the quadratic polynomial example

ℙ2={𝑎𝑥2+𝑏𝑥+𝑐|𝑎,𝑏,𝑐∈ℝ}.

You may have noticed is that somehow the 𝑥2, 𝑥 and 1 terms don’t “talk to each other”. They’re totally unrelated. In other words, we can consider the three sets

ℝ𝑥2≔{𝑎𝑥2|𝑎∈ℝ}ℝ𝑥≔{𝑏𝑥|𝑏∈ℝ}ℝ≔{𝑐|𝑐∈ℝ}.

Then 𝑉 quite literally consists of the “sums of these sets”. Specifically, every element of 𝑉 can be written uniquely as the sum of one element from each of these sets. This motivates us to write

𝑉=ℝ𝑥2⊕ℝ𝑥⊕ℝ.

The notion which captures this formally is the direct sum.

Definition 5.8 (Direct sum of subspaces). Let 𝑉 be a vector space. Let 𝑉1 and 𝑉2 be subsets of 𝑉 which are themselves vector spaces. Then we write 𝑉=𝑉1⊕𝑉2 and say 𝑉 is a direct sum of 𝑉1 and 𝑉2 if every element from 𝑉 can be written uniquely as the sum of an element from 𝑉1 and 𝑉2.
ℝ2 is the direct sum of the 𝑥 and 𝑦 axes

Take the vector space ℝ2={⟨𝑥,𝑦⟩|𝑥∈ℝ,𝑦∈ℝ}. We can consider it as a direct sum of its 𝑥-axis and 𝑦-axis:

𝑋={⟨𝑥,0⟩|𝑥∈ℝ}and𝑌={⟨0,𝑦⟩|𝑦∈ℝ}.

Then ℝ2=𝑋⊕𝑌.

TODO. mention many directed sums

§5.6 Exercises

TODO. ℝ3 spans from LAMV

Exercise 5.9. Take your birthday and write it in eight-digit 𝑌1𝑌2𝑌3𝑌4-𝑀1𝑀2-𝐷1𝐷2 format. Consider the two vectors

𝐯1=(𝑀1𝑀2𝐷1𝐷2) and 𝐯2=(𝑌1𝑌2𝑌3𝑌4).

For example, if your birthday was May 17, 1994 you would take 𝐯1=(517) and 𝐯2=(1994).

Exercise 5.10. Let 𝑉 be a vector space and 𝑆 a subset of 𝑉 (not necessarily finite).

Exercise 5.11. Let 𝑉 be an 𝑛-dimensional vector space, let 𝐯1, …, 𝐯𝑘 be vectors, and set 𝑊=span(𝐯1,…,𝐯𝑘). Consider the following nine assertions:

  1. 𝐯1, …, 𝐯𝑘 are linearly independent.
  2. 𝐯1, …, 𝐯𝑘 span 𝑉.
  3. 𝐯1, …, 𝐯𝑘 are a basis of 𝑉.
  4. 𝐯1, …, 𝐯𝑘 span 𝑊.
  5. 𝐯1, …, 𝐯𝑘 are a basis of 𝑊.
  6. 𝑉=𝑊.
  7. 𝑛=𝑘.
  8. 2+2=4.
  9. 2+2=5.

Label Figure 1 with the numbers 1 through 9 showing the logical dependencies between these statements. (There are exactly 16 possible valid labellings.)

Figure 1: The diagram of implications in Exercise 5.11. Fill in with 1 through 9.

Exercise 5.12.

Exercise 5.13. Let 𝑉 and 𝑊 be two subspaces of ℝ7, with dim𝑉=3 and dim𝑊=5. Prove that there exists a nonzero vector in both 𝑉 and 𝑊.

Exercise 5.14 (*) (Putnam 2003). Do there exist polynomials 𝑎(𝑥), 𝑏(𝑥), 𝑐(𝑦), 𝑑(𝑦) such that

1+𝑥𝑦+(𝑥𝑦)2=𝑎(𝑥)𝑐(𝑦)+𝑏(𝑥)𝑑(𝑦)

holds identically?