Vector spaces can be more abstract instead of our typical conceptualization. Our next example of a vector space involves a set of functions.

We define with the following:

  • If is a set, then denotes the set of functions from to . In other words, each function in takes an input from and gives an output in the field .
  • For , the sum is the function defined by
  • For all and , the product is the function defined by

for all .

This perspective generalizes the concept of vectors. While we usually think of vectors as ordered tuples (like points in ), in this more abstract setting, we treat entire functions as vectors.

As an example of the notation above, if is the interval and , then is the set of real-valued functions on the interval . This means the the domain of each function are , which is mapped to a real value .

  • The elements of the vector space are real-valued functions on , not lists. In general, a vector space is an abstract entity whose elements might be lists, functions, or weird objects.

We can show that is a vector space by considering the following:

  • If is a nonempty set, then (with the operations of addition and scalar multiplication as defined above) is a vector space over .
  • The additive identity of is the function for all , defined by:

for all .

  • For all , the additive inverse of is the function defined by:

for all .

The vector space is a special case of the vector space because each can be thought of as a function from the set to . We just write instead of writing for the -th coordinate of .

  • In other words, we can think of as .
  • Similarly, we can think of as .