MGU Mathematics Series — Linear Algebra
Part III: Vector Spaces, Subspaces, and Dimension
Vector Spaces · Subspaces · Column Space · Null Space
Chapter 8 of 14
MGU Mathematics Series  ·  Linear Algebra  ·  Library Textbook Edition

Chapter 8:
Vector Spaces
and Subspaces

The structure underlying vectors, polynomials, matrices, and functions — a unified language for collections of objects that can be added and scaled

■ Math Level: Linear Algebra ■

■ 14 Sections  •  Part III of 5 ■

Follows Chapters 1–7  ·  Prepares students for Chapter 9: Span, Linear Independence, and Basis

Purpose and Overview

This chapter introduces one of the most powerful organizing ideas in all of mathematics: the concept of a vector space. Until now, you have worked primarily with vectors as arrows in two or three dimensions, or as lists of numbers with specific geometric meaning. You have solved systems, multiplied matrices, studied determinants, and analyzed linear transformations. In every case, the objects you worked with could be added together and scaled by constants. That observation turns out to be the foundation of something much larger.

A vector space is any collection of objects that can be added together and scaled — as long as those operations follow a consistent set of rules. The elements of a vector space do not have to be arrows. They can be polynomials, matrices, lists of numbers in four or more dimensions, sequences, or many other kinds of mathematical objects. What makes them a vector space is not what they look like, but how they behave.

This chapter builds your understanding of vector spaces from the ground up. You will start with the familiar space ℝⁿ, examine the rules that define all vector spaces, explore a range of examples, learn to identify subspaces, and begin connecting vector spaces to the matrices and systems you have already studied.

The ideas introduced here — vector spaces, subspaces, span, independence, basis, and dimension — form the structural core of linear algebra. Everything in the chapters that follow depends on them.

Opening Question

You already know that lines through the origin in ℝ² have a special property: if you take any two points on the line and add them, you stay on the line. If you scale any point on the line by any number, you stay on the line. The line is "closed" under the operations that define vectors.

But a line that does not pass through the origin does not have this property. Add two points on it, and you may leave the line entirely. What is it about passing through the origin that matters so much? And can this idea of a "closed collection" be generalized beyond lines and planes — to collections of polynomials, matrices, or systems of equations? That is exactly what vector spaces answer.

14Sections
10Objectives
15Key Terms
12+Worked Examples

Learning Objectives

  1. 1Explain what a vector space is and why the defining rules matter.
  2. 2Identify ℝⁿ as the central example of a vector space.
  3. 3Verify whether a given set of objects satisfies the vector space rules.
  4. 4Recognize examples and nonexamples of vector spaces.
  5. 5Define a subspace and explain what it means geometrically.
  6. 6Apply the three-part subspace test to determine whether a subset is a subspace.
  7. 7Identify solution sets of homogeneous systems as subspaces.
  8. 8Describe the column space and null space of a matrix informally.
  9. 9Recognize vector spaces in data, computing, and modeling contexts.
  10. 10Avoid common misconceptions about vector spaces.

Sections at a Glance

Sections 8.1 – 8.6
Vector Spaces: Definition, Rules, and Examples
Why We Need Them · Vectors Beyond Arrows · ℝⁿ · The Ten Axioms · Examples · Nonexamples

Why Vector Spaces Are Needed

In Chapters 1 through 7, you worked primarily with specific vectors and specific matrices. You solved for particular solutions, computed determinants, and analyzed individual transformations. These are powerful skills. But linear algebra becomes much more powerful when you ask structural questions about whole collections of vectors, not just individual ones.

Questions like these arise naturally once you push beyond simple computation:

QuestionWhat It Asks
What is the set of all solutions to a homogeneous system?A structural question about all solutions at once, not just one.
What is the set of all vectors a matrix can produce as output?A question about the range of a transformation.
Can every vector in a space be described using a small set of vectors?A question about spanning and efficient description.
How many independent directions does a space have?A question about dimension.

These questions are answered using the language of vector spaces, subspaces, span, independence, and dimension. Once you know that a collection of objects forms a vector space, every theorem about vector spaces applies to it automatically. You do not have to re-derive ideas about span, independence, and dimension for polynomials, or matrices, or signals. The abstract definition does the work for you.

This chapter will not push you too far into abstraction. The examples will stay concrete, and the connections to geometry and computation will remain clear throughout. But you will begin to see why linear algebra is not just about arrows — it is about structure.

Vectors Beyond Arrows

In Chapter 2, a vector was introduced as an arrow with direction and magnitude, or as a list of components. Now consider a different kind of object: a polynomial.

Let p(x) = 3x² − x + 5 and q(x) = x² + 2x − 1. You can add these:

p(x) + q(x) = (3+1)x² + (−1+2)x + (5−1) = 4x² + x + 4

You can also scale p(x) by any real number c:

c · p(x) = 3cx² − cx + 5c

This looks different from adding arrows, but notice the similarity: you are combining objects according to consistent rules, and the result stays in the same family — sums and scalar multiples of polynomials are again polynomials. Now consider a 2 × 2 matrix. Adding two such matrices entry-by-entry gives another 2 × 2 matrix; scaling one by a constant gives another 2 × 2 matrix.

The pattern is the same across arrows, polynomials, and matrices: objects that can be added and scaled, with results that stay in the same family. The key insight is that the structure of addition and scalar multiplication is what matters, not what the objects look like. A vector space is any collection of objects that has this structure, provided a precise list of rules is satisfied.

