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 VV over a field F\mathbb{F}, closed under addition and scalar multiplication, obeying eight axioms. Strip away the geometry and the same skeleton fits columns of numbers, m×nm\times n 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.

Key takeaways
  • A vector space over a field F\mathbb{F} (usually R\mathbb{R} or C\mathbb{C}) is a set VV with addition and scalar multiplication satisfying eight axioms: four make (V,+)(V,+) an abelian group, four tie the scalars to the vectors.
  • The axioms guarantee closure under every finite linear combination ∑iαivi\sum_i\alpha_i\mathbf{v}_i — this single closure property is the operational heart of "linearity".
  • "Obvious" facts like 0v=00\mathbf{v}=\mathbf{0}, α0=0\alpha\mathbf{0}=\mathbf{0}, and (−1)v=−v(-1)\mathbf{v}=-\mathbf{v} are theorems derived from the axioms, not extra assumptions.
  • A subspace W⊆VW\subseteq V is a nonempty subset closed under linear combinations: αu+βv∈W\alpha\mathbf{u}+\beta\mathbf{v}\in W for all u,v∈W\mathbf{u},\mathbf{v}\in W and α,β∈F\alpha,\beta\in\mathbb{F} — this one line replaces all eight axioms.
  • Every subspace contains 0\mathbf{0}; intersections and sums of subspaces are subspaces, but unions generally are not, and dimensions obey dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W)=\dim U+\dim W-\dim(U\cap W).
  • Familiar spaces — Rn\mathbb{R}^n, Cn\mathbb{C}^n, PnP_n, C[a,b]C[a,b], L2L^2, and ker⁡A\ker\mathbf{A} — 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.
The core insight

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 F2n\mathbb{F}_2^n 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 R3\mathbb{R}^3 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 R3\mathbb{R}^3 — dimensions 0,1,2,30,1,2,3. Nothing offset from the origin can qualify, because closure forces 0\mathbf{0} to belong. The first figure lays out how these nest into a single ordered structure, the subspace lattice.

Figure
The subspaces of R³ form a lattice ordered by containment: the origin at dim 0, every line through 0 at dim 1, every plane through 0 at dim 2, all of R³ at dim 3. Two distinct lines U and W meet only at the origin and span a plane, so dim(U+W) = dim U + dim W − dim(U∩W) reads 1 + 1 − 0 = 2
The lattice of subspaces of R³, ordered by containment and graded by dimension dim 3 dim 2 dim 1 dim 0 R³ (dim 3, the whole space) planes through 0 (dim 2) lines through 0 (dim 1) U W {0} (dim 0, the origin) Two distinct lines: U ∩ W = {0} and U + W = a plane, so dim(U+W) = dim U + dim W − dim(U∩W) = 1 + 1 − 0 = 2

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 R2\mathbb{R}^2. 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 (1,0)(1,0) on the xx-axis and (0,1)(0,1) on the yy-axis; both lie in the union, but their sum (1,1)(1,1) 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.

Figure
Why a union of subspaces is generally not a subspace. In R² the x-axis U and the y-axis W are each subspaces, but (1,0) ∈ U and (0,1) ∈ W add to (1,1), which lies on neither axis: (1,0) + (0,1) = (1,1) ∉ U ∪ W, so closure under addition fails
A union of subspaces breaks closure: (1,0) + (0,1) = (1,1) ∉ U ∪ W U = x-axis (dim 1) W = y-axis (dim 1) (1, 0) (0, 1) (1, 1) ∉ U ∪ W 0 Both summands lie in U ∪ W, yet their sum escapes it — so U ∪ W is not closed, not a subspace

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 0\mathbf{0}, and every vector has an additive inverse. Written together they are the entire content of "you can add vectors and undo the addition".

