Lecture 10 · Four basic subspaces
Master the four basic subspaces and their dimensional relationships, and establish a spatial map of the entire course.
On this page
The four fundamental subspaces | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 10 / Total 35 Lectures |Part 1 · Elimination and Vector Spaces
Video of this lecture: Bilibili p10 · Four basic subspaces ↗(49:26)| 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
The previous lecture described “basis” and “dimension” as two things that support each other: the basis of a space is not unique, but each group of basis contains the same number of vectors. In order to match this abstract conclusion with a concrete image, at that time Use two vectors to form a two-dimensional plane, and then add a candidate . In the previous lecture, we have used column combinations to see that this candidate is actually equal to , still in that plane. This lecture explains the same thing from another angle: you do not need to guess the combination coefficient first, just look at the rows of the matrix - arrange the three vectors as columns into a square matrix. The first two rows of it are exactly the same. The square matrix is therefore irreversible and the three columns must be related. When rows go wrong, columns suffer; this phenomenon of “rows and columns interfering with each other” is the theme of this lecture.
one A matrix comes with more than two subspaces. In addition to the already familiar column space and null space, there are also row space and left null space. These four spaces are separated with On both sides, each has its own basis and dimension: the dimensions of column space and row space are both , the null space is , the left null space is . By clarifying these four numbers at once, half of the linear algebra about matrices will be clear: which vectors can be written as , which vectors satisfy , how the relationship between rows limits the relationship between columns is translated into the addition of dimensions.
At the end of this lecture, the concept of “vector” itself is relaxed: The entire matrix also constitutes a vector space, and the matrix is a vector. Once this is accepted, words such as irrelevance, span, basis, and dimension are no longer exclusive to , and can be used to measure any object that can be added or multiplied.

MIT OCW Official Lecture Notes Summary Page 1/3 (18.06SC Lecture 10 Summary, CC BY-NC-SA 4.0).
1. Look at columns from rows: If rows are related, columns are related.
I wanted to explain in the previous lecture The basis is not unique. Standard base is the most familiar group, but far from the only one: take any reversible A matrix whose three columns are all bases. In order to put this sentence into practice, we first took two vectors
The two are not proportional, so they are linearly unrelated; but their combination looks like , the first two components are always equal, so they span just Zhongyou determined two-dimensional plane. To make it whole basis, the third vector must jump out of this plane. Try first , which happens to be , obviously not working; try again , looks disproportionate to the first two, but its first two components are still equal and still lie in that plane.
Students’ judgment methods are less laborious and more valuable. Arrange three vectors as columns into a matrix:
The first row of this matrix is exactly the same as the second row. The correlation of the rows is immediately obvious - the first row minus the second row gives us zero rows - so the square matrix is irreversible and its three columns must be linearly related. Write out the combination to verify:
The coefficients are with . So No new direction is brought, and the three vectors combined only form the two-dimensional plane.
This chain of reasoning is worth remembering: Relationships between rows constrain relationships between columns. The first two components of each column are equal, which geometrically means that all three columns fall in the plane Within; on the matrix, it means that the first two rows are the same; the conclusion is that the rows are correlated, the square matrix is singular, and the columns are correlated. Three roads lead to the same fact: rank only , only two of the three column vectors are independent.
This also brings out a methodology. To judge whether a set of vectors can be used as a basis, you cannot see whether they “look” independent of each other. You can only arrange the vectors into a matrix for elimination: the presence of free variables indicates column correlation. The situation of the square matrix is particularly simple - if the rows are correlated, they are irreversible, and if they are irreversible, the columns must be correlated. And “all combinations of rows” itself is a subspace. It had no name before, but it is hidden behind this candidate: precisely because the row space has only two dimensions, the column space can only have two dimensions.

