Vector Spaces and Subspaces

April 13, 2026

Problem

Show that the set of all 2D vectors through the origin forms a vector space. Test closure under addition and scalar multiplication.

Explanation

What is a vector space?

A vector space over a field F\mathbb{F} (typically R\mathbb{R} or C\mathbb{C}) is a set VV with two operations — addition and scalar multiplication — satisfying ten axioms. For every u,v,wV\mathbf{u}, \mathbf{v}, \mathbf{w} \in V and a,bFa, b \in \mathbb{F}:

  1. u+vV\mathbf{u} + \mathbf{v} \in V (closure under addition)
  2. u+v=v+u\mathbf{u} + \mathbf{v} = \mathbf{v} + \mathbf{u} (commutativity)
  3. (u+v)+w=u+(v+w)(\mathbf{u} + \mathbf{v}) + \mathbf{w} = \mathbf{u} + (\mathbf{v} + \mathbf{w}) (associativity)
  4. There exists 0V\mathbf{0} \in V with v+0=v\mathbf{v} + \mathbf{0} = \mathbf{v} (zero vector)
  5. Every v\mathbf{v} has an inverse v-\mathbf{v} with v+(v)=0\mathbf{v} + (-\mathbf{v}) = \mathbf{0}
  6. avVa \mathbf{v} \in V (closure under scalar multiplication)
  7. a(bv)=(ab)va(b \mathbf{v}) = (ab) \mathbf{v}
  8. 1v=v1 \cdot \mathbf{v} = \mathbf{v}
  9. a(u+v)=au+ava(\mathbf{u} + \mathbf{v}) = a \mathbf{u} + a \mathbf{v}
  10. (a+b)v=av+bv(a + b) \mathbf{v} = a \mathbf{v} + b \mathbf{v}

Subspaces — the efficient test

A subspace of a vector space VV is a subset WVW \subseteq V that is itself a vector space. To check whether WW is a subspace, you only need three things:

  1. WW contains the zero vector 0\mathbf{0}.
  2. WW is closed under addition: u,vW    u+vW\mathbf{u}, \mathbf{v} \in W \implies \mathbf{u} + \mathbf{v} \in W.
  3. WW is closed under scalar multiplication: vW,cF    cvW\mathbf{v} \in W, c \in \mathbb{F} \implies c \mathbf{v} \in W.

The other seven axioms are inherited automatically from VV.

Step-by-step — is the set of all 2D vectors a vector space?

V=R2V = \mathbb{R}^2, the set of all pairs (x,y)(x, y).

Zero vector: 0=(0,0)R2\mathbf{0} = (0, 0) \in \mathbb{R}^2

Closure under addition: if (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) are in R2\mathbb{R}^2, then (x1,y1)+(x2,y2)=(x1+x2,y1+y2)R2(x_1, y_1) + (x_2, y_2) = (x_1 + x_2, y_1 + y_2) \in \mathbb{R}^2 ✓

Closure under scalar multiplication: if cRc \in \mathbb{R} and (x,y)R2(x, y) \in \mathbb{R}^2: c(x,y)=(cx,cy)R2c(x, y) = (cx, cy) \in \mathbb{R}^2 ✓

The other axioms (commutativity, associativity, distributivity) follow from the same properties of real numbers. So R2\mathbb{R}^2 is a vector space.

Examples of subspaces of R2\mathbb{R}^2

  • The zero subspace {0}\{\mathbf{0}\} — trivial but valid.
  • Any line through the origin, e.g. {(t,2t):tR}\{(t, 2t) : t \in \mathbb{R}\}.
  • R2\mathbb{R}^2 itself (every vector space is a subspace of itself).

Non-subspaces (common traps):

  • A line not through the origin, e.g. {(x,y):y=2x+1}\{(x, y) : y = 2x + 1\}. Fails the zero-vector test.
  • The first quadrant {(x,y):x0,y0}\{(x, y) : x \ge 0, y \ge 0\}. Not closed under scalar multiplication (multiplying by 1-1 leaves the set).
  • The unit disk {(x,y):x2+y21}\{(x, y) : x^2 + y^2 \le 1\}. Not closed under scalar multiplication (2(0.7,0)=(1.4,0)2 \cdot (0.7, 0) = (1.4, 0) leaves the disk).

Why vector spaces matter

Vector spaces are the abstract setting where linear algebra lives. Once you have a vector space, concepts like linear combinations, independence, bases, and dimension all make sense — and they apply to far more than arrows in Rn\mathbb{R}^n: polynomials, matrices, continuous functions, solutions to homogeneous ODEs, and more are all vector spaces.

Common mistakes

  • Checking only one of the three subspace criteria. You need all three (plus the zero vector).
  • Forgetting negative scalars. A set closed under positive scalars but not negative ones (like the first quadrant) fails.
  • Assuming every line is a subspace. Only lines through the origin are subspaces; shifted lines are called affine subspaces, which are different.

Try it in the visualization

Draw candidate sets (lines through/off origin, half-planes, disks). Toggle the three subspace checks — each lights green or red based on whether the candidate satisfies it.

Interactive Visualization

Parameters

Line through origin (y = 2x)
-1.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Vector Spaces and Subspaces | MathSpin