The Unifying Pattern

Arrows, polynomials, and matrices all support addition and scalar multiplication with consistent behavior. Once you recognize this pattern, you can apply the same reasoning — span, independence, basis, dimension — to all of them. That is why the abstract definition of a vector space is so useful.

The Vector Space ℝⁿ

The central and most important example of a vector space is ℝⁿ — the set of all column vectors with n real number entries. Everything in this book has lived primarily inside ℝ² or ℝ³ so far, but the ideas generalize to any n. In ℝ⁴ vectors have four components; in ℝ¹⁰⁰ they have one hundred components. You cannot draw these spaces, but you can work with them algebraically.

Operations on ℝⁿ

Vector addition. For u = (u₁, u₂, …, uₙ)ᵀ and v = (v₁, v₂, …, vₙ)ᵀ:

u + v = (u₁+v₁, u₂+v₂, …, uₙ+vₙ)ᵀ

Scalar multiplication. For any scalar c ∈ ℝ:

cv = (cv₁, cv₂, …, cvₙ)ᵀ

Zero vector. The vector 0 = (0, 0, …, 0)ᵀ satisfies v + 0 = v for all v.

Additive inverse. For each v, the vector −v = (−v₁, −v₂, …, −vₙ)ᵀ satisfies v + (−v) = 0.

ℝⁿ is the foundation for all the vector spaces you will study. When you encounter a new fact about abstract vector spaces, always check your understanding in ℝⁿ first. Component-wise arithmetic makes the axioms concrete and easy to verify there.

Vector Space Rules

A vector space V is a set of objects — called vectors — together with two operations: addition and scalar multiplication. These operations must satisfy the following ten axioms for all vectors u, v, w ∈ V and all scalars c, d ∈ ℝ.

The Ten Vector Space Axioms

Closure Properties

  1. Closure under addition. u + v ∈ V. Adding two vectors gives a vector still in the set.
  2. Closure under scalar multiplication. cv ∈ V. Scaling a vector by any real number gives a vector still in the set.

Addition Properties

  1. Commutativity. u + v = v + u.
  2. Associativity. (u + v) + w = u + (v + w).
  3. Zero vector. There exists 0 ∈ V such that v + 0 = v for all v.
  4. Additive inverse. For each v ∈ V there exists −v ∈ V such that v + (−v) = 0.

Scalar Multiplication Properties

  1. Scalar distributivity over vector addition. c(u + v) = cu + cv.
  2. Vector distributivity over scalar addition. (c + d)v = cv + dv.
  3. Associativity of scalar multiplication. c(dv) = (cd)v.
  4. Identity scalar. 1 · v = v.
Why All Ten Axioms?

The axioms ensure consistency. Without the zero vector axiom, there would be no neutral element for addition. Without commutativity, the order of addition would change the result. Without the distributive laws, algebra involving sums and scalars could fail. All ten axioms together create a structure where all familiar algebraic manipulations remain valid. In a vector space, the word "vector" refers to any element of the set, no matter what that element actually looks like.

Examples of Vector Spaces

The following examples all satisfy the ten vector space axioms. Working through them will help you develop a feel for what a vector space is.

Example 8.5.1
ℝⁿ is a vector space
  • ProblemVerify that ℝ² with standard component-wise operations is a vector space.
  • ThinkAll ten axioms must hold. Because operations are component-wise, most axioms follow directly from properties of real number arithmetic.
  • RepresentLet u = (u₁, u₂)ᵀ, v = (v₁, v₂)ᵀ, w = (w₁, w₂)ᵀ, and c, d ∈ ℝ.
  • Calculate Closure under addition: u + v = (u₁+v₁, u₂+v₂)ᵀ ∈ ℝ² ✓ Closure under scalar multiplication: cv = (cv₁, cv₂)ᵀ ∈ ℝ² ✓ Commutativity: u + v = (u₁+v₁, u₂+v₂)ᵀ = (v₁+u₁, v₂+u₂)ᵀ = v + u ✓ Zero vector: 0 = (0, 0)ᵀ; v + 0 = (v₁+0, v₂+0)ᵀ = v ✓ Additive inverse: −v = (−v₁, −v₂)ᵀ; v + (−v) = (0, 0)ᵀ = 0 ✓ (All remaining axioms follow by applying real number arithmetic component-wise.)
  • Interpretℝ² satisfies all ten axioms and is therefore a vector space. The same argument applies to ℝⁿ for any n ≥ 1.
Answer: ℝⁿ is a vector space for every n ≥ 1.
Example 8.5.2
The set of 2 × 3 matrices is a vector space
  • ProblemLet ℳ₂ₓ₃ be the set of all 2 × 3 matrices with real entries, with entry-wise addition and scalar multiplication. Is ℳ₂ₓ₃ a vector space?
  • ThinkThe sum of two 2 × 3 matrices is a 2 × 3 matrix. Scaling a 2 × 3 matrix by any scalar gives another 2 × 3 matrix. All axioms reduce to entry-wise real arithmetic.
  • Calculate Zero matrix: 0 = [0 0 0; 0 0 0] (a 2×3 matrix of all zeros) ✓ Additive inverse of A: −A, with all entries negated ✓ All other axioms: inherited entry-wise from ℝ ✓
  • Interpretℳ₂ₓ₃ is a vector space whose "vectors" are matrices. The same argument applies to ℳₘₓₙ for any dimensions m and n.