Video 00:04:57|Approximately corresponding to Section 1 “1. Look at columns from rows: If rows are related, columns are related.”
2. Four basic subspaces
Set is matrix. There are four subspaces accompanying it, all of which are represented by This matrix determines it, so it is collectively called four fundamental subspaces(four fundamental subspaces).
column space(column space), that is All linear combinations of the columns of can also be said to have the overall shape of vector. it’s in in, because Each column of has weight.
null space(nullspace), that is, the equation all solutions. it’s in , because the solution vector has weight.
row space (row space), that is All linear combinations of rows. it’s in , because each row has weight. Line spaces are conventionally written as : put Transpose (transpose), the rows lying horizontally are turned into columns, and the row space is exactly column space. This step does not change any mathematical content, it just makes all vectors written in columns and the notation is unified.
left null space(left nullspace), that is, it satisfies vector of . it’s in in.
The fourth name requires explanation. put Transpose both sides, and the transpose of the product requires exchanging the order, and we get
The left hand side is now a row vector , from left side multiply . This is the origin of “left null space”: it is those spaces that can be used from the left Multiply a vector into zero rows. still define To write a column vector, use Describe this space.
Four spaces separate two worlds. There are row space and null space in it, and the vectors are weight; Column space and left null space live in it, and the vectors are weight. When At this time, the two sets of spaces simply cannot be drawn into the same picture. If drawn as a schematic diagram, it would be represented by a circle on the left , the circle contains line space and null space, and the circle on the right represents , the circle contains column space and left null space. Once the positions and sizes of the four spaces are determined, the information structure of the matrix is also determined: which right-hand vectors have solutions, how many degrees of freedom the solutions have, and how much redundancy there is between rows are all answered by them. Next, we need to answer two questions for each space: How to create the base? What are the dimensions? The former question is constructive and has a long answer; the latter is just a number and has a short answer.

Video 00:10:52 | Approximately corresponding to section 2 “2. Four basic subspaces”.

Video 00:14:50 | Approximately corresponding to section 2 “2. Four basic subspaces”.
3. Four dimensions: , , ,
Publish the answer first. Set is Matrix, rank is , then
Each of the four has its own reasons, let’s talk about them one by one.
column space. During the elimination process, the column where the pivot is located is called the pivot column. Note that the pivot column is Column of , not after simplification column, which is the most confusing. shared by pivot , so the pivot column has a total of ; the linear relationship between columns remains unchanged under row transformation, so these pivot columns are irrelevant, and the remaining columns can be written as their combinations, so the pivot column composition a set of basis, . This is exactly “the rank is equal to the dimension of the column space”.
null space. Already calculated in the previous lecture. For each free variable, let it take in the solution , the remaining free variables are , then go back and find the main variable, and get a special solution (special solution). The free variables are , there is a special solution , they form a set of basis of the null space, so .
line space. Its dimensions are also . This is the most important thing to remember in this lecture: the dimensions of row space and column space are equal, and both are equal to rank. The proof will be placed in the next section, but we will use it here to resolve the remaining issues from the previous lecture. that The rank of the matrix cannot be seen clearly by column, but it is clear by row: the first and second rows are the same, and the third row Not proportional to the first two rows, so the row space is two-dimensional, with rank ; Since “the dimensions of row space and column space are equal”, column space is also two-dimensional, and only two of the three columns are independent.
null space left. put Viewed as a new matrix: it is Yes, there is columns. The rank is also , because The column space is row space, whose dimension is (Proof in next section). Applying the formula for null space, “number of columns minus rank” gives , which is the dimension of the left null space.
When the four formulas are arranged together, two beautiful pairings appear:
The sum of the two subspace dimensions in , Adding two of them gives . This is actually restating a simpler fact: Yes variables, among which is the main variable, is a free variable; Yes variables, among which is the main variable, are free variables. Another corollary is equally useful: the four dimensions depend only on , with , so the dimensions of the four subspaces of matrices with the same shape and rank are exactly the same, regardless of the specific numbers filled in the matrix.
4. The basis of the row space: the front of the simplest form of the row OK
To create a foundation for row space, the stupidest way is to Transpose, yes Do the elimination again and take its pivot column. A better approach is to reuse eliminations that have already been done for the following reasons: Row transformation does not change row space.
This sentence needs to be explained. Each step of elimination replaces a row with “itself minus a multiple of another row”. The new row is a combination of the original rows and is therefore still in the original row space; conversely, this step can be undone, and the original row is also a combination of new rows. Therefore, the row spaces of the two matrices before and after simplification are exactly the same. In contrast, the column space will change. Take the previous lecture matrix
Its first column is , of course it belongs to ; and after elimination, the third component of any column is , It no longer belongs to the column space. So the column space must be returned to its original To get the pivot column, the row space can directly use the simplified matrix.
Now finish this elimination. The second line minus the first line, the third line minus the first line:
Second line multiplies , and then use it to eliminate the :
this is of row simplest form (row reduced echelon form). Its first two rows are the pivot rows, the third row is the zero row, and the pivot is at the , column, so . before rows, i.e. two vectors
That’s it A set of basis for the row space of .
Why them? Check three things: in line space, irrelevant, and complete. The first two are easy. they are line, naturally belongs to row space, that is, belongs to row space; they are each taken at a position , take it from another position , is clearly disproportionate and therefore irrelevant. The third thing is to work backwards: undo the steps of elimination one by one, Each line of can be written as The combination of rows, so The row space is contained by the space spanned by these two rows. When the three conditions are met, they are the basis. The dimensions are then determined to be : a main element, non-zero rows, basis vectors, which also complements the previous section proof.
It should be noted that the basis is before OK, no before OK. In this example The first two lines of are also irrelevant, but in general The non-zero lines may be related to each other, and copying them will cause errors; Each row is separated from other rows at the pivot position, which is the cleanest version. During the whole process, only the selection of the basis changed, and the space itself remained unchanged. Borrowing the analogy from the lecture notes: the columns of the identity matrix are The cleanest base, before Row is the cleanest basis for row space.

