✖

Span

If we take a set of vectors and work out all of their linear combinations, we get the span of that set of vectors.

Definition of the span

Let x1, …, xn be vectors. We already know that we can build a new vector from them using a linear combination. We choose real numbers a1, …, an and get the new vector y by multiplying and adding:

y=a1⋅x1+…+an⋅xn

In this way, as long as at least one of the vectors xi is not the zero vector, we can make infinitely many “new” vectors from the set x1, …, xn – we just have to choose different coefficients a1, …, an.

If we keep generating vectors, we end up with all the vectors that can be obtained as a linear combination of x1, …, xn. We call this set the span of the vectors x1, …, xn. The span of a set of vectors X is written span(X). For a finite number of vectors we can write the span formally as

span(x1,…,xn)={a1⋅x1+…+an⋅xn∣a1,…,an∈R}.

If we have an infinite set of vectors X, we can take all the finite subsets Yi ⊆ X, that is |Yi| = r for some r ∈ ℤ+, and the span of X is then the union of all the sets span(Yi).

Example

Let’s stay in the familiar vector space ℝ3. Take the one-element set X1 = {(1, 2, 1)}. What is the span of this set? It is all the linear combinations of the vector (1, 2, 1). The span has the form

span(X1)={(a,2a,a)∣a∈R}

So it consists of vectors such as (3, 6, 3),(8, 16, 8),(−1, −2, −1) and so on. We can check that the sum of any two of these vectors gives a new vector of the same form:

(3,6,3)+(3,6,3)=(6,12,6)(3,6,3)+(−1,−2,−1)=(2,4,2)(8,16,8)+(2,4,2)=(10,20,10)

For a second example, take the standard vectors X2 = {(1, 0, 0), (0, 1, 0)}. When we work out all the linear combinations, we find that they have the form (a, b, 0), where a, b ∈ ℝ. This is easy to show, because

(a,b,0)=a⋅(1,0,0)+b⋅(0,1,0).

Vectors in this span include (0, 8, 0) and (14, 15, 0). Formally we would write

span(X2)={(a,b,0)∣a,b∈R}

The span as the smallest subspace

Let V be a vector space and X ⊆ V a set of vectors. The span span(X) is then a subspace of V, that is, the span span(X) is itself a vector space.

We only need to show that span(X) is closed under addition and scalar multiplication. It certainly is, because any vector x ∈ span(X) arose as a linear combination of vectors from X.

The span of X is also the smallest subspace that contains all the vectors of X. Why? The smallest subspace containing the vectors of X must also contain all linear combinations of vectors from X – otherwise it would not be a vector space. We can assume for contradiction that there is a smaller subspace, call it Y, that contains all the vectors of X, that is X ⊆ Y. Since Y is, by assumption, smaller than the span span(X), there must be a vector x that is in span(X) but not in Y, that is x ∈ span(X) ∧ x ∉ Y.

But the vector x must be buildable as a linear combination of vectors from X, so there must be vectors x1, …, xn ∈ X and coefficients a1, …, an such that

x=a1⋅x1+…+an⋅xn

But if Y does not contain this vector x while containing the vectors x1, …, xn, then Y cannot be a vector space, and so it cannot be a subspace either. The span span(X) is therefore the smallest subspace that contains all the vectors of X.

Basic properties of the span

  • It is always true that W ⊆ span(W). This should be clear. The span of the set W is always the same as, or larger than, the set W. The span span(W) contains all linear combinations of vectors from W, so span(W) must also contain all the vectors of W: if we take a vector x ∈ W, then for a = 1 we get the combination a · x = x.

    Example: the span of the set W = {(1, 0, 0)} is the set

    span(W)={(a,0,0)∣a∈R}.

    Clearly {(1, 0, 0)} ⊆ {(a, 0, 0)  ∣  a ∈ ℝ}.

  • It is always true that span(W) = span(span(W)). Once we have worked out a span, the span of that span is the same set. span(W) contains all the linear combinations from W. If we worked out all the linear combinations from span(W) again, we would not get any new ones.

  • Let V be a vector space and let W1 and W2 be two subsets of it (not necessarily subspaces), that is W1, W2 ⊆ V. If W1 ⊆ W2, then span(W1) ⊆ span(W2) too.

    In other words: if we have two sets of vectors and one of them is smaller, then the smaller set of vectors has a span that is smaller than or equal to the span of the larger set.

    Example: let W1 = {(1, 0, 0)} and W2 = {(1, 0, 0), (0, 1, 0)}. We can see that W1 ⊆ W2. What would the spans be?

    span(W1)={(a,0,0)∣a∈R}span(W2)={(a,b,0)∣a,b∈R}

    The set W2 “generated a larger span” than W1, as we expected. The set W2 contains all the vectors of W1, so all the linear combinations of vectors from W1 can also be generated from the vectors in W2.

    Another example: W3 = {(1, 2, 0)} and W4 = {(1, 2, 0), (5, 10, 0)}. At first glance you can see that the vectors in W4 are dependent. So both sets generate the same span. That is, although W3 ⊊ W4, we have span(W3) = span(W4).

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