Lecture 9 · Linear independence, basis and dimensionality
Understand linear independence, basis and dimension, and learn to calculate the dimension of subspace.
On this page
Independence, basis, and dimension | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 9 / Total 35 Lectures |Part 1 · Elimination and Vector Spaces
Video of this lecture: Bilibili p9 · Linear independence, basis and dimension ↗(50:20)| MIT OCW official page ↗
Illustration: MIT OCW 18.06SC official lecture summary (CC BY-NC-SA 4.0) and Bilibili classroom video frames (time stamped), about 10 frames per lecture.
Introduction to this lecture
So far, we have been able to do two things: use elimination form row simplest form (row reduced echelon form), thus solving ;Consider the solution set as null space (nullspace), put Seen as a combination of column vectors, we get column space (column space). But these “spaces” have not yet been measured: how many independent directions are there in a subspace? How many vectors are needed to fully describe it? This lecture gives four words to turn these questions into something that can be calculated——linearly independent(linear independence), Zhang Cheng(span), base(basis), dimension(dimension).
The four words have a clear division of labor. Linear independence asks only one thing: is it possible for a combination of these vectors to accidentally get a zero vector when the coefficients are not all zero. Zhang Cheng asked in the opposite direction: how much space can be paved by taking all the combinations. Ji puts the two together and requires “no more, no less” and just enough. Dimension turns “how many vectors are there in a set of bases” into a usable number to measure the size of space. When using it, you must distinguish the objects: irrelevance, span, and basis are all properties of a set of vectors, while dimension is an attribute of space and rank is an attribute of matrix. The three cannot be interchanged.
This lecture ultimately comes down to two equations: the rank of a matrix is equal to the dimension of the column space, which is also equal to the number of pivot columns; the dimension of the null space is equal to the number of free variables, that is . When the four basic subspaces are put together in the next lecture, these two equations will be expanded into a complete picture, so this lecture will first explain the column space and the null space.

MIT OCW Official Lecture Notes Summary Page 1/3 (18.06SC Lecture 9 Summary, CC BY-NC-SA 4.0).
1. Let’s look at a fact first: there are more unknowns than equations
Before defining any noun, identify a fact that will be used repeatedly later. Set is matrix, and : The number of equations is small and the number of unknowns is large. Then the homogeneous equation There must be a non-zero solution, that is to say There is something else besides the zero vector.
The reasoning comes entirely from elimination, no new tools are needed. put In the simplest form of rows, the number of pivots will not exceed the number of rows. , because each row contributes at most one pivot. The matrix has a total of Column, the column not occupied by the pivot is free column (free column), the corresponding variable is free variable (free variable). Since the main element is at most , the free variables must be at least . Take any of the free variables as , take the rest , and then back-substitute to solve for each main variable, a set of solutions will be obtained; the free component of this set of solutions is equal to , so it can never be a zero vector.
Bottom line: When there are more columns than rows, null space is definitely not . And there is more than one solution created in this way: Choose any one of the free variables , take the rest , a set of different solutions is obtained. This fact will immediately appear geometrically - if you place three vectors on the plane, they must be linearly related.
2. Linear independence: whether there is only one trivial combination
Now to the definition. Note that an object is a set of vectors, we don’t say “a matrix is linearly independent”. vector linearly independent (linearly independent), refers to the combined
There is only one way to set up: . Taking all zero coefficients of course gives a zero vector, this combination is called Ordinary combination (trivial combination); irrelevant means “there is no other way”. On the contrary, if there is a set of coefficients that are not all zero so that the above formula is true, these vectors are called linearly dependent (linearly dependent), and that set of coefficients just points out which vector is the linear combination of the rest.
The two statements can be translated into each other. If a vector is a combination of other vectors, for example , you can get it by moving the item , there is one in the coefficient , is a group that is not all zero, so it is related. In turn, the related set of non-zero coefficients can always be solved by shifting terms to obtain a vector in which one of the coefficients is non-zero. So “correlated” is the same thing as “having one vector that is a combination of the rest”; it’s just that when there are more than three vectors, the extra one is not necessarily a multiple of a single vector, but may be a collective cancellation of several vectors.
Look at three small examples.
The first one, with . take , coefficient Not all zero, so relevant. The second vector just doubles the length of the first one and does not bring a new direction.
The second one, with zero vector. As long as a zero vector is mixed into this set of vectors, the irrelevance immediately breaks down: match the zero vector with a coefficient , add the rest , the combination is a zero vector. If , , then .
Third, two non-collinear vectors on the plane. combination To become zero, only , so it doesn’t matter. But add a third vector to this plane , three must be related. Use the facts from Section 1: Arrange the three vectors in columns matrix , number of columns greater than number of rows , so there is a non-zero such that , written as a combination is exactly
Geometry is more straightforward: the third vector cannot escape the plane formed by the first two, so it must be some combination of the two.

