Span and Linear Combinations

Subtopic: Vector Spaces

A linear combination mixes vectors using addition and scalar multiplication—the two fundamental operations in a vector space. The span of a set of vectors is everything you can build from those vectors using linear combinations. Span tells you the "reach" of your vectors: what space they can fill.

Introduction

Given a few vectors, what can you make from them? If you can add them, subtract them, scale them, and combine those operations—what collection of vectors can you reach?

With a single nonzero vector v v in R2 R squared, you can reach everything on the line through v and the origin. With two non-parallel vectors, you can reach any point in R2 R squared. That's span: the set of all destinations reachable by combining your starting vectors.

Definition

Linear Combination

A linear combination of vectors v1,v2,…,vk v sub 1 comma v sub 2 comma dot dot dot comma v sub k is any expression of the form:

c1⁢v1+c2⁢v2+⋯+ck⁢vk c sub 1 v sub 1 plus c sub 2 v sub 2 plus dot dot dot plus c sub k v sub k

where c1,c2,…,ck c sub 1 comma c sub 2 comma dot dot dot comma c sub k are scalars (the coefficients).

Span

The span of vectors v1,v2,…,vk v sub 1 comma v sub 2 comma dot dot dot comma v sub k is the set of all their linear combinations: span{v1,v2,…,vk}={c1⁢v1+c2⁢v2+⋯+ck⁢vk:c1,…,ck∈F} the set v sub 1 comma v sub 2 comma dot dot dot comma v sub k equals open brace c sub 1 v sub 1 plus c sub 2 v sub 2 plus dot dot dot plus c sub k v sub k colon c sub 1 comma dot dot dot comma c sub k is a member of F close brace

The span is always a subspace—it contains 0 0 (take all coefficients zero), and it's closed under addition and scalar multiplication.

Geometric Interpretation

In R3 R cubed:

• The span of one nonzero vector is a line through the origin

• The span of two non-parallel vectors is a plane through the origin

• The span of three vectors that don't all lie in one plane is all of R3 R cubed