u+v=v+u,(u+v)+w=u+(v+w),v+0=v,v+(−v)=0(1)\mathbf{u}+\mathbf{v}=\mathbf{v}+\mathbf{u},\quad (\mathbf{u}+\mathbf{v})+\mathbf{w}=\mathbf{u}+(\mathbf{v}+\mathbf{w}),\quad \mathbf{v}+\mathbf{0}=\mathbf{v},\quad \mathbf{v}+(-\mathbf{v})=\mathbf{0} \qquad (1)

where: u,v,w∈V\mathbf{u},\mathbf{v},\mathbf{w}\in V — arbitrary vectors; +: V×V→V+:\,V\times V\to V — vector addition; 0\mathbf{0} — the zero vector (additive identity); −v-\mathbf{v} — the additive inverse of v\mathbf{v}. Reading: (V,+)(V,+) 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 11 acts trivially. These are the compatibility laws that make scalars and vectors cooperate.

α(u+v)=αu+αv,(α+β)v=αv+βv,α(βv)=(αβ)v,1 v=v(2)\alpha(\mathbf{u}+\mathbf{v})=\alpha\mathbf{u}+\alpha\mathbf{v},\quad (\alpha+\beta)\mathbf{v}=\alpha\mathbf{v}+\beta\mathbf{v},\quad \alpha(\beta\mathbf{v})=(\alpha\beta)\mathbf{v},\quad 1\,\mathbf{v}=\mathbf{v} \qquad (2)

where: α,β∈F\alpha,\beta\in\mathbb{F} — scalars in the field; αβ\alpha\beta — the product taken in F\mathbb{F}; 1∈F1\in\mathbb{F} — 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 −1-1 produces the additive inverse. Derivation B proves the first and third from scratch.

0 v=0,α 0=0,(−1)v=−v(3)0\,\mathbf{v}=\mathbf{0},\qquad \alpha\,\mathbf{0}=\mathbf{0},\qquad (-1)\mathbf{v}=-\mathbf{v} \qquad (3)

where: 0∈F0\in\mathbb{F} — the zero scalar; 0∈V\mathbf{0}\in V — 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 W⊆VW\subseteq V 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.

W is a subspace  ⟺  W≠∅ and αu+βv∈W  ∀ α,β∈F, u,v∈W(4)W \text{ is a subspace} \iff W\neq\varnothing \ \text{and}\ \alpha\mathbf{u}+\beta\mathbf{v}\in W \ \ \forall\,\alpha,\beta\in\mathbb{F},\ \mathbf{u},\mathbf{v}\in W \qquad (4)

where: WW — the candidate subset;   ⟺  \iff — logical equivalence. Reading: closure under one two-parameter combination simultaneously secures 0∈W\mathbf{0}\in W (take α=β=0\alpha=\beta=0), closure under addition (α=β=1\alpha=\beta=1), scalar closure (β=0\beta=0), and inverses (α=−1\alpha=-1) — 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".

span⁡(S)={∑i=1kαivi: k∈N, αi∈F, vi∈S}(5)\operatorname{span}(S)=\Big\{\textstyle\sum_{i=1}^{k}\alpha_i\mathbf{v}_i:\ k\in\mathbb{N},\ \alpha_i\in\mathbb{F},\ \mathbf{v}_i\in S\Big\} \qquad (5)

where: S⊆VS\subseteq V — any set of vectors; kk — a finite number of terms; span⁡(S)\operatorname{span}(S) — the smallest subspace containing SS. Reading: adding a vector already in span⁡(S)\operatorname{span}(S) 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.

U∩W and U+W={u+w} are subspaces,dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)(6)U\cap W \text{ and } U+W=\{\mathbf{u}+\mathbf{w}\} \text{ are subspaces},\quad \dim(U+W)=\dim U+\dim W-\dim(U\cap W) \qquad (6)

