Skip to content

What is a vector space?

5 min read

Short answer

A vector space is a collection of objects (vectors) that you can add together and multiply by numbers, with the result always staying inside the collection, and with the usual algebra rules holding. Arrows in the plane, lists of numbers, polynomials and matrices all qualify. To check that a subset is a subspace, test three things: it contains 0\mathbf 0, it is closed under addition, and it is closed under scalar multiplication.

Vector space compared with Not a vector spaceVector spaceAdd two: stay insideScale one: stay insideContains the zerovectorExample: a planethrough 0Example: allpolynomialsNot a vector spaceA line not through 0The first quadrantonlyUnit-length vectorsPositive numbers,ordinary +Fails one of the rules
The test is always the same: can addition or scaling push you out of the set? If yes, it is not a vector space.

The idea without the axiom list

The formal definition lists ten axioms, but they all say the same thing: addition and scaling behave the way they do for arrows. What matters in practice is closure. Add any two members, scale any member by any real number, and you must land back in the set.

Examples: Rn\mathbb R^n; all polynomials of degree at most 3; all 2×22\times2 matrices; all continuous functions on [0,1][0,1]. Non-examples: the set of vectors with y=x+1y=x+1 (a line missing the origin) fails because it cannot contain 0\mathbf 0.

The three-step subspace test

A subset WW of a known vector space is a subspace if:

  1. 0∈W\mathbf 0\in W.
  2. u,v∈W⇒u+v∈W\mathbf u,\mathbf v\in W\Rightarrow\mathbf u+\mathbf v\in W.
  3. v∈W, c∈R⇒cv∈W\mathbf v\in W,\ c\in\mathbb R\Rightarrow c\mathbf v\in W.

You do not recheck the ten axioms, because WW inherits them from the big space.

Worked example

Is W={(x,y,z):x+y+z=0}W=\{(x,y,z):x+y+z=0\} a subspace of R3\mathbb R^3?

  1. (0,0,0)(0,0,0) satisfies 0+0+0=00+0+0=0, so 0∈W\mathbf 0\in W.
  2. If x1+y1+z1=0x_1+y_1+z_1=0 and x2+y2+z2=0x_2+y_2+z_2=0, then the sum has coordinates adding to 0+0=00+0=0. Closed under addition.
  3. If x+y+z=0x+y+z=0 then cx+cy+cz=c⋅0=0cx+cy+cz=c\cdot0=0. Closed under scaling.

All three hold, so WW is a subspace. Geometrically it is a plane through the origin.

Try it yourself

Is {(x,y):xy=0}\{(x,y):xy=0\} (the two coordinate axes together) a subspace of R2\mathbb R^2?

Show the answer

No. (1,0)(1,0) and (0,1)(0,1) are both in the set, but their sum (1,1)(1,1) has xy=1≠0xy=1\ne0, so it is not closed under addition.

Keep going with practice

Vector spaces and subspaces open Vidi's Linear Algebra & Probability course, with the vector playground to build intuition.