Video 00:05:02|Approximately corresponding to section 2 “2. Linear independence: whether there is only one trivial combination”.

Video 00:10:40|Approximately corresponding to section 2 “2. Linear independence: whether there is only one trivial combination”.
3. Determination method: Arrange the vectors into a matrix
The third example above already hints at the method of judgment - vertically arranging the vectors into a matrix. Set is vectors in a dimensional space, arrange them as columns matrix
combination exactly equal to the product , among which is a column vector with these coefficients as components. So the definition can be translated unchanged into a sentence about null space:
Relevant means There are non-zero vectors in. Each non-zero vector in the null space is a recipe for “how to use these columns to make zeros”. It does not answer “which column is redundant”, but records exactly how these columns depend on each other.
here is the dimension of the space where the vector is located, is the number of vectors, and the two can be very different. When these vectors are not enough to span the entire , but they may still be unrelated - This is the case with the two disproportionate vectors. How exactly depends on the specific values; When you immediately fall back to the conclusion of Section 1, it must be relevant. The judgment falls uniformly on Above: When it may contain only zero vectors, When it must hold a non-zero vector.
Replaced in terms of rank. When irrelevant, each column is Pivot column (pivot column), there is no free column, so , at this time it is inevitable . is relevant when there is at least one free variable, . The meaning of the free column is “this column can be combined with the previous pivot column”: it fails to establish a pivot in its position during elimination, indicating that it fails to provide a new direction. The so-called relevant columns are these “redundant” columns.
In particular, when the number of vectors is equal to the space dimension, the matrix is a square matrix, then
This equivalence relationship is the main tool for later judging “whether it is a basis”.

Video 00:15:06 | Approximately corresponding to Section 3 “3. Judgment method: Arrange vectors into matrices”.
4. Zhang Cheng and basis: a set of vectors with neither more nor less
The set of all linear combinations of a set of vectors is called their Zhang Cheng (span). If space It happens to be composed of these combinations, it is said that this set of vectors spans . This statement is not new: put Take out each column of and do all the combinations, and you will get , so” “Columns spread into column space” is just another way of saying the same thing.
Zhang Cheng also has a “minimal” portrayal. Set is the span of a certain set of vectors, then itself is a subspace containing this set of vectors; conversely, any subspace containing this set of vectors must be closed to all its linear combinations, so the entire included. So the span is the smallest subspace that contains this set of vectors. Compressing “take all combinations and put them into one space” into one word is span.
Now combine irrelevant and Zhang Cheng. space a group of base (basis) is a sequence of vectors , satisfying two conditions: first, they are linearly independent; second, they span .
Two pipes, one for each end. The first one ensures that there are no redundant vectors: if one of them is removed, the remaining vectors can still form a , then the removed one is the combination of the remaining vectors, which is inconsistent with irrelevance. The second guarantee is that nothing is omitted. In the simplest terms, the number of basis vectors is “just right” - one less will not be enough, and one more will be relevant.
A set of basis makes the space clear: if you know the basis, you can get every vector in the space by going through the combination, and there is no need to add anything else to describe this space. Therefore, whenever we encounter a subspace from now on, “Give me a set of basis” is the most standard way to ask, and it is also a recurring question type in homework, tests and exams.
Irrelevance and Zhang Cheng are two independent problems. A set of vectors can have four situations in a certain space. It is irrelevant and constrained, it is the basis. This is the best situation. Zhang Cheng is related, indicating that there are too many vectors: for example, the one in Section 7 The four columns of the matrix are spread out into column space, but there are extra columns that are not used. Irrelevant but not conspicuous, it means that there is less: Section 5 with Yes That’s it. Neither unrelated nor spanned, then this set of vectors does not fit the space. Ji happens to be the one chosen from the four situations.

