Lecture 6 · Column space and null space
Use column space and null space to describe the solvability of Ax=b and the degree of freedom of the solution.
On this page
Column space and nullspace | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 6 / Total 35 Lectures |Part 1 · Elimination and Vector Spaces
Video of this lecture: Bilibili p6 · Column space and null space ↗(46:01)| 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
In the previous lecture, the terms vector space and subspace were put on the table, but the table was still empty. This lecture will introduce two protagonists: The Matrix of column space (column space) and null space (nullspace). They are all subspaces, but live in different rooms - if is matrix, the column space lives in , null space lives in . Two rooms correspond to two questions: When will there be a solution? What does the solution look like?
These two problems are approached in exactly opposite ways. Column space is defined from the perspective of “making”: give me several column vectors, and I collect all their linear combinations to form a subspace. The null space is defined from a “sieve” perspective: give me an equation and I put all the equations that satisfy it Pick out. The former has vectors first and then becomes space; the latter has requirements first and then sets. These two construction methods are standard techniques for producing subspaces in linear algebra. This lecture will use an example to walk through each.
This lecture is also the main topic of the new chapter. The previous lectures dealt with “how to solve”: elimination, back substitution, Decomposition is all algorithms. Starting from this lecture, the question changes to “What is the shape of the entire solution?”: Put all possible right ends together and look at all possible liberations together, and what will each get? The algorithm cares about how to take one step, and the subspace cares about where all the answers live.
The most important conclusion is just one sentence: There is a solution if and only if fall on in the column space. This sentence translates “solving a system of equations” into “determining whether a vector belongs to a certain subspace.” It also explains why the entire next chapter is devoted to studying subspaces rather than the equations themselves. This lecture also gives a counterexample: changing the right-hand side from zero to another vector, the solution set is immediately no longer a subspace—the only difference is the origin.

MIT OCW Official Lecture Notes Summary Page 1/2 (18.06SC Lecture 6 Summary, CC BY-NC-SA 4.0).
1. Vector space: addition and multiplication are not allowed to escape.
vector space The definition of (vector space) has only two requirements: if two vectors in any space are added, the result is still in the space; if a vector in any space is multiplied by any constant, the result is still in the space. The two words combined make one sentence - yes linear combination (linear combination) closed. Because it’s optional , first use multiplication to stay in it, and then use addition to stay in it, both steps are passable.
in There are several that can be counted here. whole It’s a vector space, there’s nothing to argue about. What is more interesting are some of its internal subsets: a plane passing through the origin, or a straight line passing through the origin. The addition of two vectors on the plane remains on the plane. Multiply the vector on the plane Still on the plane, so the plane is a subspace; the same goes for straight lines. Here’s subspace (subspace) refers to “the interior of a certain space and itself constitutes a part of the vector space”. When the external space is explained clearly, it is said that ” subspace”.
All subspaces must pass through the origin. The reason is simple: if In the subspace, take a constant , then It has to be inside too. Therefore, to determine whether a set is a subspace, you must first look at whether it contains a zero vector. If it does not, you will be eliminated immediately. This criterion will be used later: when the right end is not zero, The solution set of does not contain zero vectors, so it is not even a candidate. On the other hand, for a collection to be worthy of the word “space”, these two requirements must be tested one by one and cannot be released based on impressions.

