Skip to content
VidiMaster it, module by module
Module 1/Vector Spaces & Subspaces

Subspaces

A subspace is a subset of a vector space that is itself a vector space under the very same addition and scalar multiplication. You never recheck all the axioms — you run one quick three-part test: it must contain the zero vector, and be closed under addition and under scalar multiplication.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

Select all of the following subsets that are subspaces of R3\mathbb{R}^3.

Let W={(x,y,z)∈R3:x+y+z=0}W = \{(x,y,z) \in \mathbb{R}^3 : x + y + z = 0\}, a subspace of R3\mathbb{R}^3. Let u=(1,−1,0)\mathbf{u} = (1, -1, 0) and v=(2,0,−2)\mathbf{v} = (2, 0, -2), both of which lie in WW. Compute u+v\mathbf{u} + \mathbf{v} and enter it as a vector; it should again lie in WW.

What you’ll be able to do

  • State precisely what it means for a subset WW of a vector space VV to be a subspace of VV.
  • Apply the three-part subspace test: WW contains 0\mathbf{0}, WW is closed under addition, and WW is closed under scalar multiplication.
  • Decide whether a given subset of R2\mathbb{R}^2 or R3\mathbb{R}^3 is a subspace, and justify the conclusion with a proof or an explicit counterexample.
  • Explain geometrically why lines and planes through the origin are subspaces, while shifted lines, the first quadrant, and curves are not.
  • Recognize homogeneous linear equations and spans as automatic sources of subspaces.

In your course

· MATH2015 · Linear Algebra & Probability
§2.1 Vector Space and Subspaces
  • Definition 2.1Vector space axioms (the 8 rules)
  • Definition 2.2Vector subspace
  • Theorem 2.1Subspace test
    A non-empty subset U⊆RnU\subseteq\mathbb{R}^n is a subspace iff (U1) u,v∈U⇒u+v∈Uu,v\in U\Rightarrow u+v\in U and (U2) a∈R, u∈U⇒a u∈Ua\in\mathbb{R},\,u\in U\Rightarrow a\,u\in U. Equivalently, a u+b v∈Ua\,u+b\,v\in U for all u,v∈Uu,v\in U and a,b∈Ra,b\in\mathbb{R} (closed under linear combinations).
  • Corollary 2.1Every subspace contains the zero vector 0\mathbf{0}
  • Remark 2.1The four kinds of subspace in ℝ³
1

From vector spaces to subspaces

You already know a vector space VV: a set of objects (vectors) that you can add together and scale by numbers (scalars), where all the usual rules hold — addition is commutative and associative, there is a zero vector 0\mathbf{0}, every vector has a negative, and scalar multiplication distributes nicely. The standard example is Rn\mathbb{R}^n, the set of nn-tuples of real numbers.

Often we care about a smaller collection of vectors living inside VV — for example, all the points on a particular line in R2\mathbb{R}^2. The natural question is: is that smaller collection a vector space in its own right, using the exact same addition and scalar multiplication it inherits from VV?

When the answer is yes, we call the subset a subspace. The key word is same operations: we do not get to invent a new way to add vectors — we must use VV's addition and scaling and check that we never "fall out" of the subset.

Intuitively, a subspace is a subset that is self-contained: start with vectors inside it, add them or scale them, and you always land back inside it. Geometrically in R2\mathbb{R}^2 and R3\mathbb{R}^3, this self-containment forces subspaces to be perfectly flat objects that pass through the origin.

2

The subspace test

Here is the beautiful shortcut. A subset WW of a vector space VV is a subspace if and only if it passes three checks:

  1. Contains the zero vector: 0∈W\mathbf{0} \in W. (In particular WW is nonempty.)
  2. Closed under addition: if u∈W\mathbf{u} \in W and v∈W\mathbf{v} \in W, then u+v∈W\mathbf{u} + \mathbf{v} \in W.
  3. Closed under scalar multiplication: if u∈W\mathbf{u} \in W and cc is any scalar, then c u∈Wc\,\mathbf{u} \in W.