MIT OCW Official Lecture Notes Summary Page 2/3 (18.06SC Lecture 9 Summary, CC BY-NC-SA 4.0).
5. Example: There is more than one group of bases
Let’s look at the most familiar group first. The standard base is
That is, the directions of the three coordinate axes. The irrelevance is evident at a glance: , to make it equal to zero only the three coefficients must be all zero. In matrix language, the matrix arranged by these three vectors is the identity matrix , while . They are spread out , because any All equal to . This set of vectors is called Standard base(standard basis).
But there is much more to Key than this group. take
The two are not proportional, so they are irrelevant. They are spread out ? No. Their combination looks like
The first and second components are always equal, so like Such vectors cannot be combined at all. The span of these two vectors is Zhongyou The defined plane passing through the origin.
This plane also has its own basis, and it is these two vectors: they are unrelated, and they form this plane. It can be seen that “is a basis” is always relative to a certain space. The same set of vectors can be the basis of a small space, but not the basis of a large space. can’t do What is missing is not irrelevance, but Zhang Cheng.
Now add the third vector. If added , that’s a bad choice, because
It brings no new directions, the three vectors still just span the plane and become related: . The Zhangcheng has not become larger, but its irrelevance has been lost, so it is not even the basis of this plane.
The third vector must not be in this plane, that is, the first two components cannot be equal. Just make it up , it does not look like the sum of the first two, but its first two components are still equal and still fall on the same plane; in fact
The three vectors are still related. If the third vector is written casually as , it is impossible to judge just by looking at the numbers. It can be seen that judging whether a set of vectors is a basis cannot rely on “does it look like a combination”. You can only arrange the vectors into a matrix and perform elimination to see if there are any free variables.
Yes in vectors, there is a simpler version of this sentence: arrange them as columns matrices, they are The basis of is if and only if this matrix invertible (invertible). Reversible means There is a pivot and no free columns, so The columns are both unrelated and span the entire .
From this point of view, There are too many bases to count: just write any reversible one A matrix, its three columns are a set of basis. What really doesn’t change with the basis is not the vectors, but their number.

Video 00:32:43|Approximately corresponding to Section 5 “5. Example: There are more than one group of bases nearby.
6. Dimension: The number of vectors of all bases is the same
There are so many groups, what do they have in common? Yes, and the most crucial thing is: they contain the same number of vectors. this is not special phenomenon.
given a space ——It can be , can be the column space or null space of a certain matrix, or other subspaces - each group of its bases contains the same number of vectors. If a group of bases has vector, then any other basis also has of: There are too many and they must be related; One is not enough and Zhang cannot succeed. This common number is called of dimension (dimension), recorded as .
This is not obvious: there are infinitely many basis groups in a space, why do they have the same number of vectors? But it does hold true, and it is by relying on it that the word “dimension” can be defined - otherwise we can only say “how many vectors are there in a certain set of basis”, but not “how many dimensions does this space have”. Dimension is therefore not the number of vectors that happen to be in a certain basis, but an intrinsic property of the space. , , the dimension of the plane in Section 5 is .
Once the dimensions are known, the judgment base saves half the work. if known , have on hand a vectors in and they are linearly independent, then they are automatically The basis is no longer necessary to verify Zhang Cheng. Reason: If they fail , There is a vector in Not in their Zhangcheng, put Just add it and you’ll get it an irrelevant vector; but this vectors all fall into , they form one of dimensional subspace, and Contradiction. So “the number is irrelevant to +” is enough; conversely, over in vectors must be related.
Back to matrices, two dimension formulas are the core conclusions of this lecture:
Article 1: The pivot column constitutes a set of bases of the column space, and the number of pivot columns is the rank. , so Rank is equal to the dimension of the column space. Article 2: Each free variable is taken once , the rest ”, a special solution is obtained. These special solutions form the basis of the null space, and the number is exactly the number of free variables. .
At the same time, the words should be distinguished. Rank is a property of a matrix, dimensionality is a property of a space: we say “matrix “rank”, don’t talk about “dimension of matrix”; talk about “subspace” “The dimension”, not “the rank of the subspace”. ” The rank is equal to The phrase “the number of dimensions” is meaningful precisely because it links the value of a matrix to the size of its corresponding space.

