Algebra
Vector spaces
Sets of objects that can be added and scaled, the setting for all of linear algebra.
IntuitionIntuition: add and scale — that is all you need
Arrows in the plane can be placed tip-to-tail to add them, and stretched or shrunk by a number. That is already enough structure to do a surprising amount of mathematics — and the surprise is that the exact same two operations, addition and scalar multiplication, also make sense for polynomials (add two polynomials, multiply one by a number), for matrices of the same size, and for functions (add two functions pointwise, scale a function by a constant). A vector space is any set equipped with these two operations obeying the same handful of sensible rules that arrows in the plane already obey; once a set is recognized as a vector space, every theorem proved once for "vectors in general" applies immediately to arrows, polynomials, matrices, and functions alike.
SchoolDefinition: vector space axioms
Definition: Vector space
A vector space over is a set together with an addition and a scalar multiplication (for ) such that addition is commutative and associative, there is a zero vector with , every has an additive inverse , scalar multiplication is compatible with real-number multiplication and distributes over both vector addition and scalar addition, and . Concretely, the two distributive laws are . Familiar examples include , the space of polynomials of degree at most , the space of matrices, and the space of continuous functions on an interval.
These distributive laws say that scaling a sum of vectors is the same as scaling each vector separately and adding the results, and that adding two scalars before multiplying is the same as multiplying separately and adding — these two rules are exactly what make "linear" combinations of vectors well-behaved, and every theorem about vector spaces is ultimately built from just these axioms.
Definition: Basis and dimension
A set of vectors is linearly independent if no nontrivial combination equals (equivalently, no vector in the set is a combination of the others), and it spans if every vector of is a combination of them, i.e. equals all of . A basis of is a set that is both linearly independent and spanning ; the dimension is the number of vectors in a basis — well defined precisely because, as the next theorem shows, every basis of has the same size.
For example, the standard basis of has exactly vectors, so ; and is a basis of with vectors, so .
| Vector space | A basis | Dimension |
|---|---|---|
| (polynomials of degree ) | ||
| (matrices) | matrices with a single | |
| (continuous functions) | no finite basis |
UndergraduateTheorems: every basis has the same size
If spans a vector space and is linearly independent, then : an independent set can never be larger than a spanning set. Moreover, of the can be replaced by so that the resulting set still spans .
Why is it true?
Independent vectors cannot outnumber a spanning set, because each new independent vector can always be "traded in" for one of the spanning vectors without breaking the spanning property — the trade is only blocked once every spanning vector has already been used up, and at that point there is no room left to add another independent vector without contradiction, which is exactly what pins down .
Proof
Argue by induction on , the number of 's exchanged in so far. For the inequality is trivial, and no exchange is needed. Suppose inductively that have already been exchanged in for of the original 's (relabel so these are ), so that still spans .
If already equals , every has been used up, so alone spans ; but then would be a linear combination of , contradicting the linear independence of . So this case cannot occur while is still to be shown for the current — precisely, it shows , i.e. , immediately.
Otherwise , so at least one (among ) remains. Since spans , write as a combination . If every coefficient on the remaining 's were , then would be a combination of alone, again contradicting independence — so some remaining has a nonzero coefficient.
Solve that equation for (dividing by its nonzero coefficient), expressing as a combination of and the other remaining 's. Substituting this expression for wherever it appears shows that together with the remaining 's (minus ) still spans — one more has been successfully exchanged for , completing the inductive step and confirming .
Any two finite bases of the same vector space have the same number of elements: if has vectors and has vectors, then . Hence is a well-defined invariant of , not an artifact of which basis was chosen.
Why is it true?
A basis is simultaneously a spanning set and an independent set, so applying the exchange lemma once in each direction — once treating as the spanning set and as independent, once the other way around — squeezes the two sizes between each other until they must be equal.
Proof
Let and both be bases of . Since spans (it is a basis) and is linearly independent (it is a basis), the exchange lemma proved above applies directly with playing the role of the spanning set and the independent set, giving .
Symmetrically, since spans and is linearly independent, apply the exchange lemma again with the roles swapped — as the spanning set, as the independent set — giving .
Combining the two inequalities and forces : the two bases have exactly the same number of vectors.
Since this argument places no restriction on which particular finite bases were chosen, every finite basis of has this same common size. This justifies defining to be that common size — it is an invariant of the space itself, never depending on which basis was used to compute it.
UndergraduateReal-World Applications and Worked Examples
Vector spaces are the common language behind digital signal compression (representing a signal in a cleverer basis than the "obvious" one), and behind the solution sets of linear differential equations that describe oscillators, circuits, and structures in physics and engineering — in both cases, recognizing a set of objects as a vector space with a specific finite dimension is what makes an otherwise infinite-looking problem tractable with finitely many numbers.
Example: Computer science: changing basis to compress a signal
A short digital signal is stored as the vector in the standard basis . A compression scheme instead uses the basis , which turns out to concentrate most signals into the first coordinate. Express in the new basis .
Solution
First check is really a basis of : it has vectors, and they are not multiples of each other (one has equal coordinates, the other has opposite coordinates), so they are linearly independent — two independent vectors in a -dimensional space automatically span it as well.
Write for unknown scalars . This gives the linear system (first coordinate) and (second coordinate).
Adding the two equations: , so . Subtracting the second from the first: , so .
So , i.e. the coordinates of the signal in the new basis are ; the compression scheme can now discard or quantize the smaller second coordinate more aggressively than the first, which is exactly why changing basis is useful for compression.
Example: Physics: the solution space of an oscillator equation
The differential equation describing a simple harmonic oscillator has solution set exactly , a -dimensional vector space with basis . Find the specific solution satisfying the initial conditions and .
Solution
Because the solution set is a vector space with basis , every solution is uniquely determined by its two coordinates in that basis — finding the solution reduces to finding these two numbers, exactly as in the compression example above.
The general solution is . Evaluate at : . The initial condition immediately gives .
Differentiate: . Evaluate at : . The initial condition immediately gives .
So the specific solution is — the coordinates of this particular solution in the basis of the -dimensional solution space were pinned down completely by the two initial conditions, matching the dimension of the space exactly.
Which of these sets is NOT a vector space under the usual operations?
What is , where is the space of polynomials of degree at most ?
spans and . What does the Steinitz exchange lemma tell us?
A digital audio compressor represents each short signal frame in a special basis instead of the standard basis. Why does this require the frame's vector space to have a well-defined, basis-independent dimension?
References
- Sheldon Axler (2015). Linear Algebra Done Right
- Eric W. Weisstein (MathWorld) (2024). Vector Space