where: U,WU,W — subspaces of a common VV; U+WU+W — the smallest subspace containing both; the dimension identity (Grassmann's formula) generalises inclusion–exclusion to subspaces. Reading: two planes in R3\mathbb{R}^3 (2+22+2) sharing only a line (dim⁡1\dim 1) sum to all of R3\mathbb{R}^3 since 2+2−1=32+2-1=3.

Derivation AWhy one closure condition replaces all eight axioms

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 WW of a vector space VV, the lone requirement that αu+βv\alpha\mathbf{u}+\beta\mathbf{v} stays in WW for all scalars and all members is logically equivalent to WW 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 WW is nonempty, pick any u∈W\mathbf{u}\in W and set α=β=0\alpha=\beta=0: closure gives 0u+0u=0∈W0\mathbf{u}+0\mathbf{u}=\mathbf{0}\in W. 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 α=β=1\alpha=\beta=1 to get u+v∈W\mathbf{u}+\mathbf{v}\in W, and take β=0\beta=0 to get αu∈W\alpha\mathbf{u}\in W. 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 α=−1, β=0\alpha=-1,\ \beta=0 to get (−1)u=−u∈W(-1)\mathbf{u}=-\mathbf{u}\in W, so every element has its inverse inside WW. Why: with 0∈W\mathbf{0}\in W and inverses in WW, 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 1v=v1\mathbf{v}=\mathbf{v} — are universally quantified identities that already hold for all elements of VV, and W⊆VW\subseteq V. Why: an identity true for everyone in VV is automatically true for the sub-collection WW; only escape from WW 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
Derivation BElementary 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 0v=(0+0)v=0v+0v0\mathbf{v}=(0+0)\mathbf{v}=0\mathbf{v}+0\mathbf{v}, using 0=0+00=0+0 in the field and the distributive law (α+β)v=αv+βv(\alpha+\beta)\mathbf{v}=\alpha\mathbf{v}+\beta\mathbf{v}. Why: distributivity is the only bridge from a statement about the scalar 00 to a statement about the vector 0v0\mathbf{v}, and it produces a self-referential equation ready to be cancelled.

Step 2. Add the inverse −(0v)-(0\mathbf{v}) to both sides: the left becomes 0\mathbf{0}, the right becomes 0v+(0v+(−(0v)))=0v0\mathbf{v}+\big(0\mathbf{v}+(-(0\mathbf{v}))\big)=0\mathbf{v}. Hence 0v=00\mathbf{v}=\mathbf{0}. 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 v+(−1)v=1v+(−1)v=(1+(−1))v=0v=0\mathbf{v}+(-1)\mathbf{v}=1\mathbf{v}+(-1)\mathbf{v}=(1+(-1))\mathbf{v}=0\mathbf{v}=\mathbf{0}, using 1v=v1\mathbf{v}=\mathbf{v}, distributivity, and Step 2. Why: this shows (−1)v(-1)\mathbf{v} is an additive inverse of v\mathbf{v}; the identity axiom and distributivity convert a claim about the scalar −1-1 into one about the vector.

Step 4. Additive inverses are unique — if w,w′\mathbf{w},\mathbf{w}' both invert v\mathbf{v} then w=w+0=w+(v+w′)=(w+v)+w′=w′\mathbf{w}=\mathbf{w}+\mathbf{0}=\mathbf{w}+(\mathbf{v}+\mathbf{w}')=(\mathbf{w}+\mathbf{v})+\mathbf{w}'=\mathbf{w}' — so (−1)v=−v(-1)\mathbf{v}=-\mathbf{v}. 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 0v=00\mathbf{v}=\mathbf{0} and (−1)v=−v(-1)\mathbf{v}=-\mathbf{v} in every vector space.*

Go deeper · Derivation C · 1 minIntersections are subspaces, unions generally are not
Derivation CIntersections 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 R2\mathbb{R}^2 that the union is a subspace only in the trivial case where one subspace already swallows the other.