Why only three checks, when a vector space has many axioms? Because the other axioms (commutativity, associativity, distributivity, and so on) are identities that already hold for every vector in VV — so they automatically hold for the vectors in W⊆VW \subseteq V. The only thing that could go wrong is falling out of the set, and conditions 2 and 3 forbid exactly that. Condition 1 guarantees WW is nonempty and pins the zero vector inside; it also rules out the empty set.

A practical tip: check for 0\mathbf{0} first. If 0∉W\mathbf{0} \notin W, you are done immediately — WW is not a subspace, no further work needed. Conditions 2 and 3 are sometimes bundled into a single line: WW is a subspace iff it is nonempty and c u+d v∈Wc\,\mathbf{u} + d\,\mathbf{v} \in W for all u,v∈W\mathbf{u}, \mathbf{v} \in W and all scalars c,dc, d (closure under linear combinations).

3

The geometry: lines and planes through the origin

In low dimensions the subspaces are easy to picture, and the picture is instructive.

Subspaces of R2\mathbb{R}^2:

  • the zero subspace {0}\{\mathbf{0}\} (a single point, the origin);
  • every line through the origin, e.g. {(x,y):y=mx}\{(x,y): y = mx\};
  • all of R2\mathbb{R}^2.

Subspaces of R3\mathbb{R}^3:

  • the zero subspace {0}\{\mathbf{0}\};
  • every line through the origin;
  • every plane through the origin;
  • all of R3\mathbb{R}^3.

Notice the recurring phrase: through the origin. This is forced by condition 1 of the test — a subspace must contain 0\mathbf{0}. A line or plane that misses the origin cannot be a subspace.

There is also a clean algebraic source of these objects. The solution set of a homogeneous linear equation such as ax+by+cz=0a x + b y + c z = 0 (note the right-hand side is 00) is always a subspace: the origin solves it, the sum of two solutions is a solution, and any scalar multiple of a solution is a solution. More generally, the solution set of any homogeneous linear system Ax=0A\mathbf{x} = \mathbf{0} is a subspace — this is the null space of AA, which you will meet soon.

4

Spotting non-subspaces (common traps)

A single failed condition is enough to disqualify a set. The most common culprits:

  • Shifted lines/planes (missing the origin). The line y=2x+1y = 2x + 1 in R2\mathbb{R}^2 does not pass through (0,0)(0,0), so it fails condition 1. Likewise any ax+by=ka x + b y = k with k≠0k \ne 0.

  • The first quadrant {(x,y):x≥0, y≥0}\{(x,y): x \ge 0,\ y \ge 0\}. This one is sneaky: it does contain 0\mathbf{0}, and it is closed under addition. But it fails closure under scalar multiplication: take (1,1)(1,1) and multiply by −1-1 to get (−1,−1)(-1,-1), which is outside. One failure is fatal.

  • Curves. The unit circle {(x,y):x2+y2=1}\{(x,y): x^2 + y^2 = 1\} does not even contain the origin, and is closed under neither operation.

  • Unions of subspaces. The union of the xx-axis and the yy-axis contains 0\mathbf{0} and is closed under scalar multiplication, yet fails closure under addition: (1,0)+(0,1)=(1,1)(1,0) + (0,1) = (1,1) lies on neither axis.

  • Sets defined by a nonlinear condition, like {(x,y,z):x2=y2}\{(x,y,z): x^2 = y^2\}. It contains 0\mathbf{0} and is closed under scaling, but (1,1,0)+(1,−1,0)=(2,0,0)(1,1,0) + (1,-1,0) = (2,0,0) has x2=4≠0=y2x^2 = 4 \ne 0 = y^2, breaking closure under addition.

The moral: closure can fail on just one of the two operations, so you must check both — unless condition 1 already fails, which ends the discussion.

Definition of a Subspace

Let VV be a vector space. A subset W⊆VW \subseteq V is a subspace of VV if WW is itself a vector space under the addition and scalar multiplication inherited from VV.

Intuition. A subspace is a vector space sitting inside a bigger one, using the parent's operations. You do not re-define how to add or scale — you just ask whether the smaller set is complete enough to be a vector space on its own.
Subspace Test

