Vector spaces and subspaces

Every arrow-diagram you have ever drawn in R2\mathbb{R}^2 or R3\mathbb{R}^3 — adding vectors tip to tail, scaling them, taking combinations — obeys a short list of algebraic rules. A vector space is what you get when you keep only those rules and throw away the arrows: any set where addition and scaling behave sensibly is a vector space, whether its "vectors" are matrices, polynomials, or genuine geometric arrows. This topic opens the Vector spaces, transformations, and eigenvalue problems unit of MA10002, and it hands you the vocabulary — closure, subspace, the subspace test — that every later topic in the unit (independence, basis, linear maps, eigenvalues) is stated in. The practical skill you need is quick: given a set with proposed operations, decide whether it is a vector space, or whether a subset is a subspace, using a short closure check rather than grinding through all six axioms every time.

The core insight

A set is a vector space when addition and scalar multiplication stay inside the set and obey the usual algebra, and a subset is a subspace exactly when it is closed under linear combinations and contains the zero vector.

The core idea

A vector space VV over a field F\mathbb{F} (take F=R\mathbb{F} = \mathbb{R} unless told otherwise) is a set with two operations, vector addition and scalar multiplication, satisfying six axioms for all u,v,w∈V\mathbf u, \mathbf v, \mathbf w \in V and α,β∈F\alpha, \beta \in \mathbb{F}: closure of both operations, associativity and commutativity of addition, existence of an additive identity 0\mathbf 0 and additive inverses, compatibility of scalar multiplication (α(βu)=(αβ)u\alpha(\beta \mathbf u) = (\alpha\beta)\mathbf u, 1⋅u=u1 \cdot \mathbf u = \mathbf u), and the two distributive laws. Familiar examples reused throughout the unit: Rn\mathbb{R}^n with componentwise operations, the set Mm×n(R)M_{m\times n}(\mathbb{R}) of m×nm \times n matrices, and the set PnP_n of polynomials of degree at most nn. Checking all six axioms from scratch every time is wasteful once you already know VV is a vector space. A subspace WW of VV is a subset that is itself a vector space under VV's own operations, and since W⊆VW \subseteq V, the inherited axioms (associativity, commutativity, distributivity) come for free. Only closure needs checking, packaged as the subspace test:

u,v∈W, α,β∈F  ⟹  αu+βv∈W.\mathbf u, \mathbf v \in W,\ \alpha, \beta \in \mathbb{F} \implies \alpha\mathbf u + \beta\mathbf v \in W.

where: WW is the candidate subset of VV, u,v\mathbf u, \mathbf v are arbitrary elements of WW, and α,β\alpha, \beta are arbitrary scalars from F\mathbb{F} — the test says any linear combination of members of WW must land back inside WW. In practice this splits into two separate checks that are easier to verify one at a time: closure under addition (u+v∈W\mathbf u + \mathbf v \in W) and closure under scalar multiplication (αu∈W\alpha\mathbf u \in W), plus the quick necessary screen that 0∈W\mathbf 0 \in W — if the zero vector fails the defining condition of WW, you can reject it as a subspace immediately, no further algebra needed. Every genuine subspace contains 0\mathbf 0; the trivial subspace {0}\{\mathbf 0\} and VV itself are always subspaces of any VV. Geometry gives the fastest intuition in R2\mathbb{R}^2 and R3\mathbb{R}^3: lines and planes through the origin are subspaces, while lines and planes that miss the origin are not (they fail the zero-vector screen outright). This single picture — through the origin or not — resolves most exam-level subspace questions before you write a single equation, though you should still confirm it algebraically.

Figure
Two planes in three dimensional space one through the origin shown as a valid subspace and one offset from the origin shown as not a subspace
Through the origin — subspace or not plane through origin 0 IS a subspace plane offset from origin 0 NOT a subspace

Subspace test applied to a plane through the origin

The most common exam task is applying the subspace test to a set defined by one equation, and the goal here is to establish once and for all, with full closure-under-addition and closure-under-scalar-multiplication algebra rather than a geometric guess, that the solution set of a single homogeneous linear equation in R3\mathbb{R}^3 is always a subspace, which is the fact behind "planes through the origin are subspaces."

Step 1. State the set and check the zero-vector screen. Let W={(x,y,z)∈R3:x+2y−z=0}W = \{(x,y,z) \in \mathbb{R}^3 : x + 2y - z = 0\}. Testing (0,0,0)(0,0,0): 0+2(0)−0=00 + 2(0) - 0 = 0, so 0∈W\mathbf 0 \in W and the set survives the quick necessary check.

Step 2. Check closure under addition. Take u=(x1,y1,z1)\mathbf u = (x_1,y_1,z_1) and v=(x2,y2,z2)\mathbf v = (x_2,y_2,z_2), both satisfying the defining equation: x1+2y1−z1=0x_1 + 2y_1 - z_1 = 0 and x2+2y2−z2=0x_2 + 2y_2 - z_2 = 0. Their sum is u+v=(x1+x2, y1+y2, z1+z2)\mathbf u + \mathbf v = (x_1+x_2,\ y_1+y_2,\ z_1+z_2), and substituting into the defining equation gives (x1+x2)+2(y1+y2)−(z1+z2)=(x1+2y1−z1)+(x2+2y2−z2)=0+0=0(x_1+x_2) + 2(y_1+y_2) - (z_1+z_2) = (x_1+2y_1-z_1) + (x_2+2y_2-z_2) = 0 + 0 = 0, so u+v∈W\mathbf u + \mathbf v \in W.