Video 00:04:36 | Approximately corresponding to Section 1 “1. Vector space: addition and multiplication are not allowed to escape”.
2. Union and intersection: Which one is still a subspace?
Set is a plane passing through the origin, is a straight line passing through the origin, both , each is a subspace. Now use set operations to put them together and see if the resulting thing is still a subspace.
Let’s look at the union first , that is, all vectors “on a plane or on a straight line”. it No subspace. Find a vector on the plane that is not on a straight line , then take a non-zero vector on the straight line , the two are added together, and the sum is usually neither on the plane nor on the straight line, running out of the union. Use closure to state the reason clearly: if Still on the plane Guilty, then As the difference of two in-plane vectors must also be in Guilty, but only in Up but not here Internal, contradictory. The problem lies in the addition step.
Look at the intersection again , that is, a vector that is “on the plane and on a straight line at the same time”. If the straight line is not in the plane, they only share one origin, so . A single zero vector is a subspace, so the intersection is a subspace. This conclusion is not a coincidence of this picture, it is true for any two subspaces.
Set with are two subspaces in the same space, take . By definition, with All are there inside, and is a subspace, so ;Similarly . Both sides are established, so . The check for multiplication is exactly the same: given , given , so Also in the intersection.
The intersection of two subspaces is still a subspace, but the union generally is not. Because of the additional condition, the intersection is usually smaller than the original two, but this is not important, the closure is maintained. This comparison also shows that the two requirements are not decoration: the closure of the intersection is guaranteed by them, and the union fails precisely in addition.

Video 00:11:03 | Approximately corresponding to section 2 “2. Union and intersection: which one is still a subspace”.
3. Column space: let Those with solutions
Get a specific matrix
it is Matrix, the three columns are
Each column has four components, so the column vector lives in There are several rows and components in a matrix.
of column space (column space) is recorded as , defined as all linear combinations of three column vectors:
The three column vectors themselves are of course in it (take the coefficients respectively , , ), but just three vectors cannot form a subspace, and the combination must be completed. After completion, it is indeed a subspace: a combined multiplication It is still a combination, and the addition of two combinations is still a combination. It contains these three column vectors smallest Subspace - columns must be there, combinations of columns must be there, nothing more is added.
is subspace, but far from the entire . Three column vectors can provide up to three new directions, and It takes four directions to fill it up, so there are always some Left outside. As for how much falls outside and what shape the remaining parts are, we’ll see in the next section. For now let’s translate this geometric fact into an equation.
put Write it completely:
That’s four equations, three unknowns, and usually no solution. It is more intuitive to write it line by line as a system of equations:
There are only three unknowns in the four equations. Of course, “usually” does not mean “always”. Some of the right-hand sides can be solved. The most stable one is , take That’s it. Find another one: let Directly equal to the first column , at this time It’s the solution - plug it in and the four equations are given in turn , , , , all matched. This is no coincidence, The meaning is “take one first column, zero second column, zero third column”, and the right end of the multiplication is of course the first column itself. let equal to the second column , the same reasoning is given . There is a trick to find the right end that can be solved: do it in reverse, first specify a random one , the result of multiplying is a legal .
So the core answer to this lecture can be written down:
There is a solution if and only if .
The reason is in the definition. The column space contains all , Run all over . If is a combination of columns, then this set of combination coefficients gives a solution; if Not a combination of columns, any Can’t even figure it out. The entire difficulty of solving the equation is thus reduced to a subordinate judgment: Are you there? inside.

Video 00:13:48|Approximately corresponding to Section 3 “3. Column Space: Let Those with solutions “Nearby.