MIT OCW Official Lecture Notes Summary Page 2/3 (18.06SC Lecture 10 Summary, CC BY-NC-SA 4.0).

Video 00:25:44|Approximately corresponding to Section 4 “4. The basis of the row space: the front of the simplest form of the row “OK” nearby.

Video 00:32:08|Approximately corresponding to Section 4 “4. The basis of the row space: the front of the simplest form of the row “OK” nearby.
5. Left null space: from middle reading base
The basis of the fourth space cannot be derived from the same as the first three read directly. with has the same null space, but the left null space is The null space of I didn’t put it before my eyes. To get it, you have to eliminate the element process Save it.
Gauss-Jordan elimination provides a ready-made solution. put with The identity matrices are side by side and row transformed together:
Every step done on the left is done simultaneously on the right, so what is recorded on the right is the combined effect of these row transformations. In matrix language, the entire elimination is equivalent to multiplying a matrix on the left; this matrix become , so it is , and
When the square matrix is reversible , so , that is , which is exactly the approach used before to find the inverse matrix. There is no inverse matrix when it is a rectangle, but still exists, it still logs “from Arrive What did you do?”
In the example put Figure it out. from Starting, there are three steps in total: the second row and the third row each subtract the first row; the second row multiplies ;The first row minus the second row times. Calculate step by step:
Check . View by row, of the OK of the line with The lines of are combined:
The three lines are respectively related to The three lines match, That’s right.
Look again The third line of . it puts The three rows of combine into zero rows, so satisfy , which is a vector in left null space. This is no coincidence: means of the travel by exactly equal to of the OK; as long as A row of is zero row, The corresponding row is in the left null space. This example , the left null space is one-dimensional, so only this vector constitutes the basis.
The two methods of finding the null space are in contrast here: to find the basis of the null space is to find “the coefficient combination of the column is equal to the zero column”; to find the basis of the left null space is to find “the coefficient combination of the row is equal to the zero row”. The first line in this example is exactly the same as the third line. Double the first row and add The third line is naturally the zero line, so the answer requires almost no calculation.
Check the four answers with examples. , , , so , a group of bases is the pivot column with ; , two special solutions can be obtained with ; , a set of basis is with ; , the basis is . The two sums match up: , .

Video 00:39:33|Approximately corresponding to Section 5 “5. Left null space: from “Middle reading base” near.

