Linear algebra

Linear Combinations and Span

Scale and add vectors to see what they can reach

FoundationsVideo lesson
Uploaded lesson
The idea

What you’ll explore

The span of a set of vectors is the set of all their linear combinations. In the plane, two nonparallel vectors span the whole plane, while two nonzero parallel vectors span a line.

The span of two vectors

span⁡(u,v)={au+bv:a,b∈R}\operatorname{span}(\mathbf u,\mathbf v)=\{a\mathbf u+b\mathbf v:a,b\in\mathbb R\}

Step by step

  1. 01

    Choose a coefficient for each vector.

  2. 02

    Scale each vector by its coefficient and add the results.

  3. 03

    Let the coefficients vary to see every vector in the span.

A small code example

Python
from sympy import Matrix
u = Matrix([1, 0])
v = Matrix([1, 1])
print(2*u + 3*v)
Keep exploring

Related lessons