Independence, Basis, and Dimension
The day four words get assigned clear meanings. A bunch of vectors is independent if no combination gives zero; they span a space if their combinations fill it; a basis is a set that does both; and the dimension is the number of vectors in any basis. The rank of a matrix turns out to be the dimension of its column space, and the number of free variables is the dimension of its null space.
A key fact to start: more unknowns than equations
Strang calls this “a key lecture” — the day the words independence, span, basis, and dimension “get assigned clear meanings.” And he’s careful about grammar from the first minute: a bunch of vectors is independent, spans a space, is a basis. We wouldn’t talk about a matrix being independent. The dimension is some number.
But first, a highly important fact he hadn’t called direct attention to earlier. Suppose has more columns than rows — unknowns, equations, with . Then has nonzero solutions: there is something in the null space of besides the zero vector.
Why? Not just because “more unknowns than equations seems solvable” — we have a clear algorithm. Elimination reaches echelon form with variables and at most pivots, so there will be free variables — at least of them. Assign a free variable a nonzero value (one, “or whatever I like”), solve for the pivot variables, and you have a solution to that isn’t all zeros. Keep this fact in hand; the whole lecture leans on it.
Independence: no combination gives zero
The all-zero combination always gives zero, of course. The question is whether any other combination does. Examples, in the plane:
- A vector and twice that vector. and are dependent for sure — “if the word dependent means anything, these should be dependent.” Two of the first minus the second is zero: .
- A vector and the zero vector. Say and . Dependent again: take zero ‘s and six ‘s — or five — and you get zero. If the zero vector is in the bunch, “independence is dead.”
- Two vectors pointing different directions are independent: no combination gives zero except the zero combination.
- Three vectors in the plane — any three, drawn however carelessly — are dependent. Why must that be?
The answer is the key fact from the start. Put the three vectors into the columns of a matrix — say , , , making a matrix. More columns than rows, so there are free variables, so there is a nonzero with . That says exactly: go out some , out some more , back on , and end up at zero. Dependent.
This is the move the course has been rehearsing for lectures: a combination of the columns is just times the vector of ‘s, so dependence questions come back to the null space. (The abstract definition never mentioned a matrix — but most of the time our vectors are columns, and then this is the test.)
Spanning a space
We’ve actually seen the next word already. When we took a matrix’s columns and formed all their combinations, we got the column space. Those columns span the column space.
So “span” compresses “take all linear combinations” into one word. The columns of a matrix span the column space — always. Are they independent? Maybe yes, maybe no; it depends on the particular columns. What we’d really like is a set that spans and is independent — the right number of vectors. Fewer, and we wouldn’t have the whole space; more, and they wouldn’t be independent. The word for “just right” is coming.
Basis: enough vectors and not too many
Strang says he’ll always be asking for a basis now, because a basis tells you everything: give me a basis for a subspace and you’ve told me what that subspace is.
Example: bases for . The first basis that comes to mind:
That’s the , , axes — if those aren’t independent, we’re in trouble. In matrix language, put them in columns: you get the identity matrix, whose null space is only the zero vector. Independent, and they span. A basis. But far from the only one.
Another basis. Start with and . Independent? Yes. Do they span ? No — some vectors in are not combinations of those two. We need a third vector, and it would be a goof to pick : that’s the sum of the first two, it lies in their plane, and the attempt at a basis would be dead. Any vector not in that plane works — Strang tries : “at least it’s not the sum of those two vectors,” and it does give a basis.
One more question, to be sure the idea has landed. Take just the two vectors and again. Are they a basis for anything? Sure — they’re independent, so they’re a basis for the space they span: a plane inside . Stick in , which lies in that plane, and the three vectors still span the plane but are no longer a basis — independence is gone.
Every basis has the same size: dimension
The basis is not unique — “there’s zillions of bases.” Any invertible matrix has columns that form a basis for . But all those bases share something, and you saw it coming: when Strang stopped at two vectors, you said “not a basis” because there weren’t enough vectors.
So the four words, in order: independence looks at combinations not being zero; spanning looks at all the combinations; basis combines the two; dimension counts the vectors in any basis.
A worked example: both dimensions of a matrix
Other bases for that column space work too: columns 1 and 3, or 2 and 3, or 2 and 4 — or vectors not among the columns at all, like and (that’s the sum of all four columns). Independent, and the count is right: two.
The lecture ends with the language merging into two formulas. The rank of — the number of pivot columns — is the dimension of the column space. (“Of course, you say. It had to be.”) But mind the grammar: a matrix has a rank; a subspace has a dimension. You don’t take the dimension of — you take the dimension of the column space of . And for the null space: columns, of them pivots, leaves free variables.
That’s the key spaces, their bases, and their dimensions.
Problems
Work these before revealing the solutions — they’re exactly the questions “the homework asks, the quizzes ask, the final exam will ask.”
Are the vectors
independent or dependent? If dependent, give a nonzero combination that equals the zero vector.
Show solution
Put them in the columns of and look for a nonzero vector in the null space. Try to write as : the third components force , then the first components give , so . Check the middle: . ✓ So , and
The vectors are dependent: is in the null space of the matrix with these columns, so the rank is , less than .
Explain, using pivots and free variables, why any four vectors in must be dependent. Then state the general fact for vectors in .
Show solution
Put the four vectors in the columns of a matrix , which is . Elimination produces at most pivots (one per row), so at most of the columns are pivot columns — at least one free variable is left over. Assign that free variable a nonzero value and solve for the pivot variables: this gives a nonzero with , i.e. a nonzero combination of the four vectors equal to zero. Dependent.
In general: any vectors in with are dependent, because the matrix has at most pivots and therefore at least free variables.
The vectors and are independent. (a) What space are they a basis for? (b) Give a third vector so that is a basis for , and a third vector that fails.
Show solution
(a) They are a basis for the space they span: the plane inside consisting of all combinations . They span it by construction and they’re independent, so both basis requirements hold.
(b) Any vector not in that plane works. Take : the matrix
row reduces with three pivots (subtract row 1 from row 3 to get , then add row 2), so it is invertible and the columns are a basis for .
A choice that fails: . It lies in the plane, the three vectors are dependent (), and the attempt at a basis is dead.
For
find a basis for the column space, a basis for the null space, and the dimensions of both. Check that the dimensions add to .
Show solution
Every column is a multiple of the first: column 2 is column 1, column 3 is column 1. Elimination leaves one pivot, so the rank is .
Column space: the pivot column, , is a basis by itself. — the column space is a line in .
Null space: free variables . Special solutions: set , then gives ; set , then gives . These two are independent and span the null space, so they’re a basis and .
Check: . ✓
A subspace of is known to have dimension , and the vectors and both lie in . Without any further information about , show that is a basis for .
Show solution
First, independence: equals zero only when (first component) and (third component). So they are independent.
Now use the lecture’s key point: if the dimension is known to be and we have independent vectors in the space, they are automatically a basis. Suppose they did not span . Then some vector of is outside their span, and adjoining it gives independent vectors in — which could be extended to a basis of with at least vectors, contradicting the fact that every basis of has exactly vectors. So span , and being independent as well, they are a basis.