Answer: Yes. ℳₘₓₙ is a vector space for any m, n ≥ 1.
Example 8.5.3
Polynomials of degree at most 2 form a vector space
  • ProblemLet 𝒫₂ = {a₀ + a₁x + a₂x² : a₀, a₁, a₂ ∈ ℝ} with standard polynomial addition and scalar multiplication. Is 𝒫₂ a vector space?
  • ThinkAdding two degree-at-most-2 polynomials gives another. Scaling gives another. Coefficients (a₀, a₁, a₂) behave exactly like components in ℝ³.
  • Calculate Sum: (a₀ + a₁x + a₂x²) + (b₀ + b₁x + b₂x²) = (a₀+b₀) + (a₁+b₁)x + (a₂+b₂)x² ∈ 𝒫₂ ✓ Scale: c(a₀ + a₁x + a₂x²) = ca₀ + ca₁x + ca₂x² ∈ 𝒫₂ ✓ Zero polynomial: 0 + 0x + 0x² ✓ Additive inverse: −a₀ − a₁x − a₂x² ✓
  • Interpret𝒫₂ is a vector space whose "vectors" are polynomials. It behaves just like ℝ³: the polynomial a₀ + a₁x + a₂x² corresponds to the triple (a₀, a₁, a₂).
Answer: Yes. 𝒫₂ is a vector space.
Draw a three-axis coordinate system labeled a₀, a₁, a₂. Each polynomial in 𝒫₂ corresponds to exactly one point in this coordinate space. The polynomial 3 − x + 2x² plots as the point (3, −1, 2). This makes the correspondence between polynomials and ℝ³ concrete.
Example 8.5.4
The trivial vector space
  • ProblemIs the set {0} containing only the zero vector a vector space?
  • ThinkAdding 0 to itself gives 0. Scaling 0 by any scalar gives 0. All axioms are satisfied trivially.
  • InterpretYes. This is called the trivial vector space or the zero space. It contains exactly one vector: the zero vector itself.
Answer: Yes. {0} is the trivial vector space.

Nonexamples of Vector Spaces

Understanding what a vector space is not is just as important as knowing what it is. The most common failure is a violation of one of the two closure conditions: the set fails to be closed under addition or scalar multiplication.

Example 8.6.1
Vectors with nonnegative entries — closure fails
  • ProblemLet W be the set of all vectors in ℝ² with both entries nonnegative. Is W a vector space?
  • ThinkCheck closure under scalar multiplication. Use a negative scalar.
  • Calculate Let v = (1, 2)ᵀ ∈ W. (−1)v = (−1, −2)ᵀ Both entries are negative, so (−1, −2)ᵀ ∉ W. Closure under scalar multiplication fails. ✗
  • InterpretW fails Axiom 2. Geometrically, W is the first quadrant. You can scale any first-quadrant vector toward the third quadrant using a negative scalar, leaving the set. W is not a vector space.
Answer: No. W fails closure under scalar multiplication.
Example 8.6.2
A set without the zero vector
  • ProblemLet S = {(x, y)ᵀ ∈ ℝ² : x = 1}. Is S a subspace?
  • ThinkThe zero vector (0, 0)ᵀ has first entry 0, not 1. Also test closure under addition.
  • Calculate Zero vector: (0, 0)ᵀ has first entry 0 ≠ 1, so 0 ∉ S. ✗ Axiom 5 fails immediately. Addition test: (1, 2)ᵀ + (1, 3)ᵀ = (2, 5)ᵀ First entry is 2, not 1, so the sum ∉ S. ✗
  • InterpretS fails two axioms. Any set that does not contain the zero vector cannot be a vector space. This is the fastest first check when testing any candidate set.
Answer: No. The zero vector is not in S.
Key Rule — Zero Vector Is Necessary

If a set does not contain the zero vector, it is automatically not a vector space. This is a fast first check. Always verify the zero vector before testing closure.

Example 8.6.3
The unit circle — curved sets fail closure
  • ProblemLet Q = {(x, y)ᵀ ∈ ℝ² : x² + y² = 1} (the unit circle). Is Q a vector space?
  • Calculate u = (1, 0)ᵀ ∈ Q (1² + 0² = 1 ✓) v = (0, 1)ᵀ ∈ Q (0² + 1² = 1 ✓) u + v = (1, 1)ᵀ: check 1² + 1² = 2 ≠ 1 ✗ 2u = (2, 0)ᵀ: check 4 + 0 = 4 ≠ 1 ✗
  • InterpretBoth closure conditions fail. Circles, spheres, and other curves defined by nonlinear equations are almost never vector spaces.
Answer: No. Q fails both closure conditions.
Example 8.6.4
Polynomials of exactly degree 2 — leading terms can cancel
  • ProblemLet D₂ be the set of all polynomials of exactly degree 2 (leading coefficient nonzero), together with the zero polynomial. Is D₂ a vector space?
  • Calculate p(x) = x² + 3x + 1 (degree 2 ✓) q(x) = −x² + 2x − 5 (degree 2 ✓) p(x) + q(x) = 5x − 4 (degree 1, not 2) ✗
  • InterpretThe leading terms cancel, and the sum drops to degree 1. D₂ is not closed under addition. The key is that at most degree 2 forms a vector space; exactly degree 2 does not, because adding can reduce degree.
Answer: No. Addition can cancel the leading term, leaving the degree-2 constraint.
Sections 8.7 – 8.9
Subspaces and Solution Sets
What a Subspace Is · Testing for Subspaces · Homogeneous Systems