Step 3. Check closure under scalar multiplication. For any α∈R\alpha \in \mathbb{R}, αu=(αx1,αy1,αz1)\alpha\mathbf u = (\alpha x_1, \alpha y_1, \alpha z_1), and αx1+2αy1−αz1=α(x1+2y1−z1)=α⋅0=0\alpha x_1 + 2\alpha y_1 - \alpha z_1 = \alpha(x_1 + 2y_1 - z_1) = \alpha \cdot 0 = 0, so αu∈W\alpha\mathbf u \in W.

Step 4. Conclude. All three checks pass, so WW is a subspace of R3\mathbb{R}^3. The argument used nothing special about the coefficients 1,2,−11, 2, -1: for any homogeneous linear equation ax+by+cz=0ax + by + cz = 0, the same three steps go through unchanged (the right-hand side stays 00 under both addition and scaling), which is exactly why every homogeneous linear equation in Rn\mathbb{R}^n defines a subspace, and why a right-hand side other than zero would break Step 1 at the very first hurdle.

Worked example

Problem. Is W={(x,y)∈R2:xy≥0}W = \{(x,y) \in \mathbb{R}^2 : xy \ge 0\} a subspace of R2\mathbb{R}^2?

Step 1. Identify WW geometrically: it is every point where xx and yy have the same sign or one of them is zero — the closed first and third quadrants together.

Step 2. Search for a counterexample to closure under addition rather than trying to prove closure holds. Pick u=(1,1)\mathbf u = (1,1), with xy=1≥0xy = 1 \ge 0 so u∈W\mathbf u \in W, and v=(−2,0)\mathbf v = (-2,0), with xy=0≥0xy = 0 \ge 0 so v∈W\mathbf v \in W.

Step 3. Form the sum and test it: u+v=(1,1)+(−2,0)=(−1,1)\mathbf u + \mathbf v = (1,1) + (-2,0) = (-1,1), and (−1)(1)=−1<0(-1)(1) = -1 < 0, so u+v∉W\mathbf u + \mathbf v \notin W.

Step 4. Conclude. Since u,v∈W\mathbf u, \mathbf v \in W but their sum is not, closure under addition fails, so WW is not a subspace of R2\mathbb{R}^2 — it is the union of quadrants I and III, a set that is not even convex, let alone closed under vector addition.

Competitive stretch

Extend the same idea to U={(x,y)∈R2:x≥0, y≥0}U = \{(x,y) \in \mathbb{R}^2 : x \ge 0,\ y \ge 0\} (the first quadrant alone). Closure under addition does hold here (adding two non-negative pairs gives a non-negative pair), so a hasty check might call it a subspace. But test scalar multiplication with a negative scalar: α=−1\alpha = -1 on (1,1)∈U(1,1) \in U gives (−1,−1)∉U(-1,-1) \notin U. UU fails the scalar-multiplication half of the test and is not a subspace, which is exactly the trap the first common trap below warns about.

Common traps

  • Believing closure under addition alone is enough — scalar multiplication, especially by negative scalars, must be checked separately, and it is what breaks sets like the first quadrant.
  • Skipping the quick 0∈W\mathbf 0 \in W screen — if zero fails the defining condition, you can reject the subset immediately, saving the addition and scalar-multiplication algebra entirely.
  • Confusing "is a vector space on its own" with "is a subspace of a bigger space" — a subspace must reuse the ambient space's exact operations, not a new addition or scaling rule.
  • Assuming any equation-defined subset is automatically a subspace — only a homogeneous linear equation (right-hand side zero, no products or powers of the variables) guarantees one; an inequality or a nonzero right-hand side can fail either half of the test.

Ask the tutor: unsure whether a particular set of polynomials, matrices, or a subset defined by an inequality is a vector space or a subspace? Ask the AI tutor to test it with you step by step.

Do I really need to check all six vector space axioms every time?

Only when you are testing whether a brand-new set with unusual operations is a vector space at all — for example, a set of sequences with a nonstandard addition rule. Once you already know the ambient set is a vector space (like Rn\mathbb{R}^n, Mm×n(R)M_{m\times n}(\mathbb{R}), or PnP_n), you only need the two-part subspace test on any subset, because associativity, commutativity, and the distributive laws are automatically inherited from the ambient space.

Why does a plane not through the origin fail to be a subspace, even though it looks flat and well-behaved?

Every subspace must contain the zero vector, because 0⋅u=00 \cdot \mathbf u = \mathbf 0 and closure under scalar multiplication forces 0\mathbf 0 to lie in any subspace. A plane offset from the origin, such as x+2y−z=3x + 2y - z = 3, never contains (0,0,0)(0,0,0), so it fails this necessary condition immediately — you do not even need to check addition or scaling to reject it.

If a set is closed under addition, isn't it obviously closed under scalar multiplication too?

No, and this is the single most common exam trap. The first-quadrant set {(x,y):x≥0,y≥0}\{(x,y): x \ge 0, y \ge 0\} is closed under addition — add two non-negative pairs and you stay non-negative — but multiplying by a negative scalar like α=−1\alpha = -1 sends (1,1)(1,1) to (−1,−1)(-1,-1), which leaves the set. Addition and scalar multiplication are logically independent checks, and negative scalars are the usual way scalar closure breaks.

Before this

Where this leads