Vector Spaces

Abstract sets closed under addition and scalar multiplication โ€” the structural framework that unifies vectors, functions, and matrices.

Vector addition: a + b = a + b
ฮ”xฮ”yaba + bOBvector avector ba + b
Definition

A vector space (or linear space) is a set VV of objects (called vectors) equipped with two operations โ€” addition and scalar multiplication โ€” satisfying certain axioms.

Key axioms: for all u,v,wโˆˆV\mathbf{u}, \mathbf{v}, \mathbf{w} \in V and scalars a,ba, b:

  • Closure: u+vโˆˆV\mathbf{u} + \mathbf{v} \in V and auโˆˆVa\mathbf{u} \in V
  • Commutativity: u+v=v+u\mathbf{u} + \mathbf{v} = \mathbf{v} + \mathbf{u}
  • Associativity: (u+v)+w=u+(v+w)(\mathbf{u} + \mathbf{v}) + \mathbf{w} = \mathbf{u} + (\mathbf{v} + \mathbf{w})
  • Zero vector: โˆƒโ€‰0:u+0=u\exists\, \mathbf{0}: \mathbf{u} + \mathbf{0} = \mathbf{u}
  • Distributivity: a(u+v)=au+ava(\mathbf{u}+\mathbf{v}) = a\mathbf{u} + a\mathbf{v}

Example vector spaces: Rn\mathbb{R}^n, polynomials of degree โ‰คn\leq n, functions on [0,1][0,1], matrices of size mร—nm \times n.

Key properties
  • Closed under addition and scalar multiplication: combining vectors never leaves the space
  • A unique zero vector 0\mathbf{0} exists, satisfying u+0=u\mathbf{u}+\mathbf{0}=\mathbf{u} for every u\mathbf{u}
  • Every vector u\mathbf{u} has an additive inverse โˆ’u-\mathbf{u} with u+(โˆ’u)=0\mathbf{u}+(-\mathbf{u})=\mathbf{0}
  • Scalar multiplication distributes over both vector addition and scalar addition
Common mistakes
  • Forgetting to check closure: a subset that "looks like" a vector space can still fail if it's not closed under addition or scaling (e.g. vectors with all-positive entries fail closure under scalar multiplication by โˆ’1-1)
  • Confusing a vector space with Rn\mathbb{R}^n specifically: polynomials, matrices, and functions are all valid "vectors" too โ€” the axioms, not the shape of the object, define a vector space
Polynomials as vectors

The set of polynomials p(x)=a0+a1x+a2x2p(x) = a_0 + a_1 x + a_2 x^2 of degree โ‰ค2\leq 2 is a vector space. You can add polynomials and scale them. The "zero vector" is the zero polynomial 0+0x+0x20 + 0x + 0x^2. The "dimension" is 3 โ€” you need 3 coefficients to specify any element.

Try it

Is the set of all nร—nn \times n matrices with trace = 0 a vector space? Check closure under addition and scalar multiplication.

Solution

Yes. If tr(A)=0\text{tr}(A) = 0 and tr(B)=0\text{tr}(B) = 0, then tr(A+B)=tr(A)+tr(B)=0\text{tr}(A+B) = \text{tr}(A)+\text{tr}(B) = 0 โ€” closed under addition. If tr(A)=0\text{tr}(A) = 0, then tr(cA)=cโ€‰tr(A)=0\text{tr}(cA) = c\,\text{tr}(A) = 0 โ€” closed under scalar multiplication. The zero matrix has trace 0. All axioms hold.

This is a subspace of the vector space of all nร—nn\times n matrices. It has dimension n2โˆ’1n^2 - 1.

Related concepts