Examples of Vector Spaces
What do arrows in the plane, polynomials, matrices, and infinite sequences have in common? At first glance, nothing. One is geometric, one is algebraic, one is tabular, one is combinatorial. Yet all four obey exactly the same ten rules. These rules are vector addition and scalar multiplication. Together they define a vector space. The power of the vector space axioms is precisely their abstractness. They unify these wildly different objects under one theory. A single proof about, say, linear independence applies simultaneously to geometric vectors, polynomials, and matrices. This article is a gallery. Rather than proving new general theorems, its job is different. It builds the mental library of examples every linear algebra student needs. These are the spaces you will test conjectures against. They are the spaces that appear in every later theorem as "let be a vector space." They are also the spaces whose peculiarities stretch your intuition beyond the coordinate plane. These peculiarities include infinite dimension, function-valued vectors, and matrix-shaped vectors. Without a stock of concrete models, the abstract axioms feel like an empty shell. With them, the axioms become a genuinely useful classification device. The big picture is this: a vector space is any set equipped with an addition and a scalar multiplication. These operations satisfy eight or ten axioms. The axioms include commutativity, associativity, and distributivity. They also require a zero vector and additive inverses. Finally, they require compatibility of scalar multiplication. All this happens over a fixed field , usually or . The examples below are the canonical models for every abstract theorem. These include , polynomial spaces and , function spaces , matrix spaces , and sequence spaces . Every abstract theorem is secretly designed to describe them. We verify the axioms carefully for the least obvious cases. We also highlight where the verification actually requires an argument rather than a glance. By the end, you should be able to recognize a vector space "in the wild." You should be able to verify the axioms efficiently. Do this by locating the correct ambient operations. You should also see why these five families recur throughout the rest of linear algebra. This continues from Subspaces, Span and Linear Combinations onward.
- A vector space is a set with addition and scalar multiplication (over a field ) satisfying ten axioms; the operations, not the elements, define the structure.
- , the space of -tuples, is the prototype; every finite-dimensional space "looks like" some .
- (all polynomials) and (degree ) are vector spaces under ordinary polynomial addition and scalar multiplication.
- , all functions from a set to , is a vector space under pointwise operations — this includes sequence spaces as the case .
- , all matrices, is a vector space under entrywise addition and scaling; it is essentially in disguise.
- Verifying "it's a vector space" always reduces to checking closure plus the ten axioms, most of which are inherited automatically from the field .
- Key idea: a vector space is a pattern, not a place — arrows, polynomials, matrices, and infinite sequences are all the same pattern wearing different clothes.
Where this lives today
Function spaces underlie the whole of functional analysis: Hilbert spaces like and sequence spaces like are exactly vector spaces of the / type equipped with an additional inner product, used throughout quantum mechanics (state spaces of quantum systems are complex vector spaces of exactly this flavor) and signal processing (a digital signal is literally an element of a sequence space). Polynomial spaces are the natural home for polynomial interpolation and numerical approximation, and their finite-dimensionality is what makes methods like least-squares polynomial fitting computationally tractable. Matrix spaces are the working arena of numerical linear algebra, statistics (design matrices, covariance matrices), computer graphics (transformation matrices), and machine learning (weight matrices of neural network layers, which are literally added and scaled during optimization exactly as the axioms prescribe). Coordinate spaces , finally, appear everywhere as the target of coordinates once a basis is chosen — a theme developed fully once Subspaces, Span and Linear Combinations and later bases and dimension are introduced — and -type constructions appear in cryptography (infinite-dimensional code and lattice constructions) and in the theory of formal power series used in combinatorics and computer science.
Ask the tutor: Can you show me step-by-step how to check whether the set of matrices with trace zero is a vector space?
Let be a field (throughout, take or unless stated otherwise). A vector space over is a set together with two operations,
such that for all and all : 1. (Commutativity) . 2. (Associativity of addition) . 3. (Additive identity) There exists with for all . 4. (Additive inverses) For each there exists with . 5. (Multiplicative identity) for all , where is the multiplicative identity of . 6. (Associativity of scalar multiplication) . 7. (Distributivity over vector addition) . 8. (Distributivity over scalar addition) . Elements of are called vectors; elements of are called scalars. A subset does not automatically inherit vector space structure — one must specify which addition and scalar multiplication are in use, since the same underlying set can support inequivalent operations.
Intuition
The single biggest conceptual jump in linear algebra is realizing that "vector" does not mean "arrow with a tail and a head." It means "any object that can be added to another object of its kind, and scaled by a number, in a way consistent with the eight rules above." Once you accept that, a polynomial is a vector exactly as legitimately as is — and in fact these two objects behave identically under addition and scaling, because a degree- polynomial is completely determined by its coefficient triple. This suggests a picture: think of each vector space as a set of "slots" that can hold numbers, with addition and scaling acting slot-by-slot. In the slots are the coordinate positions. In the slots are the coefficients of . In the slots are the matrix entries. In a function space the "slots" are indexed by the (possibly infinite, possibly uncountable) set , one slot per point of — and a sequence space is just the special case . The unifying image is a coordinate rack: pick an index set, hang a scalar on each hook, and add/scale hook-by-hook.
The picture also flags the one genuinely new phenomenon in this article: when the index set is infinite (as in or for infinite ), there is no finite list of "coordinates," and the space cannot be spanned by finitely many vectors. This is the first hint of the distinction between finite- and infinite-dimensional spaces, a theme picked up in earnest in Subspaces, Span and Linear Combinations.
Let be a field. Each of the following is a vector space over , under the stated operations.
(a) Coordinate space . For a fixed positive integer , let
with addition and scalar multiplication .
(b) Polynomial spaces. Let be the set of all polynomials with coefficients in ,
with the usual polynomial addition and scalar multiplication. For fixed , let be the polynomials of degree at most (including the zero polynomial), with the same operations. Both are vector spaces over .
(c) Function spaces. For any nonempty set , let
with pointwise operations: and for all . Then is a vector space over .
(d) Matrix spaces. For fixed positive integers , let be the set of all matrices with entries in , with entrywise addition and entrywise scaling . Then is a vector space over .
(e) Sequence spaces. Let , with termwise addition and scaling . Then is a vector space over ; it coincides with .
Technique: for each construction, we first check closure (that and scalar multiplication really land back in the set), and then verify the eight axioms; almost all of them reduce directly to the corresponding field axioms of , applied coordinatewise, pointwise, or termwise. We do this once carefully for (c), the most general construction, and note that (a), (d), and (e) are special or structurally identical cases; then we verify (b) separately since polynomials are not literally tuples and closure of degree bounds needs a one-line argument.
Part (c): is a vector space. Closure. If are functions and , then (defined by ) and (defined by ) are again functions from to , since for each the values and are well-defined elements of (using that is closed under its own addition and multiplication). So and scalar multiplication indeed map and as required. Axiom 1 (commutativity). For and any ,
where the middle equality is commutativity of addition in the field . Since for every , the functions and are equal as functions (two functions with the same domain are equal iff they agree at every point). Hence . Axiom 2 (associativity of addition). For any ,
using associativity in at the middle step. Agreement at every gives . Axiom 3 (additive identity). Let be the constant function for all . Then for any and any , , so . Thus is an additive identity. Axiom 4 (additive inverses). Given , define by (the field-theoretic negative). Then for every , so . Axiom 5 (multiplicative identity). For and any , by the multiplicative identity axiom in ; hence . Axiom 6 (associativity of scalars). For and any ,
using associativity of multiplication in . Hence . Axiom 7 (distributivity over vector addition). For any ,
using the distributive law in . Hence . Axiom 8 (distributivity over scalar addition). For any ,
again using distributivity in . Hence . All eight axioms hold, so is a vector space over .
Part (a): . Take in Part (c). A function is exactly the same data as a tuple , and pointwise addition/scaling of such functions corresponds exactly to the coordinatewise operations defining . Since is a vector space by Part (c), so is under the stated operations (the correspondence is a relabeling, not a change of structure).
Part (e): . Take in Part (c). A sequence is precisely a function , , and termwise addition/scaling of sequences is pointwise addition/scaling of the corresponding functions. Hence literally, and it is a vector space by Part (c).
Part (d): . Take in Part (c). A matrix is precisely a function sending , and entrywise addition/scaling of matrices is exactly pointwise addition/scaling of the corresponding functions on . Since is a finite set of size , this again shows is (after relabeling entries as a single list) essentially , and it is a vector space by Part (c).
Part (b): and . Closure for . If and are polynomials (extend the shorter list of coefficients by zeros so both run to ), then
are again finite sums of powers of with coefficients in , i.e. again elements of . So is closed under both operations. Closure for . If and (allowing by convention, so the zero polynomial is included), write , (padding with zero coefficients as needed up to index ). Then has degree at most , since no coefficient with index exceeding appears; and likewise has degree at most . So is closed under both operations. The eight axioms. Identify a polynomial of degree with its coefficient tuple . Under this identification, polynomial addition and scalar multiplication correspond exactly to coordinatewise addition and scaling in (this is immediate from the definitions above: the coefficient of in is , and in is ). Since is a vector space by Part (a), and the identification carries the operations exactly, satisfies all eight axioms, with additive identity the zero polynomial and additive inverse of given by . For itself, there is no single finite bounding all degrees, so this exact tuple identification does not apply globally; instead verify the axioms directly, coefficient-by-coefficient, exactly as in the proof of Part (c) but with the index set being the (varying, finite for each polynomial) set of coefficient positions. Concretely: given any finitely many polynomials appearing in an axiom (at most three, e.g. in associativity), let be the maximum of their degrees and pad all coefficient lists with zeros to length ; the axiom then reduces to the corresponding axiom in , already established. Since is finite for any given instance of the axiom, this suffices to verify the axiom for all polynomials. The zero polynomial (, all coefficients ) is the additive identity, and (negate every coefficient) is the additive inverse of . This completes the verification of all five parts.
∎Worked examples
Example 1 (a non-obvious subset check inside , contrasted with ). Consider , polynomials of degree at most , and the two specific vectors
Let's compute directly from the axioms/operations, and simultaneously verify closure is doing real work (not just formal bookkeeping).
This has degree exactly , confirming it lies in — closure holds even though the leading coefficients and did not cancel (had we chosen coefficients that canceled the term, we'd land in , still fine). The key point demonstrated: closure of under addition/scaling is not automatic bookkeeping — it genuinely relies on the fact that adding polynomials of degree cannot produce a term of degree , since no such terms exist to add in the first place. Under the tuple correspondence of the proof, , , and
matching the coefficient list of read low-to-high degree. This confirms the identification with used in the theorem's proof is not just conceptual but numerically exact. Now contrast with : take
Then
computed entrywise exactly as the theorem's Part (d) prescribes: for each of the four positions . Both computations — one in a polynomial space, one in a matrix space — are the same linear combination operation, differing only in how the "coordinates" are laid out (as coefficients of powers of , versus as entries of a rectangular array).
Example 2 (an infinite-dimensional computation in , showing what does and does not make sense). Let , and consider two sequences in :
By definition of the vector space operations on (Part (e) of the theorem), for we compute termwise:
So the first four terms are
giving , an entirely well-defined element of : the vector space axioms guarantee this termwise recipe produces a genuine sequence, with no convergence or boundedness required, since places no analytic condition on the sequences — only pointwise (termwise) algebra matters. Notice what would go wrong if we tried to ask "what is " (entrywise product) or "what is " as if it were part of the vector space structure: neither operation is part of the vector space axioms. The vector space structure on knows only about and scalar multiplication; it says nothing about products of two vectors or about limits. This is a common point of confusion: is a legitimate vector space computation, but statements like " converges" or " is bounded" are extra structure not supplied by the vector space axioms alone (they belong to later, richer objects such as sequence spaces with norms, e.g. , which are vector spaces plus additional structure, not just vector spaces).
The theorem's proof of closure was not cosmetic. Here is what happens if we alter one of the five constructions just enough to destroy closure, while leaving every other axiom looking fine on the surface. Let , the set of polynomials of degree exactly (not "at most "), with the same polynomial addition and scalar multiplication as in . Is a vector space under these operations? Take and , both in (each has degree exactly , since the leading coefficient ). Then
which has degree , not . So : the set is not closed under the very addition operation we were trying to use. Since does not even map , the pair fails to be a vector space before we can even ask about axioms 1–8 — the addition operation is not well-defined as a map into . (Also, contains no additive identity: the zero polynomial has degree , not , so , and axiom 3 fails outright even considered in isolation.) This shows precisely why the theorem's proof insisted on checking closure before the axioms: in (degree at most ), the degree bound is preserved by addition because "at most " is closed under cancellation-or-no-cancellation of leading terms, whereas "exactly " is not — a leading term can cancel, silently dropping the degree. Requiring "at most " rather than "exactly " is the hypothesis that makes a genuine vector space, and dropping it (replacing "at most" by "exactly") breaks the conclusion.
Scope, edge cases & common traps
| Situation | What to check | Common mistake |
|---|---|---|
| vs. degree-exactly- polynomials | Closure under addition (leading terms can cancel) | Assuming "degree " sets are automatically closed |
| vs. | Whether the index set is finite or infinite | Treating as if it had "coordinates " that eventually stop |
| Function space with infinite/uncountable | Only pointwise algebra is guaranteed; no topology, no continuity, no boundedness | Assuming vectors are automatically continuous, bounded, or integrable |
| Matrix spaces | Addition only defined for same-shape matrices | Trying to add an and a matrix with |
| Real vs. complex scalars | The same set can be a vector space over or over , with different behavior | Forgetting to specify , e.g. treating as "the same" -dimensional space over and over (dimension differs: vs. ) |
| Sequence space vs. , etc. | has no convergence/boundedness restriction | Confusing (all sequences) with subspaces defined by analytic conditions |
The mathematician behind it
Origins · 1 minGiuseppe Peano and how this was discovered
Giuseppe Peano, an Italian mathematician best known to most students for the Peano axioms of arithmetic, was also the first person to write down an essentially modern, fully explicit list of vector space axioms, in his 1888 book Calcolo Geometrico. Building on Hermann Grassmann's earlier (but less formally axiomatic) theory of extension, Peano isolated exactly the closure and algebraic properties needed for "linear combination" to make sense abstractly, independent of whether the underlying objects were geometric vectors, forces, or — as this article emphasizes — polynomials, functions, or matrices. His formulation anticipated by decades the general treatment that became standard only after further work by Hermann Weyl (1918) and the Bourbaki school in the 20th century, by which point the axioms had stabilized into the form given in the definition above.
Is every vector space literally equal to one of these five examples?
Not literally, but every finite-dimensional vector space over is isomorphic to some — meaning there is a structure-preserving bijection between them, a fact proved later once bases and dimension are developed. Infinite-dimensional spaces (like , sequence spaces, or general function spaces) are not isomorphic to any , but the "index set" picture from this article's intuition section still applies with an infinite index set. So these five families are not an exhaustive list of all vector spaces, but they are a representative list: essentially every vector space you meet in an introductory course is either literally one of these, a subspace of one of these, or isomorphic to one of these.
Why does include the zero polynomial, and why is that necessary?
Every vector space must contain an additive identity element (axiom 3), and in that identity is the zero polynomial . If the zero polynomial were excluded, axiom 3 would fail outright, since there would be no vector with for all . Conventionally, the zero polynomial is assigned degree (or is simply declared to have "no degree" but to satisfy for every by convention), precisely so that it can be included in for every without contradiction.
What exactly goes wrong if I try to add two matrices of different shapes?
The addition operation on is defined entrywise, , which requires both and to have entries indexed by the same pairs with , . If is and is , there is no sensible entrywise pairing — has an entry but has no entry (since only has columns). So is simply undefined, not merely "wrong": the operation on only ever takes two same-shape matrices as input, by the very definition of the set as matrices of one fixed shape.
Is the same as or the space of convergent sequences?
as defined here (all sequences with ) is exactly the same set as , sometimes written , with no convergence condition imposed. It is not the same as the space of convergent sequences, or the space of square-summable sequences, or (sequences converging to ) — those are all proper subsets of that happen to also be vector spaces in their own right (in fact they are subspaces of ), because convergence and summability conditions are each preserved under addition and scalar multiplication. But itself imposes no such restriction.
Does the choice of field change whether something is a vector space?
Yes, fundamentally. The same underlying set can be a vector space over different fields with different properties. For instance, is a vector space over itself (of dimension , foreshadowing later material) but is also a vector space over (of dimension , with basis ), using the same addition but restricting scalars to real numbers. All five constructions in this article — , , , , — genuinely depend on which field is fixed, and the proofs given work verbatim for any field, not just or .
Why bother proving these five are vector spaces instead of just asserting it?
Because the vector space axioms are not automatically satisfied by every set with an addition-like operation — as the counterexample with degree-exactly- polynomials shows, seemingly natural constructions can fail closure or another axiom. Proving the five canonical examples rigorously accomplishes two things: it demonstrates the axiom-checking technique (reduce pointwise/entrywise/coefficientwise to the corresponding field axiom) that you will reuse whenever you meet a new candidate vector space, and it certifies that every future theorem phrased for "a vector space " really does apply to polynomials, matrices, and sequences, not merely to geometric arrows.
How does this connect to what comes after — subspaces and span?
Once you know , , , , and are vector spaces, the natural next question is which subsets of these spaces are themselves vector spaces under the inherited operations — this is the notion of a subspace. For example, is itself a subspace of , and the symmetric matrices form a subspace of . The related notion of span — the set of all linear combinations of a given list of vectors — is what lets us build up subspaces from finite lists of vectors inside any of these five examples, and is the essential next tool for measuring the "size" (dimension) of a vector space.