Vectors and Vector Spaces
Recall prompts
Section titled “Recall prompts”Attempt these from memory before reading.
- What two operations define a vector space?
- How many axioms are there, and what are the two identity elements?
- Is the empty set a vector space? Why not?
- What is the smallest subspace any vector space has?
- Give three examples of vector spaces that are not .
Check your answers against the text. Prompt 3 is the one that stops people writing nonsense: an empty set has no zero vector, and the axioms cannot even be stated without one.
Motivation: the axioms are reverse-engineered, not invented
Section titled “Motivation: the axioms are reverse-engineered, not invented”A definition in mathematics is often presented as a decree. The definition of a vector space is better read as the answer to a question: what is the smallest structure that makes linear combinations meaningful?
Everything on this page exists so that the phrase "" has a unique answer that stays in the set. That requires two operations (add the vectors, scale by a scalar), associativity and commutativity so that order does not matter, identities so that “add nothing” and “scale by one” do something sensible, and distributivity so that scaling distributes over the two kinds of addition. The axioms are not a list to memorise — they are the minimum conditions under which the phrase you already wanted to write is well defined.
Why this is worth the abstraction. The same eight axioms are satisfied by arrows in space, by polynomials, by continuous functions, by solutions of a differential equation, and by -tuples of any field. Nothing in the theory refers to what the vectors are — only to what you can do with them. One proof covers all of them, which is the entire point of axiomatising.
The non-obvious example is the most useful one. The set of solutions of a homogeneous linear differential equation is a vector space: adding two solutions gives a solution, and scaling one gives a solution. That single observation is why the solution space of a homogeneous ODE has a dimension, and why “general solution” means “linear combination of independent solutions”. Without the vector space axioms, that sentence has no meaning.
Exercise. Check that the set of polynomials of degree at most 3 is a vector space, and find its dimension. Then check that the polynomials of degree exactly 3 are not, and identify which axiom fails.
1.1 Definition of a Vector Space
Section titled “1.1 Definition of a Vector Space”A vector space over a field ( or ) is a set equipped With two operations:
- Vector addition:
- Scalar multiplication:
Satisfying the following axioms for all and all :
- Commutativity:
- Associativity of addition:
- Additive identity: There exists such that
- Additive inverse: For each There exists such that
- Compatibility of scalar multiplication:
- Identity element of scalar multiplication:
- Distributivity over vector addition:
- Distributivity over scalar addition:
Intuition. The abstract definition captures the algebraic structure shared by diverse objects: Geometric arrows, polynomials, functions, matrices. The axioms encode exactly what we need for Linear combinations to behave reasonably.
1.2 Examples
Section titled “1.2 Examples”Example 1. with component-wise addition and scalar multiplication is a vector space Over .
Example 2. The set of all polynomials of degree at most with real coefficients, With the usual polynomial addition and scalar multiplication, is a vector space over . Its dimension is With standard basis .
Example 3. The set of all continuous real-valued functions on With point-wise Addition and scalar multiplication, is a vector space over . This space is Infinite-dimensional.
Example 4. The set of all real matrices is a Vector space over .
Example 5 (Function spaces). The set of all functions is a vector space over under point-wise addition and scalar multiplication . The spaces of -times continuously differentiable functions and of square-integrable functions are important subspaces of .
Example 6 (Sequence spaces). The set of all real sequences With is a vector space over . This is the Infinite-dimensional analogue of and is fundamental in functional analysis.
1.3 Subspaces
Section titled “1.3 Subspaces”A subspace of a vector space is a subset that is itself a vector space under the same operations.
Theorem 1.1 (Subspace Criterion). A non-empty subset is a subspace if and only If for all and all :
- (closed under addition)
- (closed under scalar multiplication)
Proof. If is a subspace, closure is immediate from the definition. Conversely, if is non-empty and closed under both operations, pick . Then By closure under scalar multiplication, and by closure Under addition. The remaining axioms are inherited from .
Proposition 1.2 (Closure under Linear Combinations). If is a subspace of Then is Closed under all finite linear combinations: for all and all
Proof. We proceed by induction on . For , by closure under Scalar multiplication. Assume the result holds for vectors. Then
By the inductive hypothesis, And by closure under scalar multiplication. Their sum is in by Closure under addition.
Example 7. The set of all solutions to the homogeneous equation forms a Subspace of Called the null space of .
1.4 Worked Example: Verifying Subspace Criteria
Section titled “1.4 Worked Example: Verifying Subspace Criteria”Problem. Determine whether each of the following subsets of is a subspace.
(a)
(b)
(c)
Solution
(a) Let and be in So and . Then
So . For
So . Since is non-empty (e.g., ), it is a subspace.
(b) is not a subspace. For instance, since But since . So is not closed under scalar multiplication.
(c) Let and be in . Then and . Since It is a non-empty subspace.
1.5 Worked Example: Sum and Intersection of Subspaces
Section titled “1.5 Worked Example: Sum and Intersection of Subspaces”Problem. Let (the -plane) and (the -plane). Find and And verify the dimension formula.
Solution
has basis and . has basis and .
Which has basis and dimension 1.
so .
Verify: .
1.6 Intuition: What Does a Vector Space Capture Geometrically?
Section titled “1.6 Intuition: What Does a Vector Space Capture Geometrically?”The eight axioms of a vector space are not arbitrary rules; they encode exactly the algebraic structure needed for the notion of “linear combination” to be meaningful. When you write , you are performing two geometric operations: stretching () and then adding (). The axioms guarantee that this operation behaves as your geometric intuition demands:
- Commutativity () means that the order in which you place two arrows head-to-tail does not matter. Geometrically, the parallelogram rule gives the same diagonal regardless of which side you traverse first.
- Associativity () means that when adding three vectors, the grouping is irrelevant. You can slide parentheses freely without changing the result.
- Additive identity () means there exists a “do nothing” element: adding the zero vector leaves any vector unchanged, just as a displacement of zero does not move you.
- Additive inverse () means every displacement can be undone. If moves you from to , then moves you back from to .
- Distributivity () means scaling distributes over addition: stretching the diagonal of a parallelogram is the same as stretching each side and then forming the diagonal.
The power of the abstract definition is that it applies to objects that have no obvious geometric meaning as arrows. The set of matrices, the set of polynomials of degree , and the set of continuous functions on all satisfy the same axioms. This means that any theorem proved using only the vector space axioms (such as the dimension formula or the rank-nullity theorem) automatically applies to all these seemingly unrelated objects.
Connection to other areas. Vector spaces are the stage on which linear algebra, functional analysis, and quantum mechanics are performed. In quantum mechanics, the state of a physical system is a vector in a complex Hilbert space (a complete inner product vector space), and observables are linear operators on that space. The superposition principle in physics is precisely the statement that linear combinations of state vectors are again valid states.
1.7 Worked Example: Infinite-Dimensional Vector Space
Section titled “1.7 Worked Example: Infinite-Dimensional Vector Space”Problem. Let be the vector space of continuous functions on . Show that the subset is a subspace of .
Solution
We verify the subspace criterion.
Non-empty: The zero function satisfies , so .
Closure under addition: Let , so and . Then , so .
Closure under scalar multiplication: Let and . Then , so .
By the subspace criterion, is a subspace of .
Geometric intuition: is the subspace of functions that “start at the origin.” In the infinite-dimensional space , this is a closed hyperplane (codimension 1 subspace). The complementary subspace consists of constant functions: every can be written uniquely as , where and is a constant function.
1.8 Worked Example: Null Space as a Subspace
Section titled “1.8 Worked Example: Null Space as a Subspace”Problem. Let . Find a basis for and verify it is a subspace of .
Solution
Row-reduce :
The RREF has one pivot (column 1). The free variables are and . Setting , : .
A basis is and .
Verification that null(A) is a subspace: This follows from the general theorem that the null space of any matrix is a subspace. Geometrically, is the set of all vectors such that , i.e., the vectors that “collapses” to the origin. Since is a linear map, the preimage of the origin is always a subspace. This is a consequence of the fact that linear maps send subspaces to subspaces, and the inverse image of a subspace under a linear map is a subspace.
Dimension check: By rank-nullity, . Since (one pivot), , consistent with our basis.
1.9 Common Pitfalls
Section titled “1.9 Common Pitfalls”- The empty set is not a vector space. The subspace criterion requires the subset to be non-empty. The trivial subspace is the smallest subspace of any vector space.
- Non-homogeneous conditions do not define subspaces. The set of solutions to with is not a subspace (it is an affine subspace, or coset of the null space). For example, is a line in that does not pass through the origin.
- Closure must hold for all scalars. A set that is closed under addition and multiplication by positive scalars is not necessarily a subspace; it must also be closed under multiplication by . For example, the first quadrant is closed under addition and positive scalar multiplication, but is not in the first quadrant.
- Do not confuse the field with the vector space. is a field, but it is also a vector space over itself (of dimension 1). is a vector space over (of dimension 2), but it is not a field (you cannot multiply arbitrary pairs of vectors).
- Dimension is a property of the space, not the embedding. The polynomial space has dimension 4, even though its elements are “logically” embedded in , which is infinite-dimensional. The dimension depends on the vector space structure, not on how the space sits inside a larger space.
Intuition
Section titled “Intuition”A vector space is any collection of objects that can be added together and scaled by numbers in the same way that arrows in space can. The power of the abstraction is that it applies far beyond geometry. Polynomials behave like vectors: you can add two polynomials and multiply one by a scalar. Functions behave like vectors: you can add two functions pointwise and multiply one by a constant. Even sequences of numbers form vector spaces. The axioms are directly the rules that make “linear combinations” meaningful — they guarantee that scaling and adding behave the way your geometric intuition expects.
The connection to function spaces is where the abstraction pays off most. In quantum mechanics, the state of a particle is a vector in an infinite-dimensional function space (a Hilbert space). The Schrodinger equation is a linear operator acting on these vectors, and solving it is structurally identical to solving a system of linear equations — except the “matrix” is replaced by a differential operator and the “vector” is a wavefunction. This is why linear algebra is the language of quantum theory: the superposition principle is literally the closure of a vector space under linear combinations.
Counterexamples worth knowing by name
Section titled “Counterexamples worth knowing by name”| Claim | True? | Counterexample |
|---|---|---|
| The empty set is a vector space | no | the axioms require a zero vector, so no vector space is empty |
| is a subspace of | no | it is isomorphic to a subspace; as literally written its elements are pairs, not triples |
| The union of two subspaces is a subspace | no | two distinct lines through the origin have a union that is not closed under addition |
| Polynomials of degree exactly form a vector space | no | adding two of them can cancel the leading term |
| Every vector space has a zero vector | yes, and it is unique | this follows from the axioms, and it is the reason the empty set fails |
| The solution set of is a subspace | no | unless ; it does not contain the zero vector |
| A vector space needs an order on its vectors | no | the axioms never mention one; imposing one is an extra structure, not part of the space |
| Functions form a vector space only if they are continuous | no | all functions from a set to a field form a vector space; continuity is extra structure |
The third row is the classic, and it is worth seeing why: the union of the -axis and the -axis contains and but not their sum. The sum of subspaces is a subspace; the union almost never is.
The seventh row is the one that matters for the rest of mathematics. A vector space has no notion of length, angle or order. Those come later — inner product spaces, normed spaces, ordered fields — and confusing an added structure with part of the definition is how people end up trying to take “intra-vector” dot products before an inner product has been defined.
Where the research frontier is
Section titled “Where the research frontier is”- Infinite-dimensional spaces. Everything here carries over, but bases become unconstructible and dimension becomes a cardinal. That is the boundary between algebra and functional analysis, and it is crossed on the functional analysis track.
- Fields other than and . Vector spaces over a finite field underpin error-correcting codes and cryptography, and the theory changes character when the field is not ordered.
- Modules. Drop the requirement that the scalars form a field and keep a ring, and bases can stop existing entirely. The structure theorem for finitely generated modules over a principal ideal domain is what survives, and it is what produces the Jordan form.
- Category theory. Vector spaces and linear maps form a category, and the whole of linear algebra can be restated as the statement that this category has certain properties. That restatement is what makes quantum information theory possible to write down.
Interleaving problems
Section titled “Interleaving problems”Mix these with Linear Independence, Span, Basis and Dimension, Systems of Linear Equations, Newtonian Mechanics Review and Functional Analysis.
- (Axioms.) Verify that the set of all matrices is a vector space over , listing each axiom as you check it. Then show that the invertible ones are not, by exhibiting a failure of closure.
- (Subspaces.) Show that the set of polynomials with is a subspace of the polynomial space, and find its dimension.
- (Subspaces.) Give two subspaces of whose union is not a subspace, and compute the smallest subspace containing both.
- (Null space.) Show that the solution set of a homogeneous system is a subspace, and identify exactly which step fails when .
- (Functional analysis.) Show that the set of solutions of is a two-dimensional vector space, and find a basis. Then explain why this makes “general solution” a precise statement.
- (Research.) Show that the axiom “every vector space has a basis” implies the axiom of choice. This is why infinite-dimensional bases are unconstructible and why analysis avoids them.
Cross-References
Section titled “Cross-References”- Linear Independence, Span, Basis, and Dimension: Basis and dimension are defined in terms of linear independence and span of vector space elements.
- Matrices: Matrices represent linear transformations between finite-dimensional vector spaces.
- Linear Transformations: Linear transformations are maps between vector spaces that preserve linear structure.
- Quantum Mechanics
- Graph Theory