Video 00:40:08|Approximately corresponding to Section 5 “5. Left null space: from “Middle reading base” near.
6. A matrix is also a vector: matrix space
So far, all vectors are or number in a column. But the definition of a vector space only requires two things: elements can be added to each other and can be multiplied by a number. Any set that satisfies these two plus several consistency rules can be called a vector space. The entire matrix meets the requirements: two matrices can be added, a number can be multiplied, a zero matrix acts as a zero element, and the number Multiplying does not change the matrix. So there is every reason to say “every Matrices are all vectors”, all written as .
Matrix multiplication should be actively ignored here. Of course the elements in can be multiplied, but vector spaces do not require multiplication, only addition and numerical multiplication: , , is meaningful, I will not participate in this grammar for the time being. Being able to multiply is an additional fact that has nothing to do with “whether it is a vector space”.
There are many subspaces in it. All upper triangular matrices form one, and all symmetric matrices form one. The intersection of two subspaces is also a subspace: it is both an upper triangle and a symmetric matrix, and everything below the diagonal is (upper triangle), and the upper part of the diagonal must be equal to the corresponding element below (symmetry), so the upper part is also , leaving only the diagonal. So
The word “smaller” now has a precise meaning: smaller than dimension. Diagonal matrices form subspaces , its dimension is , a set of basis is three matrices
The third one is in location taken instead of , as long as it is a non-zero number, it will not affect the result. Irrelevance: If the combination of the three is equal to the zero matrix, then the three elements on the diagonal , , are all zero, so . Zhang Cheng: Any diagonal matrix can be written as
Both conditions are met, so The dimension of is . The dimensions of upper triangular matrices and symmetric matrices can also be counted in the same way: write a set of bases each, and then count how many matrices there are in the bases. This matter will be formally discussed in the next lecture. At this point, the meaning of “dimension” becomes clearer: it does not depend on the number of components, but on the number of free parameters in the space; this becomes particularly obvious once the vector itself is replaced by a matrix.

MIT OCW Official Lecture Notes Summary Page 3/3 (18.06SC Lecture 10 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- Candidate vectors from the previous lecture is not independent: it is related to , As a matrix with three columns, the first two rows are the same, the square matrix is singular, the three columns are related, and .
- Row correlation can deduce column correlation: once a square matrix is row-related, it is irreversible, and the columns of an irreversible square matrix must be related; equivalently, the row space and column space have the same dimensions, one is two-dimensional, and the other can only be two-dimensional.
- Four basic subspaces: column space , null space , row space , left null space .
- The “left” of left null space comes from : where the vector is taken from the left Row vector multiplied to zero rows.
- Four dimensions: , , , ;Add the pairs to get with .
- The basis of the column space is The pivot column of ; the basis of the null space is a special solution.
- Row transformation preserves the row space and changes the column space; the basis of the row space is before OK instead before OK.
- Yes By elimination we get , satisfy ; The zero row corresponds to The rows form the basis of the left null space, in the example .
- All The matrix constitutes a vector space, and the matrix is a vector; the upper triangular matrix and the symmetric matrix are its subspaces. The intersection of the two is a diagonal matrix space, with the dimension .
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| four fundamental subspaces | four fundamental subspaces | Column space, null space, row space, left null space |
| column space | column space | All linear combinations of the columns of |
| nullspace | null space | satisfy All vectors of , located in |
| row space | row space | All linear combinations of the rows of , located at |
| left nullspace | left null space | satisfy vector, that is, from the left vector to multiply to zero rows |
| rank | rank | The number of pivots is the dimension of both column space and row space. |
| pivot column | Pivot column | The columns containing pivots constitute a set of basis in the column space. |
| special solution | special solution | A free variable takes , take the rest The obtained null space vector forms the basis of the null space |
| row operation | Row transformation | Swap two rows, multiply one row by a nonzero number, and subtract a multiple of the other row from one row; keep row space and null space |
| row reduced echelon form | row simplest form | The completely simplified matrix after elimination , before rows form the basis of the row space |
| Gauss-Jordan elimination | Gauss-Jordan elimination | put form , by Read out the basis of left null space |
| upper triangular matrix | upper triangular matrix | The matrix with all zeros below the main diagonal forms a subspace of the matrix space |
| symmetric matrix | symmetric matrix | satisfy matrix, which constitutes the subspace of the matrix space |
| diagonal matrix | diagonal matrix | A matrix whose only diagonal may be non-zero is of dimension subspace of |
| vector space of matrices | matrix vector space | A vector space with matrices as vectors and only addition and multiplication |
| dimension | dimension | The number of vectors in any basis of the space. The dimension of the matrix space is determined by the number of free parameters. |
Machine-assisted translation · Read Chinese original