Step 1. Both UU and WW contain 0\mathbf{0}, so 0∈U∩W\mathbf{0}\in U\cap W 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 u,v∈U∩W\mathbf{u},\mathbf{v}\in U\cap W and any scalars α,β\alpha,\beta. Because UU is closed, αu+βv∈U\alpha\mathbf{u}+\beta\mathbf{v}\in U; because WW is closed, αu+βv∈W\alpha\mathbf{u}+\beta\mathbf{v}\in W; hence it lies in both, i.e. in U∩WU\cap W. 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 U=span⁡{(1,0)}U=\operatorname{span}\{(1,0)\} and W=span⁡{(0,1)}W=\operatorname{span}\{(0,1)\} in R2\mathbb{R}^2 — 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 (1,0)∈U⊆U∪W(1,0)\in U\subseteq U\cup W and (0,1)∈W⊆U∪W(0,1)\in W\subseteq U\cup W, yet (1,0)+(0,1)=(1,1)(1,0)+(0,1)=(1,1) lies on neither axis, so (1,1)∉U∪W(1,1)\notin U\cup W and closure fails. Why: a single escaping sum is enough to disqualify the union; it is a subspace only when U⊆WU\subseteq W or W⊆UW\subseteq U, so that no such crossing sum exists. *Verified: counterexample reproducible in R2\mathbb{R}^2; 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.

CaseResultMeaning
Euclidean spaceRn={(x1,…,xn):xi∈R}\mathbb{R}^n=\{(x_1,\dots,x_n):x_i\in\mathbb{R}\}the prototype; addition and scaling component-wise; dim⁡=n\dim=n over R\mathbb{R}
Complex space (QM states)Cn,  α∈C\mathbb{C}^n,\ \ \alpha\in\mathbb{C}same skeleton, complex scalars; the arena for finite-level quantum systems before normalisation
Polynomials of degree ≤n\le nPn={a0+a1x+⋯+anxn}P_n=\{a_0+a_1x+\cdots+a_nx^n\}finite-dimensional, dim⁡=n+1\dim=n+1; vectors that are not tuples
Function spaceC[a,b], (f+g)(x)=f(x)+g(x)C[a,b],\ (f+g)(x)=f(x)+g(x)continuous functions on an interval; infinite-dimensional; L2L^2 later adds an inner product
Solution space of Ax=0\mathbf{A}\mathbf{x}=\mathbf{0}ker⁡A={x:Ax=0}\ker\mathbf{A}=\{\mathbf{x}:\mathbf{A}\mathbf{x}=\mathbf{0}\}a subspace of Fn\mathbb{F}^n; homogeneity guarantees closure and 0∈ker⁡A\mathbf{0}\in\ker\mathbf{A}
Trivial subspaces{0}\{\mathbf{0}\} and VVthe 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 R3\mathbb{R}^3, decide whether W={(x,y,z):x+2y−z=0}W=\{(x,y,z):x+2y-z=0\} is a subspace, find its dimension, and contrast it with the shifted set W′={(x,y,z):x+2y−z=1}W'=\{(x,y,z):x+2y-z=1\}.

Step 1. Check the origin: 0+2(0)−0=00+2(0)-0=0, so 0∈W\mathbf{0}\in W. For W′W', 0+2(0)−0=0≠10+2(0)-0=0\neq 1, so 0∉W′\mathbf{0}\notin W' and W′W' is disqualified at once — it is an affine plane, not a subspace.

Step 2. Test closure in WW with concrete vectors. Take u=(1,0,1)\mathbf{u}=(1,0,1) (since 1+0−1=01+0-1=0) and v=(2,1,4)\mathbf{v}=(2,1,4) (since 2+2−4=02+2-4=0). Their sum u+v=(3,1,5)\mathbf{u}+\mathbf{v}=(3,1,5) gives 3+2−5=03+2-5=0, so u+v∈W\mathbf{u}+\mathbf{v}\in W. Scaling, 3u=(3,0,3)3\mathbf{u}=(3,0,3) gives 3+0−3=03+0-3=0, so 3u∈W3\mathbf{u}\in W. Both operations stay inside WW.