What a Subspace Is

Now that you know what a vector space is, you can ask: which subsets of a vector space are themselves vector spaces?

Definition — Subspace

A subspace of a vector space V is a subset H ⊆ V that is itself a vector space under the same operations as V.

A subset H is a subspace of V if and only if it satisfies all three of:

  1. The zero vector of V is in H.
  2. If u ∈ H and v ∈ H, then u + v ∈ H. (closed under addition)
  3. If v ∈ H and c ∈ ℝ, then cv ∈ H. (closed under scalar multiplication)

If these three conditions hold, all ten vector space axioms are automatically satisfied — the arithmetic properties are inherited from V itself. You only need to check three conditions, not ten.

Geometric Intuition in ℝ² and ℝ³

SpaceSubspacesGeometric Description
ℝ²{0}The origin alone (trivial subspace).
ℝ²Any line through the originA line through the origin — not shifted away from it.
ℝ²All of ℝ²The entire plane.
ℝ³{0}The origin alone.
ℝ³Any line through the originA line passing through (0,0,0).
ℝ³Any plane through the originA plane passing through (0,0,0).
ℝ³All of ℝ³All of three-dimensional space.
Draw the xy-plane. Show a line through the origin (a subspace). Then draw a second line parallel to it but shifted up — it does not pass through the origin. Label the second line "not a subspace." Point out that scaling any vector on the shifted line by zero gives the zero vector, which is not on the shifted line. Closure under scalar multiplication fails.
Every Subspace Passes Through the Origin

This is the key geometric fact about subspaces. Any subspace must contain the zero vector. A line, plane, or higher-dimensional flat that does not pass through the origin is never a subspace — no matter how "linear" it looks.

Testing for Subspaces

The three-part subspace test is the standard method for determining whether a subset is a subspace. The process is always the same:

Step 1. Show that 0 ∈ H, or find a counterexample showing 0 ∉ H (which immediately disqualifies H).

Step 2. Take two arbitrary elements of H and verify their sum is in H.

Step 3. Take an arbitrary element of H and an arbitrary scalar, and verify their product is in H.

In steps 2 and 3, you must work with general elements satisfying the defining condition of H, not specific numerical examples. A single counterexample is enough to disprove a subspace; a general argument is required to prove one.

Example 8.8.1
A subspace defined by a linear homogeneous condition in ℝ²
  • ProblemLet H = {(x, y)ᵀ ∈ ℝ² : 2x − 3y = 0}. Is H a subspace of ℝ²?
  • ThinkThe condition 2x − 3y = 0 defines a line through the origin. It should be a subspace. Apply the three-part test with general elements.
  • Calculate Step 1 — Zero vector: 2(0) − 3(0) = 0 ✓ → 0 ∈ H Step 2 — Closure under addition: Let u = (x₁, y₁)ᵀ ∈ H and v = (x₂, y₂)ᵀ ∈ H. So 2x₁ − 3y₁ = 0 and 2x₂ − 3y₂ = 0. Check u + v = (x₁+x₂, y₁+y₂)ᵀ: 2(x₁+x₂) − 3(y₁+y₂) = (2x₁ − 3y₁) + (2x₂ − 3y₂) = 0 + 0 = 0 ✓ Step 3 — Closure under scalar multiplication: Let v = (x, y)ᵀ ∈ H, so 2x − 3y = 0. Let c ∈ ℝ. Check cv = (cx, cy)ᵀ: 2(cx) − 3(cy) = c(2x − 3y) = c · 0 = 0 ✓
  • InterpretAll three conditions hold for general elements. H is a subspace of ℝ² — it is the line y = (2/3)x through the origin. Every subspace of ℝ² defined by a single linear homogeneous equation is a line through the origin.
Answer: Yes. H is a subspace (the line 2x = 3y through the origin).
Example 8.8.2
A nonlinear condition — closure fails
  • ProblemLet K = {(x, y)ᵀ ∈ ℝ² : x² = y}. Is K a subspace of ℝ²?
  • ThinkThe condition x² = y defines a parabola. Though it passes through the origin (0² = 0 ✓), test closure under addition.
  • Calculate u = (1, 1)ᵀ: 1² = 1 ✓ v = (2, 4)ᵀ: 2² = 4 ✓ u + v = (3, 5)ᵀ: 3² = 9 ≠ 5 ✗ Closure under addition fails.
  • InterpretK is not a subspace, even though it passes through the origin. The parabola is not "flat" in the algebraic sense — it does not preserve the linear structure of addition.
Answer: No. K fails closure under addition.
Example 8.8.3
A subspace of ℝ³ — a plane through the origin
  • ProblemLet H = {(x, y, z)ᵀ ∈ ℝ³ : x + y − z = 0}. Is H a subspace of ℝ³?
  • Calculate Step 1: 0 + 0 − 0 = 0 ✓ → 0 ∈ H Step 2: u = (x₁,y₁,z₁)ᵀ and v = (x₂,y₂,z₂)ᵀ both in H. (x₁+x₂) + (y₁+y₂) − (z₁+z₂) = (x₁+y₁−z₁) + (x₂+y₂−z₂) = 0 + 0 = 0 ✓ Step 3: cv = (cx, cy, cz)ᵀ: cx + cy − cz = c(x + y − z) = c(0) = 0 ✓
  • InterpretH is a subspace of ℝ³ — a plane through the origin defined by a single linear homogeneous equation. All three subspace conditions hold for general elements.
