4 Linear algebra

4.2 Vector spaces

We are now ready to define vector spaces. The idea is to observe that sets of column vectors, or row vectors, or more generally matrices of a given size, all come equipped with a notion of addition and scalar multiplication and all obey the same collection of simple algebraic rules, for example, that addition is commutative, that scalar multiplication distributes over vector addition, and so on. We will define a vector space as any set with operations of addition and scalar multiplication obeying similar rules to those satisfied by column vectors. The power of doing this is that it lets us apply our theory in seemingly entirely different contexts.

4.2.1 The vector space axioms

Definition 4.2.1.

Let 𝔽 be a field. An 𝔽-vector space is a set V with

  • a special element 𝟎V called the zero vector

  • an operation + called addition

  • a way to multiply elements of V by elements of 𝔽, called scalar multiplication

such that for all 𝐮,𝐯,𝐰 in V and all λ,μ in 𝔽,

  1. 1.

    𝐯+𝐰=𝐰+𝐯

  2. 2.

    𝐮+(𝐯+𝐰)=(𝐮+𝐯)+𝐰

  3. 3.

    𝟎V+𝐯=𝐯

  4. 4.

    there exists 𝐱V such that 𝐱+𝐯=𝟎V

  5. 5.

    λ(μ𝐯)=(λμ)𝐯

  6. 6.

    1𝐯=𝐯

  7. 7.

    λ(𝐯+𝐰)=λ𝐯+λ𝐰

  8. 8.

    (λ+μ)𝐯=λ𝐯+μ𝐯

You sometimes see the phrase “vector space over 𝔽”, which means the same thing as 𝔽-vector space.

4.2.2 Examples of vector spaces

The elements of vector spaces can be anything at all. They don’t have to look like column or row vectors. Here are some examples of vector spaces.

  • n is a real vector space, n is a complex vector space, and if 𝔽 is any field then 𝔽n, the set of all height n column vectors with entries from 𝔽 is an 𝔽-vector space.

  • Mm×n(), the set of all m×n matrices with real entries, is a real vector space with the zero vector being the all-zeroes matrix. Similarly for any other field.

  • {0} with the only possible operations is an 𝔽-vector space, for any field 𝔽, the zero vector space.

  • Let be the set of all functions . Define f+g to be the function given by (f+g)(x)=f(x)+g(x) and, for a real number λ and a function f, define λf by (λf)(x)=λf(x). Then is a real vector space with the zero vector being the constant function taking the value 0.

  • If A is a m×n matrix, the set of all solutions of A𝐱=0 is a vector space. This is the nullspace N(A) we met in Definition 3.6.5.

  • The set of all real solutions to the differential equation y′′+ay+by=0 is a vector space, with the definitions of addition and scalar multiplication as in above.

  • The set 𝔽[x] of all polynomials in one variable x is a 𝔽-vector space, as is the set 𝔽n[x] of all polynomials in x of degree at most n.

  • The set of magic matrices, those whose row sums and column sums are all equal, is a vector space with the usual matrix addition and scalar multiplication.