Video 00:17:29|Approximately corresponding to Section 3 “3. Column Space: Let Those with solutions “Nearby.
4. Delete a column and the column space remains unchanged
The previous section said that the three column vectors cannot be filled , the actual situation is even more extreme: one of the three column vectors is redundant. Add the first two columns:
The third column is exactly the sum of the first two columns and it doesn’t bring any new direction. Put this into the mix:
Only the first two columns are used on the right. In other words, any combination using the third column can be rewritten as a combination using only the first two columns; conversely, a combination using only the first two columns is originally a three-column combination (take ). Both sides include each other, so
Delete the third column, and the column space will be less than one vector. To put it another way: the third column falls in the plane formed by the first two columns and contributes no new direction.
Can I delete the first column? That’s ok too. by It can be seen that the first column is a combination of the other two columns, and nothing is lost by deleting it. However, it is customary to retain the first few independent columns, so it is agreed to call them for Pivot column (pivot columns), called Not the pivot column. The name “pivot column” has no algorithmic meaning at the moment, and it will not be explained clearly until the pivot is formally obtained by elimination later; now you only need to remember the selection rules: from left to right, stay as long as you can, and stay until no new directions are generated.
thus is one of the two-dimensional A subspace is geometrically a plane passing through the origin. Three column vectors, two directions, the third one is locked by the coefficient relationship of the first two columns.
The question “Is this column redundant?” can only be answered by eyes and subtraction: spread out the columns and see if one column can be spelled out from the remaining columns. It will later become a formal concept and require a special name; the current example just demonstrates it in advance.
5. null space: Set the right end to zero
Now switch to a completely different subspace. The column space collects the right end , the null space collects solutions . of null space (nullspace) is recorded as , the definition is
“null” means zero, so the null space is also called the solution space: it is a homogeneous equation all solutions. Still using the same , There are three components, so fall on inside. The number of columns of the matrix determines where the null space lives, and the number of rows determines where the column space lives: Right matrix, And .
There is at least one vector in null space: . Any matrix multiplied by a zero vector gets zero, so the null space is always non-empty and always contains the origin. The first necessary condition for subspace has been met.
Here’s the advantage of the small example: you don’t have to actually solve the equation to see the null space. When the matrix is large, the eyes are not enough. At that time, we have to rely on the mechanical program of elimination to force out the null space, which is the content of the next lecture.
Find another one. The requirement is . Since , take Exactly offset:
Substitute into the four equations and check line by line: the first line , second line , the third line , the fourth line , all four lines hit. Another solution is , which is twice the previous one. In fact, the whole solution is
remember , verification is easy: . So as long as there is a non-zero solution, all its multiples are solutions; gives a zero vector, Give the solution just now, given . So is A straight line passing through the origin, the direction vector is .
Here’s a pronunciation worth remembering. A vector in null space is a set of coefficient, what it records is “use these coefficients to combine each column and get exactly zero.” write In fact, we are asking: What kind of linear relationship exists between these column vectors? The third column is equal to the sum of the first two columns. This geometric fact translates into a coefficient of exactly ;Multiply by become , still talking about the same relationship, but magnifying both sides seven times. Column space cares about “what columns can be combined to form”, and null space cares about “how columns can be combined into zeros”. The two subspaces look at the same batch of columns, but ask questions in the opposite direction.

Video 00:29:55 | Approximately corresponding to section 5 “5. null space: set the right end to zero”.
6. Why does null space deserve the name “Space”?
It was called “null space” all the way before. This name was used a little early: it must first be verified that it meets those two requirements before it can be qualified to be called space. The matter to be proved is very specific: if with are all solutions, then It is also a solution; if is the solution, then That’s also the solution.
The first one. known , , to calculate . A basic property of matrix multiplication is used here - the distributive law:
thus Satisfies the equation and falls in the null space. The second thing is the same. Using constants, we can propose this property:
So Also in null space. Both requirements are met, and the null space is indeed a subspace. Combining the two equations, we get a stronger statement: if is the solution, then for any constant , Also the solution - the solution is closed to linear combinations.
The key to this proof is not the technique, but that it does not use anything special: neither the four specific numbers nor the special relationship between the columns. Take any matrix, All solutions of form a subspace. The solution set of homogeneous equations is naturally closed, which is the fundamental reason why it is easier to deal with than non-homogeneous equations - and also explains why research The first step is always to put Replace with .

Video 00:35:53 | Approximately corresponding to section 6 “6. Why is null space worthy of the name “space"".

