Definition.

A vector space over a field , or an -vector space, is an abelian group furnished with a scalar multiplication

and satisfying some axioms:

  • , the map is a homomorphism form to (1)
  • is a homomorphism of rings from to the ring of homomorphisms from to (2)

This long-winded definition of a vector space shows that they are essentially fancy abelian groups. The fact that is an abelian group implies a commutative addition operation for which is closed under. The additional axioms regarding scalar multiplication simply assert the distributivity (1) and associativity (2) of scalar multiplication. Proving results for -vector spaces without specifying any field allows us to prove incredibly general results. The most widely used fields are of course the real and the complex .

Mathematical jargon aside, vector spaces are powerful because of the level of abstraction they operate at. Part of the reason linear algebra is so widely applicable is because a very wide range of things can be represented as vectors. Such vector representations in turn form a vector space, the collection of all possible forms of said thing. Any result we derive for the abstract notion of a vector space applies to every instance of a vector space.

One example of a useful vector space from mathematics is the space of all real-valued continuous functions defined on a closed interval. Clearly, this set is closed under addition and scalar multiplication, and the other axioms also hold. Thus, we can apply any linear algebraic result to this set. For example, we can apply the Cauchy Shwartz Inequality which holds for abstract vector spaces in general, to obtain the following highly non-trivial inequality for any two real-valued continuous functions and defined on a closed interval :

Another example of a useful vector space, this time from computer science, is the space of word embeddings. This vector space forms the backbone of large language models such as ChatGPT. We can use a standard dot product to treat the space of words as a geometric inner product space. Because vectors encode semantic meaning in this space, a dot product returns the semantic similarity between words.

Resources: 3Blue1Brown video on vector spaces