LINEAR ALGEBRA • VECTOR SPACES & SUBSPACES

Subspaces & Tests — Subspaces and Subspace Tests

Learn how to identify special sets of vectors that follow the same rules as the bigger space they live inside.

Historical Context & Motivation

Mathematicians have always looked for patterns inside bigger structures. In the 1800s and 1900s, several brilliant thinkers began to notice that certain collections of numbers, arrows, or functions behaved the same way as the larger collections they came from. This idea — that a smaller set can follow all the same rules as a bigger one — became the concept of a subspace. Understanding subspaces helps us break complicated problems into simpler pieces, which is one of the most powerful tricks in all of mathematics.

1844
Grassmann's Extension Theory
Hermann Grassmann published ideas about collections of quantities that could be added together and scaled. His work planted the seeds for what we now call vector spaces.
1888
Peano's Axioms for Vector Spaces
Giuseppe Peano wrote down a clear list of rules that a set of objects must follow to be called a vector space. This gave mathematicians a precise checklist to work with.
1900s
Rise of Abstract Algebra
Mathematicians like Emmy Noether and others pushed the idea that studying sub-structures (like subspaces) inside bigger structures is the key to understanding algebra.
1940s–60s
Linear Algebra Becomes Essential
With the invention of computers, linear algebra became a cornerstone of science and engineering. Subspace tests became everyday tools for checking whether a set of solutions formed a nice, well-behaved collection.

The central question this lesson answers is: given a set of vectors living inside a larger vector space, how do we quickly tell whether that set is a subspace? Instead of checking every single rule for a vector space from scratch, mathematicians developed a shortcut — the subspace test — that makes the job much faster.

Core Principles & Definitions

Before we can talk about subspaces, we need to understand the playground they live in. A vector space is a collection of objects (called vectors) that you can add together and multiply by numbers (called scalars), and the results always stay inside the collection. Think of it like a club where every member follows the same set of rules.

1

Vector Space

A set of vectors along with rules for adding them and multiplying them by scalars. The results must always stay inside the set. Example: all arrows in a flat plane (ℝ²).
2

Subspace

A smaller set inside a vector space that is itself a vector space, using the same addition and scalar multiplication rules. It's like a club within a club.
3

Closure under Addition

If you pick any two vectors from the set and add them, the result is still in the set. Nothing 'leaks out' when you add.
4

Closure under Scalar Multiplication

If you pick any vector from the set and multiply it by any number, the result stays in the set. Stretching or shrinking never kicks you out.
5

Contains the Zero Vector

The set must include the zero vector (the 'do nothing' vector). This is always the first thing to check — if the zero vector is missing, it's not a subspace.
KEY TAKEAWAY
Think of a subspace like a team inside a sports league. The team uses the same rules as the league (same scoring, same field). But not every random group of players forms a real team. The group has to be self-contained — when its members practice together (add) or a coach adjusts their effort (scalar multiply), they still belong to the team. And every team needs a bench (the zero vector) even if nobody's playing.

Visual Explanation

Let's visualize what subspaces look like inside ℝ² (the regular x-y plane) and ℝ³ (three-dimensional space). In ℝ², the possible subspaces are: just the origin (the zero vector alone), any line through the origin, or the entire plane itself. In ℝ³, you get the origin, any line through the origin, any flat plane through the origin, or all of ℝ³.

The three types of subspaces in ℝ²: the zero vector alone (left), any line through the origin (center), and the entire plane (right). Notice that the line through the origin contains the vector v and its opposite −v, confirming closure under scalar multiplication.

The key visual pattern is that every subspace must pass through the origin. If you shift a line so it no longer goes through the point (0, 0), it stops being a subspace. This is because the zero vector must always be included. In the diagram above, the center panel shows a line through the origin — you can add any two vectors on that line and the sum stays on the line, and you can stretch any vector by any scalar and it stays on the line.

The Subspace Test — Mathematical Framework

A full vector space must satisfy about ten different rules (called axioms). Luckily, if a set W is already sitting inside a known vector space V, most of those rules are inherited for free. We only need to check three conditions. This shortcut is called the Subspace Test (sometimes called the "three-condition test").