Video 00:36:49 | Approximately corresponding to section 6 “6. Why is null space worthy of the name “space"".
7. The right end is not zero: why the solution set is no longer a subspace
Take the right end from Change to the first column , the matrix and the unknowns remain unchanged, only this one thing has been changed. There are still solutions to the equation, e.g. ; Another solution is , check calculation .
But this solution set is not a subspace. One sentence is enough for the reason: It’s not a solution because . Without the zero vector, closure is out of the question.
What happened geometrically? put with Subtract and get , which is exactly the direction of null space. Moving in this direction does not change the right end:
So it looks like
The vectors of are all solutions, and they are connected into a line , the direction is of straight lines. The two solutions found earlier both fall on this line: given , given . This line is parallel to the straight line in null space, but it is translated away from the origin as a whole: the right end Determines where the line translates, and the null space determines which direction it extends. The subspace must pass through the origin, but it cannot, so it can only be called a “solution set”, not a “subspace”. As soon as the right end is non-zero, the solution set changes from a straight line passing through the origin to a straight line passing through the origin: the direction does not change, the position changes, and the properties change accordingly. As for whether there are other points on this line and how the general solution of the non-homogeneous equation is organized, we will not expand it here. The structure of “a special solution plus null space” will be formally written in Lecture 8.
Two ways to create subspaces. A look at today’s two protagonists side by side reveals that they correspond to two opposite descriptions. To explain what is in the column space, you only need to give a few vectors and then declare “take all their combinations” - this is generated from the inside; to explain what is in the null space, you cannot give such a small set of vectors, you can only give a set of equations that must be satisfied and let the solution emerge by itself - this is defined from the outside. Both statements can create subspaces, and they are the two most natural and important ways to construct subspaces. The solution can be seen with the eyes for a small matrix, but not for a large matrix. At that time, the mechanical procedure of elimination must be used. This is the next step.

Video 00:41:25 | Approximately corresponding to Section 7 “7. The right end is not zero: why the solution set is no longer a subspace”.

MIT OCW Official Lecture Notes Summary Page 2/2 (18.06SC Lecture 6 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- vector space (vector space) is closed to addition and multiplication, which is equivalent to being closed to linear combinations; subspace (subspace) is the part within a space that itself constitutes a vector space.
- Any subspace contains zero vectors (take Multiples are obtained), so “sets without origins” are rejected with one vote; to judge the subspace, the closure must be tested one by one and cannot be released based on impressions.
- of two subspaces intersection Still a subspace: launch at the same time , in. union Generally not: in Here, a vector in the plane plus a vector on a straight line will break the additive closure.
- matrix column space are all linear combinations of each column, and are also all collection; null space is all solutions.
- Examples of this lecture ( matrix, three columns , , ) in, is The two-dimensional subspace of is The middle direction is of straight lines.
- There is a solution if and only if : Correspond , Correspond , There is always a solution.
- , so deleting the third column does not change the column space; Note that it is okay to delete the first column. The convention is to retain the frontmost independent column, that is Pivot column .
- The null space closure is given by with Obtained directly, it holds for any matrix.
- The solution set when the right end is non-zero is not a subspace because the zero vector is not in it; the solution set in this example is , the direction is A straight line parallel to null space but not passing through the origin.
- There are two ways to construct a subspace: taking a combination of a set of vectors (column space), or taking a solution to a set of equations (null space).
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| vector space | vector space | A set of vectors closed to both addition and multiplication |
| subspace | subspace | The part located inside a certain space and itself forming a vector space must contain a zero vector |
| linear combination | linear combination | Several vectors are each multiplied by a coefficient and then added |
| closed under addition | closed to addition | The sum of any two vectors in the space is still within the space |
| closed under scalar multiplication | log multiplication closed | Any vector in the space multiplied by any constant remains within the space. |
| column space | column space | The subspace composed of all linear combinations of each column of the matrix |
| nullspace | null space | satisfy of all The subspace formed by |
| pivot column | Pivot column | The column that is retained column by column from left to right and is not combined by the previous columns and thus brings a new direction |
| homogeneous equation | homogeneous equation | Equations with zero right-hand side , its solution set must be a subspace |
| solution set | solution set | satisfy all equations The set composed of is generally not a subspace when the right end is non-zero. |
Machine-assisted translation · Read Chinese original
