Vector Spaces
A vector space is one of the most powerful ideas in all of mathematics: it takes the humble arrows you drew in physics class and abstracts them into a structure so general that polynomials, functions, matrices, and even solutions to differential equations all turn out to be "vectors." Once you see this, a single toolkit — span, independence, basis, dimension — suddenly applies everywhere at once. That is the whole point of linear algebra: identify the common skeleton, prove theorems once, and reuse them forever.
The magic is that a vector space asks for surprisingly little. You need a set of objects, a way to add two of them, and a way to scale one by a number. If those two operations behave sensibly — obeying a short list of axioms — you have a vector space, and every theorem of linear algebra is instantly available to you.
Learning Objectives
- State the axioms defining a vector space and check whether a given set satisfies them.
- Recognize and verify when a subset is a subspace.
- Compute and interpret the span of a set of vectors.
- Determine whether vectors are linearly independent or dependent.
- Identify a basis and compute the dimension of a vector space.
- Understand why these abstract ideas apply to polynomials, functions, and matrices — not just arrows.
Quick Answer
A vector space over a field (usually the real numbers ) is a set with two operations — vector addition and scalar multiplication — satisfying eight axioms (closure, associativity, commutativity, an additive identity and inverses, and compatibility laws for scaling). A subspace is a subset that is itself a vector space under the same operations; you only need to check that it is nonempty and closed under addition and scaling. The span of a set of vectors is all their linear combinations. Vectors are linearly independent if no one of them is a combination of the others. A basis is a linearly independent set that spans the whole space, and the number of vectors in any basis is the dimension. Remarkably, "vectors" can be arrows, polynomials, functions, or matrices — anything obeying the axioms.
Where It Came From
For most of history, a "vector" meant a directed arrow — a tool for physics and geometry. In the early 1800s, work on complex numbers (Argand, Wessel, Gauss) showed that points in a plane could be added and scaled, and William Rowan Hamilton's quaternions (1843) and Hermann Grassmann's remarkable Ausdehnungslehre ("Theory of Extension," 1844) pushed toward a genuinely algebraic, dimension-independent view of directed quantities. Grassmann's work was so abstract and so poorly written that it was largely ignored for decades — but it planted the crucial seed: that the rules of combination mattered more than any picture of arrows.
The decisive step came from the Italian mathematician Giuseppe Peano in 1888, in his book Calcolo geometrico secondo l'Ausdehnungslehre di H. Grassmann. Peano did something nobody had done cleanly before: he wrote down the axioms of a "linear system" as an abstract structure, defined entirely by how addition and scalar multiplication behave — with no reference to arrows or coordinates at all. He even explicitly noted that the collection of all real-valued functions forms such a system, and he understood the notion of dimension as possibly being infinite.
Why did this abstraction need to happen? Because mathematicians kept rediscovering the same patterns in unrelated places: forces in mechanics, solutions of linear differential equations, systems of linear equations, and Fourier's expansions of functions all obeyed identical "add and scale" rules. Proving the same facts over and over was wasteful. Peano's axioms let you prove a theorem once about any structure satisfying the rules. The idea matured through the early 20th century — Hermann Weyl used it in relativity (1918), and Stefan Banach and others built infinite-dimensional vector spaces into the foundation of functional analysis in the 1920s. Today the axiomatic definition is the standard entry point to the entire subject.
The Abstract Definition
Let be a set whose elements we call vectors, together with a field of scalars (take throughout). We need two operations: addition producing a vector, and scalar multiplication producing a vector. Then is a vector space if these eight axioms hold for all and all scalars :
- Closure under addition: .
- Commutativity: .
- Associativity: .
- Additive identity: there is a zero vector with .
- Additive inverse: each has a with .
- Closure under scaling: .
- Distributive laws: and .
- Compatibility & identity: and .
Worked example — polynomials are vectors. Let be the set of all polynomials of degree at most 2, i.e. expressions . Add them coefficient-wise and scale them the obvious way. Take and . Then
and . The zero vector is the polynomial , and the negative of is . All eight axioms follow from the ordinary arithmetic of coefficients, so is a genuine vector space — even though none of its "vectors" is an arrow.
Subspaces
A subspace of a vector space is a subset that is itself a vector space under the same two operations. You don't need to re-check all eight axioms — most are inherited automatically. The Subspace Test says is a subspace exactly when:
- (so is nonempty and contains zero),
- is closed under addition (),
- is closed under scalar multiplication ().
Worked example. In , is the plane a subspace? Check zero: , yes. Take two members and satisfying the equation. Their sum satisfies . Scaling: . All three conditions hold, so is a subspace (a plane through the origin).
By contrast, the plane is not a subspace: it fails the very first test because does not satisfy . Any set that misses the origin cannot be a subspace.
Span
The span of vectors is the set of all linear combinations . The span is always a subspace — in fact it is the smallest subspace containing those vectors. When , we say the vectors span : every vector in is reachable by combining them.
Worked example. Do and span ? Given any target , we need scalars with , i.e.
Adding gives , so ; subtracting gives . A solution exists for every , so the two vectors span . For instance is . ✓
Linear Independence
Vectors are linearly independent if the only way to write is with every . If some nontrivial combination gives zero, they are linearly dependent — meaning at least one vector is redundant, expressible using the others. Independence is the precise sense of "no wasted vectors."
Worked example. Are , , independent? Set :
From the third equation, . Substitute into the first: . Check the second: — satisfied for any . Choosing gives , a nontrivial solution. So the vectors are dependent; indeed , since . ✓
Basis and Dimension
A basis of a vector space is a set of vectors that is (a) linearly independent and (b) spans the space. A basis is the "just right" set — enough vectors to reach everything, but none wasted. The great structural theorem is that every basis of a given vector space has the same number of vectors, and that number is the dimension, .
A basis gives every vector unique coordinates: if is a basis, then each can be written as in exactly one way. That uniqueness is what makes coordinates meaningful.
Worked example. The standard basis of is , , ; clearly uniquely, so . But bases are not unique. Consider , , . To express : we need (the only source of a third coordinate), then , then . Check: . ✓ Same space, different basis, still three vectors.
Note that has basis , so , and the space of all polynomials has infinite dimension. Dimension counts degrees of freedom, regardless of what the "vectors" look like.
Real-World Applications
- Computer graphics and games: every 3D scene lives in ; rotations, scaling, and camera projections are linear maps expressed through bases and coordinate changes.
- Data science and machine learning: a dataset with features is a collection of vectors in ; techniques like PCA find a lower-dimensional subspace (a smaller basis) that captures most of the variation.
- Signal and image processing: Fourier and wavelet analysis treat signals as vectors in an infinite-dimensional function space and re-express them in a basis of sines/cosines — exactly Peano's insight that functions are vectors.
- Engineering and physics: the solution set of a linear homogeneous differential equation is a vector space; finding a basis of solutions means solving the equation completely.
- Error-correcting codes: digital codes (used in QR codes, deep-space communication) are subspaces of vector spaces over finite fields; the code's dimension controls how much data it carries.
Common Mistakes
Mistake 1: Thinking a subspace can miss the origin. Why it's wrong: Every subspace must contain , because scaling any member by produces and closure requires it to be inside. Correction: A line or plane is a subspace only if it passes through the origin. The line is not a subspace; is.
Mistake 2: Confusing "spanning" with "independent." Why it's wrong: Spanning is about having enough vectors to reach everything; independence is about having no redundant vectors. They are different requirements. Correction: A basis needs both. In , the three vectors span but are dependent (too many); the single vector is independent but doesn't span (too few). Only a pair like does both.
Mistake 3: Believing dimension equals the number of vectors you happen to write down. Why it's wrong: You can list ten vectors in , but they can't be independent — dimension is the size of a basis, not of an arbitrary set. Correction: In an -dimensional space, any set of more than vectors is automatically dependent, and any set of fewer than vectors cannot span. Only exactly independent vectors form a basis.
Comparison and Connections
The four core concepts fit together tightly. Span and independence are opposite pressures; a basis is where they balance.
| Concept | Question it answers | Too few vectors | Too many vectors |
|---|---|---|---|
| Spanning set | Can we reach every vector? | Fails to span | Fine, but redundant |
| Independent set | Are any vectors redundant? | Fine, but incomplete | Becomes dependent |
| Basis | Both at once? | Not a basis | Not a basis |
| Dimension | How many in a basis? | — | — |
A subspace relates to the whole space the way a smaller vector space sits inside a larger one, and its dimension is always that of the parent. Span produces subspaces; basis measures them. If you have studied systems of linear equations, notice that solving is exactly finding a basis for a subspace (the null space), tying this abstract theory directly to concrete row reduction.
Practice Questions
Recall
State the three conditions of the Subspace Test. Answer: Contains the zero vector; closed under addition; closed under scalar multiplication.
Understanding
Explain in one sentence why cannot be a basis of . Answer: Because has dimension 2, any set of three vectors in it must be linearly dependent, so it cannot be an (independent) basis — here .
Application
Is a subspace of ? If so, give a basis and its dimension. Answer: Yes. It contains and is closed under both operations (the third coordinate stays ). A basis is , so (it is the -plane).
Analysis
Show that , , form a basis of . Guidance: Set , giving , , . Adding all three: , so ; subtracting each equation from this forces . So they are independent — and three independent vectors in the 3-dimensional space automatically span it, hence form a basis.
FAQ
Is a subspace of ? Not literally, because their elements have different lengths (pairs vs. triples). But contains a copy of , for example the plane , which is a genuine 2-dimensional subspace.
Can a vector space have dimension zero? Yes. The space containing only the zero vector has dimension 0; its basis is the empty set. It is the smallest possible vector space.
Why do we insist scalars form a "field"? The axioms use division-like properties of scalars (every nonzero scalar has an inverse). Fields — like , , or the rationals — guarantee this. You can build vector spaces over finite fields too, which powers coding theory.
How can functions possibly be "vectors"? Because you can add two functions and scale a function, and those operations obey all eight axioms. Peano noticed this in 1888. Treating functions as vectors is the foundation of Fourier analysis and quantum mechanics.
What's the difference between a basis and a spanning set? Every basis is a spanning set, but not vice versa. A spanning set may contain redundant vectors; a basis is a spanning set with all redundancy removed, so it is also linearly independent.
Quick Revision
- Vector space: set with addition and scalar multiplication obeying 8 axioms.
- Subspace test: contains ; closed under and scaling.
- Span: all linear combinations — always a subspace.
- Linearly independent: only when all .
- Basis: independent set that spans; gives unique coordinates.
- Dimension: number of vectors in any basis (all bases have the same size).
- In -dimensional space: more than vectors ⇒ dependent; fewer than ⇒ can't span; exactly independent ⇒ basis.
- History: Peano axiomatized vector spaces in 1888, building on Grassmann.
Related Topics
Prerequisites
Related Topics
- Systems of linear equations and matrices (null space, column space)
- Linear transformations and change of basis
Next Topics
- Eigenvalues and eigenvectors
- Inner product spaces and orthogonality