Step 3. Prove closure in general: if x1+2y1−z1=0x_1+2y_1-z_1=0 and x2+2y2−z2=0x_2+2y_2-z_2=0, then for any α,β\alpha,\beta the combination αu+βv\alpha\mathbf{u}+\beta\mathbf{v} has coordinate sum α(x1+2y1−z1)+β(x2+2y2−z2)=α⋅0+β⋅0=0\alpha(x_1+2y_1-z_1)+\beta(x_2+2y_2-z_2)=\alpha\cdot 0+\beta\cdot 0=0. The single linear constraint is preserved by every linear combination, so WW is a subspace.

Step 4. Dimension: solve the constraint as x=z−2yx=z-2y with y,zy,z free. Then (x,y,z)=y(−2,1,0)+z(1,0,1)(x,y,z)=y(-2,1,0)+z(1,0,1), so W=span⁡{(−2,1,0),(1,0,1)}W=\operatorname{span}\{(-2,1,0),(1,0,1)\} with two free parameters. WW is a plane through the origin of dimension 22 — one homogeneous equation cuts R3\mathbb{R}^3 down by exactly one dimension, from 33 to 22.

2 · A subspace of polynomials (fully worked)

Let P3P_3 be the polynomials of degree ≤3\le 3 (so dim⁡P3=4\dim P_3=4). Is W={p∈P3:p(1)=0}W=\{p\in P_3:p(1)=0\} a subspace? Find its dimension and a basis.

Step 1. The zero polynomial has p(1)=0p(1)=0, so 0∈W\mathbf{0}\in W. If p(1)=0p(1)=0 and q(1)=0q(1)=0, then (αp+βq)(1)=αp(1)+βq(1)=α⋅0+β⋅0=0(\alpha p+\beta q)(1)=\alpha p(1)+\beta q(1)=\alpha\cdot 0+\beta\cdot 0=0, so αp+βq∈W\alpha p+\beta q\in W. WW 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: p(1)=0p(1)=0 means (x−1)(x-1) divides pp, so every p∈Wp\in W has the form p(x)=(x−1)q(x)p(x)=(x-1)q(x) with deg⁡q≤2\deg q\le 2. The factor qq ranges over the 33-dimensional space P2P_2.

Step 3. Read off a basis. The elements x−1x-1, x2−1x^2-1, and x3−1x^3-1 all vanish at x=1x=1 and are linearly independent (distinct degrees). Any p∈Wp\in W is a combination of them, so W=span⁡{x−1, x2−1, x3−1}W=\operatorname{span}\{x-1,\ x^2-1,\ x^3-1\}. dim⁡W=3\dim W=3.

Step 4. Sanity check by counting: imposing the single independent linear constraint p(1)=0p(1)=0 on the 44-dimensional P3P_3 removes exactly one dimension, giving 4−1=34-1=3 — consistent with the basis found. One scalar constraint, one dimension lost.

3 · Two planes meet in a line (dimension bookkeeping)

In R3\mathbb{R}^3 let U={z=0}U=\{z=0\} and W={x=0}W=\{x=0\}, both planes through the origin. Find U∩WU\cap W, U+WU+W, and verify Grassmann's formula.

Step 1. U∩WU\cap W requires z=0z=0 and x=0x=0 simultaneously, leaving the yy-axis: U∩W=span⁡{(0,1,0)}U\cap W=\operatorname{span}\{(0,1,0)\}, a line of dimension 11.

Step 2. U+WU+W contains (1,0,0)(1,0,0) and (0,1,0)(0,1,0) from UU and (0,1,0),(0,0,1)(0,1,0),(0,0,1) from WW, hence all three axis directions: U+W=R3U+W=\mathbb{R}^3, dimension 33.

