Vector Spaces and Subspaces
Ask a physicist what a "vector" is and the first answer is an arrow — a displacement, a velocity, a force. But the arrow is a decoy. What actually makes linear physics work is not that vectors point somewhere; it is that you can add two of them and scale one by a number, and that these two operations obey a short list of consistency rules. A vector space is exactly that structure and nothing more: a set over a field , closed under addition and scalar multiplication, obeying eight axioms. Strip away the geometry and the same skeleton fits columns of numbers, matrices, polynomials, square-integrable wavefunctions, and the solutions of a linear differential equation. Every theorem proved from the axioms holds for all of them at once. The payoff of this abstraction is enormous and it is why the definition sits at the very base of the subject. A subspace is a subset that is a vector space in its own right, and the eight axioms collapse — for a subset — into a single test: closure under linear combinations. That one condition drags in the zero vector, the inverses, and every inherited axiom for free. Subspaces are not scattered curiosities; they organise themselves into a lattice under intersection and sum, and the span of any collection of vectors is the smallest subspace containing them. This is the language in which superposition in quantum mechanics, error-correcting codes, principal-component analysis, and Krylov iterative solvers are all written. Master the axioms and the closure test once, and linear independence, bases, dimension, operators, and inner products all follow as consequences rather than fresh mysteries.
- A vector space over a field (usually or ) is a set with addition and scalar multiplication satisfying eight axioms: four make an abelian group, four tie the scalars to the vectors.
- The axioms guarantee closure under every finite linear combination — this single closure property is the operational heart of "linearity".
- "Obvious" facts like , , and are theorems derived from the axioms, not extra assumptions.
- A subspace is a nonempty subset closed under linear combinations: for all and — this one line replaces all eight axioms.
- Every subspace contains ; intersections and sums of subspaces are subspaces, but unions generally are not, and dimensions obey .
- Familiar spaces — , , , , , and — show that "vectors" need not be arrows; the axioms abstract the shared structure.
- Key idea: keep only that you can add two vectors and scale one by a number, subject to eight bookkeeping axioms; span, basis, dimension, operators, and eigenvalues are all consequences of closure under linear combination.
Strip a "vector" of all geometric meaning and keep only that you can add two of them and scale one by a number, subject to eight bookkeeping axioms. Everything else in linear algebra — span, basis, dimension, operators, eigenvalues — is a consequence of this closure under linear combination.
Where this lives today
The abstract subspace is quietly running much of modern computation, and often the whole point is that a set of interest turns out to be a subspace. In coding theory, a binary linear error-correcting code is literally a subspace of over the two-element field: closure under addition means the sum of any two codewords is again a codeword, and that is exactly what lets a receiver detect and correct bit errors — the Hamming, Reed–Muller, and low-density parity-check codes protecting every hard drive, QR code, and 5G link are all subspaces. In machine learning, principal-component analysis finds the best-fit low-dimensional subspace through a cloud of data, and "subspace methods" like MUSIC split a space into orthogonal signal and noise subspaces to resolve directions of arrival in radar and antenna arrays. In large-scale numerical linear algebra, Krylov-subspace solvers — conjugate gradient, GMRES, Lanczos — attack linear systems and eigenvalue problems with billions of unknowns by searching a cleverly grown sequence of nested subspaces rather than the whole space, the engines behind every large physics simulation. And in quantum information, the code space of a quantum error-correcting code hides fragile logical qubits inside a carefully chosen subspace of a much larger Hilbert space.
The physical picture
Think of the eight axioms as the rules of a self-consistent arithmetic of directions. Two displacements combine tip-to-tail into a third; any displacement can be stretched, shrunk, or reversed by a number. The axioms only demand that this combining never contradict itself — the order in which you add, the way scalars cascade through a product, must always agree. A subspace is then a closed neighbourhood of the origin: a region you can never escape by adding two of its members or by scaling one of them. In that constraint is astonishingly rigid. The only subspaces are the origin alone, every line through the origin, every plane through the origin, and the whole of — dimensions . Nothing offset from the origin can qualify, because closure forces to belong. The first figure lays out how these nest into a single ordered structure, the subspace lattice.
The lattice hides a warning that the second figure makes vivid. Intersections of subspaces are always subspaces, and so are sums — but unions almost never are. Take the two coordinate axes in . Each axis, on its own, is a perfectly good one-dimensional subspace: closed under addition, closed under scaling, containing the origin. Their union looks harmless, yet it fails the very first test of closure. Pick the vector on the -axis and on the -axis; both lie in the union, but their sum lies on neither axis and so escapes the union entirely. Closure under addition is broken, and a union of subspaces is a subspace only in the degenerate case where one already contains the other. This single picture is worth memorising: it is the fastest way to see why "closed under linear combination" is a genuinely restrictive demand and not mere bookkeeping.
The core equations
A vector space is defined by eight axioms, and it pays to see them grouped by what they do. The first four make addition into an abelian group: it is commutative and associative, it has an identity , and every vector has an additive inverse. Written together they are the entire content of "you can add vectors and undo the addition".
where: — arbitrary vectors; — vector addition; — the zero vector (additive identity); — the additive inverse of . Reading: is an abelian group, so sums may be reordered, regrouped, and cancelled at will. The remaining four axioms tie the field of scalars to the vectors. Scalar multiplication distributes over both vector addition and scalar addition, it is associative with the field's own multiplication, and the field's multiplicative identity acts trivially. These are the compatibility laws that make scalars and vectors cooperate.
where: — scalars in the field; — the product taken in ; — the multiplicative identity. Reading: the two distributive laws are what let you expand and factor linear combinations exactly as in ordinary algebra. Several facts that look like axioms are actually theorems forced by the eight above. The zero scalar annihilates any vector, any scalar annihilates the zero vector, and multiplying by produces the additive inverse. Derivation B proves the first and third from scratch.
where: — the zero scalar; — the zero vector. Reading: nothing here is assumed — each identity is squeezed out of distributivity plus the uniqueness of inverses, which is why they hold in every vector space without exception. For a subset the eight axioms collapse into one. A nonempty is a subspace exactly when it is closed under linear combinations; this single condition is the workhorse of the entire subject, tested far more often than the full definition.
where: — the candidate subset; — logical equivalence. Reading: closure under one two-parameter combination simultaneously secures (take ), closure under addition (), scalar closure (), and inverses () — Derivation A spells this out. The subspace generated by a set is its span: all finite linear combinations of its members. The span is always the smallest subspace containing the set, which is why it is the bridge from "some vectors" to "a whole subspace".
where: — any set of vectors; — a finite number of terms; — the smallest subspace containing . Reading: adding a vector already in changes nothing, which is precisely the redundancy that linear independence will later measure. Subspaces combine into new subspaces by intersection and sum, and their dimensions are linked by an exact accounting rule. The union is deliberately absent — it fails, as the second figure showed.
where: — subspaces of a common ; — the smallest subspace containing both; the dimension identity (Grassmann's formula) generalises inclusion–exclusion to subspaces. Reading: two planes in () sharing only a line () sum to all of since .
The subspace test is the single most-used tool built from the eight axioms, so it deserves a proof from first principles: we want to show that for a nonempty subset of a vector space , the lone requirement that stays in for all scalars and all members is logically equivalent to satisfying every one of the eight axioms in its own right. The strategy is to extract each structural requirement — the zero vector, additive inverses, and the two closures — as a special case of the one combination, and then to argue that the purely algebraic identities descend automatically from the ambient space.
Step 1. Since is nonempty, pick any and set : closure gives . Why: this is what guarantees a subspace is never empty in the wrong way — it must contain the origin, the quickest disqualifier when a candidate fails.
Step 2. Take to get , and take to get . Why: these are exactly closure under addition and closure under scalar multiplication, the two operations a vector space must support, now recovered separately from the single combined rule.
Step 3. Take to get , so every element has its inverse inside . Why: with and inverses in , the group structure of addition lives entirely inside the subset, not merely in the parent space.
Step 4. The remaining axioms — commutativity, associativity, distributivity, scalar associativity, and — are universally quantified identities that already hold for all elements of , and . Why: an identity true for everyone in is automatically true for the sub-collection ; only escape from could break anything, and closure has forbidden that. Hence closure alone is equivalent to the full axiom list. *Verified: matches the single-condition subspace test in Axler 1.C, Halmos §10, and Stone & Goldbart Ch. 1.*
Go deeper · Derivation B · 1 minElementary consequences: 0v = 0 and (−1)v = −v are theorems
It is tempting to treat "zero times a vector is the zero vector" and "minus-one times a vector is its inverse" as extra rules, but they are forced by the eight axioms, and proving them is the cleanest exercise in using distributivity together with the uniqueness of additive inverses. The goal is to derive both identities without appeal to any geometric picture, so that they are seen to hold in polynomial spaces, matrix spaces, and function spaces just as they do for arrows, purely as algebraic consequences.
Step 1. Write , using in the field and the distributive law . Why: distributivity is the only bridge from a statement about the scalar to a statement about the vector , and it produces a self-referential equation ready to be cancelled.
Step 2. Add the inverse to both sides: the left becomes , the right becomes . Hence . Why: cancellation is legal precisely because every vector has an inverse and addition is associative — the two group axioms doing the real work.
Step 3. Now compute , using , distributivity, and Step 2. Why: this shows is an additive inverse of ; the identity axiom and distributivity convert a claim about the scalar into one about the vector.
Step 4. Additive inverses are unique — if both invert then — so . Why: uniqueness is what lets us write "the" inverse and conclude the two expressions are literally the same vector, completing the proof. *Verified: standard results, consistent with Halmos §3, Axler 1.B; reproduces and in every vector space.*
Go deeper · Derivation C · 1 minIntersections are subspaces, unions generally are not
Combining subspaces is the everyday business of linear algebra — kernels intersected with ranges, sums of eigenspaces — so it matters to know exactly which set operations preserve the subspace property. The goal is to prove that the intersection of two subspaces is always a subspace by verifying the closure test directly, and then to demonstrate by an explicit two-line counterexample in that the union is a subspace only in the trivial case where one subspace already swallows the other.
Step 1. Both and contain , so and the intersection is nonempty. Why: the subspace test requires a nonempty set, and the shared origin is the natural witness that the intersection is not empty.
Step 2. Take and any scalars . Because is closed, ; because is closed, ; hence it lies in both, i.e. in . Why: closure holding separately in each subspace is exactly what makes it hold in their overlap, satisfying the test of equation (4).
Step 3. For the union, let and in — the two coordinate axes, each a subspace. Why: to defeat a universal claim we need only one concrete failure, and the axes are the simplest pair whose union is not a line.
Step 4. Then and , yet lies on neither axis, so and closure fails. Why: a single escaping sum is enough to disqualify the union; it is a subspace only when or , so that no such crossing sum exists. *Verified: counterexample reproducible in ; matches Axler 1.C exercises and Riley-Hobson-Bence Ch. 8.*
Limiting cases
The abstract definition specialises to a zoo of concrete spaces; recognising the same eight-axiom skeleton inside each is the skill being built here.
| Case | Result | Meaning |
|---|---|---|
| Euclidean space | the prototype; addition and scaling component-wise; over | |
| Complex space (QM states) | same skeleton, complex scalars; the arena for finite-level quantum systems before normalisation | |
| Polynomials of degree | finite-dimensional, ; vectors that are not tuples | |
| Function space | continuous functions on an interval; infinite-dimensional; later adds an inner product | |
| Solution space of | a subspace of ; homogeneity guarantees closure and | |
| Trivial subspaces | and | the smallest and largest; every space has exactly these two automatically |
Worked examples
1 · A plane through the origin versus an affine plane (fully worked)
In , decide whether is a subspace, find its dimension, and contrast it with the shifted set .
Step 1. Check the origin: , so . For , , so and is disqualified at once — it is an affine plane, not a subspace.
Step 2. Test closure in with concrete vectors. Take (since ) and (since ). Their sum gives , so . Scaling, gives , so . Both operations stay inside .
Step 3. Prove closure in general: if and , then for any the combination has coordinate sum . The single linear constraint is preserved by every linear combination, so is a subspace.
Step 4. Dimension: solve the constraint as with free. Then , so with two free parameters. is a plane through the origin of dimension — one homogeneous equation cuts down by exactly one dimension, from to .
2 · A subspace of polynomials (fully worked)
Let be the polynomials of degree (so ). Is a subspace? Find its dimension and a basis.
Step 1. The zero polynomial has , so . If and , then , so . is a subspace — evaluation at a point is a linear condition, and one linear condition always cuts out a subspace.
Step 2. Characterise the members: means divides , so every has the form with . The factor ranges over the -dimensional space .
Step 3. Read off a basis. The elements , , and all vanish at and are linearly independent (distinct degrees). Any is a combination of them, so . .
Step 4. Sanity check by counting: imposing the single independent linear constraint on the -dimensional removes exactly one dimension, giving — consistent with the basis found. One scalar constraint, one dimension lost.
3 · Two planes meet in a line (dimension bookkeeping)
In let and , both planes through the origin. Find , , and verify Grassmann's formula.
Step 1. requires and simultaneously, leaving the -axis: , a line of dimension .
Step 2. contains and from and from , hence all three axis directions: , dimension .
Step 3. Check the identity : the right-hand side is , matching . The books balance: . This is the linear-algebra echo of two homogeneous constraints intersecting — and the same accounting governs the solution spaces of coupled homogeneous differential equations.
Physics of the portrait
The vector-space axioms feel timeless, but they were written down astonishingly late — long after physicists were already computing with vectors. The person who first set them out in essentially their modern form was a logician obsessed with rigour, working from an even more obscure predecessor's ideas.
Origins · 1 minGiuseppe Peano and how this was discovered
Giuseppe Peano is remembered mostly for the axioms of arithmetic that bear his name, but in 1888, in a slim book titled Calcolo geometrico, he did something quietly revolutionary: in its ninth chapter he gave the first fully axiomatic definition of a "linear system" — what we now call a vector space over the reals — listing closure under addition and scalar multiplication and the compatibility laws in a form a modern student would recognise instantly. He even defined the dimension of such a system and discussed linear operators on it, half a century before the abstract theory became standard. Peano was building on Hermann Grassmann, whose 1844 Ausdehnungslehre had introduced -dimensional "extended magnitudes", linear independence, subspaces, and the span, but in prose so philosophical and notation so idiosyncratic that almost no one read it; Peano's achievement was to distil that sprawling vision into a crisp axiom list. For decades the definition still languished. It took Hermann Weyl, who in 1918 wrote the axioms into Raum, Zeit, Materie to give general relativity a clean linear-algebraic foundation, and then the functional analysts — above all John von Neumann, whose 1932 Mathematical Foundations of Quantum Mechanics recast quantum states as vectors in a Hilbert space — to make the abstract vector space the default language of physics. The eight axioms a student memorises today are, almost verbatim, Peano's list of 1888.
Going further
Texts. Axler, Linear Algebra Done Right, 4th ed., Ch. 1–2 (axiomatic vector spaces and subspaces) · Halmos, Finite-Dimensional Vector Spaces, §1–§10 · Stone & Goldbart, Mathematics for Physics, Ch. 1 · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 3 · Hassani, Mathematical Physics, Ch. 2 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., Ch. 8 · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 3.
Provenance. The eight axioms (4 additive + 4 scalar), the derived identities, and the subspace test are cross-checked against Axler Ch. 1–2, Halmos §1–§10, and Stone & Goldbart Ch. 1. A verifier should confirm: (1) the four abelian-group axioms and four scalar-compatibility axioms; (2) the derivations and ; (3) the single-condition subspace test and that it forces ; (4) the counterexample for unions; (5) the worked plane has dimension ; (6) has dimension with basis ; (7) Grassmann's formula giving . Dimensions quoted (, of matrices ) are standard.
Prerequisites. Fields and basic algebra · Set notation and functions. Leads to. Linear Independence, Basis, and Dimension · Linear Operators and Matrix Representations · Inner-Product Spaces and Norms · Rank, Nullity, and the Fundamental Theorem of Linear Maps.
Ask the tutor: Ask me to test any subset you name for the subspace axioms, compute the span and dimension of a set of vectors, or work through why a given collection of functions or matrices does or does not form a vector space.
Why bother with the axioms when a vector is just an arrow or a list of numbers?
Because the same theorems then apply to objects that are neither arrows nor lists. Once you prove a result from the eight axioms alone — say, that a homogeneous linear system's solutions form a subspace — it holds automatically for , for polynomials, for matrices, for quantum wavefunctions, and for the solution spaces of differential equations, without a separate proof each time. The abstraction is a labour-saving device: it isolates the one property ("closed under addition and scaling") that all these settings share and discards everything else. Arrows and coordinate lists are just the two most familiar models of the axioms, useful for intuition but not the definition itself.
What is the difference between a vector space and a subspace?
A vector space is the standalone structure defined by the eight axioms over some field. A subspace is a subset of an existing vector space that happens to be a vector space in its own right, using the same addition and scalar multiplication inherited from the parent. The crucial economy is that you never re-verify the eight axioms for a subspace: because the algebraic identities already hold throughout the parent space, a nonempty subset only needs to pass the single closure test . Every subspace is a vector space, but it is described relative to the larger space it sits inside, which is what makes "subspace of " a meaningful and restrictive phrase.
Why must every subspace contain the zero vector?
Closure forces it. If is nonempty and closed under scalar multiplication, pick any and multiply by the scalar : the derived identity shows . So the zero vector is not an extra assumption but an inevitable consequence, and this gives you the fastest possible disqualifier when testing a candidate set. If a subset does not contain the origin — like the line or the plane — you can stop immediately: it cannot be a subspace. Checking first, before any harder closure argument, saves time on the majority of textbook and exam problems.
Can a vector space be built over a field other than the real or complex numbers?
Yes, and it matters in practice. The axioms only require some field of scalars. Over the finite field , the space underlies all binary error-correcting codes, where a code is a subspace and codeword arithmetic is done modulo . Rational vector spaces over appear in number theory, and vector spaces over the field of rational functions arise in control theory and algebraic geometry. The theorems of this article — the subspace test, the derived identities, Grassmann's dimension formula — were all proved from the axioms without ever assuming the scalars were real or complex, so they carry over verbatim to any field. Only when you add lengths and angles (inner products) does the choice of or become essential.
How can functions or matrices possibly be "vectors"?
Because they satisfy the eight axioms. Two functions can be added pointwise, , and scaled, ; the zero function plays the role of , and is the additive inverse — every axiom checks out, so continuous functions on an interval form a vector space (infinite-dimensional). The same is true of matrices under entrywise addition and scaling, forming a space of dimension . Calling them "vectors" is not a metaphor; it means precisely that they live in a set obeying the axioms, so all the machinery of span, independence, basis, and dimension applies to them unchanged. This is why Fourier analysis (functions as vectors) and quantum mechanics (wavefunctions as vectors) are branches of linear algebra.
Is the span of a set really the smallest subspace containing it?
Yes, in a precise sense. The span consists of all finite linear combinations of vectors from the set . First, it is a subspace: any linear combination of linear combinations is again a linear combination, so it passes the closure test. Second, it contains (each is the trivial combination ). Third, any subspace that contains must, by its own closure, contain every linear combination of elements of — that is, all of . So is contained in every subspace containing , which is exactly what "smallest" means. Equivalently, the span is the intersection of all subspaces containing , and that intersection is a subspace because intersections of subspaces always are.