Finite-dimensional Vector Space
ElementryPrerequisites
Most of the mathematics behind computer graphics, machine learning, and physics simulations happens inside a vector space. Before you can work with matrices, transformations, or gradients, you need to understand the stage they perform on. That stage is a vector space.
Vectors: beyond arrows
You have probably seen vectors drawn as arrows. That picture is helpful for intuition, but the real idea is more general. A vector is any object that you can add to another vector and scale by a number — as long as those two operations obey a specific list of rules. The collection of all such vectors is called a vector space.
Under this definition, arrows in the plane are vectors. So are ordered lists of numbers. In more advanced settings, even functions and polynomials can be vectors. What ties them all together is the same short list of rules.
The formal definition
A vector space over the real numbers is a set equipped with two operations:
- Vector addition: for any , their sum .
- Scalar multiplication: for any and , the product .
These operations must satisfy eight axioms for all and :
| # | Name | Rule |
|---|---|---|
| 1 | Associativity of addition | |
| 2 | Commutativity of addition | |
| 3 | Additive identity | There exists with |
| 4 | Additive inverse | There exists with |
| 5 | Multiplicative identity | |
| 6 | Associativity of scalar mult. | |
| 7 | Distributivity over vector addition | |
| 8 | Distributivity over scalar addition |
Every rule here is something you already take for granted with ordinary numbers. The point of listing them explicitly is that they are the only things you need — once you confirm these eight hold for any set and its operations, all the machinery of linear algebra comes along for free.
The canonical example:
The most important vector space for a beginner is — the set of all ordered -tuples of real numbers:
Addition and scalar multiplication are defined component-wise:
The zero vector is , and the additive inverse of is . Checking all eight axioms for these definitions is a good exercise that makes the abstract rules feel concrete.
When you recover the familiar 2-D plane; when , ordinary 3-D space. Nothing in the definition stops you from going higher.
Span, basis, and dimension
Span
Given a set of vectors in a vector space , their span is the set of all linear combinations you can form from them:
If the span equals all of , then spans — every vector in the space can be built from these vectors.
Linear independence
A set of vectors is linearly independent if none of them can be written as a linear combination of the others. Equivalently, the only solution to:
is . If any can be non-zero, the set is linearly dependent — it contains redundancy.
Basis and dimension
A basis of is a set of vectors that is both linearly independent and spans . Think of it as the smallest set from which every vector in can be assembled exactly once.
A remarkable fact: every basis of a given vector space has exactly the same number of vectors. That number is called the dimension of , written .
For , the standard basis is:
This basis contains vectors, so . Any vector decomposes as:
The coordinates are exactly the coefficients of in the standard basis.
Finite-dimensional
A vector space is finite-dimensional if it has a finite basis — equivalently, if . All of for concrete values of are finite-dimensional. Spaces of functions are typically infinite-dimensional, but those come later.
Subspaces
A subspace of is a non-empty subset that is itself a vector space under the same operations. You don’t need to recheck all eight axioms — you only need three:
- for all (closed under addition)
- for all , (closed under scalar multiplication)
The remaining axioms are inherited automatically from .
Some examples in : the origin (dimension 0), any line through the origin (dimension 1), any plane through the origin (dimension 2), and itself (dimension 3) are all subspaces. Notice the requirement “through the origin” — a plane that misses the origin does not contain and fails condition 1.
Summary
- A vector space over is a set with addition and scalar multiplication satisfying eight axioms.
- — ordered -tuples with component-wise operations — is the prototypical example; .
- The span of a set is all linear combinations you can form from it.
- A set is linearly independent if no vector in it is a linear combination of the others.
- A basis is a linearly independent spanning set; all bases of have the same size, called the dimension.
- A subspace is a subset closed under addition, scalar multiplication, and containing .
- Finite-dimensional means the space has a finite basis.