Step 3. Check the identity dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W)=\dim U+\dim W-\dim(U\cap W): the right-hand side is 2+2−1=32+2-1=3, matching dim⁡(U+W)=3\dim(U+W)=3. The books balance: 2+2−1=32+2-1=3. 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
GP
Giuseppe Peano
1858–1932 · the axiomatic definition of a linear system

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 nn-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.

History
1844
— Grassmann's Ausdehnungslehre introduces n-dimensional linear algebra, independence, and subspaces
1888
— Peano gives the first axiomatic definition of a vector space in Calcolo geometrico
1918
— Weyl states the vector-space axioms in Raum, Zeit, Materie for general relativity
1920
— Banach founds the theory of complete normed vector spaces
1932
— von Neumann casts quantum states as vectors in a Hilbert space

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 0v=00\mathbf{v}=\mathbf{0} and (−1)v=−v(-1)\mathbf{v}=-\mathbf{v}; (3) the single-condition subspace test and that it forces 0∈W\mathbf{0}\in W; (4) the R2\mathbb{R}^2 counterexample (1,0)+(0,1)=(1,1)(1,0)+(0,1)=(1,1) for unions; (5) the worked plane x+2y−z=0x+2y-z=0 has dimension 22; (6) W={p∈P3:p(1)=0}W=\{p\in P_3:p(1)=0\} has dimension 33 with basis {x−1,x2−1,x3−1}\{x-1,x^2-1,x^3-1\}; (7) Grassmann's formula dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W)=\dim U+\dim W-\dim(U\cap W) giving 2+2−1=32+2-1=3. Dimensions quoted (dim⁡Pn=n+1\dim P_n=n+1, dim⁡\dim of m×nm\times n matrices =mn=mn) 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 Rn\mathbb{R}^n, 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 αu+βv∈W\alpha\mathbf{u}+\beta\mathbf{v}\in W. Every subspace is a vector space, but it is described relative to the larger space it sits inside, which is what makes "subspace of R3\mathbb{R}^3" a meaningful and restrictive phrase.

Why must every subspace contain the zero vector?

Closure forces it. If WW is nonempty and closed under scalar multiplication, pick any u∈W\mathbf{u}\in W and multiply by the scalar 00: the derived identity 0u=00\mathbf{u}=\mathbf{0} shows 0∈W\mathbf{0}\in W. 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 x+y=1x+y=1 or the plane x1=1x_1=1 — you can stop immediately: it cannot be a subspace. Checking 0∈W\mathbf{0}\in W 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 F\mathbb{F} of scalars. Over the finite field F2={0,1}\mathbb{F}_2=\{0,1\}, the space F2n\mathbb{F}_2^n underlies all binary error-correcting codes, where a code is a subspace and codeword arithmetic is done modulo 22. Rational vector spaces over Q\mathbb{Q} 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 R\mathbb{R} or C\mathbb{C} become essential.

How can functions or matrices possibly be "vectors"?

Because they satisfy the eight axioms. Two functions can be added pointwise, (f+g)(x)=f(x)+g(x)(f+g)(x)=f(x)+g(x), and scaled, (αf)(x)=αf(x)(\alpha f)(x)=\alpha f(x); the zero function plays the role of 0\mathbf{0}, and −f-f 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 m×nm\times n matrices under entrywise addition and scaling, forming a space of dimension mnmn. 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 SS. 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 SS (each v∈S\mathbf{v}\in S is the trivial combination 1⋅v1\cdot\mathbf{v}). Third, any subspace WW that contains SS must, by its own closure, contain every linear combination of elements of SS — that is, all of span⁡(S)\operatorname{span}(S). So span⁡(S)\operatorname{span}(S) is contained in every subspace containing SS, which is exactly what "smallest" means. Equivalently, the span is the intersection of all subspaces containing SS, and that intersection is a subspace because intersections of subspaces always are.

Where this leads