Mathematics for
Data Science 2
Vector spaces and what makes them tick: the nine axioms, their consequences, subspaces, linear combinations, linear dependence and independence, and spanning sets.
Chapters
- 01Why Vector Spaces? A Motivating SystemPart 1
- 02The Vector Space AxiomsPart 2
- 03Is It a Vector Space? Worked ExamplesPart 3
- 04Properties of Vector SpacesPart 4
- 05SubspacesPart 5
- 06Linear CombinationsPart 6
- 07Linear Dependence and IndependencePart 7
- 08Checking Independence With MatricesPart 8
- 09Span and Spanning SetsPart 9
- 10Week 3 Summary SheetAll parts
Why Vector Spaces? A Motivating System
Solution sets of homogeneous systems are closed under addition and scaling. That one property is what a vector space abstracts.
1.1A motivating system
The last two weeks were about solving systems of linear equations. Vector spaces give a bird's-eye view of what the solutions look like as a whole. (The idea was formalised by Giuseppe Peano in 1888.) Start with one homogeneous system:
In matrix form, with , the system is . Solving it means finding so that a combination of the columns of gives zero. Collect every solution into one set:
1.2The key observation: closure
- If then , because .
- If then for all real , because .
Together: if , then for all real . The expression is called a linear combination of and . More generally, a combination of any stays in .
1.3Seeing S concretely
Find the set of all solutions of .
- Row-reduce : and give ; then gives .
- Row 2: , so . Row 1: .
- is free; put . Then .
- , a line through the origin.
- Check: , , . Adding two points stays on the line, which is exactly the closure above.
1.4What is a vector space, roughly?
Roughly, a vector space is any collection of objects that behaves like : you can add elements of , and multiply elements of by real scalars, and these two operations obey a short list of rules called the axioms (Part 2).
1.5A contrast: the non-homogeneous case
Let be the solution set of in , and take , . Are ? Is ? Is ? What equation does satisfy?
- and , so .
- and , so .
- and , so .
- and : it solves the homogeneous equation , not the original.
- In general, if and , then , and . With : and (for ), so is not closed. The right-hand side being zero is what makes behave like a vector space.
Consider . Find the solution set and show that .
- gives : the second equation is just twice the first, so one equation survives, .
- The only pivot is in the -column, so and are free: , , .
- , a plane through the origin in .
- : . : .
- , and , so it is in .
1.6Going deeper
- Why this has to work. For any and scalars : . Every combination of solutions is again a solution.
- Lines and planes through the origin. Solution sets of homogeneous systems are lines, planes (or all of , or just ) through the origin. A set that misses the origin can never behave like this (extra).
- Always a solution. always solves , so is never empty.
1.7Exam tips and common mistakes
- To test whether a solution set is "nice", plug the sum and a scalar multiple back into the equation.
- A homogeneous system always contains the zero vector; a non-homogeneous one never does.
- Assuming that every solution set is closed. Only the homogeneous case is.
- Forgetting that depends on both free variables.
Practice questions (graded-assignment style)
Multiple Choice Question (MCQ): choose the one correct option.
The solution set of is:
Row-reduce and count the free variables.
- with 3 unknowns, so there is exactly one free variable.
- and , so every solution is : a line through the origin.
- Answer: option 2.
Multiple Select Question (MSQ): select all that apply.
For , choose the vectors that belong to the solution set.
Only the first equation matters; the second is twice it.
- : . : . : .
- : , so it is not in .
- Answer: options 1, 2 and 3.
Multiple Select Question (MSQ): select all that apply.
, , . Choose the correct statements.
Plug each combination into .
- give 4 and 4, so both are in (option 1 true).
- gives 8, so it is not in (option 2 false).
- gives 8, so (option 3 true).
- gives 0 (option 4 true).
- Answer: options 1, 3 and 4.
Numerical Answer Type (NAT).
A point of the solution line has . Find .
Every point of S is (t, t, t).
- , so the point is .
- .
- Answer: 15
Multiple Choice Question (MCQ): choose the one correct option.
Which of these subsets of is closed under addition and under multiplication by every real number?
Test with a sum and with the scalar −1.
- : and , both on the line.
- fails (sum gives 2), fails (sum of and has length ), fails (times ).
- Answer: option 2.
x = 0 is always a solution
Line or plane through O
of solutions is a solution
is not closed
scale, obeying axioms
The Vector Space Axioms
The nine rules that define a vector space, and how a single failed rule rules a set out.
2.1The definition
A vector space is a non-empty set together with two operations
which satisfy the nine conditions below for all and all scalars .
| # | Axiom | Statement |
|---|---|---|
| 1 | Additive closure | |
| 2 | Multiplicative closure | |
| 3 | Additive commutativity | |
| 4 | Additive associativity | |
| 5 | Existence of a zero vector | there is with |
| 6 | Additive inverse | for every there is with |
| 7 | Unity | |
| 8 | Associativity of multiplication | |
| 9 | Distributivity | and |
2.2Things to keep in mind
- If even one axiom fails, is not a vector space. To prove that something is not a vector space, one counterexample to one axiom is enough.
- The zero element of a vector space is always unique (proved in Part 4).
- The real number and the zero vector are both usually written ; the context tells you which is meant.
- We drop the dot and write instead of .
- A vector is simply an element of a vector space. It need not be an arrow or a tuple: matrices, and even pairs , are vectors once they live in a vector space.
- The zero vector is whatever satisfies axiom 5 for the given operations. It is not automatically . In Example 12 below the zero vector is .
2.3Exam tips and common mistakes
- Read the operations carefully: they may not be the usual ones.
- First look for a zero vector and then test unity and distributivity: they fail most often.
- To show "not a vector space", write one concrete counterexample with numbers.
- Assuming the zero vector is the tuple of zeros.
- Checking a few axioms and declaring "vector space". All nine must be verified.
- Mixing up the two distributive laws. Both must hold.
Practice questions (graded-assignment style)
Multiple Choice Question (MCQ): choose the one correct option.
On with the usual addition define . Which axiom fails?
Test each law on u = (0, 1) or (1, 1).
- Unity: holds. Axiom 8: holds. Closure holds.
- First law: , but . They differ whenever .
- Answer: option 3.
Multiple Select Question (MSQ): select all that apply.
Choose the correct statements.
Recall "things to keep in mind".
- Statement 1 and 4 are true.
- Statement 2 is false: in Example 12 the zero vector is .
- Statement 3 is false: matrices, pairs and numbers can all be vectors.
- Answer: options 1 and 4.
Numerical Answer Type (NAT).
How many of the nine axioms involve only the addition operation (no scalar)?
List the axioms by number.
- Axioms 1, 3, 4, 5 and 6 involve only addition.
- Axioms 2, 7, 8, 9 involve scalar multiplication. So the answer is 5.
- Answer: 5
Numerical Answer Type (NAT).
With , compute the first entry of .
Substitute c = 2.
- , so the first entry is 4.
- Compare : the first distributive law fails.
- Answer: 4
Multiple Select Question (MSQ): select all that apply.
For on with the usual addition, which axioms hold?
Compute both sides of each law.
- Unity: . Axiom 8: . Second law: .
- First law fails: in general.
- Answer: options 1, 2 and 3.
2: a·u ∈ V
5 zero vector, 6 inverse
9 two distributive laws
axiom is enough
Not always (0, …, 0)
vector space
Is It a Vector Space? Worked Examples
Standard spaces and strange ones: the same recipe decides every case.
The recipe is always the same: read the operations carefully (they may not be the usual ones!), then check the nine axioms one by one, or hunt for one that fails.
3.1The standard examples
Show that with and is a vector space.
Take , , . The operations inside the brackets are ordinary real operations.
- 1. Additive closure. is an -tuple of reals, so it is in .
- 2. Multiplicative closure. for every .
- 3. Commutativity. for each because real addition commutes.
- 4. Associativity. for each .
- 5. Zero vector. forces , so and .
- 6. Inverse. gives , so .
- 7. Unity. .
- 8. .
- 9. Distributivity. and for each .
All nine hold, so is a vector space.
Show that the set of all real matrices with entry-wise addition and scalar multiplication is a vector space.
- Adding two matrices entry by entry, or multiplying every entry by , gives another real matrix: axioms 1 and 2 hold.
- Zero vector: the zero matrix , since adding it changes no entry.
- Inverse: for take ; then is the zero matrix.
- The remaining axioms work entry by entry exactly as in : a matrix is just 6 real numbers in a grid. So it is a vector space.
Let be a real matrix and with the usual column-vector operations. Show is a vector space.
- Additive closure. If and , then , so .
- Multiplicative closure. , so .
- Zero and inverses. The zero column satisfies , so it is in ; and if then , so .
- The other axioms are inherited from . Hence is a vector space: the general version of the set of Part 1.
3.2Strange operations
On define and . Is it a vector space?
- Closure holds: and are both in .
- Commutativity fails: , but . In general the second components and differ whenever . Another check: .
- One axiom fails, so it is not a vector space. (Several others fail too, associativity for example.)
Let with and . Is it a vector space?
- 1, 2. and both have second entry 1, so they are in .
- 3, 4. ; .
- 5. Zero vector. Want with , i.e. , so and .
- 6. Inverse. Want with : , so .
- 7. . 8. .
- 9. and .
- All nine hold, so it is a vector space, even though is not in it. Its zero vector is .
On define and . Show that is a vector space and find its zero vector.
- Examples: ; ; .
- Zero vector. Want with : gives , . So .
- Inverse. Want with : , . The inverse of is . Check: .
- Unity. .
- Axiom 8. .
- Distributivity. . For : both sides have first entry .
- Closure, commutativity and associativity of addition are immediate. Hence is a vector space.
Common slip. Solving as if the zero vector were gives , but , which is not here. The inverse condition is always with the zero vector you actually found.
Why it works. Relabel every point by shifting one unit right: . Then and with the usual operations. So this is ordinary with its origin moved to , which is exactly where the zero vector landed.
Let with and . Is a vector space?
- This "addition" is not ordinary matrix addition (that would put 2s on the diagonal). The operations act only on the off-diagonal pair ; the diagonal 1s stay fixed.
- Closure, commutativity, associativity. Results have 1s on the diagonal and reals off it, so they are in ; off-diagonal entries add as real numbers, so axioms 3 and 4 hold.
- Zero vector. Try : and give , so , the identity matrix (the zero matrix is not even in ).
- Inverse. Need and : .
- 7, 8. and since .
- 9. and , by distributing on the off-diagonal entries.
- All nine hold: yes, is a vector space. It is a copy of with stored off the diagonal.
Let with and . Show that is a vector space. What is its zero vector, and what is the additive inverse of 5?
- Closure. If then ; if then for every real .
- 3, 4. and .
- Zero vector. Need with for all : , so . Thus .
- Inverse. Need with : , so (positive, so in ). The inverse of 5 is : .
- 7, 8. ; .
- 9. and .
- All nine hold, so is a vector space. Sanity check: and , exactly what Part 4 says must happen.
3.3Going deeper
- Vectors need not be tuples. In the last two examples the "vectors" are matrices with fixed 1s and positive real numbers. What matters is the pair (set, operations).
- The zero vector moves. It was in , in , in the shifted plane, in the matrix example and in the positive reals.
- Many are just in disguise (extra). A relabelling that respects both operations (like ) shows the strange spaces behave exactly like ordinary ones. For positive reals the relabelling is .
3.4Exam tips and common mistakes
- Find the zero vector first. If none exists, you are done: not a vector space.
- Then find the inverse using the zero vector you found, not (0, 0).
- Using the usual zero when the operations are unusual.
- Declaring "not a vector space" because (0, 0) is missing from the set. Check the actual zero vector.
Practice questions (graded-assignment style)
Numerical Answer Type (NAT).
In the shifted plane (), what is the first entry of the zero vector?
Solve .
- gives , .
- So and the first entry is .
- Answer: -1
Numerical Answer Type (NAT).
In the same space, what is the first entry of the additive inverse of ?
The inverse of is .
- gives , .
- The first entry is .
- Answer: -5
Multiple Choice Question (MCQ): choose the one correct option.
For with , , the zero vector is:
Solve .
- , so . ( is not even in .)
- Answer: option 2.
Numerical Answer Type (NAT).
In the same space, what is the additive inverse of 5? (Give a decimal.)
.
- , so .
- Answer: 0.2
Multiple Select Question (MSQ): select all that apply.
Which of these are vector spaces under the usual addition and scalar multiplication?
Is each set closed under + and scalars, and does it contain 0?
- Options 1, 2, 3 are vector spaces (Examples 7, 8, 9).
- Option 4: leaves the set, so with the usual operations it is not even closed.
- Answer: options 1, 2 and 3.
Numerical Answer Type (NAT).
In the space of matrices (Example 13), take . If its additive inverse is , find .
Off-diagonal entries add to 0.
- and .
- .
- Answer: -1
solutions of Ax = 0
Or find one that fails
(−1,0) shifted plane
1 in positive reals
Ignoring entry: axiom 5
matrices with 1s, (0,∞)
Properties of Vector Spaces
Facts that follow from the axioms alone, and so hold in every vector space.
Everything below follows from the nine axioms alone, so it holds in every vector space, including the strange ones from Part 3.
4.1The cancellation law
Let be a vector space and . If , then .
Prove: .
- has an additive inverse with (axiom 6).
- Add to both sides of : .
- Associativity: , i.e. .
- The zero vector leaves vectors unchanged, so . (Similarly, gives , using commutativity.)
4.2Uniqueness of zero and inverses
- The zero vector of is unique.
- Each has exactly one additive inverse, written .
- Proof of (i). If and both act as zero, then (since is a zero) and (since is a zero). So .
- Proof of (ii). If and are both inverses of , then , and cancelling gives .
4.3Scalars meeting zero
For every and :
- (i) Since in : , so , and cancellation gives .
- (ii) , so ; cancelling gives .
- (iii) , so is the (unique) inverse of . Likewise .
In any vector space and . You can always compute the zero vector and inverses from scalar multiplication. In the shifted plane: and , matching the answers found before.
4.4Going deeper
- Why these results matter. They let you prove facts once for all vector spaces and then use them in the weird examples without recomputing.
- Test for the zero vector. If you computed a "zero vector" in an example, check that for some . If it fails, the example is not a vector space or you made an error (extra).
4.5Exam tips and common mistakes
- In a proof, name the axiom behind every line (associativity, inverse, ...).
- To prove uniqueness, assume two objects work and show they are equal.
- Using properties of real numbers (like dividing by a vector) that do not exist for vectors.
- Confusing the scalar with the zero vector .
Practice questions (graded-assignment style)
Multiple Choice Question (MCQ): choose the one correct option.
From we may conclude . This is called:
Add the inverse of v₃ to both sides.
- Adding to both sides and using associativity and the zero vector gives : the cancellation law.
- Answer: option 2.
Multiple Select Question (MSQ): select all that apply.
In every vector space, which statements hold for all and all scalars ?
Recall Corollary 3.3.3.
- Options 1, 2, 3 are proved in Part 4.
- Option 4 is false: , which equals only when .
- Answer: options 1, 2 and 3.
Numerical Answer Type (NAT).
In the positive reals with , , compute .
is always the zero vector.
- , which is of this space, as Corollary (i) predicts.
- Answer: 1
Numerical Answer Type (NAT).
In the shifted plane, compute the first entry of , where .
.
- .
- This matches .
- Answer: -6
Multiple Choice Question (MCQ): choose the one correct option.
If and , then:
Multiply by .
- .
- Answer: option 1.
⟹ v₁ = v₂
One inverse per vector
c·0_V = 0_V
(−c)u = −(cu)
−u = (−1)·u
cu = 0 ⟹ c = 0 or u = 0
is infinite
Subspaces
Vector spaces living inside vector spaces, and the two-step test that recognises them.
5.1The definition and the two-step test
A non-empty subset of a vector space is a subspace of if is itself a vector space under the same addition and scalar multiplication as .
A non-empty subset of is a subspace if and only if
- (closed under addition), and
- (closed under scalar multiplication).
- Why only two? Axioms 3, 4, 7, 8, 9 are equations that already hold for all vectors of , so they hold for vectors of automatically.
- Zero and inverses come free. Pick any : and by Part 4.
- Trivial subspaces. Every vector space has two: itself and (since and ). A subspace is called proper.
Every subspace contains . So if , stop: is not a subspace. The converse is false: the parabola below contains and still fails.
5.2Examples that fail
5.3Lines, systems and half-spaces: three proofs
Prove that a line (with ) in is a subspace if and only if it passes through the origin.
- "Passes through the origin" means : , i.e. . So we show: is a subspace .
- A line is non-empty; pick . Closure under scalars gives . Substituting into the equation: .
- Let . Take : and . Their sum satisfies .
- For : .
- is non-empty and closed under both, so it is a subspace.
Let be the set of solutions of in , where is . Show is a subspace if and only if .
- If : , so (non-empty). For and : and . By the subspace test, is a subspace.
- If is a subspace, it is non-empty and contains the zero vector (take , then ). So is a solution: .
- So is a subspace exactly when . (If , then either the system is inconsistent and is empty, or is non-empty but misses ; both rule out a subspace.)
Show that is not a subspace of .
- Zero test. is true, so : the test does not decide it.
- Addition. If and , adding the inequalities gives : is closed under addition.
- Scalars. Multiplying an inequality by a negative number reverses it, so try a negative scalar. since . But , and is false.
- is not closed under scalar multiplication, so it is not a subspace. (Geometrically a half-space: flipping by sends points to the other side of the plane .)
5.4Going deeper
- Intersections are subspaces. If are subspaces of , then lies in both, and if lie in both then so do and . Example: in , the -plane the -plane the -axis.
- Unions usually are not (extra). The -axis the -axis contains and but not their sum .
- Subspaces of (extra). They are exactly: , lines through the origin, planes through the origin, and .
5.5Exam tips and common mistakes
- Run the zero test first; it kills most "plane x + y + z = 1" type sets in one line.
- If the zero test passes, try a negative scalar and a sum of two simple vectors as counterexamples.
- To prove a subspace, take general elements and show both closures.
- Concluding "subspace" from 0 ∈ W alone.
- Testing closure with one example. A proof needs general elements.
- Forgetting negative scalars for inequalities.
Practice questions (graded-assignment style)
Multiple Select Question (MSQ): select all that apply.
Which of the following are subspaces of ?
Zero test, then closure.
- Options 1 and 3 pass both closures.
- Option 2 misses the origin. Option 4 fails scalar closure with .
- Answer: options 1 and 3.
Numerical Answer Type (NAT).
For which value of is a subspace of ?
A line is a subspace iff it passes through the origin.
- must satisfy , so .
- Answer: 0
Multiple Select Question (MSQ): select all that apply.
Choose the correct statements about subspaces of a vector space .
Try the x-axis and y-axis for unions.
- Statements 1 and 3 are true.
- Union: and are in the union of the axes, but is not. Statement 4: the parabola contains 0 and is not a subspace.
- Answer: options 1 and 3.
Multiple Choice Question (MCQ): choose the one correct option.
The set of invertible matrices is not a subspace of because:
What is the zero vector of M₂ₓ₂?
- The zero vector of is the zero matrix, which has determinant 0, so it is not in the set.
- Answer: option 2.
Numerical Answer Type (NAT).
For and , find the largest integer for which .
is in iff .
- For the point is in ; for it is not.
- The largest negative integer is .
- Answer: -1
w₁ + w₂ ∈ W
c·w₁ ∈ W
not sufficient
symmetric matrices
solutions of Ax = 0
x ≥ z, invertible matrices
Ax = b with b ≠ 0
Linear Combinations
Building new vectors from old ones with scalars and addition.
A non-zero vector space has infinitely many vectors. Chapter 4 looks for a small, finite set of vectors, a basis, that describes the whole space. The building blocks are linear combinations, linear dependence and span.
6.1Definition
Let be a vector space and . Then
is a linear combination of with coefficients . Since is closed under addition and scalar multiplication, a linear combination is again a vector in .
6.2A picture in the plane
Show that is a linear combination of and .
- Scale by 2 to get .
- The parallelogram with sides and has diagonal ; algebraically .
- So : a combination with , .
- Any one of the three can be written with the other two: and .
- Moving everything to one side: , the zero vector written with non-zero coefficients. This is what "linearly dependent" will mean (Part 7).
6.3A picture in space
Show that , that all three vectors lie on the plane , and that is not a combination of and .
- , , and .
- Again each vector is a combination of the other two, e.g. .
- Plane check: : . : . : .
- is off the plane: . Suppose . Then , , : so , , but . Contradiction, so it is not a combination.
- Consequently only when . (If we could solve for , impossible; so , and then forces and .)
6.4How to test "is v a combination?"
Write a general combination, match it with entry by entry, and solve the resulting linear system for the coefficients. A solution means yes; an inconsistent system means no.
Is a linear combination of and ? What about ?
- A general combination is .
- Match with : , , . The first and third give , , but then . Inconsistent: no.
- Match with : , , : consistent. Yes: .
- Geometrically every combination has middle entry = first + last, i.e. lies on the plane . : (off the plane). : (on it).
6.5Going deeper
- Combinations of two non-parallel vectors fill a plane through the origin; combinations of one non-zero vector fill a line (extra, made precise in Part 9).
- Coefficients can be anything. They may be zero, negative or fractions; only the vectors matter, not whether the coefficients are "nice".
- Everything is a combination of itself. , and is a combination of any vectors (all coefficients 0).
6.6Exam tips and common mistakes
- Set up the system by comparing entries, then solve; do not guess coefficients.
- For "must it be a combination?" questions look for a counterexample with zero or parallel vectors.
- Checking only two of the three equations.
- Dividing by a coefficient that may be zero when solving for a vector.
Practice questions (graded-assignment style)
Numerical Answer Type (NAT).
If is a linear combination of , and as , find .
Isolate 4(x, y, z).
- .
- , so .
- Check: , , . .
- Answer: 0
Multiple Select Question (MSQ): select all that apply.
Let in a vector space . Which statements must be true?
Any vector is a combination of itself. For the others, try counterexamples.
- Options 3 and 4: . Always true.
- Option 1 needs dividing by , which may be 0. Counterexample in : , , , ; combinations of are , never .
- Option 2 fails similarly: , , , ; combinations of are , never .
- Answer: options 3 and 4.
Multiple Select Question (MSQ): select all that apply.
Choose the correct statements about and .
A combination is (a, a + b, b).
- : forces . Not a combination.
- and always.
- Answer: options 2, 3 and 4.
Numerical Answer Type (NAT).
. Find .
a + b = 5 and a + 2b = 7.
- Subtract: , then .
- Check: .
- Answer: 3
Multiple Choice Question (MCQ): choose the one correct option.
From which statement follows?
Solve for (1, 2).
- , so .
- Answer: option 1.
Coefficients real
Plane through O in ℝ³
of V is in V
Solve for coefficients
dependence
Linear Dependence and Independence
When a set contains redundancy, and when it does not.
7.1Linear dependence
A set of vectors is linearly dependent if there exist scalars , not all zero, such that
In words: the zero vector can be built from the vectors with at least one non-zero coefficient. Geometrically, any two vectors on the same line, or any three vectors on the same plane through the origin, are dependent. From Part 6, and are both dependent.
Show that is linearly dependent.
- Set up. gives , , .
- Solve. From the second, . Then the first is , so . The third becomes , true for every . So , with free.
- Non-zero solution. gives , : .
- Non-zero coefficients produce 0, so the set is linearly dependent.
- Adding keeps it dependent: . Every superset of a dependent set is dependent (give the extra vectors coefficient 0).
7.2Linear independence
Vectors are linearly independent if they are not linearly dependent, that is,
The only way to get the zero vector is the trivial way, with all coefficients zero.
Is linearly independent?
- Suppose : and .
- Adding: , so , and then .
- Only the trivial solution, so the set is linearly independent. (Equivalently, is not a multiple of .)
7.3Two vectors, three vectors
- Two vectors are dependent exactly when one is a scalar multiple of the other. For non-zero with , not both zero: if exactly one were zero, say , then would force , a contradiction. So both are non-zero and .
- Three non-zero vectors are independent iff none is a combination of the other two. Geometrically, three vectors in are independent exactly when they do not lie on one plane through the origin. Compare (dependent) with (independent).
Show is linearly independent.
- Suppose : , , .
- From the second, . The first becomes , so .
- The third becomes . Therefore , , : only the trivial solution, so the set is independent.
7.4Going deeper
- Supersets and subsets. A superset of a dependent set is dependent; a subset of an independent set is independent. (A non-trivial combination of a subset would be a non-trivial combination of the whole set.)
- Removing a vector can break dependence. is dependent, but removing leaves the independent set .
- Union and intersection (extra). The union of two independent sets may be dependent () or independent (). The intersection is always independent, being a subset.
7.5Exam tips and common mistakes
- Two vectors: just check whether one is a multiple of the other.
- To show dependence, one non-trivial combination is enough, so quote it explicitly.
- To show independence, solve the system and show only the trivial solution.
- Writing "0·v₁ + 0·v₂ = 0, so independent". The zero combination always works; it proves nothing.
- Forgetting that a set containing the zero vector is dependent.
- Thinking removing a vector from a dependent set must keep it dependent.
Practice questions (graded-assignment style)
Multiple Select Question (MSQ): select all that apply.
Let be a linearly dependent subset of . Which statements are true?
Reuse the same coefficients and give the new vector coefficient 0.
- Options 1 and 2: the old non-trivial combination plus shows dependence.
- Option 3 fails: is dependent, but removing leaves , independent.
- Option 4: ; removing leaves a dependent set. True.
- Answer: options 1, 2 and 4.
Multiple Select Question (MSQ): select all that apply.
Choose the correct statement(s).
Make the zero vector appear, and check that every vector in the equation is in the set.
- Option 1: the all-zero combination always works. The set contains so it is dependent.
- Option 2: with non-zero coefficients: dependent. True.
- Option 3 uses , which is not in that set. Directly, is not a multiple of (): independent.
- Answer: option 2.
Multiple Select Question (MSQ): select all that apply.
Choose the correct options.
Find examples; recall subsets of independent sets.
- and are independent but their union is dependent (option 1 true).
- and have an independent union (option 2 false).
- An intersection is a subset of an independent set, so it is independent (option 3 true, option 4 false).
- Answer: options 1 and 3.
Numerical Answer Type (NAT).
For which is linearly dependent?
Two vectors are dependent iff one is a multiple of the other.
- , so .
- Check with the determinant: gives .
- Answer: 4
Multiple Choice Question (MCQ): choose the one correct option.
The set in is:
Find a non-trivial combination giving 0.
- with non-zero coefficients, so it is dependent.
- (Also: three vectors in are always dependent; see Part 8.)
- Answer: option 2.
Contains 0 ⟹ dependent
one is a multiple of the other
is dependent
is independent
through O: dependent
Checking Independence With Matrices
Turning the independence question into a homogeneous system and solving it with Week 2 tools.
8.1Turning the question into a system
To test we solve , a homogeneous system whose unknowns are the coefficients . A homogeneous system is always consistent ( works), so the only question is whether the trivial solution is the only one.
- only the trivial solution independent;
- a non-zero solution exists (infinitely many) dependent.
Put the vectors as the columns of a matrix (column is ). The set is independent exactly when has only the trivial solution.
If is square, just check . If , is invertible and : independent. If , Gauss elimination leaves a free variable: dependent.
8.2Too many vectors
Any set of vectors in with is linearly dependent. For instance, any 3 vectors in , or any 4 vectors in . The homogeneous system has unknowns but only equations, so Gauss elimination always leaves at least one free variable, and hence a non-zero solution.
8.3Going deeper
- Count pivots. Independent every column of has a pivot. A matrix has at most 3 pivots, so one of four columns is always free (extra phrasing of the rule above).
- Fewer vectors than the dimension may still be dependent. has two vectors in and is dependent, because (extra).
- Link with Week 2. This is exactly the homogeneous-system analysis of Gauss elimination: a free variable infinitely many solutions dependence.
8.4Exam tips and common mistakes
- Count first: more vectors than components means dependent immediately.
- Equal numbers: use the determinant. Fewer: use Gauss elimination.
- Put the vectors as columns (rows also works for rank, but be consistent).
- Using the determinant on a non-square matrix.
- Concluding "independent" because the augmented system is consistent; a homogeneous system is always consistent.
Practice questions (graded-assignment style)
Multiple Choice Question (MCQ): choose the one correct option.
What can be said about the linear independence of a set of 4 vectors in ?
Count unknowns and equations.
- The system has 4 unknowns but only 2 equations.
- At most 2 pivots, so at least free variables: a non-zero solution exists. Always dependent (rule: , ).
- Answer: option 2.
Multiple Select Question (MSQ): select all that apply.
Suppose is a linearly dependent set in . Which are possible candidates for ?
Take and compute the determinant with the vectors as columns.
- The third row is ; expanding along it: .
- Dependent : must lie in the -plane spanned by the other two.
- So options 2, 3, 5 (third entry 0) work; options 1 and 4 have : independent.
- E.g. .
- Answer: options 2, 3 and 5.
Numerical Answer Type (NAT).
For how many values of is linearly independent in ?
Count before computing.
- There are 4 vectors in , so .
- The system has 3 equations in 4 unknowns, so at least one is free whatever is.
- So the set is dependent for every ; the number of values making it independent is 0.
- Answer: 0
Numerical Answer Type (NAT).
For which is linearly dependent?
Set .
- , so .
- Then .
- Answer: 6
Multiple Choice Question (MCQ): choose the one correct option.
The vectors form a matrix with determinant 2. The set is:
Non-zero determinant means invertible.
- , so has only : independent.
- Answer: option 2.
Solve V x = 0
Free variable: dependent
det(V) = 0: dependent
are always dependent
⟺ independent
the trivial solution
Span and Spanning Sets
Everything a set can build, and how to grow a set until it builds a whole space.
9.1The span of a set
The span of a set , written , is the set of all finite linear combinations of elements of :
Roughly, it is everything you can build from .
Verify that is a subspace, for non-empty .
- Non-empty. contains every , since .
- Addition. Let and be in the span. Then is again a finite combination of elements of (list all the and together).
- Scalars. , again a finite combination.
- Both closures hold, so by the subspace test is a subspace.
9.2Spanning sets
Let be a vector space and . is a spanning set for (or spans ) if : every vector of can be built from .
Show that , and all span .
- : any .
- : . Every superset of a spanning set is a spanning set.
- : . Check: .
9.3Two facts about span
- . A combination of vectors of is also a combination of vectors of . The inclusion can be strict: spans the -axis, spans .
- . Let . Each equals , so ; and combinations of vectors of stay in because is a subspace, so .
9.4Building a spanning set step by step
Grow a set one vector at a time, each time adding a vector that is not in the span of what you already have. For :
| Step | Set | Its span |
|---|---|---|
| 1 | (the empty combination is ), the smallest subspace | |
| 2 | a line through the origin, not all of ℝ³ | |
| 3 | the plane , , still not | |
| 4 | all of |
Verification of step 4: we need . Reading from the last entry up: , , . A solution exists for every , so spans . At each step the new vector was outside the previous span: is not on the line through , and has , so it is off the plane .
Can you construct a spanning set for starting with ?
- Start. spans the line , not all of .
- Add a vector off that line. is not a multiple of . Let : its span is .
- Identify that plane. Here and , so : every point satisfies , a plane, still not .
- Add a vector off the plane. : , so it is not in . Let .
- Verify. Solve : , , . A solution exists for every , so .
- Spot-check with : , , , and .
Answer: yes, for example .
9.5Going deeper
- Span answers "which vectors can I reach?" A set spans iff the system "" is solvable for every .
- Spanning and independence pull in opposite directions. Adding vectors keeps spanning but may destroy independence; removing vectors keeps independence but may destroy spanning. A set that does both well will be a basis (next chapter).
- Removing a vector from a spanning set can break spanning. spans , but spans only the -axis.
9.6Vector spaces beyond , and subspaces that come from a matrix
Graded questions on this week do not stay inside . They ask about polynomials, matrices and functions as vectors, about the solution set , and about sums of subspaces. This section collects the facts and the one technique that handles all of them.
A. Polynomial spaces
Let be the set of all polynomials of degree at most , including the zero polynomial, with the usual addition and scalar multiplication. It is a vector space, and is spanned by .
- "Degree exactly " is not a vector space. It has no zero vector, and it is not closed under addition: has degree 1.
- A polynomial is the zero vector only when all its coefficients are 0. So (for all ) forces .
- Subspaces of : passes (if and , then and ). fails (the zero polynomial has ). The even polynomials pass and equal .
B. Matrix spaces and function spaces
- with entrywise operations is a vector space; the zero vector is the zero matrix. Subspaces of : symmetric matrices, upper triangular matrices, matrices with trace . Not subspaces: invertible matrices, ( has ), matrices with integer entries (not closed under scalars like ).
- Real functions , with and , form a vector space. The zero vector is the function that is for every . is a subspace; is not.
- Dependence of functions. are dependent if some non-trivial combination is zero for every . To prove independence, plug in a few values of . : at gives , and at gives , so independent. To prove dependence, exhibit the relation: is dependent because for every .
C. The one technique: turn it into coordinates
To test independence or spanning in or , write each vector as a column of coefficients or entries, then use the matrix tests of this week:
| Space | Vector | Coordinates |
|---|---|---|
Example. Do span ? Their coordinates are , , . The determinant of the matrix with these rows is , so the three are independent, and three independent vectors in a 3-coordinate space span it. Yes. By contrast gives determinant (the second is twice the first), so it does not span.
D. Subspaces that come from a matrix
Let be .
- Null space , the solution set of the homogeneous system. It is a subspace: ; and if , , then and .
- The solution set of with is not a subspace: it does not contain (this is the "shifted plane" of Part 3).
- Column space . Since , a vector is in exactly when has a solution. A spanning set is the pivot columns of (the columns of the original that hold the leading 1s of its RREF).
- Row space is the span of the rows of , a subspace of . Row operations do not change it.
Worked example. has RREF with pivots in columns 1 and 3.
- Null space: , , and is free. So and . Check: ✓.
- Column space: , the original columns 1 and 3. Column 2, , is twice column 1, so it adds nothing.
- Is in ? It equals : yes. Is ? We would need and , giving , ; the third entry gives . No.
E. Sum and intersection of subspaces
- is always a subspace (see the subspace chapter).
- is a subspace only when one of them contains the other.
- The sum is always a subspace, and it is the smallest subspace containing both. Also .
- Example in : = the -axis, = the -axis. , is not a subspace (it holds and but not ), and .
9.7Exam tips and common mistakes
- To show a set spans, take a general vector (x, y, z) and solve for the coefficients.
- To show it does not span, find one vector you cannot reach (e.g. an equation all combinations satisfy, and a vector that breaks it).
- Believing that a spanning set cannot lose a vector. It can fail to span after removal.
- Confusing span (a set of vectors) with the spanning set (the generators).
Practice questions (graded-assignment style)
Multiple Select Question (MSQ): select all that apply.
Choose the correct options.
Use span(S) ⊆ span(S ∪ {v}) ⊆ V.
- Option 1: , so equality holds.
- Option 2: the empty combination is , so .
- Option 3 fails: spans , but removing leaves , the -axis. Option 4 contradicts Option 1.
- Answer: options 1 and 2.
Multiple Select Question (MSQ): select all that apply.
Let . Choose the correct statement(s).
Write a general combination a·E₁₁ + b·E₁₂ + c·E₂₂.
- : the entry below the diagonal is always 0, and are arbitrary. That is the upper triangular matrices (option 2).
- Option 1: is in the span but not lower triangular. Option 3: a matrix with a non-zero entry below the diagonal is never reached. Option 4: scalar matrices are only a small part; is in the span but not scalar.
- Answer: option 2.
Numerical Answer Type (NAT).
Write . Find .
Use , , .
- , so .
- , so ; , so .
- Check: .
- Answer: 3
Multiple Choice Question (MCQ): choose the one correct option.
Does span ?
Is one a multiple of the other?
- , so : only the line . Not all of ; e.g. is not reached.
- Answer: option 2.
Multiple Select Question (MSQ): select all that apply.
Which statements are true for subsets of a vector space?
Recall the two facts and the verification.
- Options 1, 2, 3 are proved in this part.
- Option 4 is false: have different spans.
- Answer: options 1, 2 and 3.
Multiple Select Question (MSQ): select all that apply.
Which of these are subspaces of , the space of polynomials of degree at most 2?
Write . A set cut out by homogeneous linear conditions on is a subspace; anything else is hunted for a failed test.
- 1 ✓ is homogeneous linear.
- 2 ✗ is not homogeneous; the zero polynomial has , so is missing.
- 3 ✗ No zero polynomial (degree of is not 2), and not closed: .
- 4 ✓ , so the condition is : homogeneous linear.
- 5 ✓ and , so the condition is : homogeneous linear.
- Answer: options 1, 4 and 5.
Numerical Answer Type (NAT).
For which value of are the polynomials , and linearly dependent?
Replace each polynomial by its coefficient vector; three vectors in are dependent exactly when the determinant is .
- Coefficient vectors: , , .
- .
- . Check: , so the third polynomial is the difference of the first two ✓.
- Answer: 3
Multiple Choice Question (MCQ): choose the one correct option.
Which of these sets spans ?
needs three independent "directions" (coordinates in ). Fewer than three vectors cannot span, and three vectors span only if they are independent.
- 1 ✗ Only two vectors, and nothing produces .
- 2 ✓ Coordinates , , have determinant .
- 3 ✗ The third is the sum of the first two, so there are only two independent vectors, and no is ever produced.
- 4 ✗ The third is the sum of the first two, and the constant is never produced.
- Answer: option 2.
Multiple Select Question (MSQ): select all that apply.
Which of these are subspaces of ?
Check the zero matrix, then closure under addition and under every real scalar.
- 1 ✓ and give and .
- 2 ✓ and .
- 3 ✗ and have , but their sum has .
- 4 ✓ Sums and scalar multiples keep the lower-left entry .
- 5 ✗ has non-integer entries: not closed under real scalars.
- Answer: options 1, 2 and 4.
Multiple Choice Question (MCQ): choose the one correct option.
For , which vector satisfies ?
Solve from the RREF, or just multiply each candidate.
- RREF is : , , free. All solutions are .
- Option 1: ✓. Option 2 gives , option 3 gives , option 4 gives the third column : none is .
- Answer: option 1.
Multiple Select Question (MSQ): select all that apply.
For the same , which vectors lie in the column space of ?
is in the column space exactly when is consistent. The column space is spanned by the pivot columns and .
- 1 ✓ .
- 2 ✗ , give , but then the third entry is . (Equivalently, the rank of is 3, bigger than .)
- 3 ✓ The zero vector is in every subspace.
- 4 ✓ It is the first column itself.
- Answer: options 1, 3 and 4.
Multiple Select Question (MSQ): select all that apply.
Let be the -axis and the -axis in . Choose the correct statements.
is every vector ; the union only has vectors lying on an axis.
- 1 ✓ Only the origin is on both axes.
- 2 ✗ is on neither axis.
- 3 ✓ .
- 4 ✗ contains ; does not.
- Answer: options 1 and 3.
Numerical Answer Type (NAT).
The functions , and are linearly dependent: for every , with . Find .
Use the identity to find the combination that is zero for all .
- for every , so with we need .
- Check at : ✓. A non-trivial combination (not all coefficients zero) equal to the zero function means the set is dependent.
- Answer: -1
combinations of S
a subspace
Supersets also span
span(span S) = span S
add a vector off the span
independent together
Week 3 Summary Sheet
One page to revise all of Week 3: definitions, tests, and the mistakes to avoid.
The big picture
- Homogeneous solution sets are closed under + and scalars.
- Linear combinations of solutions are solutions.
- Nine axioms; one failure kills a vector space.
- The zero vector need not be (0, …, 0).
- , matrices, solutions of are vector spaces.
- Strange operations: find the zero first.
- Cancellation law; unique zero and inverses.
- , .
- Non-empty, closed under + and scalars.
- Lines and planes through ; intersections.
- ; test by solving a system.
- Parallelogram law in ℝ².
- Dependent: non-trivial combination gives 0.
- Independent: only the trivial one.
- Columns of ; solve .
- More than vectors in : dependent.
- All combinations; always a subspace.
- Spanning set: span = V.
Revision sheet
| Topic | Key idea |
|---|---|
| Vector space | non-empty set with and scalar satisfying all 9 axioms |
| Not a vector space | one counterexample to one axiom is enough |
| Zero vector | whatever satisfies ; unique; equals , not always |
| Additive inverse | unique; written ; equals |
| Cancellation law | |
| Scalar facts | , , |
| Subspace test | non-empty + closed under addition + closed under scalar multiplication |
| Quick subspace check | not a subspace (the converse fails) |
| Lines and planes | a subspace iff it passes through the origin |
| Solutions of | a subspace iff |
| Linearly dependent | with some ; any set containing is dependent |
| Linearly independent | all |
| Two vectors | independent iff not scalar multiples |
| Matrix test | columns of ; independent iff only trivially; square: |
| Too many vectors | vectors in are always dependent |
| Supersets / subsets | superset of dependent is dependent; subset of independent is independent |
| Span | all finite linear combinations; always a subspace; |
| Spanning set | ; every superset of a spanning set spans |
| Span facts | ; |
Which test when?
| Question | Method |
|---|---|
| Is (V, +, ·) a vector space? | find 0_V first; then test unity and distributivity; or hunt for a counterexample |
| Is W a subspace of V? | zero test, then closure under and scalars (try for inequalities) |
| Is v a combination of v₁, …, vₙ? | solve Σαᵢvᵢ = v; inconsistent means no |
| Dependent or independent? | count first (); square: ; else Gauss elimination on |
| Does S span V? | take a general vector and solve for the coefficients |
Common mistakes
- It is not always . Find it from the operations.
- All nine must hold; one failure is enough to reject.
- It is necessary only. The parabola has 0 and is not a subspace.
- The all-zero combination always gives 0. Show it is the only one.
- Use Gauss elimination or count pivots instead.
- Removing a vector can break spanning; adding one never does.