08-02 ā Linear Independence and Basis
Phase: 8 ā Linear Algebra (Rigorous) Subject: 08-02 Prerequisites: 08-01 ā Vector Spaces Next subject: 08-03 ā Linear Transformations
Learning Objectives
By the end of this subject, you will be able to:
- Distinguish between linearly independent and linearly dependent sets using the definition and the determinant test (for square systems)
- Define a basis, prove a set is a basis using the spanning + independence criteria, and compute the dimension of a vector space
- Express vectors in coordinates relative to a given basis and relate different coordinate representations via change-of-basis matrices
- Apply basis concepts to concrete spaces: find bases for N(A), C(A), and polynomial spaces
- Prove fundamental facts: every linearly independent set extends to a basis, every spanning set contains a basis, and all bases of a finite-dimensional space have the same size
Core Content
1. Linear Independence and Dependence
CRITICAL ā Foundational: Linear independence is the most important concept in linear algebra. The test is simple ā $cāvā + ... + c_n v_n = 0 ā all c_i = 0$ ā but applying it correctly across different spaces (polynomials, functions, matrices) takes practice.
Definition: A set of vectors {vā, vā, ..., v_n} in a vector space V is linearly independent if the equation
$cāvā + cāvā + ... + c_n v_n = 0 $
has ONLY the trivial solution cā = cā = ... = c_n = 0.
The set is linearly dependent if there exist scalars, NOT ALL ZERO, such that the linear combination equals the zero vector.
Equivalent characterizations: - Dependent iff at least one vector in the set is a linear combination of the others - A set containing the zero vector is ALWAYS dependent (take cā = 1 for the zero vector, all others 0) - A set of one vector {v} is independent iff v ā 0
Geometric intuition (R^n): - 1 vector: independent if nonzero ā spans a line - 2 vectors: independent if not collinear ā span a plane - 3 vectors: independent if not coplanar ā span R^3 - m > n vectors in R^n: ALWAYS dependent (more on this with dimension)
Testing independence (computational approach):
Form a matrix A whose columns are the vectors. Solve Ac = 0: - If the only solution is c = 0, the columns are independent - If nontrivial solutions exist, the columns are dependent (each free variable gives a dependence relation)
Example: Test {(1, 2, 3), (4, 5, 6), (7, 8, 9)} in R^3.
$[1 4 7] [cā] [0] [2 5 8] [cā] = [0] [3 6 9] [cā] [0] $
Row reduce: Rāā2Rā, Rāā3Rā:
$[1 4 7] [1 4 7] [0 -3 -6] Rā/Rā [0 1 2] [0 -6 -12] [0 0 0] $
Free variable cā = t ā cā = ā2t, cā = ā4cā ā 7cā = 8t ā 7t = t. So (t, ā2t, t) is a nontrivial solution for any t ā 0. The set is dependent. Indeed, vā = vā + vā.
Theorem: In R^n, a set of n vectors is independent iff det(A) ā 0, where A has them as columns.
2. Basis
Definition: A set B = {bā, bā, ..., b_n} is a basis for a vector space V if: 1. B spans V: span(B) = V (every v ā V is a linear combination of the bįµ¢) 2. B is linearly independent
Key property of a basis (unique representation): Every v ā V can be expressed UNIQUELY as v = cābā + ... + c_n b_n. The scalars (cā, ..., c_n) are the coordinates of v relative to B, written [v]_B.
Proof of uniqueness: If v = Ī£cįµ¢bįµ¢ = Ī£dįµ¢bįµ¢, then Ī£(cįµ¢ādįµ¢)bįµ¢ = 0. By independence, all cįµ¢ādįµ¢ = 0, so cįµ¢ = dįµ¢. ā
Standard bases: - R^n: eā = (1,0,...,0), eā = (0,1,0,...,0), ..., e_n = (0,...,0,1) ā the standard basis - P_n: {1, x, x², ..., x^n} ā the monomial basis - M_{2Ć2}: {[1 0; 0 0], [0 1; 0 0], [0 0; 1 0], [0 0; 0 1]}
Non-standard basis example for R^2: B = {(1, 1), (1, ā1)}. - Independence: cā(1,1) + cā(1,ā1) = (0,0) ā (cā+cā, cāācā) = (0,0) ā cā = cā = 0 ā - Spanning: For any (a, b), solve cā(1,1) + cā(1,ā1) = (a,b) ā cā = (a+b)/2, cā = (aāb)/2 ā
So [v]_B = ((a+b)/2, (aāb)/2) for v = (a, b).
3. Dimension
Theorem: If a vector space V has a finite basis, then ALL bases of V have the same number of vectors.
Common Pitfall: Students confuse 'a basis' (any set satisfying spanning + independence) with 'the standard basis' (the familiar one). There are infinitely many bases ā the standard basis is just one choice.
Definition: The dimension of V, denoted dim(V), is the number of vectors in any basis. V is finite-dimensional if it has a finite basis.
Key facts: - dim(R^n) = n - dim(P_n) = n + 1 - dim(M_{mĆn}) = mn - dim({0}) = 0 (the empty set is a basis)
Theorems about dimension: 1. If V is finite-dimensional with dim(V) = n, then any independent set has ⤠n vectors, and any spanning set has ℠n vectors 2. Any independent set of n vectors in V is automatically a basis 3. Any spanning set of n vectors in V is automatically a basis 4. Every independent set can be extended to a basis 5. Every spanning set can be reduced to a basis
4. Bases for Fundamental Subspaces
Basis for N(A): From RREF, assign each free variable to be 1 in turn (and all others 0), solve for pivot variables. These vectors form a basis. Size = n ā rank(A).
Basis for C(A): The pivot columns of the ORIGINAL matrix A (not the RREF) form a basis. Size = rank(A).
Example: A = [1 2 1; 2 4 3]
RREF: [1 2 0]
[0 0 1]
Cols 1 and 3 are pivot columns ā basis of C(A): {(1,2)^T, (1,3)^T}. Free variable xā = t ā xā = ā2t, xā = 0 ā basis of N(A): {(ā2, 1, 0)}.
5. Change of Basis
Given two bases B = {bā, ..., b_n} and C = {cā, ..., c_n} of V, the change-of-basis matrix P_{CāB} maps coordinates relative to B to coordinates relative to C:
$[v]_C = P_{CāB} [v]_B
$
Construction: The i-th column of P_{CāB} is [b_i]_C ā the coordinates of the i-th basis vector of B expressed in C.
Properties: - P_{BāB} = I (the identity) - P_{BāC} = (P_{CāB})ā»Ā¹ - P_{DāB} = P_{DāC} P_{CāB} (chain rule)
Example (R^2): B = {(1, 1), (1, ā1)}, C = standard basis {eā, eā}.
P_{CāB}: column 1 = [(1,1)]_C = (1,1), column 2 = [(1,ā1)]_C = (1,ā1).
$P_{CāB} = [1 1]
[1 -1]
$
If [v]B = (3, 1), then [v]_C = P{CāB} [v]_B = [1 1; 1 ā1][3; 1] = (4, 2). Indeed, 3(1,1) + 1(1,ā1) = (4,2). ā
Common misconception: The change-of-basis matrix does NOT change the vector; it changes the coordinate REPRESENTATION of the same vector. The vector v = (4, 2) is the same point in R^2 regardless of basis.
Key Terms
- 08 02 Linear Independence And Basis
- Bases for Fundamental Subspaces
- Basis
- Change of Basis
- Correct: B) 4
- Correct: B) A basis
- Correct: B) An n Ć n invertible matrix
- Correct: B) [b_i]_C
- Correct: B) n + 1
- Correct: B) {(ā2, 1)}
- Correct: D) 6
- Correct: D) All of the above
Worked Examples
Example 1: Testing Independence in Pā
Problem: Are pā(x) = 1 + x, pā(x) = 1 ā x, pā(x) = x² linearly independent in Pā?
Solution: Check cā(1+x) + cā(1āx) + cā(x²) = 0 (the zero polynomial).
Expand: (cā + cā) + (cā ā cā)x + cā x² = 0 + 0x + 0x².
Equate coefficients:
$cā + cā = 0 (constant term) cā ā cā = 0 (x term) cā = 0 (x² term) $
From equations 1 and 2: cā + cā = 0 and cā ā cā = 0 ā add: 2cā = 0 ā cā = 0 ā cā = 0. So cā = cā = cā = 0. The set is linearly independent.
Since dim(Pā) = 3 and we have 3 independent vectors, {1+x, 1āx, x²} is a basis for Pā!
Example 2: Extending to a Basis
Problem: Extend {(1, 2, 1)} to a basis of R^3.
Solution: dim(R^3) = 3, so we need 2 more independent vectors. We add standard basis vectors and discard any that become dependent.
Start with B = {(1, 2, 1)}.
Try eā = (1, 0, 0): Are (1,2,1) and (1,0,0) independent? Yes ā they're not scalar multiples. Add eā: B = {(1,2,1), (1,0,0)}.
Try eā = (0, 1, 0): Check if (0,1,0) is in span{(1,2,1), (1,0,0)}. Solve:
$a(1,2,1) + b(1,0,0) = (0,1,0) ā (a+b, 2a, a) = (0,1,0) ā a = 0, b = 0, but 2a = 0 ā 1. No solution. Independent! $
So B = {(1,2,1), (1,0,0), (0,1,0)} is a basis of R^3.
The determinant check: |1 1 0; 2 0 1; 1 0 0| = 1(0ā0) ā 1(0ā1) + 0 = 1 ā 0. ā
Example 3: Coordinates and Change of Basis
Problem: In R^2, B = {(2, 1), (1, 1)} and C = {(1, 2), (2, 1)}. Find the change-of-basis matrix P_{CāB}.
Solution:
Step 1: Find [bā]_C = coordinates of (2, 1) in C. Solve α(1,2) + β(2,1) = (2,1):
$α + 2β = 2 2α + β = 1 $
From eq2: β = 1 ā 2α. Substitute into eq1: α + 2(1ā2α) = 2 ā α + 2 ā 4α = 2 ā ā3α = 0 ā α = 0, β = 1. So [bā]_C = (0, 1).
Step 2: Find [bā]_C = coordinates of (1, 1) in C. Solve α(1,2) + β(2,1) = (1,1):
$α + 2β = 1 2α + β = 1 $
From eq1: α = 1 ā 2β. Substitute: 2(1ā2β) + β = 1 ā 2 ā 4β + β = 1 ā ā3β = ā1 ā β = 1/3, α = 1 ā 2/3 = 1/3. So [bā]_C = (1/3, 1/3).
Step 3: Assemble:
$P_{CāB} = [[bā]_C [bā]_C] = [0 1/3]
[1 1/3]
$
Verification: For v = (2,1) = 1Ā·bā + 0Ā·bā: [v]B = (1, 0). Then [v]_C = P{CāB} (1,0)^T = (0, 1). Indeed, (2,1) = 0Ā·(1,2) + 1Ā·(2,1) = (2,1). ā
Example 4: Finding a Basis for N(A) from RREF
Problem: Find a basis for N(A) where A = [1 3 0 2; 0 0 1 4; 0 0 0 0].
Solution: A is already in RREF. Pivot columns: 1 and 3. Free variables: xā, xā.
$xā + 3xā + 0xā + 2xā = 0 ā xā = ā3xā ā 2xā 0xā + 0xā + xā + 4xā = 0 ā xā = ā4xā $
Set (xā, xā) = (1, 0): x = (ā3, 1, 0, 0) ā basis vector vā. Set (xā, xā) = (0, 1): x = (ā2, 0, ā4, 1) ā basis vector vā.
Basis for N(A): {(ā3, 1, 0, 0), (ā2, 0, ā4, 1)}. dim(N(A)) = 2 = 4 ā rank(A) = 4 ā 2. ā
Quiz
Q1: A set of vectors {vā, ..., v_k} is linearly independent if:
A) None of the vectors is the zero vector B) The only solution to cāvā + ... + c_k v_k = 0 is cā = ... = c_k = 0 C) The vectors are all orthogonal to each other D) The vectors span the space
Correct: B)
- If you chose B: Linear independence means the only linear combination giving zero is the trivial one. Correct!
- If you chose A: Nonzero vectors can still be dependent (e.g., {v, 2v}).
- If you chose C: Orthogonal vectors are independent, but independence doesn't require orthogonality.
- If you chose D: A spanning set can be linearly dependent.
Q2: A basis of a vector space V is a set of vectors that is:
A) Orthogonal B) Both linearly independent and spanning C) Linearly dependent but spanning D) Any collection of dim(V) vectors
Correct: B)
- If you chose B: A basis must span V and be linearly independent ā this gives a unique representation for every vector. Correct!
- If you chose A: Orthogonality is extra structure (inner product), not required for a basis.
- If you chose C: A dependent set can't be a basis ā representations wouldn't be unique.
- If you chose D: dim(V) vectors could be dependent ā must also be independent.
Q3: The dimension of a vector space is:
A) The number of vectors in any set B) The number of vectors in any spanning set C) The number of vectors in any basis D) Always infinite
Correct: C)
- If you chose C: All bases of a vector space have the same number of vectors ā that number is the dimension. Correct!
- If you chose A: A random set of vectors doesn't determine dimension.
- If you chose B: A spanning set could be larger than a basis (redundant).
- If you chose D: Only some vector spaces are infinite-dimensional.
Q4: If {vā, vā, vā} is a basis of V, then any vector w ā V can be expressed as:
A) w = vā + vā + vā only B) w = cāvā + cāvā + cāvā for unique scalars cā, cā, cā C) w = cāvā only D) w cannot be expressed as a combination
Correct: B)
- If you chose B: Every vector has a unique representation as a linear combination of basis vectors. Correct!
- If you chose A: That's just one specific vector, not a general one.
- If you chose C: That only spans a 1D subspace.
- If you chose D: The definition of a basis guarantees every vector can be expressed.
Q5: The standard basis of R³ is:
A) {(1, 0, 0), (0, 1, 0), (0, 0, 1)} B) {(1, 1, 1), (0, 1, 1), (0, 0, 1)} C) {(1, 0, 0), (0, 2, 0), (0, 0, 3)} D) Any three orthogonal vectors
Correct: A)
- If you chose A: eā = (1,0,0), eā = (0,1,0), eā = (0,0,1) is the standard basis of R³. Correct!
- If you chose B: These are linearly independent and form a basis, but not the standard one.
- If you chose C: Also a basis but not standard.
- If you chose D: Not any three orthogonal vectors ā they must span R³.
Q6: If a set of 5 vectors spans a 3-dimensional space, what must be true?
A) The vectors form a basis B) The vectors are linearly independent C) At least 2 vectors are redundant (the set is linearly dependent) D) The dimension must be at least 5
Correct: C)
- If you chose C: In a 3D space, any set with more than 3 vectors must be linearly dependent. A spanning set of 5 vectors necessarily contains redundancy. Correct!
- If you chose A: A basis of a 3D space has exactly 3 vectors.
- If you chose B: 5 vectors in a 3D space cannot all be independent.
- If you chose D: The dimension is 3, regardless of the spanning set size.
Practice Problems
(Answers are below. Try each problem before checking.)
Problem 1: Determine whether {(1, 2, 3), (4, 5, 6), (7, 8, 9)} is independent in R^3. If dependent, find the dependence relation.
Problem 2: Show that B = {1+x, 1āx, x²} is a basis for Pā by proving it is both independent and spanning.
Problem 3: In R^3, let fan = {(1, 2, 1), (2, 1, ā1)}. Is this a basis for R^3? If not, why not? Extend it to a basis.
Problem 4: Find [v]_B for v = (5, 7) and B = {(1, 1), (2, 3)}.
Problem 5: Given bases B = {eā, eā} (standard) and C = {(1, 1), (1, ā1)} for R^2, compute P_{CāB} and P_{BāC}, then verify they are inverses.
Problem 6: Determine whether {sin x, cos x, sin(2x)} is linearly independent in C[0, 2Ļ] (continuous functions on [0, 2Ļ]).
Problem 7: Find a basis for the column space of A = [1 2 3 4; 2 4 6 8; 1 1 1 1].
Answers (click to expand)
**Problem 1:** From earlier: (7,8,9) = 1Ā·(1,2,3) + 1Ā·(4,5,6), so (1,2,3) + (4,5,6) ā (7,8,9) = (0,0,0). The set is dependent. Verifying with determinant: |1 4 7; 2 5 8; 3 6 9| = 0. **Problem 2:** Independence: cā(1+x) + cā(1āx) + cā(x²) = 0 ā (cā+cā) + (cāācā)x + cāx² = 0 ā cā+cā = 0, cāācā = 0, cā = 0 ā cā = cā = cā = 0. ā Spanning: For any p(x) = ax² + bx + c, we need coefficients α, β, γ: α(1+x) + β(1āx) + γ(x²) = ax² + bx + c ā γ = a, α+β = c, αāβ = b. Solve: α = (b+c)/2, β = (cāb)/2. These always exist over R. ā **Problem 3:** Only 2 vectors; dim(R^3) = 3, so any basis must have 3 vectors. This set can be extended. Add eā = (0,0,1): check if (0,0,1) ā span{(1,2,1), (2,1,ā1)}. Solve a(1,2,1) + b(2,1,ā1) = (0,0,1): a+2b=0, 2a+b=0, aāb=1. From first two: a=ā2b, ā4b+b=0 ā ā3b=0 ā b=0 ā a=0. But 0ā0=0ā 1. So independent. Basis: {(1,2,1), (2,1,ā1), (0,0,1)}. **Problem 4:** Solve α(1,1) + β(2,3) = (5,7): α + 2β = 5 α + 3β = 7 Subtract: β = 2, α = 5 ā 4 = 1. So [v]_B = (1, 2). Check: 1Ā·(1,1) + 2Ā·(2,3) = (1+4, 1+6) = (5,7). ā **Problem 5:** B is standard, so [v]_B = v itself. P_{CāB}: Column i is [(e_i)]_C. For eā = (1,0): solve α(1,1) + β(1,ā1) = (1,0) ā α+β=1, αāβ=0 ā α=β=1/2. So [(1,0)]_C = (1/2, 1/2). For eā = (0,1): α+β=0, αāβ=1 ā α=1/2, β=ā1/2. So [(0,1)]_C = (1/2, ā1/2).$P_{CāB} = [1/2 1/2]
[1/2 -1/2]
$
P_{BāC}: Column i is [(c_i)]_B. But c_i are already in standard coordinates, so columns are just c_i:
$P_{BāC} = [1 1]
[1 -1]
$
Check: P_{CāB} Ā· P_{BāC} = [1/2 1/2; 1/2 ā1/2] [1 1; 1 ā1] = [1 0; 0 1] = I. ā
**Problem 6:** Suppose a sin x + b cos x + c sin(2x) = 0 for all x ā [0, 2Ļ]. Evaluate at x = 0: b = 0. So a sin x + c sin(2x) = a sin x + 2c sin x cos x = sin x(a + 2c cos x) = 0 for all x. For x where sin x ā 0, we need a + 2c cos x = 0. But this must hold for multiple x values, which forces a = c = 0 (otherwise it's an equation with finitely many solutions). So the set is independent.
Alternatively: These are orthogonal under the inner product ā«ā^{2Ļ} f(x)g(x)dx, and orthogonal nonzero vectors are independent.
**Problem 7:** Row reduce A:
$[1 2 3 4] [1 2 3 4] [1 2 0 -2] [2 4 6 8] Rā-2Rā [0 0 0 0] Rā-3Rā [0 0 0 0] [1 1 1 1] Rā-Rā [0 -1 -2 -3] [0 1 2 3] $Pivot columns: 1 and 2. Basis of C(A): {(1,2,1)^T, (2,4,1)^T}. These are columns 1 and 2 of the original A.
Summary
- A set is linearly independent if the only linear combination yielding zero is trivial; geometrically, no vector is in the span of the others ā at most n vectors in R^n can be independent
- A basis is a minimal spanning set (equivalently, a maximal independent set); every v ā V has unique coordinates relative to a basis, enabling us to identify any n-dimensional vector space with R^n
- ALL bases of a finite-dimensional vector space have the same size, which defines dim(V); this ties together all the structural properties of the space
- RREF gives bases for N(A) and C(A) algorithmically: N(A) from free variables, C(A) from pivot columns of the original matrix
- Change-of-basis matrices convert coordinate vectors between bases; P_{CāB} has columns [bįµ¢]C, and P{BāC} = P_{CāB}ā»Ā¹
Pitfalls
-
Confusing linear independence with "no vector is a scalar multiple of another." This test only works for sets of two vectors. For three or more vectors, independence means NO nontrivial linear combination yields zero ā pairs may be independent while the whole set is dependent (e.g., (1,0,0), (0,1,0), (1,1,0)).
-
Thinking any spanning set of n vectors in an n-dimensional space is automatically a basis. This is true ONLY if the vectors are also independent. A set of n vectors that spans an n-dimensional space IS automatically a basis (and therefore independent), but you should verify spanning ā not just count vectors.
-
Using pivot columns from the RREF instead of the original matrix for C(A). The column space basis comes from the pivot columns of the ORIGINAL matrix A, not the RREF. Row operations preserve the null space but change the column space. Using RREF columns for C(A) is a classic error.
-
Forgetting that change-of-basis matrices act on coordinates, not vectors. P_{CāB} converts [v]B to [v]_C ā it operates on coordinate vectors relative to B, not on the vector v itself. Multiplying P{CāB} by v (instead of [v]_B) gives a meaningless result.
-
Assuming a set of more than n vectors in R^n must be a spanning set. More than n vectors in R^n are always linearly dependent, but they may or may not span R^n. For example, three vectors all lying in the same plane in R^3 are dependent but do NOT span R^3.
Next Steps
Move on to 08-03 ā Linear Transformations to learn the formal definition of linear transformations, their properties (kernel, range, injectivity, surjectivity), matrix representations, and how they compose and invert ā the core machinery connecting vector spaces.