Skip to content

What is the span of a set of vectors?

5 min read

Short answer

The span of vectors v1,…,vk\mathbf v_1,\dots,\mathbf v_k is the set of all linear combinations c1v1+⋯+ckvkc_1\mathbf v_1+\dots+c_k\mathbf v_k. One nonzero vector spans a line; two non-parallel vectors span a plane; three independent vectors span all of R3\mathbb R^3. To test whether b\mathbf b is in the span, solve c1v1+⋯+ckvk=bc_1\mathbf v_1+\dots+c_k\mathbf v_k=\mathbf b: if a solution exists, it is.

Diagramvwv + w
Two non-parallel vectors v and w reach every point of the plane by stretching and adding. The shaded parallelogram is just one combination, 1v + 1w.

What a span looks like

Spans are always subspaces: they contain 0\mathbf 0 (all coefficients zero) and stay closed under addition and scaling. In R2\mathbb R^2 or R3\mathbb R^3 that means a point, a line, a plane, or the whole space. Adding a vector that is already in the span changes nothing; adding one that is not makes the span bigger.

Testing membership

To decide whether b\mathbf b lies in span⁡{v1,v2}\operatorname{span}\{\mathbf v_1,\mathbf v_2\}, write the matrix [v1 v2∣b][\mathbf v_1\ \mathbf v_2\mid\mathbf b] and row reduce. If the last column has a pivot (the system is inconsistent), b\mathbf b is outside the span. Otherwise it is inside, and the solution gives the coefficients.

Worked example

Is (4,5)(4,5) in the span of (1,1)(1,1) and (1,−1)(1,-1)?

Solve a(1,1)+b(1,−1)=(4,5)a(1,1)+b(1,-1)=(4,5), which gives a+b=4a+b=4 and a−b=5a-b=5. Adding: 2a=92a=9, so a=4.5a=4.5; then b=4−4.5=−0.5b=4-4.5=-0.5.

A solution exists, so yes: (4,5)=4.5(1,1)−0.5(1,−1)(4,5)=4.5(1,1)-0.5(1,-1). In fact these two vectors span all of R2\mathbb R^2, so every vector is in their span.

Try it yourself

Is (1,2,3)(1,2,3) in the span of (1,0,0)(1,0,0) and (0,1,0)(0,1,0)?

Show the answer

No. Every combination a(1,0,0)+b(0,1,0)=(a,b,0)a(1,0,0)+b(0,1,0)=(a,b,0) has third coordinate 00, but (1,2,3)(1,2,3) has third coordinate 33. The span is the xyxy-plane.

Keep going with practice

Vidi's Linear Algebra & Probability course includes a span visualizer where you drag coefficients and watch the combination move.