Answer: Yes. H is a subspace (a plane through the origin in ℝ³).
Example 8.8.4
A subspace of polynomials
  • ProblemLet H = {ax + bx² : a, b ∈ ℝ} ⊆ 𝒫₂ (polynomials with no constant term). Is H a subspace of 𝒫₂?
  • Calculate Step 1: Zero polynomial = 0x + 0x² ∈ H ✓ Step 2: (a₁x + b₁x²) + (a₂x + b₂x²) = (a₁+a₂)x + (b₁+b₂)x² ∈ H ✓ Step 3: c(ax + bx²) = cax + cbx² ∈ H ✓
  • InterpretH is a subspace. Restricting to polynomials with zero constant term is analogous to requiring a plane in the coefficient space to pass through the origin along the a₀-axis.
Answer: Yes. H is a subspace of 𝒫₂.

Solution Sets as Subspaces

One of the most important sources of subspaces comes directly from solving systems of equations. A homogeneous system is one of the form Ax = 0, where the right-hand side is the zero vector. In Chapter 3, you learned that such systems always have at least the trivial solution x = 0. Now we can say exactly what the full solution set is.

Theorem — Solution Sets of Homogeneous Systems

The solution set of a homogeneous system Ax = 0 is a subspace of ℝⁿ.

Proof sketch. Let H = {x ∈ ℝⁿ : Ax = 0}. Apply the three-part test:

Condition 1. A0 = 0, so 0 ∈ H. ✓

Condition 2. If Au = 0 and Av = 0, then A(u + v) = Au + Av = 0 + 0 = 0, so u + v ∈ H. ✓

Condition 3. If Av = 0 and c ∈ ℝ, then A(cv) = c(Av) = c0 = 0, so cv ∈ H. ✓

Homogeneous vs. Nonhomogeneous

The solution set of a nonhomogeneous system Ax = b (with b ≠ 0) is generally not a subspace, because the zero vector is typically not a solution. For example, x + y = 5 has no solution with x = 0 and y = 0 simultaneously.

Example 8.9.1
Finding the null space of a matrix
  • ProblemLet A = [[1, 2, −1], [3, 6, −3]]. Find the solution set of Ax = 0 and identify it as a subspace.
  • RepresentForm the augmented matrix [A | 0] and row reduce.
  • Calculate [ 1 2 −1 | 0 ] R₂ − 3R₁ [ 1 2 −1 | 0 ] [ 3 6 −3 | 0 ] ──────────→ [ 0 0 0 | 0 ] Pivot: column 1. Free variables: x₂ = s, x₃ = t. From row 1: x₁ = −2s + t. Solution: x = s(−2, 1, 0)ᵀ + t(1, 0, 1)ᵀ
  • CheckSubstitute back: 1(−2s+t) + 2(s) + (−1)(t) = −2s+t+2s−t = 0 ✓
  • InterpretThe solution set is all linear combinations of (−2, 1, 0)ᵀ and (1, 0, 1)ᵀ. This is a plane through the origin in ℝ³. The second row of A was a multiple of the first, so only one independent equation remained — and the solution set is two-dimensional.
Answer: Null space = all s(−2,1,0)ᵀ + t(1,0,1)ᵀ for s, t ∈ ℝ — a plane through the origin in ℝ³.
Sections 8.10 – 8.12
Column Space, Null Space, and Applications
Col(A) · Nul(A) · Vector Spaces in Data, Models, and Computing

Column Space as an Introduction

When you multiply a matrix A by a vector x, the result Ax is a linear combination of the columns of A. This observation motivates one of the most important subspaces associated with a matrix.

Definition — Column Space

The column space of a matrix A, written Col(A), is the set of all vectors that can be expressed as Ax for some vector x. Equivalently, it is the set of all linear combinations of the columns of A.

If A is an m × n matrix with columns a₁, a₂, …, aₙ, then:

Col(A) = {c₁a₁ + c₂a₂ + ··· + cₙaₙ : c₁, …, cₙ ∈ ℝ}

Col(A) is a subspace of ℝᵐ — it lives in the output space.

The system Ax = b is consistent if and only if b ∈ Col(A).

Example 8.10.1
Column space of a 3 × 2 matrix
  • ProblemLet A = [[1, 0], [0, 1], [2, 3]]. Describe Col(A).
  • ThinkThe columns of A are a₁ = (1, 0, 2)ᵀ and a₂ = (0, 1, 3)ᵀ. Col(A) is all combinations c₁a₁ + c₂a₂.
  • Calculate c₁(1, 0, 2)ᵀ + c₂(0, 1, 3)ᵀ = (c₁, c₂, 2c₁+3c₂)ᵀ So Col(A) = {(x, y, z)ᵀ ∈ ℝ³ : z = 2x + 3y}
  • InterpretCol(A) is a plane through the origin in ℝ³. The system Ax = b has a solution only when b lies on this plane — that is, only when b₃ = 2b₁ + 3b₂.
Answer: Col(A) is the plane z = 2x + 3y through the origin in ℝ³.

Null Space as an Introduction

Definition — Null Space

The null space of a matrix A, written Nul(A), is the set of all vectors x satisfying Ax = 0:

Nul(A) = {x ∈ ℝⁿ : Ax = 0}

Nul(A) is a subspace of ℝⁿ — it lives in the input space.

Col(A) and Nul(A) are two of the four fundamental subspaces associated with a matrix, which will be developed fully in Chapter 10.

