The Axiomatic Foundation of Vector Spaces
In elementary physics, a vector is often described as a directed line segment. While intuitive, this definition is insufficient for higher mathematics. Modern linear algebra treats a Vector Space as an abstract algebraic structure—a “playground” where elements can be added together and scaled by numbers.
1. Defining the Playground
A Vector Space over a field (typically ) is a set equipped with two operations: vector addition () and scalar multiplication (). Instead of memorizing axioms as dry rules, we can view them as the “laws of physics” for our data.
Standard Euclidean Space:
The most common example is , where addition and scaling are performed component-wise. Let’s verify the Commutativity () and Distributivity () properties using NumPy.
Interactive Lab
Read the code, make a small change, then run it and inspect the output. Runtime setup messages stay outside the terminal so the result remains focused on what the program prints.
2. The Eight Axioms
For any set to be a formal Vector Space, these eight rules must hold for all and scalars :
- Commutativity: .
- Associativity: .
- Additive Identity: There is a such that .
- Additive Inverse: For every , there is a such that .
- Multiplicative Identity: .
- Compatibility: .
- Distributivity of Scalar: .
- Distributivity of Vector: .
Exercise: The Non-Vector Space
Consider the set of all points in the first quadrant: . Why does this fail to be a vector space?
Interactive Lab
Read the code, make a small change, then run it and inspect the output. Runtime setup messages stay outside the terminal so the result remains focused on what the program prints.
The failure shown above violates Closure under Scalar Multiplication. If we scale a “positive” vector by a negative number, we leave the set. Thus, the first quadrant is not a vector space.
3. Abstract Examples: Polynomials
The beauty of these axioms is that “vectors” don’t have to be arrows. They can be functions or polynomials. The set of polynomials of degree forms a vector space because adding two polynomials yields another polynomial, and the axioms hold.
Why is the set of polynomials of *exactly* degree 3 not a vector space?
4. Function Spaces
In advanced applications like Fourier analysis, we treat signals (functions) as vectors. If and are continuous functions, then is also continuous.
Interactive Lab
Read the code, make a small change, then run it and inspect the output. Runtime setup messages stay outside the terminal so the result remains focused on what the program prints.