Linear Span

Basis
Last updated: Tags: Linear Algebra

Given a handful of vectors, what can you build from them using only addition and scalar multiplication? The answer — the set of all possible outputs — is the span. Span is the central construction of linear algebra: every subspace, every basis, every row space and column space is ultimately described as the span of something.

Definition

Let VV be a vector space over a field FF, and let SVS \subseteq V be any subset. The span of SS is the set of all linear combinations of elements of SS:

\text{span}(S) \coloneqq \bigl\{ c_1 v_1 + \cdots + c_k v_k : k \ge 0,\ v_1, \ldots, v_k \in S,\ c_1, \ldots, c_k \in F \bigr\}. \tag{1}

Two boundary cases:

  • span()={0}\text{span}(\emptyset) = \{\mathbf{0}\} by convention: a sum of zero vectors is the empty sum, which equals 0\mathbf{0}.
  • span({v})={cv:cF}\text{span}(\{v\}) = \{cv : c \in F\}, the line through the origin in the direction of vv.

Examples

Span in R2\mathbb{R}^2. Let e1=(1,0)e_1 = (1, 0) and e2=(0,1)e_2 = (0, 1).

  • span({e1})={(c,0):cR}\text{span}(\{e_1\}) = \{(c, 0) : c \in \mathbb{R}\} — the xx-axis.
  • span({e1,e2})={(c1,c2):c1,c2R}=R2\text{span}(\{e_1, e_2\}) = \{(c_1, c_2) : c_1, c_2 \in \mathbb{R}\} = \mathbb{R}^2 — the whole plane.
  • span({(1,0),(2,0)})={(c,0):cR}\text{span}(\{(1,0), (2,0)\}) = \{(c,0) : c \in \mathbb{R}\} — still just the xx-axis, because (2,0)(2,0) is already a multiple of (1,0)(1,0) and contributes nothing new.

Span in R3\mathbb{R}^3. Let u=(1,0,0)u = (1, 0, 0) and v=(0,1,0)v = (0, 1, 0).

  • span({u,v})={(c1,c2,0):c1,c2R}\text{span}(\{u, v\}) = \{(c_1, c_2, 0) : c_1, c_2 \in \mathbb{R}\} — the xyxy-plane.
  • Adding w=(0,0,1)w = (0, 0, 1): span({u,v,w})=R3\text{span}(\{u, v, w\}) = \mathbb{R}^3.
  • Adding (1,1,0)(1, 1, 0) instead: span({u,v,(1,1,0)})=span({u,v})\text{span}(\{u, v, (1,1,0)\}) = \text{span}(\{u,v\}) — still just the xyxy-plane, since (1,1,0)=u+v(1,1,0) = u + v.

The pattern: a redundant vector (one that is already a linear combination of the others) does not enlarge the span.

The span is always a subspace

Theorem: For any SVS \subseteq V, the set span(S)\text{span}(S) is a subspace of VV.

Proof. span(S)\text{span}(S) is non-empty (0span(S)\mathbf{0} \in \text{span}(S) via the empty combination). If x=c1v1++ckvkx = c_1 v_1 + \cdots + c_k v_k and y=d1w1++dlwly = d_1 w_1 + \cdots + d_l w_l are two elements of span(S)\text{span}(S), and a,bFa, b \in F, then

ax+by=ac1v1++ackvk+bd1w1++bdlwlax + by = ac_1 v_1 + \cdots + ac_k v_k + bd_1 w_1 + \cdots + bd_l w_l

is again a linear combination of elements of SS, so ax+byspan(S)ax + by \in \text{span}(S). \square

Moreover, span(S)\text{span}(S) is the smallest subspace of VV containing SS: any subspace WW that contains SS must be closed under linear combinations, so it must contain every element of span(S)\text{span}(S). In symbols:

\text{span}(S) = \bigcap \{W \subseteq V : W \text{ is a subspace and } S \subseteq W\}. \tag{2}

Spanning sets

A subset SVS \subseteq V spans VV (or is a spanning set for VV) if span(S)=V\text{span}(S) = V — that is, every vector in VV can be expressed as a linear combination of vectors in SS.

Example: {(1,0),(0,1)}\{(1,0),(0,1)\} spans R2\mathbb{R}^2. So does {(1,0),(0,1),(1,1)}\{(1,0),(0,1),(1,1)\} — but the third vector is redundant. And {(1,0)}\{(1,0)\} alone does not span R2\mathbb{R}^2.

A spanning set can be reduced: if any vector in SS is a linear combination of the others, it can be removed without changing span(S)\text{span}(S). Repeating this process yields a minimal spanning set — one in which no vector is redundant — which is exactly what Linear Subspace calls a basis.

Why span is the right notion

Span answers the reachability question: which vectors are in the “reach” of a given set? This question appears in every corner of linear algebra:

  • Is a vector bb in the column space of AA? Equivalently, is bspan(columns of A)b \in \text{span}(\text{columns of } A)?
  • Does a set of vectors cover all of VV? Equivalently, does it span VV?
  • What is the smallest subspace containing a given set? Its span.

Summary

  • span(S)\text{span}(S) is the set of all linear combinations of elements of SS; by convention, span()={0}\text{span}(\emptyset) = \{\mathbf{0}\}.
  • span(S)\text{span}(S) is always a subspace of VV, and it is the smallest subspace containing SS.
  • A redundant vector — one that is already a linear combination of the others — does not change the span.
  • SS spans VV if span(S)=V\text{span}(S) = V. Removing all redundancies from a spanning set yields a basis.