If Nul(A) = {0} (only the trivial solution), then every column of A contributes independent information and the transformation T(x) = Ax is one-to-one. If Nul(A) contains nonzero vectors, then multiple inputs produce the same output — some information is collapsed.

Example 8.11.1
Null space of a 2 × 2 matrix
  • ProblemFind Nul(A) where A = [[2, 4], [1, 2]].
  • Calculate [ 2 4 | 0 ] R₁↔R₂ [ 1 2 | 0 ] R₂−2R₁ [ 1 2 | 0 ] [ 1 2 | 0 ] ───────→ [ 2 4 | 0 ] ────────→ [ 0 0 | 0 ] x₂ = t is free; x₁ = −2t. Nul(A) = {t(−2, 1)ᵀ : t ∈ ℝ}
  • InterpretNul(A) is a line through the origin in ℝ². The two columns of A are proportional (column 2 = 2 × column 1), so the matrix collapses an entire line of inputs to zero. The transformation T(x) = Ax is not one-to-one.
Answer: Nul(A) = {t(−2, 1)ᵀ : t ∈ ℝ} — a line through the origin in ℝ².
Col(A) vs. Nul(A) — Which Space Is Which?

The null space of A lives in ℝⁿ (the input space — where x lives). The column space of A lives in ℝᵐ (the output space — where Ax lives). For an m × n matrix, these two spaces have different dimensions and live in completely different places. Do not confuse them.

Vector Spaces in Functions, Data, and Models

The abstraction of vector spaces is not merely theoretical. It appears throughout computing, data science, and applied science.

Polynomials as Data

In data modeling, polynomials of degree at most d form the vector space 𝒫d. Fitting a polynomial to data means finding a vector in this space that best matches the observed data. The idea of "best fit" — least squares — will be formalized in Chapter 11 using projections onto subspaces.

Signal Spaces

In engineering and signal processing, a discrete signal of length n is a vector in ℝⁿ. The space of all such signals is a vector space. Signal decomposition — separating a signal into frequency components — is a linear algebra operation that finds a specific basis for this space.

Data Matrices

In data science, a dataset of n observations with p features is stored as an n × p matrix. Each row is a vector in ℝᵖ (one observation); each column is a vector in ℝⁿ (one feature across all observations). Operations like projecting onto subspaces, finding null spaces, and computing rank all have concrete interpretations about what the data contains and where it repeats information redundantly.

Error Spaces in Modeling

When you fit a linear model to data, the model produces predictions and the differences between predictions and actual values (residuals) form a vector in ℝⁿ. The set of all possible residuals associated with a given model forms a subspace. Minimizing errors geometrically corresponds to projecting the data vector onto the column space of a matrix — a topic you will study in Chapter 11.

MGU Library Connection
  • Appendix J: Vector Space and Subspace Reference — formal definitions and quick checks
  • Chapter 9: Span, Linear Independence, and Basis — the next structural step
  • Chapter 10: Rank, Null Space, and the Fundamental Subspaces
  • Chapter 11: Orthogonality and Projections — least squares via subspace projection
  • MGU Data Science Foundations: linear regression and feature spaces
Sections 8.13 – 8.14
Common Mistakes and the Road Ahead
Seven Recurring Errors · Preparing for Span, Independence, and Basis

Common Vector Space Mistakes

Mistake 1 — Zero vector present means subspace
"The set contains the zero vector, so it must be a subspace."

The zero vector is necessary but not sufficient. You must also verify closure under addition and under scalar multiplication. Many sets contain the zero vector but fail one of the closure conditions.

Mistake 2 — Testing specific examples to "prove" a subspace
"I checked three specific pairs of vectors and their sums were in the set, so it's a subspace."

To prove a subspace, you must prove the conditions hold for all elements — a general argument, not specific cases. To disprove a subspace, one counterexample is enough. Testing specific cases can only disprove.

Mistake 3 — Confusing closure conditions
"I checked closure under addition, so I don't need to check scalar multiplication."

These are two separate conditions. A set can fail closure under scalar multiplication while satisfying closure under addition, or vice versa. Check both independently for every candidate subspace.

Mistake 4 — Thinking "vectors" must look like arrows
"Polynomials aren't vectors; they're functions, not arrows."

In an abstract vector space, "vector" refers to any element of the set, regardless of what it looks like. If the set and its operations satisfy the ten axioms, the elements are vectors in the sense of linear algebra. Polynomials, matrices, and sequences can all be vectors.

Mistake 5 — Assuming subspaces are always described by one equation
"A subspace in ℝⁿ is always described by a single linear equation."

In ℝ², a non-trivial proper subspace is a line (one equation). But in ℝⁿ, subspaces can have any dimension from 0 to n. In ℝ⁴, a two-dimensional subspace requires two independent linear equations. Subspaces can also be described as the span of a set of vectors, or as the null space of a matrix.

Mistake 6 — Confusing the null space and column space
"The null space of A is a subspace of ℝᵐ."

The null space Nul(A) lives in ℝⁿ (the input space — where x lives). The column space Col(A) lives in ℝᵐ (the output space — where Ax lives). For an m × n matrix, these are in completely different spaces. Confusing them leads to errors throughout Chapters 9–14.

Mistake 7 — Nonhomogeneous solution sets as subspaces
"The solution set of Ax = b is always a subspace."

Only the solution set of the homogeneous system Ax = 0 is guaranteed to be a subspace. If b ≠ 0, the zero vector is typically not a solution, so the solution set fails the first subspace condition immediately.

