08-01 โ Vector Spaces
Phase: 8 โ Linear Algebra (Rigorous) Subject: 08-01 Prerequisites: Phase 7 complete; familiarity with vectors in R^n and basic matrix algebra Next subject: 08-02 โ Linear Independence and Basis
Learning Objectives
By the end of this subject, you will be able to:
- State the eight axioms of a vector space over a field and verify whether a given set with operations satisfies them
- Determine whether a subset is a subspace using the subspace test (closed under addition and scalar multiplication)
- Express vectors as linear combinations of a given set, and compute the span of a set of vectors
- Define and compute the null space and column space of a matrix, and relate them to the solutions of Ax = 0 and Ax = b
- Distinguish between concrete vector spaces (R^n, P_n, M_{mรn}) and abstract vector spaces, recognizing the unifying structure
Core Content
1. Definition: Vector Space
A vector space V over a field F (for us, usually F = R or C) is a set equipped with two operations โ addition and scalar multiplication โ satisfying eight axioms.
Vector addition: For every u, v โ V, there is a unique u + v โ V.
Scalar multiplication: For every c โ F and v โ V, there is a unique cv โ V.
CRITICAL โ Foundational: The eight vector space axioms are the bedrock of linear algebra. Every theorem โ subspaces, linear transformations, dimension โ traces back to these. Master these before proceeding.
The eight axioms: For all u, v, w โ V and all scalars a, b โ F:
- Associativity of addition: u + (v + w) = (u + v) + w
- Commutativity of addition: u + v = v + u
- Existence of additive identity: There exists 0 โ V such that v + 0 = v for all v
- Existence of additive inverses: For each v โ V, there exists โv โ V such that v + (โv) = 0
- Compatibility of scalar multiplication with field multiplication: a(bv) = (ab)v
- Identity element of scalar multiplication: 1ยทv = v (where 1 is the multiplicative identity in F)
- Distributivity of scalar multiplication over vector addition: a(u + v) = au + av
- Distributivity of scalar multiplication over field addition: (a + b)v = av + bv
Examples of vector spaces:
- R^n: n-tuples of real numbers with componentwise addition and scalar multiplication
- P_n: Polynomials of degree โค n with usual polynomial addition and scalar multiplication
- M_{mรn}: All m ร n matrices with matrix addition and scalar multiplication
- C[a, b]: Continuous functions on [a, b] with pointwise addition and scalar multiplication
- {0}: The zero vector space containing only the zero vector
Non-examples (common pitfalls):
- The set of integers Z over R is NOT a vector space because scalar multiplication by 1/2 does not stay in Z (violates closure)
- The set of polynomials of degree exactly 3 is NOT a vector space because adding two degree-3 polynomials can cancel the leading term, yielding degree โค 2 (not closed under addition)
- R^2 with addition defined as (xโ, yโ) + (xโ, yโ) = (xโ + xโ, 0) fails the existence of additive inverses: what is the inverse of (1, 1)?
Theorem: Basic properties of vector spaces. For any v โ V and scalar c: - 0ยทv = 0 (the zero vector) - cยท0 = 0 - (โ1)ยทv = โv - If cv = 0, then c = 0 or v = 0
Proof of 0ยทv = 0:
0ยทv = (0+0)ยทv = 0ยทv + 0ยทv (axiom 8)
Subtract 0ยทv from both sides: 0 = 0ยทv.
2. Subspaces
A subspace W of a vector space V is a subset of V that is itself a vector space under the same operations. Rather than checking all eight axioms, we use:
Subspace Test: W โ V is a subspace iff: 1. Contains zero: 0 โ W (or equivalently, W is nonempty) 2. Closed under addition: u, v โ W โน u + v โ W 3. Closed under scalar multiplication: c โ F, v โ W โน cv โ W
Common Pitfall: Always check
0 โ WFIRST โ if it fails, you're done. The most common mistake is forgetting that subspaces must contain the origin.
Examples of subspaces:
- In R^3: any line or plane through the origin
- In P_n: the set of all even polynomials (only even-degree terms)
- In M_{nรn}: the set of all symmetric matrices
- {0} (the trivial subspace) and V itself are always subspaces
Non-examples: A line or plane NOT through the origin is NOT a subspace โ it fails the zero vector test. A quadrant in R^2 (e.g., all (x, y) with x โฅ 0, y โฅ 0) is NOT a subspace โ not closed under scalar multiplication by negative scalars.
Intersection of subspaces: If Wโ and Wโ are subspaces, then Wโ โฉ Wโ is a subspace. Proof: 0 โ Wโ and 0 โ Wโ, so 0 โ Wโ โฉ Wโ. If u, v โ Wโ โฉ Wโ, then u+v โ Wโ and u+v โ Wโ, so u+v โ Wโ โฉ Wโ. Closure under scalar multiplication is similar.
But the UNION of subspaces is generally NOT a subspace (unless one contains the other). Consider the x-axis and y-axis in R^2: (1,0) + (0,1) = (1,1) is in neither axis.
3. Linear Combinations and Span
Definition: A linear combination of vectors vโ, vโ, ..., v_n is an expression of the form:
$cโvโ + cโvโ + ... + c_n v_n $
where cโ, ..., c_n โ F are scalars.
Definition: The span of a set S = {vโ, ..., v_n} is:
span(S) = {cโvโ + ... + c_n v_n : cโ, ..., c_n โ F}
โ the set of ALL linear combinations of vectors in S.
Key facts about span:
- span(S) is always a subspace (the smallest subspace containing S)
- If W is a subspace containing S, then span(S) โ W
- span(โ ) = {0} (by convention)
- A vector w โ span(S) iff the system cโvโ + ... + c_n v_n = w has a solution
Example: In R^3, let vโ = (1, 0, 0) and vโ = (0, 1, 0). Then span{vโ, vโ} = {(x, y, 0) : x, y โ R} โ the xy-plane through the origin.
Example: Does (2, 6, โ4) โ span{(1, 2, โ1), (0, 1, 1)}? Solve:
$cโ(1,2,-1) + cโ(0,1,1) = (2,6,-4) $
This gives the system:
$cโ = 2 2cโ + cโ = 6 โ 4 + cโ = 6 โ cโ = 2 -cโ + cโ = -4 โ -2 + 2 = 0 โ -4 $
Inconsistent! So (2, 6, โ4) โ span{(1,2,โ1), (0,1,1)}.
4. Null Space and Column Space
For an m ร n matrix A over R:
Null space (kernel): N(A) = {x โ R^n : Ax = 0}
The null space is the set of all solutions to the homogeneous equation. It is a subspace of R^n.
Column space (range/image): C(A) = {Ax : x โ R^n} = span{columns of A}
The column space is a subspace of R^m. It tells us which vectors b make Ax = b consistent.
Key relationship: The system Ax = b has a solution iff b โ C(A).
Finding N(A) by Gaussian elimination:
A = [1 2 1]
[2 4 2]
Reduce: [1 2 1] โ xโ + 2xโ + xโ = 0
[0 0 0]
Free variables: xโ = s, xโ = t
Then xโ = -2s - t
N(A) = {(-2s-t, s, t) : s, t โ R}
= span{(-2, 1, 0), (-1, 0, 1)}
Dimension relationships (preview of rank-nullity): dim(N(A)) = number of free variables = n โ rank(A) dim(C(A)) = rank(A) = number of pivot columns
Common misconception: N(A) is a subspace of the DOMAIN R^n, while C(A) is a subspace of the CODOMAIN R^m. They live in different spaces!
Key Terms
- 08 01 Vector Spaces
- Correct: A) R^3
- Correct: B) 1
- Correct: B) R^n
- Correct: B) The xy-plane
- Correct: B) {p โ Pโ : pโฒ(0) = 0}
- Correct: C) 4
- Correct: C) The set of all integers Z
- Correct: D) Both B and C
- Definition: Vector Space
- End-of-Subject Quiz
- Example 1: Verifying a Vector Space
Worked Examples
Example 1: Verifying a Vector Space
Problem: Prove that V = {(x, y, z) โ R^3 : x + y + z = 0} is a vector space under the usual operations on R^3.
Solution: Since V is a subset of the known vector space R^3, we just need the subspace test.
Step 1 โ Contains zero: 0 + 0 + 0 = 0, so (0, 0, 0) โ V. โ
Step 2 โ Closed under addition: Let u = (xโ, yโ, zโ), v = (xโ, yโ, zโ) โ V. Then xโ + yโ + zโ = 0 and xโ + yโ + zโ = 0. u + v = (xโ+xโ, yโ+yโ, zโ+zโ). Sum of components: (xโ+xโ) + (yโ+yโ) + (zโ+zโ) = (xโ+yโ+zโ) + (xโ+yโ+zโ) = 0 + 0 = 0. โ
Step 3 โ Closed under scalar multiplication: Let c โ R, v โ V. cv = (cx, cy, cz). Sum: cx + cy + cz = c(x + y + z) = cยท0 = 0. โ
All three conditions satisfied, so V is a subspace (and hence a vector space). Geometrically, this is the plane through the origin with normal vector (1, 1, 1).
Example 2: Span and Linear Combinations
Problem: Determine whether the polynomial p(x) = 2xยฒ โ 3x + 1 belongs to span{1, x, xยฒ โ x} in Pโ.
Solution: We need scalars a, b, c such that:
$a(1) + b(x) + c(xยฒ โ x) = 2xยฒ โ 3x + 1 $
Equating coefficients of like powers:
$xยฒ: c = 2 xยน: b โ c = โ3 โ b โ 2 = โ3 โ b = โ1 xโฐ: a = 1 $
We found a = 1, b = โ1, c = 2. So:
$1ยท(1) + (โ1)ยท(x) + 2ยท(xยฒ โ x) = 1 โ x + 2xยฒ โ 2x = 2xยฒ โ 3x + 1 โ $
Yes, p(x) โ span{1, x, xยฒ โ x}.
Example 3: Null Space Computation
Problem: Find the null space of A = [1 2 3; 2 4 6; 1 1 1].
Solution (step-by-step):
Step 1 โ Row reduce A:
$[1 2 3] Rโ-2Rโ [1 2 3] [2 4 6] ----------> [0 0 0] [1 1 1] Rโ-Rโ [0 -1 -2] $
Step 2 โ Swap RโโRโ and eliminate:
$[1 2 3] Rโ+2Rโ [1 0 -1] [0 -1 -2] ----------> [0 1 2] [0 0 0] [0 0 0] $
Step 3 โ Read from RREF: xโ โ xโ = 0 โ xโ = xโ xโ + 2xโ = 0 โ xโ = โ2xโ xโ = free = t
So x = (t, โ2t, t) = t(1, โ2, 1).
N(A) = span{(1, โ2, 1)}. It's a 1-dimensional subspace of R^3 โ a line through the origin.
Step 4 โ Verify: A(1, โ2, 1)^T = (1โ4+3, 2โ8+6, 1โ2+1)^T = (0, 0, 0)^T. โ
Example 4: Column Space and Consistency
Problem: Does Ax = b where A = [1 2; 3 6] and b = (3, 9)^T have a solution?
Solution: We check whether b โ C(A).
The columns of A are vโ = (1, 3)^T and vโ = (2, 6)^T. Note vโ = 2vโ, so C(A) = span{(1, 3)^T}.
We need b = cยท(1, 3)^T for some c: (3, 9)^T = 3ยท(1, 3)^T. Yes! So b โ C(A), and the system is consistent.
Indeed: xโ + 2xโ = 3, 3xโ + 6xโ = 9. The second is 3ร the first, so one equation. Solutions: xโ = 3 โ 2t, xโ = t (infinitely many).
Edge case: If b = (3, 10)^T, then b is not a scalar multiple of (1, 3)^T, so b โ C(A), and the system is inconsistent.
Quiz
Q1: Which of the following is NOT one of the eight vector space axioms?
A) u + v = v + u (commutativity of addition) B) a(u + v) = au + av (distributivity) C) u ยท v = v ยท u (commutativity of dot product) D) There exists 0 โ V such that v + 0 = v
Correct: C)
- If you chose C: The dot product is not part of the vector space axioms โ it's an additional structure (inner product) not required for a vector space. Correct!
- If you chose A: Commutativity of addition IS one of the eight axioms.
- If you chose B: Distributivity of scalar multiplication over vector addition IS an axiom.
- If you chose D: Existence of additive identity IS an axiom (axiom 3).
Q2: To verify that a subset W โ V is a subspace, you must check:
A) W is nonempty, and W is closed under addition B) W contains the zero vector, is closed under addition, and is closed under scalar multiplication C) W satisfies all eight vector space axioms D) W is closed under scalar multiplication only
Correct: B)
- If you chose B: The subspace test requires: 0 โ W, and for any u, v โ W and scalar c, u + v โ W and cv โ W. Correct!
- If you chose A: Missing closure under scalar multiplication.
- If you chose C: If W is a subset and passes the subspace test, the eight axioms are inherited from V.
- If you chose D: Both closure properties are required.
Q3: The span of vectors {vโ, ..., v_k} is:
A) The set of all scalar multiples of vโ B) The set of all linear combinations cโvโ + ... + c_k v_k C) The set of all vectors perpendicular to each v_i D) The dot product of all v_i
Correct: B)
- If you chose B: The span is exactly the set of all linear combinations of the given vectors. Correct!
- If you chose A: That's only the span of {vโ}, not the full set.
- If you chose C: That describes the orthogonal complement, not the span.
- If you chose D: The dot product of multiple vectors is not defined this way.
Q5: The null space of a matrix A is:
A) The set of all vectors b such that Ax = b has a solution B) The set of all vectors x such that Ax = 0 C) The set of all columns of A D) The set of all rows of A
Correct: B)
- If you chose B: Null(A) = {x : Ax = 0} โ it's the solution set of the homogeneous equation. Correct!
- If you chose A: That describes the column space (range) โ vectors b for which Ax = b is consistent.
- If you chose C: The set of columns spans the column space, not the null space.
- If you chose D: The row space is the span of the rows, distinct from the null space.
Q6: Which set is NOT a vector space (over R)?
A) All polynomials of degree exactly 3 B) All 2 ร 2 matrices with real entries C) All continuous functions on [0, 1] D) R^n with componentwise operations
Correct: A)
- If you chose A: The sum of two degree-3 polynomials could have degree < 3 (cancellation of leading terms), violating closure. Polynomials of degree โค 3 form a vector space. Correct!
- If you chose B: M_{2ร2} is a vector space.
- If you chose C: C[0, 1] is a vector space under pointwise operations.
- If you chose D: R^n is the canonical vector space.
Q4: If vectors vโ, ..., v_k span a vector space V, then:
A) Every vector in V can be written as a linear combination of vโ, ..., v_k B) vโ, ..., v_k are linearly independent C) k is the dimension of V D) The vectors are orthogonal
Correct: A)
- If you chose A: Spanning means every vector is a linear combination of the spanning set. Correct!
- If you chose B: Spanning sets can be linearly dependent (e.g., {v, 2v} still spans the same line).
- If you chose C: k could be larger than the dimension if the set is dependent.
- If you chose D: Spanning sets aren't required to be orthogonal.
Practice Problems
(Answers are below. Try each problem before checking.)
Problem 1: Determine whether W = {(x, y) โ R^2 : x โฅ 0} is a subspace of R^2.
Problem 2: Prove that the set of all 2ร2 symmetric matrices is a subspace of M_{2ร2}.
Problem 3: In R^3, does v = (4, โ1, 8) belong to span{(1, 2, โ1), (2, โ1, 3)}?
Problem 4: Find N(A) and C(A) for A = [1 1 0; 2 1 1; 3 2 1].
Problem 5: Show that span{u, v} = span{u+v, uโv} when u, v are vectors in a vector space over F where 2 โ 0.
Problem 6: Determine whether the set of all polynomials p in Pโ satisfying p(1) = 0 is a subspace of Pโ.
Problem 7: Express (7, 7, 7) as a linear combination of (1, 2, 3), (3, 2, 1), and (1, 1, 1).
Answers (click to expand)
**Problem 1:** W is NOT a subspace. While it contains (0, 0), it is not closed under scalar multiplication: (โ1)ยท(1, 0) = (โ1, 0) โ W because โ1 < 0. Geometrically, it's a closed half-plane, which is not a subspace because subspaces extend in all directions. **Problem 2:** Let S = {A โ M_{2ร2} : A^T = A}. A symmetric 2ร2 matrix has form [a b; b c]. Contains zero: The zero matrix [0 0; 0 0] is symmetric. โ Closed under addition: If A = [a b; b c] and B = [d e; e f] are symmetric, then A+B = [a+d b+e; b+e c+f] is also symmetric (the off-diagonal entries match). โ Closed under scalar multiplication: If A is symmetric, cA = [ca cb; cb cc] is symmetric. โ So S is a subspace. Its dimension is 3 (basis: [1 0; 0 0], [0 1; 1 0], [0 0; 0 1]). **Problem 3:** Solve cโ(1, 2, โ1) + cโ(2, โ1, 3) = (4, โ1, 8):$cโ + 2cโ = 4 2cโ โ cโ = โ1 โcโ + 3cโ = 8 $From eq1: cโ = 4 โ 2cโ. Substitute into eq2: 2(4โ2cโ) โ cโ = โ1 โ 8 โ 4cโ โ cโ = โ1 โ โ5cโ = โ9 โ cโ = 9/5. Then cโ = 4 โ 2(9/5) = 4 โ 18/5 = 2/5. Check eq3: โ(2/5) + 3(9/5) = โ2/5 + 27/5 = 25/5 = 5 โ 8. Inconsistent! So v โ span. **Problem 4:** Row reduce A:
$[1 1 0] Rโ-2Rโ [1 1 0] Rโ/(-1) [1 1 0] [2 1 1] ----------> [0 -1 1] ----------> [0 1 -1] Rโ-Rโ [1 0 1] [3 2 1] Rโ-3Rโ [0 -1 1] [0 0 0] [0 0 0] $RREF: xโ + xโ = 0, xโ โ xโ = 0. Let xโ = t: xโ = โt, xโ = t. N(A) = {t(โ1, 1, 1) : t โ R} = span{(โ1, 1, 1)}. C(A) = span{columns 1 and 2 of original A} = span{(1, 2, 3)^T, (1, 1, 2)^T}. Dimension = rank(A) = 2. **Problem 5:** We need to show each set is contained in the span of the other. First, u+v โ span{u, v} (coefficients 1, 1) and uโv โ span{u, v} (coefficients 1, โ1), so span{u+v, uโv} โ span{u, v}. Conversely, u = (1/2)(u+v) + (1/2)(uโv) and v = (1/2)(u+v) โ (1/2)(uโv) โ but this requires 2 โ 0 in F (i.e., char(F) โ 2). Since both u and v are linear combinations of u+v and uโv, span{u, v} โ span{u+v, uโv}. Hence span{u, v} = span{u+v, uโv}. **Problem 6:** Let W = {p โ Pโ : p(1) = 0}. Contains zero: The zero polynomial p(x) โก 0 satisfies p(1) = 0. โ Closed under addition: If p(1) = 0 and q(1) = 0, then (p+q)(1) = p(1) + q(1) = 0 + 0 = 0. โ Closed under scalar multiplication: If p(1) = 0, then (cp)(1) = cยทp(1) = cยท0 = 0. โ Yes, W is a subspace (the set of polynomials with root x=1 has dimension 3 in Pโ). **Problem 7:** Solve a(1,2,3) + b(3,2,1) + c(1,1,1) = (7,7,7):
$a + 3b + c = 7 2a + 2b + c = 7 3a + b + c = 7 $Subtract eq2 โ eq1: a โ b = 0 โ a = b. Subtract eq3 โ eq2: a โ b = 0 โ consistent with a = b. With a = b, eq1 becomes: a + 3a + c = 7 โ 4a + c = 7. eq2: 2a + 2a + c = 7 โ 4a + c = 7. Same equation. So c = 7 โ 4a, a free. One solution: let a = 1, then b = 1, c = 3: (1,2,3) + (3,2,1) + 3(1,1,1) = (1+3+3, 2+2+3, 3+1+3) = (7,7,7). โ
Summary
- A vector space is defined by eight axioms; verifying a set is a vector space means checking each one (unless the set is a subset of a known vector space, where the 3-condition subspace test suffices)
- The subspace test (contains zero, closed under addition, closed under scalar multiplication) is the primary tool for identifying subspaces โ a line through the origin is a subspace, a line not through the origin is not
- The span of a set of vectors is the vector space of ALL linear combinations; determining membership in span reduces to solving a linear system
- The null space N(A) = {x : Ax = 0} is a subspace of the domain R^n; the column space C(A) = {Ax : x โ R^n} is a subspace of the codomain R^m โ they exist in different universes
- Ax = b is consistent iff b โ C(A); the general solution is x_particular + N(A)
Pitfalls
-
Forgetting to check for closure before verifying the other axioms. A set that doesn't contain the zero vector or isn't closed under addition/scalar multiplication is immediately not a vector space. Always do the subspace test (zero, closed under addition, closed under scalar multiplication) before checking the eight axioms individually.
-
Confusing the domain and codomain when identifying N(A) and C(A). The null space N(A) is a subspace of R^n (the domain, where x lives). The column space C(A) is a subspace of R^m (the codomain, where Ax lives). They exist in different spaces with possibly different dimensions.
-
Assuming a set is a vector space just because it's a subset of one. Subsets of vector spaces are not automatically subspaces. A line in R^2 is a subspace only if it passes through the origin. The first quadrant of R^2 is not a subspace because it fails closure under scalar multiplication by negative numbers.
-
Misapplying the span test. Determining whether a vector w belongs to span{vโ, โฆ, v_n} requires solving a linear system. A common error is to check only one or two equations instead of all of them. The system must be consistent for EVERY component, not just some.
-
Confusing "span" with "basis." The span of a set of vectors is the subspace of all linear combinations. A basis is a linearly independent spanning set. An arbitrary spanning set may be redundant (dependent); converting a spanning set to a basis requires removing dependent vectors.
Next Steps
Move on to 08-02 โ Linear Independence and Basis to learn how to identify when vectors are independent, how to construct bases โ minimal spanning sets โ and how to define the dimension of a vector space, including coordinate representations and change-of-basis transformations.