Math

Span & Basis

A linear combination of two vectors traces out their span. Adjust the coefficients and switch between independent and dependent vectors to see a plane become a line.

6 minLevel 2/3The interactive stage stays ad-free.
Coefficients(0.8, 0.7)det(v₁, v₂)1.13Span2D planeStatusBasis of R²

The faint dots are all integer combinations i v₁ + j v₂. With two independent vectors they fill a lattice across the plane; when v₂ becomes parallel to v₁, every dot falls onto one line and the determinant drops to zero.

What you are seeing

1

The amber vector is a v₁ + b v₂. Changing a and b moves it through every point the two vectors can reach.

2

If v₁ and v₂ point in different directions, their span is the whole plane. They form a basis for R².

3

If one vector is a multiple of the other, the determinant is zero and the span collapses to a single line.

Why it matters

Span, independence, and basis are the vocabulary of vector spaces. They explain why some systems have unique solutions and why dimension is preserved by invertible maps.

Complexity & details

For two vectors, independence is one determinant check: a d − b c ≠ 0. Building a lattice of m combinations costs O(m).

Frequently asked questions

What is the span of one vector?+

All scalar multiples of that vector: a line through the origin. Adding a second, non-parallel vector expands the span to the whole plane.

Why does a basis need to be independent?+

Independence guarantees that every vector has exactly one coordinate representation. A dependent set contains redundant directions.