Preparing for Span and Independence

This chapter introduced vector spaces and subspaces as collections with consistent structure. You learned to verify the ten vector space axioms, apply the three-part subspace test, and identify important subspaces such as the solution set of a homogeneous system, the column space, and the null space.

The next question is natural: if you have a vector space or subspace, can you describe it efficiently? Rather than listing every vector in the space — impossible for an infinite set — you want to find a small set of vectors that "generates" the whole space. That is the idea of span and linear independence, which Chapter 9 will develop in full.

ConceptPreviewFirst Glimpse in Chapter 8
SpanThe set of all linear combinations of given vectors; what those vectors can "reach."Col(A) = span of the columns of A.
Linear independenceA set of vectors with no redundancy — none can be written as a combination of the others.When one column of A is a multiple of another, the null space is nontrivial.
BasisA spanning set that is also independent — the most efficient description of a space.The null space in Example 8.9.1 was spanned by two independent vectors.
DimensionThe number of vectors in any basis; how many independent directions a space has.The null space in Example 8.9.1 was two-dimensional (two free variables).
Looking Ahead
Chapter 9: Span, Linear Independence, and Basis

Chapter 9 will ask: what is the most efficient way to describe a subspace? You will learn that a span describes every vector a set can produce, linear independence means no vector in a set is redundant, a basis is a spanning set with no redundancy, and dimension counts the independent directions. The null space of Example 8.9.1 — expressed as all combinations of two specific vectors — was already pointing to these ideas. Chapter 9 will give them their full definitions and power.

Bridge to Calculus and Differential Equations

In calculus, Taylor polynomials express a function as a sum of power terms: 1 + x + x² + x³ + ···. Each power term is a "basis element" for the space of power series. In differential equations, the solution set of a linear equation forms a vector space, and its basis elements are the fundamental solutions. The foundation you build here — vector spaces, subspaces, span, independence, basis, dimension — carries directly into these later subjects. What you are learning is not just linear algebra; it is the structural language of modern mathematics.

Chapter Summary

Key Terms Review

vector space
A set with operations of addition and scalar multiplication satisfying the ten vector space axioms.
vectors
Any elements of a vector space — whether arrows, polynomials, matrices, or other objects.
scalars
The real numbers used in scalar multiplication in a vector space.
closure
The property that combining elements of a set (by addition or scalar multiplication) gives a result still in the set.
zero vector
The unique element 0 in a vector space satisfying v + 0 = v for all v.
additive inverse
The vector −v satisfying v + (−v) = 0. Every element of a vector space has one.
ℝⁿ
The vector space of all n-component real column vectors, with component-wise operations.
subspace
A subset of a vector space that is itself a vector space under the same operations.
trivial subspace
The subspace {0} consisting of only the zero vector.
subspace test
Three conditions sufficient to verify a subspace: contains 0, closed under addition, closed under scalar multiplication.
homogeneous system
A linear system Ax = 0 with the zero vector on the right-hand side. Always has the trivial solution x = 0.
null space
Nul(A) = {x ∈ ℝⁿ : Ax = 0}. A subspace of the input space ℝⁿ.
column space
Col(A) = {Ax : x ∈ ℝⁿ}. A subspace of the output space ℝᵐ. Contains all linear combinations of the columns of A.
𝒫d
The vector space of all polynomials of degree at most d, with standard polynomial addition and scalar multiplication.
ten axioms
The complete set of rules for a vector space: 2 closure, 4 addition, 4 scalar multiplication. All must hold.

Concept Review Questions

Part AVocabulary and Ideas
  1. State the three conditions of the subspace test.
  2. Why is a set that does not contain the zero vector automatically disqualified as a subspace?
  3. Is it possible for a subset of a vector space to be closed under addition but not under scalar multiplication? Give an example or explain why not.
  4. Explain in your own words why the solution set of Ax = 0 is always a subspace, but the solution set of Ax = b (with b ≠ 0) is generally not.
  5. Give one example of a vector space whose "vectors" are not arrows in ℝⁿ.
  6. What is the trivial vector space, and why does it satisfy the vector space axioms?
  7. In ℝ³, what are all the possible types of subspaces? Describe each geometrically.
  8. The column space of a matrix A lives in which vector space? The null space lives in which?
Part BSubspace Testing Practice

For each set, apply the three-part subspace test. If it is not a subspace, identify which condition fails.

  1. H = {(x, y)ᵀ ∈ ℝ² : y = 3x}
  2. H = {(x, y)ᵀ ∈ ℝ² : y = 3x + 1}
  3. H = {(x, y, z)ᵀ ∈ ℝ³ : x = 0}
  4. H = {(x, y, z)ᵀ ∈ ℝ³ : x + y + z = 1}
  5. H = {(x, y, z)ᵀ ∈ ℝ³ : x − y = 0 and z = 0}
  6. H = {(x, y)ᵀ ∈ ℝ² : |x| = |y|}
  7. H = {p(x) ∈ 𝒫₂ : p(0) = 0} (polynomials in 𝒫₂ vanishing at x = 0)
  8. H = {p(x) ∈ 𝒫₂ : p(1) = 0}
  9. H = {A ∈ ℳ₂ₓ₂ : A is symmetric, i.e., Aᵀ = A}
  10. H = {A ∈ ℳ₂ₓ₂ : det(A) = 0}
Part CExamples and Nonexamples

