Linear Independence, Spanning Sets, and Bases
Linear independence, spanning sets, and bases are the three interlocking concepts that capture the "size" and "coordinate structure" of a vector space. A set is linearly independent if no vector is a redundant combination of the others; it spans if every vector in the space can be built from it; a basis is a set that does both — a minimal spanning set / maximal independent set. Every vector space has a basis, and all bases have the same cardinality (the dimension). These ideas are foundational throughout linear algebra and were crystallized in the late 19th and early 20th centuries (Grassmann, Peano, Steinitz).
A basis is the sweet spot between two failure modes. Too few vectors and you can't reach everything (you fail to span). Too many vectors and you have redundancy (you fail to be independent). A basis is exactly the threshold where you can reach every vector in exactly one way. The "exactly one way" — uniqueness of representation — is the property that makes coordinates, matrices, and the entire computational apparatus of linear algebra possible.
Formal Statement
Let be a vector space over a field and . A linear combination of these vectors is any vector of the form
Derivation hint: This is the definition; it uses only the two vector-space operations — scalar multiplication and vector addition — applied finitely many times. Here are vectors, are scalars (coefficients), and is the resulting vector. The scalars are called the weights of the combination.
A set is linearly independent if the only choice of scalars making the combination zero is the trivial one:
Derivation hint: on the left is the zero vector of ; the implication must hold for ALL scalar tuples, so the only relation among the is the trivial one. If some nontrivial choice (not all zero) gives , the set is linearly dependent. An infinite set is independent iff every finite subset is independent.
The span of a set is the set of all linear combinations:
Derivation hint: Take the collection of all outputs of equation [1] as the range over ; closure under and scalar multiplication makes this a subspace. is the smallest subspace of containing . If , we say spans or is a spanning (generating) set.
A basis of is a set that is both linearly independent and spans . Equivalently, is a basis iff every has a unique representation
Derivation hint: Spanning gives existence of the ; independence gives uniqueness — if two representations existed, their difference would be a nontrivial relation . The unique scalars are the coordinates of relative to .
If has a finite basis, then every basis of has the same number of elements. This common number is the dimension . More precisely (the Steinitz Exchange Lemma): if is linearly independent and spans , then .
Let . Then: 1. Every linearly independent set can be extended to a basis. 2. Every spanning set can be reduced to a basis. 3. Any linearly independent set of size is automatically a basis. 4. Any spanning set of size is automatically a basis. 5. (Axiom of Choice) Every vector space — even infinite-dimensional — has a basis (a Hamel basis).
Why It Holds / Derivation
We prove that an independent set is never larger than a spanning set; invariance follows.
Setup. Let be linearly independent and span . We show by swapping the 's into one at a time.
Step 1 — Insert . Since spans, write
Derivation hint: spanning guarantees existence of scalars ; this is equation [3] applied to . Some (else , contradicting independence). Relabel so . Solve for :
Derivation hint: divide [5] by and isolate ; legal because in the field . So still spans (we can recover , hence everything).
Step 2 — Inductive swap. Suppose after steps the set spans (with ). Express in it:
Derivation hint: again use spanning of the current set; existence of the coefficients is guaranteed. If all the () were zero, then [7] would express as a combination of — a nontrivial relation contradicting independence of . So some ; in particular there must still be at least one left, forcing . Relabel so and swap out for . The new set spans.
Step 3 — Conclude. The induction can run until all of the 's are inserted, and each step required an available . Therefore .
Invariance. If and are both bases, apply the lemma twice: (independent) vs. (spanning) gives ; reversing roles gives . Hence .
∎:::proof[Uniqueness of Coordinates (Equation [4])] Suppose with a basis. Subtracting,
Derivation hint: subtract the two representations of the same vector ; vector-space axioms allow regrouping by index . Since is linearly independent, equation [2] forces every coefficient , i.e. . Existence of some representation comes from spanning. Hence the representation is unique.
A schoolteacher in Stettin, Grassmann developed in his Ausdehnungslehre (Theory of Extension, 1844; revised 1862) what we now recognize as the first abstract theory of vector spaces, independence, and dimension — decades ahead of his time and so cryptically written that it was almost ignored. He introduced the idea that geometric magnitudes ("extensive quantities") could be combined linearly, and he understood that a set of independent vectors determines the dimension of the space they generate. Giuseppe Peano gave the modern axiomatic definition of a vector space in 1888, explicitly citing Grassmann; Ernst Steinitz supplied the rigorous exchange argument for invariance of dimension in 1913. Grassmann never saw his work mainstreamed in his lifetime — he died believing his linguistic studies (he was also a noted Sanskrit scholar) were his lasting legacy.
Building Intuition
Think of vectors as directions you're allowed to walk in.
- Spanning asks: Can I reach every point in the room using these directions? If I can only walk North–South and East–West, I span the floor but not the ceiling height.
- Independence asks: Is any direction wasted? If my allowed moves are "North," "East," and "Northeast," then "Northeast" is redundant — it's already North + East. That redundancy is linear dependence.
- A basis is a set of directions that is just enough: you can reach everywhere (span) with no wasted directions (independent). The number of directions you need is the dimension.
The deep payoff is uniqueness: with a basis, every destination has exactly one set of "walking instructions." That's why a basis turns an abstract space into ordinary coordinate tuples — the basis is the dictionary between and .
Worked Examples
Given. The three vectors
Determine whether is independent, and extract a basis for .
Step 1 — Set up the dependence equation. We seek with .
Step 2 — Spot the obvious relation. Note exactly. So
This is a nontrivial relation (). Therefore the set is linearly dependent.
Step 3 — Discard the redundant vector. Remove . Check whether is independent: from , the second coordinate gives , then the first gives . Independent. ✓
Step 4 — Determine the span's dimension. Since is independent and spans the same set as the original three, (a plane through the origin in ).
Given. In real polynomials of degree , take the basis
Find the coordinates of relative to .
Step 1 — Write the coordinate equation. We want scalars such that
Step 2 — Collect by powers of .
Step 3 — Back-substitute.
- .
- .
- .
Step 4 — Verify. . ✓
The same polynomial in the standard basis has coordinates — different basis, different coordinates, same vector.
Common Misconceptions
Pitfall 1 — "More vectors means more span." Adding vectors can never shrink the span, but once a set spans , throwing in more vectors gains nothing and only destroys independence. Bigger is not better.
Pitfall 2 — "The zero vector can be in a basis." Never. Any set containing is automatically dependent: is a nontrivial relation.
Pitfall 3 — "Independence is a property of individual vectors." It is a property of the whole set. A single nonzero vector is independent; a vector is never "independent" by itself relative to others without naming the set.
Pitfall 4 — "Spanning sets and independent sets are the same kind of thing." They pull in opposite directions: spanning is about being big enough, independence about being small enough. A basis is where they meet.
Pitfall 5 — Confusing the number of vectors with dimension. A set of vectors in an -dimensional space is a basis only if it is independent (equivalently spans). Three vectors in might span only a plane (Example 1).
Claim (false): "If a set of vectors is pairwise independent — no one is a scalar multiple of another — then the whole set is linearly independent."
Counterexample. In take
No vector is a scalar multiple of any other (pairwise "independent" in the naïve sense). Yet
a nontrivial relation. The set is dependent. Linear independence is a statement about all the vectors at once, not about pairs.
Connections
Linear independence, span, and bases sit at the hub of linear algebra:
- <span class="wiki-link-missing">Dimension of a Vector Space</span> is defined as the common cardinality of any basis — the whole machinery above exists to make this well-defined.
- <span class="wiki-link-missing">Rank of a Matrix</span> equals the dimension of the column space (a span of columns) and the row space; the column rank = row rank theorem is independence/span in disguise.
- <span class="wiki-link-missing">Coordinate Vectors and Change of Basis</span> uses the uniqueness from equation [4]; switching bases is a linear isomorphism .
- <a class="wiki-link" href="/wiki/ndli-iit-kgp-ma10002-mathematics-ii-linear-transformations">Linear Transformations</a> are completely determined by their action on a basis — define on basis vectors arbitrarily and it extends uniquely.
- <a class="wiki-link" href="/wiki/the-four-fundamental-subspaces">The Four Fundamental Subspaces</a> (column, row, null, left-null spaces) are all spans, and their dimensions are tied by the Rank–Nullity Theorem.
- <a class="wiki-link" href="/wiki/inner-product-spaces-and-orthogonality">Inner Product Spaces and Orthogonality</a> refine "basis" to "orthonormal basis," via Gram–Schmidt Orthogonalization.
Real-World Applications
Historical Development
Subtleties & Limits
Infinite-dimensional subtleties. In infinite dimensions the clean picture cracks:
- A Hamel (algebraic) basis of an infinite-dimensional space like over , or , exists only by invoking the Axiom of Choice — it can never be explicitly written down, and such bases are necessarily uncountable for complete normed spaces (Baire category theorem). So "every vector space has a basis" is equivalent to the Axiom of Choice (Blass, 1984).
- For functional analysis one instead uses a Schauder basis (allowing infinite sums via a topology), but Per Enflo (1973) constructed a separable Banach space with no Schauder basis — disproving a long-standing conjecture of Banach.
- The notion of "dimension" remains invariant for Hamel bases (any two have equal cardinality), but the interplay with topology — when does an algebraic basis respect convergence? — is genuinely delicate.
- Open in spirit: explicit, constructive bases for many natural infinite-dimensional spaces simply do not and cannot exist, marking a sharp boundary between the finite-dimensional theory (fully constructive) and the infinite case (entangled with set theory).
See Also
Vector Spaces and Subspaces · Dimension of a Vector Space · Rank of a Matrix · Rank–Nullity Theorem · Coordinate Vectors and Change of Basis · Linear Transformations · Gram–Schmidt Orthogonalization · The Four Fundamental Subspaces · Eigenvalues and Eigenvectors