Vector Spaces

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

A vector space is a set that stays closed under addition and scaling
The plane is closed under both operationsuvu + v2u-usums and scalar multiples stay in the spacea subset can failu-u exitsx, y nonnegativepositive quadrantfails scaling
Addition
If u and v are in V, then u + v is also in V.
Scaling
If u is in V, then cu is in V for every scalar c.
Zero and opposites
Closure under all scalars forces 0 and -u to be included.
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,wV\mathbf{u}, \mathbf{v}, \mathbf{w} \in V and scalars a,ba, b:

  • Closure: u+vV\mathbf{u} + \mathbf{v} \in V and auVa\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)=ctr(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 n21n^2 - 1.

Related concepts