Span, Basis, and Dimension
Definition
Span. The span of a set of vectors is the vector space consisting of all linear combinations of . We say the set spans the vector space.
Basis. The smallest set of vectors needed to span a vector space forms a basis for that space. Equivalently, a basis is a spanning set of linearly independent vectors.
Dimension. The number of vectors in a basis gives the dimension of the vector space.
Intuition
A basis is a “coordinate system” for a vector space — the minimal set of directions from which every point can be reached by scaling and adding. Removing any basis vector shrinks the reachable space; adding one introduces redundancy. Dimension captures how many genuinely independent degrees of freedom exist, regardless of which particular basis you choose.
Formal Description
Example. The set
spans the subspace of matrices with zero in the third row. Since the third vector is linearly dependent on the first two, a basis needs only two vectors, e.g.:
This subspace has dimension 2.
- A basis is not unique; any two bases for the same vector space have the same number of vectors (the dimension).
- An orthonormal basis consists of vectors that are mutually orthogonal and of unit norm — this is the preferred form and is constructed via the Gram-Schmidt Process.
- The first orthonormal vectors from Gram-Schmidt span the same subspace as the first original basis vectors.
Applications
- Counting degrees of freedom in a linear system (rank, nullity).
- Expressing any vector as coordinates relative to a chosen basis (change of basis).
- Dimensionality reduction techniques (PCA, SVD) find low-dimensional subspaces that capture most variance.
Trade-offs
A non-orthogonal basis is valid but makes projection and inner-product computations more expensive. Orthonormal bases eliminate those costs at the price of running Gram-Schmidt or an equivalent procedure upfront.