For each set, state whether it is a vector space under standard operations, give your reasoning, and name the zero vector if it is a vector space.

  1. 𝒫₃, polynomials of degree at most 3.
  2. The set of all 3 × 3 matrices with real entries.
  3. The set of all 2 × 2 matrices with determinant 0.
  4. The set of all vectors in ℝ⁴ whose entries sum to zero.
  5. The set {(x, y)ᵀ ∈ ℝ² : x ≥ 0}.
  6. A student claims that the set of all polynomials of degree exactly 3, together with the zero polynomial, forms a vector space. Is this correct? Test closure.
Part DNull Space and Column Space Practice

For each matrix A, find Nul(A) by solving Ax = 0. Express as a set of scalar multiples or combinations of specific vectors.

  1. A = [[1, −2], [2, −4]]
  2. A = [[1, 0, 2], [0, 1, −1]]
  3. A = [[1, 2, 0], [0, 1, 1], [0, 0, 0]]

For each matrix A, describe Col(A) — what space it lives in and what subspace it is (a line, a plane, all of the space, etc.).

  1. A = [[1, 0], [0, 1]]
  2. A = [[1, 2], [2, 4]]
  3. A = [[1, 0, 3], [0, 1, −1]]

Application Questions

  1. Nutrition data. A nutrition database records five measurements for each food item: protein, fat, carbohydrates, fiber, and calories. Each food item corresponds to a vector in ℝ⁵. Is the set of all food vectors a vector space? Now suppose you restrict to all foods with exactly zero calories. Is this set a subspace? Explain.
  2. Network flows. In a small city network, a traffic pattern is a vector in ℝ⁸ (one entry per road). A "feasible pattern" satisfies linear balance conditions Ax = 0 at intersections. Why does the set of all feasible patterns form a subspace?
  3. Image processing. Each 4-pixel grayscale image is a vector in ℝ⁴ with entries 0–255. The set of all possible images is a vector space. Is the subset where all four pixel values are nonnegative also a subspace? What about the subset where the sum of all four pixel values is exactly 0?

Error Analysis

Each problem shows a student's work. Find the error and explain how to correct it.

Error Analysis 1
"I checked three pairs: (0.3, 0.4)ᵀ + (0.5, 0.5)ᵀ = (0.8, 0.9)ᵀ and that's still in the disk, so the closed unit disk is a subspace."

Find the actual error. Produce a concrete counterexample to show that the closed unit disk fails at least one subspace condition.

Error Analysis 2
"To show that the solution set of Ax = 0 is a subspace, I just need to note that the zero vector is always a solution. Since the zero vector is present, it's a subspace."

What is wrong with this reasoning? State all three conditions and explain why the zero vector alone is not sufficient.

Error Analysis 3
"The column space of A = [[1, 2], [3, 6]] is ℝ², because A is 2 × 2 and its column space must be all of ℝ²."

Find the error. Compute Col(A) correctly and describe it geometrically.

Error Analysis 4
"The null space of A is a subspace of ℝᵐ, and the column space is a subspace of ℝⁿ."

What has the student confused? State the correct spaces for each, and explain why the dimensions matter.

Chapter 8 Checkpoint

Chapter 8 Checkpoint
Complete without assistance — assesses all key skills and concepts from Chapter 8
Part A — Vocabulary and Concepts
  1. Define a vector space in your own words, without listing all ten axioms. Then explain why the ten axioms are still needed.
  2. State the three-part subspace test.
  3. Give one example of a subspace of ℝ³ and one example of a subset of ℝ³ that is not a subspace. For each, explain why it does or does not satisfy the three conditions.
Part B — Subspace Testing
  1. Determine whether each set is a subspace of ℝ³. Show all three steps.

    (a) H = {(x, y, z)ᵀ : 3x − y + 2z = 0}
    (b) H = {(x, y, z)ᵀ : x = 1}
    (c) H = {(x, y, z)ᵀ : xy = 0}
Part C — Null Space and Column Space
  1. Let A = [[1, 3, −2], [2, 6, −4]].

    (a) Find Nul(A) by solving Ax = 0.
    (b) Describe Col(A) geometrically.
    (c) For which vectors b ∈ ℝ² is the system Ax = b consistent?
Part D — Examples and Nonexamples
  1. Let V = {a + bx : a, b ∈ ℝ} — all polynomials of degree at most 1.

    (a) Is V a vector space under standard polynomial operations? Verify by checking the three most important axioms.
    (b) Let H = {a + bx ∈ V : a = 2b}. Is H a subspace of V?
Part E — Application
  1. A small factory uses labor and material to produce three products. Production levels form a vector x = (x₁, x₂, x₃)ᵀ ∈ ℝ³. Constraints are modeled by Ax = 0.

    (a) Explain why the set of all feasible production vectors (solutions to Ax = 0) forms a subspace.
    (b) If A = [[1, 1, 1], [2, 1, 3]], find the null space and describe it geometrically.
MGU Library Connection
  • Appendix J: Vector Space and Subspace Reference — formal summary and quick-check guide
  • Appendix K: Span, Independence, Basis, and Dimension Reference — preview of Chapter 9 concepts
  • Chapter 9: Span, Linear Independence, and Basis — the next chapter in this sequence
  • Chapter 10: Rank, Null Space, and the Fundamental Subspaces — full treatment of Col(A) and Nul(A)
  • MGU Dictionary entries: vector space, subspace, null space, column space, linear combination
  • MGU Data Science Foundations, Chapter 3: Feature spaces and linear models