A subset WW of a vector space VV is a subspace of VV if and only if all three conditions hold: (1) 0∈W\mathbf{0} \in W; (2) for all u,v∈W\mathbf{u}, \mathbf{v} \in W, u+v∈W\mathbf{u} + \mathbf{v} \in W; (3) for all u∈W\mathbf{u} \in W and all scalars cc, c u∈Wc\,\mathbf{u} \in W.

Intuition. All the algebraic axioms (commutativity, associativity, distributivity, ...) are automatically inherited from VV, so the only possible failure is "leaving the set." The three conditions guarantee the set is nonempty, holds the zero vector, and never lets addition or scaling escape it.
Span is a Subspace

If v1,…,vk\mathbf{v}_1, \dots, \mathbf{v}_k are vectors in a vector space VV, then their span span⁡{v1,…,vk}\operatorname{span}\{\mathbf{v}_1, \dots, \mathbf{v}_k\} — the set of all linear combinations c1v1+⋯+ckvkc_1\mathbf{v}_1 + \cdots + c_k\mathbf{v}_k — is a subspace of VV.

Intuition. A span is the smallest subspace containing the given vectors. It automatically passes the test: 0\mathbf{0} is the combination with all ci=0c_i = 0, and adding or scaling linear combinations just produces more linear combinations.

Worked examples

Example 1

Show that the line W={(x,y)∈R2:y=2x}W = \{(x,y) \in \mathbb{R}^2 : y = 2x\} is a subspace of R2\mathbb{R}^2.

  1. 1

    Understand the set. Every point of WW has its second coordinate equal to twice its first. So we can write a typical element as (t,2t)(t, 2t) for some real number tt. Geometrically this is the line through the origin with slope 22.

  2. 2

    Condition 1 — does WW contain the zero vector? Put (x,y)=(0,0)(x,y) = (0,0) into the defining equation y=2xy = 2x: we get 0=2⋅0=00 = 2 \cdot 0 = 0, which is true. So 0=(0,0)∈W\mathbf{0} = (0,0) \in W. Condition 1 holds. (If this had failed, we would stop here.)

  3. 3

    Condition 2 — closure under addition. Take any two elements of WW, say u=(x1,2x1)\mathbf{u} = (x_1, 2x_1) and v=(x2,2x2)\mathbf{v} = (x_2, 2x_2). Add them: u+v=(x1+x2, 2x1+2x2)=(x1+x2, 2(x1+x2))\mathbf{u} + \mathbf{v} = (x_1 + x_2,\ 2x_1 + 2x_2) = (x_1 + x_2,\ 2(x_1 + x_2)). The second coordinate is exactly 22 times the first coordinate, so u+v\mathbf{u}+\mathbf{v} satisfies y=2xy = 2x. Hence u+v∈W\mathbf{u} + \mathbf{v} \in W.

  4. 4

    Condition 3 — closure under scalar multiplication. Take u=(x1,2x1)∈W\mathbf{u} = (x_1, 2x_1) \in W and any scalar cc. Then c u=(cx1, 2cx1)=(cx1, 2(cx1))c\,\mathbf{u} = (c x_1,\ 2 c x_1) = (c x_1,\ 2(c x_1)). Again the second coordinate is twice the first, so c u∈Wc\,\mathbf{u} \in W.

  5. 5

    Conclude. All three conditions of the subspace test hold, so WW is a subspace of R2\mathbb{R}^2. (This matches the geometry: WW is a line through the origin.)

Answer. WW is a subspace of R2\mathbb{R}^2 because it contains 0\mathbf{0} and is closed under both addition and scalar multiplication.
Example 2

Determine whether the first quadrant Q={(x,y)∈R2:x≥0 and y≥0}Q = \{(x,y) \in \mathbb{R}^2 : x \ge 0 \text{ and } y \ge 0\} is a subspace of R2\mathbb{R}^2.

Example 3

Is the plane P={(x,y,z)∈R3:x−y+2z=0}P = \{(x,y,z) \in \mathbb{R}^3 : x - y + 2z = 0\} a subspace of R3\mathbb{R}^3?