Video 00:38:41 | Approximately corresponding to Section 6 “6. Dimension: the number of vectors of all bases is the same”.

Video 00:40:16 | Approximately corresponding to Section 6 “6. Dimension: the number of vectors of all bases is the same”.
7. one Calculation example
Use a specific matrix to go through the two sets of calculations:
The four columns are , , , .
These four columns form a column space, which is by definition; but are they bases? no. The third column is the sum of the first two columns, ;The fourth column is exactly the same as the first column, . written as a combination,
So with All in null space, the four columns are related.
Use elimination to confirm rank. The second line minus the first line, the third line minus the first line:
The pivot is with , falls into the first , Column; No. , Column is a free column, is a free variable. rank .
The most natural basis for a column space is the two pivot columns
But the basis is not unique: , , All is OK. You can even use the original columns completely. For example
Both are in the column space, and they are not proportional and therefore unrelated; since , the number is just right and irrelevant, they are automatically a set of bases of the column space, and there is no need to check the generality. Add all four columns to get , which also falls within the column space.
Then count the null space. The above system of equations is actually
take : From the second formula , and then from the first formula , got . take : got , , that is . These two vectors are unrelated, and every vector in the null space is a combination of them, so they form a set of basis of the null space, . Looking back, the first vector repeats exactly , the second retelling is exactly : The basis of a null space is a list that itemizes the dependencies between these columns.
Finally check the dimension formula. here , ,
The rank connects the dimensions of the two spaces: there are several pivot columns, and the column space has several dimensions; each remaining column corresponds to a free variable, which contributes one dimension of the null space.

Video 00:45:18|Approximately corresponding to Section 7 “7. A “near the calculation example”.

MIT OCW Official Lecture Notes Summary Page 3/3 (18.06SC Lecture 9 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- If , that is, there are more unknowns than equations, and after elimination, the number of main components is at most , the free variables are at least one, so There must be a non-zero solution.
- a set of vectors linearly independent, refers to There is only one solution with all zero coefficients; otherwise it is called linearly dependent, the set of coefficients that are not all zero illustrates how they represent each other.
- Any set of vectors containing zero vectors must be related; with must be related; three vectors on the plane must be related, because The matrix must have free variables.
- Arrange vectors in columns , then it is irrelevant and equivalent to , equivalent to , there are no free columns; the square matrix case is equivalent to reversibility.
- Zhang Cheng is the set of all combinations of a set of vectors, which is the smallest subspace containing this set of vectors; base It is a set of vectors that are both unrelated and span the space, “no more, no less”.
- The basis is not unique, but each group of basis in the same space contains the same number of vectors, and this number is the number of vectors in the space. dimension., the dimension of the plane is .
- known when, in Independent vectors automatically form a basis; this is a shortcut for “the number of pairs + is irrelevant”.
- Two core formulas: ( is the number of columns for the main element), (Number of free variables). The rank belongs to the matrix and the dimension belongs to the space.
- The four columns of the calculation example , , , , among which , , so ; or are all bases of column spaces, and the basis of null space is with , both dimensions are .
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| linearly independent | linearly independent | Only all zero coefficients can make the combination into a zero vector |
| linearly dependent | linearly dependent | The existence of coefficients that are not all zero makes the combination a zero vector |
| trivial combination | Ordinary combination | A combination in which all coefficients take zero always gives a zero vector |
| span | Zhang Cheng | The set of all linear combinations of a set of vectors is the smallest subspace containing them |
| basis | base | A set of vectors that are both linearly independent and span the space |
| standard basis | Standard base | Unit vectors along each coordinate axis in |
| dimension | dimension | The number of vectors in any basis of the space |
| rank | rank | The number of pivot columns of a matrix is equal to the dimension of the column space |
| free variable | free variable | Corresponding to the free column, variables that can take any value, the number is |
| pivot column | Pivot column | A column containing a pivot. The pivot column constitutes a set of bases of the column space. |
| column space | column space | The subspace composed of all linear combinations of each column |
| nullspace | null space | satisfy All vectors of |
| invertible | invertible | A square matrix has an inverse matrix; for vectors constitute ‘s base” |
Machine-assisted translation · Read Chinese original
