Goldilocks: not too many, not too few
Two nodes have been circling this. Spanning (from Span) means your set reaches every vector — but a spanning set can be bloated with redundant vectors. Independence (from Linear Independence) means no redundancy — but an independent set might not reach everything. A basis is the set that's just right: both at once.
Definition. A set is a basis of a vector space if:
- spans (), and
- is linearly independent.
Three ways to say the same thing, each worth holding in your head — they're all the same beast from different angles:
- A basis is a minimal spanning set — strip any vector and it stops spanning.
- A basis is a maximal independent set — add any vector and it becomes dependent.
- A basis is a coordinate skeleton — the exact frame you measure every other vector against (see below).
THE theorem: all bases have the same size
This is the load-bearing wall of the entire subject. Without it, "dimension" is gibberish — just a word people say to sound smart. We prove it properly or we don't use it.
Theorem (invariance of basis size). If has a basis with vectors, then every basis of has exactly vectors.
Proof sketch (the exchange / replacement argument). Suppose is a basis and is another, with . Because spans, each is a combination of the . The replacement lemma says: you can swap the 's into one at a time, kicking out a each time, and keep a spanning set. After swaps you've used up all of and the first of the 's span — so the remaining 's (there are of them) are combinations of the first . That makes dependent, contradicting that is a basis. So . Run the same argument with the roles flipped ( spans, independent) to get . Therefore .
The engine underneath is the pigeonhole-via-pivots fact from the Linear Independence node: you can't have more independent vectors than the size of a spanning set. Once sizes are pinned, the word dimension is born:
Standard bases and their dimensions
Concrete frames you should know cold — these will come up throughout the rest of the course and in every exam I can imagine:
- : the standard basis (columns of the identity). .
- (polynomials of degree ): the basis . That's vectors, so . (Watch the off-by-one — has basis , dimension . Mess this up and you'll be wrong in ways that compound.)
- (matrices): the basis of matrices with a single and zeros elsewhere — there are of them, so . So .
- The zero space : its basis is the empty set, and .
Coordinates: a basis turns vectors into number-tuples
Here's the deepest payoff, and it ties straight back to What Is a Number — the basis is the place-value system for a vector space.
Theorem (unique coordinates). If is a basis of , then every can be written as a linear combination of the in exactly one way.
Proof. Existence is just spanning: since spans, for some coefficients. Uniqueness is the two-line independence argument — watch. Suppose two representations: Subtract: By independence of , every coefficient must be zero: for all , i.e. . The two representations were identical all along.
Those unique coefficients are the coordinates of relative to . This is exactly positional notation: the basis is the "place values," the coordinates are the "digits," and uniqueness is what makes the digits a well-defined name. A basis is the device that turns an abstract vector — a polynomial, a matrix, a function — into an honest tuple of numbers you can compute with. That is why we drag everything back to . Same fucking move as base-ten notation, just in a different costume, exactly as advertised in lesson one.
Dimension as degrees of freedom
The cleanest intuition: is the number of independent choices — degrees of freedom — you make to specify a vector. In you choose three coordinates freely, so . Revisit the Subspaces census of with this new word:
- : zero free choices, .
- A line through : one free choice (how far along), .
- A plane through : two free choices, .
- All of : three free choices, .
The subspaces of are exactly the subspaces of dimension — the geometry and the counting are the same fact, finally named. A subspace's dimension is its "number of independent directions," and it can never exceed the dimension of the space it lives in.