CONDITION 1 — ZERO VECTOR
0⃗ ∈ W
The zero vector of V must be in W. This means W is not empty and contains the "starting point."
CONDITION 2 — CLOSED UNDER ADDITION
If u⃗ ∈ W and v⃗ ∈ W, then u⃗ + v⃗ ∈ W
Pick any two vectors u and v in W. When you add them, the result must also land in W. Nothing escapes.
CONDITION 3 — CLOSED UNDER SCALAR MULTIPLICATION
If u⃗ ∈ W and c is any scalar, then c · u⃗ ∈ W
Pick any vector u in W and any number c. When you multiply u by c, the result must stay in W. Stretching, shrinking, or flipping never kicks you out.
💡 Two-in-One Shortcut
Some textbooks combine conditions 2 and 3 into a single check: if u⃗ and v⃗ are in W and c, d are any scalars, then c·u⃗ + d·v⃗ is in W. This is called closure under linear combinations. It's the same idea, just packed tighter.

Why does this shortcut work? Because W is already sitting inside V, which is a known vector space. Properties like commutativity (u + v = v + u) and associativity ((u + v) + w = u + (v + w)) are automatically inherited from V. The only things that could go wrong are that W might be missing the zero vector, or that adding or scaling could produce a vector that lands outside W. That's why these three conditions are all we need to check.

Examples and Non-Examples of Subspaces

The best way to understand the subspace test is to see it in action — and to see where things go wrong. The diagram below compares sets that pass the subspace test with sets that fail it.

Left column shows sets that pass the subspace test. Right column shows sets that fail. The line y = ½x + 1 fails because it misses the origin. The first quadrant fails because multiplying by −1 sends vectors outside the set.
Quick-check table for several subsets of ℝ²
Set W in ℝ²Zero vector?Closed + ?Closed × ?Subspace?
y = 2x (line through origin)✓ (0,0)Yes ✓
y = 2x + 3 (shifted line)✗ (0,3)≠0⃗No ✗
x² + y² ≤ 1 (unit disk)✓ (0,0)No ✗
{0⃗} (origin only)Yes ✓
All of ℝ²Yes ✓

Notice a pattern: the unit disk (a filled circle) contains the zero vector, but if you add two vectors near the edge, the sum can land outside the disk. For example, (0.8, 0) + (0.8, 0) = (1.6, 0), which is outside the unit disk. Similarly, 5 × (0.5, 0) = (2.5, 0) escapes. So the unit disk fails both closure tests.

Worked Example

Let's apply the subspace test step by step. We'll determine whether the set W = {(x, y, z) in ℝ³ : x + 2y − z = 0} is a subspace of ℝ³. This set is all the points in 3D space that satisfy the equation x + 2y − z = 0.

Is W = {(x, y, z) : x + 2y − z = 0} a subspace of ℝ³?
1
Step 1 — Check the zero vectorPlug (0, 0, 0) into the equation: 0 + 2(0) − 0 = 0. This is true, so the zero vector is in W.
✓ Zero vector (0, 0, 0) ∈ W
2
Step 2 — Check closure under additionLet u⃗ = (x₁, y₁, z₁) and v⃗ = (x₂, y₂, z₂) be any two vectors in W. This means x₁ + 2y₁ − z₁ = 0 and x₂ + 2y₂ − z₂ = 0. Now check their sum: u⃗ + v⃗ = (x₁ + x₂, y₁ + y₂, z₁ + z₂). Plug into the equation: (x₁ + x₂) + 2(y₁ + y₂) − (z₁ + z₂) = (x₁ + 2y₁ − z₁) + (x₂ + 2y₂ − z₂) = 0 + 0 = 0.
✓ u⃗ + v⃗ satisfies the equation, so it's in W
3
Step 3 — Check closure under scalar multiplicationLet u⃗ = (x₁, y₁, z₁) be in W, so x₁ + 2y₁ − z₁ = 0. Let c be any scalar. Then c·u⃗ = (cx₁, cy₁, cz₁). Plug in: cx₁ + 2(cy₁) − cz₁ = c(x₁ + 2y₁ − z₁) = c · 0 = 0.
✓ c·u⃗ satisfies the equation, so it's in W
4
Step 4 — ConclusionAll three conditions are satisfied. Therefore, W is a subspace of ℝ³. Geometrically, W is a plane through the origin in three-dimensional space.
W is a subspace of ℝ³ ✓
🔑 Key Pattern
Any equation of the form ax + by + cz = 0 (equal to zero, not some other number!) defines a subspace of ℝ³. If the right-hand side is not zero, like x + 2y − z = 5, then the set does not include the origin and is not a subspace.