Adding more vectors can expand the span (if they point in new directions) or leave it unchanged (if they're already in the span).

Think of each vector as opening a new degree of freedom. But if a new vector is already reachable from the others, it adds no new freedom—the span doesn't grow.

Worked Example 1

Let v1=(1,0,2) v sub 1 equals open paren 1 comma 0 comma 2 close paren and v2=(0,1,1) v sub 2 equals open paren 0 comma 1 comma 1 close paren. What is span⁡{v1,v2} span of open brace v sub 1 comma v sub 2 close brace?

The span consists of all vectors c1⁡(1,0,2)+c2⁡(0,1,1)=(c1,c2,2⁢c1+c2) c sub 1 of open paren 1 comma 0 comma 2 close paren plus c sub 2 of open paren 0 comma 1 comma 1 close paren equals open paren c sub 1 comma c sub 2 comma 2 c sub 1 plus c sub 2 close paren.

This is the set {(x,y,z):z=2⁢x+y} the set of all open paren x comma y comma z close paren such that z equals 2 x plus y — a plane through the origin in R3 R cubed.

To check if a specific vector is in the span, like (3,2,8) open paren 3 comma 2 comma 8 close paren:

We need c1=3 c sub 1 equals 3, c2=2 c sub 2 equals 2, and check 2⁢(3)+2=8 2 times 3 plus 2 equals 8

Yes, (3,2,8)=3⁢v1+2⁢v2 open paren 3 comma 2 comma 8 close paren equals 3 v sub 1 plus 2 v sub 2 is in the span.

Worked Example 2

Is (1,2,3) open paren 1 comma 2 comma 3 close paren in span{(1,1,0),(0,1,1)} the set open paren 1 comma 1 comma 0 close paren comma open paren 0 comma 1 comma 1 close paren ?

We need to find c1,c2 c sub 1 comma c sub 2 such that c1⁡(1,1,0)+c2⁡(0,1,1)=(1,2,3) c sub 1 of open paren 1 comma 1 comma 0 close paren plus c sub 2 of open paren 0 comma 1 comma 1 close paren equals open paren 1 comma 2 comma 3 close paren.

This gives the system:

c1=1 c sub 1 equals 1
c1+c2=2 c sub 1 plus c sub 2 equals 2
c2=3 c sub 2 equals 3

From equation 1 1: c1=1 c sub 1 equals 1.
From equation 3 3: c2=3 c sub 2 equals 3.
Check equation 2 2: 1+3=4≠2 1 plus 3 equals 4 is not equal to 2.

The system has no solution. Therefore (1,2,3) open paren 1 comma 2 comma 3 close paren is NOT in the span.

Checking if a Vector is in a Span

To determine if a vector b b is in span{v1,…,vk} the set v sub 1 comma dot dot dot comma v sub k:

  1. Set up the equation c1⁢v1+c2⁢v2+⋯+ck⁢vk=b c sub 1 v sub 1 plus c sub 2 v sub 2 plus dot dot dot plus c sub k v sub k equals b.

  2. Write this as a linear system (or matrix equation).

  3. If the system has a solution, b b is in the span. If not, it is not.

In matrix form: b b is in span{v1,…,vk} the set v sub 1 comma dot dot dot comma v sub k if and only if the system A⁢x=b A x equals b has a solution, where A=[v1v2…vk] A equals the 1 by 4 row matrix Column 1: v sub 1 Column 2: v sub 2 Column 3: dot dot dot Column 4: v sub k .

Spanning Sets

A set of vectors {v1,…,vk} the set v sub 1 comma dot dot dot comma v sub k spans a vector space V V if span{v1,…,vk}=V the set v sub 1 comma dot dot dot comma v sub k equals V — every vector in V V can be written as a linear combination of the vi v sub i.

Examples:

  • {(1,0),(0,1)} the set open paren 1 comma 0 close paren comma open paren 0 comma 1 close paren spans R2 R squared (the standard basis)

  • {(1,1),(1,−1)} the set open paren 1 comma 1 close paren comma open paren 1 comma negative 1 close paren also spans R2 R squared (different basis)

  • {(1,0),(2,0)} the set open paren 1 comma 0 close paren comma open paren 2 comma 0 close paren does NOT span R2 R squared — both vectors lie on the x x-axis, so the span is just a line

Key Properties

  • The span of any set of vectors is a subspace (the smallest subspace containing those vectors).

  • span{v}={c⁢v:c∈F} the set v equals the set of all c v such that c is a member of F — a line through the origin (or {0} the set 0 if v=0 v equals 0).

  • Adding a vector to a set either expands the span or leaves it unchanged — it never shrinks.

  • If v∈ v is a member ofspan{v1,…,vk} the set v sub 1 comma dot dot dot comma v sub k, then span{v1,…,vk,v}= the set v sub 1 comma dot dot dot comma v sub k comma v equalsspan{v1,…,vk} the set v sub 1 comma dot dot dot comma v sub k.

  • span{0}={0} the set 0 equals the set 0 — the zero vector alone spans only the trivial subspace.

Connection to Matrices

The column space of a matrix A A is exactly the span of its columns. If A=[a1a2…an] A equals the 1 by 4 row matrix Column 1: a sub 1 Column 2: a sub 2 Column 3: dot dot dot Column 4: a sub n, then: col(A)= A equalsspan{a1,a2,…,an} the set a sub 1 comma a sub 2 comma dot dot dot comma a sub n

This means: A⁢x=b A x equals b has a solution if and only if b b is in the span of A A columns.

Applications

In computer graphics, colors are often represented as linear combinations of basis colors (RGB). The span of {Red, Green, Blue} is all displayable colors.

In signal processing, any signal in a given space can be written as a linear combination of basis signals (like sine waves in Fourier analysis).

In data science, the span of feature vectors determines what relationships a linear model can capture.

Summary

A linear combination is a sum of scaled vectors. The span of a set of vectors is all their possible linear combinations—the subspace they generate. To check if a vector is in a span, solve the corresponding linear system. A spanning set for a space V V means every vector in V V can be expressed as a linear combination of the set. The concept connects directly to column spaces of matrices.