Common Pitfalls & Comparisons

Students often confuse "subset" with "subspace." Every subspace is a subset, but not every subset is a subspace. A subset just means some elements from the bigger set. A subspace has to follow the vector space rules too. Here are the most common mistakes and how to avoid them.

Common mistakes when applying the subspace test
Common MistakeWhy It's WrongHow to Fix It
Forgetting to check the zero vectorThe set might not even be non-empty, or it could miss the origin entirelyAlways start with condition 1 — it's the quickest to check
Testing only specific numbers instead of general vectorsFinding one example that works doesn't prove the rule holds for ALL vectorsUse variables (u, v, c) and prove the property for arbitrary choices
Confusing "subset" with "subspace"The set {(1, 0), (0, 1)} is a subset of ℝ² but not a subspace (not closed under addition)Remember: subspace = subset + closure under addition and scalar multiplication
Thinking any shape through the origin is a subspaceA circle through the origin passes the zero vector test but fails closureAlways check all three conditions, not just the first one
KEY TAKEAWAY
Think of the subspace test like a security checkpoint with three gates. Gate 1 checks your ID (zero vector). Gate 2 checks that when two members team up (addition), they're still allowed in. Gate 3 checks that if a member changes their outfit (scalar multiplication), they're still welcome. If any gate rejects you, you're not a subspace — no exceptions.

Connection to Advanced Topics

Once you understand subspaces, you unlock many of the most important ideas in linear algebra. Here is how the subspace concept connects to topics you might encounter later in your math journey.

How subspaces connect to future linear algebra topics
This Lesson's IdeaWhere It LeadsWhat's New
Subspace of ℝⁿColumn space & null spaceEvery matrix creates two natural subspaces: one from its columns and one from the solutions to Ax = 0
Subspace test (3 conditions)SpanThe span of any set of vectors is automatically a subspace — guaranteed to pass the test
Lines and planes through originDimension & basisLines are 1-dimensional subspaces, planes are 2-dimensional — the concept of dimension formalizes this
Closure propertiesLinear transformationsFunctions between vector spaces that preserve addition and scalar multiplication — the same idea of 'respecting the rules'

In more advanced courses, you'll learn that the solutions to any system of homogeneous linear equations (equations set equal to zero) always form a subspace. This fact is incredibly powerful in science and engineering because it tells us that the set of solutions has a nice, predictable structure. If you can find a few solutions, you can build all the others by combining them.

Practice Problems

PROBLEM 1CONCEPTUAL
A student claims that the set of all vectors in ℝ² with positive x-coordinates (x > 0) is a subspace of ℝ². What is the quickest way to show this is wrong?
PROBLEM 2BASIC CALCULATION
Let W = {(x, y) in ℝ² : y = 3x}. Verify that (2, 6) and (−1, −3) are in W, then check whether their sum is also in W.
PROBLEM 3INTERMEDIATE
Determine whether W = {(x, y, z) in ℝ³ : x − y + 4z = 0} is a subspace of ℝ³. Show all three conditions of the subspace test.
PROBLEM 4APPLIED
A scientist models temperature at three sensor locations with the vector (T₁, T₂, T₃). The sensors are calibrated so that T₁ + T₂ + T₃ = 0 always holds (the temperatures balance out). She wants to know: does the set of all valid temperature readings form a subspace of ℝ³? Use the subspace test.
PROBLEM 5CRITICAL THINKING
Consider W = {(x, y) in ℝ² : xy ≥ 0}. This set includes all points where x and y have the same sign (or at least one is zero). It contains the zero vector and includes many vectors. Is W a subspace of ℝ²? Explain by finding a specific counterexample if it fails, or prove it if it passes.

Lesson Summary

A subspace is a subset of a vector space that is itself a vector space under the same operations. To check whether a set W is a subspace, use the subspace test: verify that (1) W contains the zero vector, (2) W is closed under addition, and (3) W is closed under scalar multiplication. If any one condition fails, the set is not a subspace.

In ℝ², subspaces are: the origin alone, any line through the origin, or the entire plane. Sets defined by homogeneous linear equations (set equal to zero) always form subspaces. Lines or planes that don't pass through the origin, bounded shapes like circles, and regions like quadrants are never subspaces. Mastering the subspace test prepares you for key topics like null spaces, column spaces, and dimension.

Varsity Tutors • Linear Algebra • Subspaces & Tests — Subspaces and Subspace Tests