Lecture 8 · Solving for $A\boldsymbol{x}=\boldsymbol{b}$: row simplest form $R$
Use the row simplest form R to judge the solvability of Ax=b and write down the general solution.
On this page
Solving Ax = b: row reduced form R | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 8 / Total 35 Lectures |Part 1 · Elimination and Vector Spaces
Video of this lecture: Bilibili p8 · Solve : row simplest form ↗(47: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 point is that All solutions of , that is null space (nullspace). This lesson aims the same set of tools at the general right-hand vector , answer questions about Three questions: Does it have a solution? How many are there when there is a solution? How to decipher it all? After these three points are made clear, the matter of “solving a system of linear equations” can be truly completed.
The answer has a minimalist structure: General explanation a special solution any vector in null space. The special solution is responsible for aligning the right end, and the null space is responsible for providing all degrees of freedom. So the solution is split into two tasks that do not interfere with each other: elimination is responsible for finding a special solution, and the method in the previous lecture is responsible for describing the null space.
The second gain is to completely hand over “how many solutions there are” to a number——rank (rank). Set is Matrix, rank is , with , There are only four combinations of the size relationship of , and each combination corresponds to a type of solution. The rank determines the shape of the solution set, and the specific number determines the location of the solution.

MIT OCW Official Lecture Notes Summary Page 1/3 (18.06SC Lecture 8 Summary, CC BY-NC-SA 4.0).
1. Augmented matrices and solvability conditions
Use the matrix used in the previous discussion of null space.
Its third row is exactly the sum of the first two rows: . This coincidence will turn into a zero row in elimination, and the zero row is the entrance to judge solvability.
Need to solve , connect the right end as an extra column to on the right, get augmented matrix(augmented matrix):
Every step elimination takes on the left end, the right end must be done simultaneously. If you put them into the same table, it will be less likely to leak. This is how input is done in actual software: one table contains all the information.
first one pivot (pivot) is locational . The second row minus the first row times, the third row minus the first row Times:
In the second column, there are all zeros at and below the pivot position. The pivot cannot be taken out, so we jump to the right to the third column. locational Become the second pivot. Use it again to delete the following line:
The last line written back to the equation is . It does not contain any unknowns, so it is not used to solve , but used to check of: only It was established then.
Elimination can be used to judge solvability because each walking transformation is reversible: the second row minus the first row After doubling it, you can still Doubling it back leaves the solution intact. The old and new sets of equations have the same solution, and the contradictions in the new set of equations are visible at a glance, and the fate of the original set of equations is determined.
Try it with numbers. If , , the condition is met, elimination turns the right end into , the last line is , you can continue to solve. If , the condition is not met, the last line becomes , the system of equations has no solution.
There are two versions of the criterion, which may seem unrelated, but are actually equivalent. The first is a column-space language: must fall on of column space (column space), that is can be written as Combinations of columns - that’s what the equation is all about. The second is the language of lines: if Several rows of are combined to obtain zero rows, then The corresponding components of must be obtained through the same combination . In this example “the third row minus the first row minus the second row” gives zero rows, so Must be zero.
The truth of the second statement is hidden in the nature of elimination: elimination never creates new information, it just linearly combines existing equations. If the combination on the left is zero, the number on the right combined in the same way must be zero, otherwise it will appear A contradiction equal to a non-zero number. Conversely, if every time a row of zeros is generated the right-hand side also happens to be zero, then each remaining equation has a completely new pivot element and the system of equations can be solved.
It would be clearer to write this sentence as a formula. If there is a coefficient such that
Then any solution must satisfy . In this example, take We get zero rows, so the solvability condition is . This also explains why “zero rows” and “right “limits” always appear together: the zero row itself is the set of coefficients of receipt.

Video 00:04:45 | Approximately corresponding to Section 1 “1. Augmented Matrix and Solvability Conditions”.
2. Special solution: all free variables are set to zero
After passing the solvability test, the first thing is to create a solution.
Set . The column where the pivot is located is the , column, so is the main variable; No. , The column has no pivot, is free variable(free variable).
Find special solution The (particular solution) method is to set all free variables to zero, and then backsubstitute the main variables. order , the first two lines after elimination become
The second equation remains , got ;Replace the first one, . So
Why is zeroing the easiest option? The free variables can be taken at will. Taking them to zero will make all terms containing free variables disappear completely. The number of remaining system equations is exactly equal to the number of main variables, which is triangular in shape and can be directly back-substituted. In other words, setting the free variable to zero is equivalent to shelving all columns without pivots, leaving only the pivot columns, and the problem immediately returns to the familiar square matrix situation. The values of any set of free variables give a solution, so It’s not unique, it’s just the one in which “the free variables are all zero”.
By the way, see clearly the position of the main element. The second pivot of this matrix is in the third column instead of the second: the second column happens to be the first times, after elimination, everything from the pivot position downwards is zero, so naturally the pivot cannot be taken out. The pivot does not necessarily fall on the diagonal, what matters is just which columns it falls on.
Substitution test: first line , second line , the third line , all three right ends are facing each other. Taking ten seconds to check the calculation after completing the problem is a habit worth developing.

Video 00:11:21 | Approximately corresponding to section 2 “2. Special solution: all free variables are set to zero”.
3. General solution: special solution plus null space
One solution does not solve the problem, what is needed is a complete solution. Set is any vector in the null space, that is , then
So Still a solution. On the other hand, if is any solution, then
i.e. Falling in null space, . Both directions combined: the solution set is exactly , no more and no less.
You can already calculate the null space in the previous lecture. Check with the equation after elimination: the second line gives , that is ;The first line gives , substitute . Let the two free variables take turns to take , take another :
- : , , got ;
- : , , got .
The second group can spot check the first line: , indeed zero. In this way, the free variable in the null space is taken as and Received interpretation special solution (special solution), to distinguish it from the right end as That special solution. So General explanation (general solution) is
Here is a distinction that must be remembered: It cannot be multiplied by a constant in front. The front is OK. multiply by The right-hand end satisfied by the special solution of times is , no longer ; No matter how you add or multiply the null space vector, the right end is always zero. The special solution is “a point”, and the null space is “a space”. The status of the two is different. Because of this, changing to a special solution will not change the solution set: if is another special solution, then In the null space, the same plane is drawn using it as the reference point, but the reference point has changed its position.
Geometrically, The solution set of does not constitute a subspace: when it does not contain the origin. it is a pass plane, the direction is given by Zhang Cheng. There are four components, so this plane lives in Here, it is translated as a whole away from the origin. The two parameters indicate that it is two-dimensional - the dimension of the subspace will not be formally defined until the next lecture, but it can already be seen here that the dimension is the number of independent constants that can be freely selected.

Video 00:18:01 | Approximately corresponding to section 3 “3. General solution: special solution plus null space”.

MIT OCW Official Lecture Notes Summary Page 2/3 (18.06SC Lecture 8 Summary, CC BY-NC-SA 4.0).
4. Rank: a number that determines the degrees of freedom
The previous derivation used a specific matrix. Use it for anything On the matrix, just grab a number: rank (rank), its current definition is the number of pivot elements in elimination.
There are only two inequalities between rank and matrix size. Each row contributes at most one pivot, so ;Each column can hold at most one pivot, so . The column in which the pivot is located is called the pivot column. The remaining columns have no pivot and the corresponding variables can be chosen arbitrarily. Therefore
This equation is the crux of the entire lecture. It shows that the degree of freedom is not directly related to the number of equations or the number of unknowns, but only decision. It also gives the number of special solutions: each free variable corresponds to a special solution, All combinations of special solutions exactly fill the null space.
The word “full rank” is used in two ways. called Full rank (full column rank), at this time each column is a pivot column; called Full of rank (full row rank), at this time each row has a pivot. Only square arrays are available , only then can the two together be called full rank. The following three full-rank situations, plus the general “small-rank” situation, are all four possibilities.

Video 00:24:24 | Approximately corresponding to Section 4 “4. Rank: One number determines the degree of freedom”.
5. Full rank : null space has only zero vectors
When each column has a pivot and no free variables, , there is only zero vector left in the null space - no quantity can be chosen arbitrarily, Just A solution.
It was decided immediately The shape of : If there is a solution, the solution must be unique, because the difference between the two solutions is in the null space, and there are only zeros there. But the solution may not exist. A matrix with full rank is usually “tall and thin”, with more equations than unknowns, and the extra equations are constraints rather than freedoms.
one Example:
The two columns are with , with different directions, the rank is . Elimination will find two pivot elements; clean up and down the pivot elements, and then convert the pivot elements into , get row simplest form(row reduced echelon form)
Above is a second-order identity matrix , the following two lines are all zeros. This shape explains: The row space of has only two independent directions, and the four equations are essentially just two equations plus two combinations. Note Not in That piece, because both columns are pivot columns and there are no free columns, It completely disappeared.
For such a matrix, randomly pick a There is almost certainly no solution, because It must be exactly the combination of these two columns; four equations and two unknowns, the conditions are too many. If Pick just the right one, such as taking the sum of two columns
rule is a solution, and because there are only zero vectors in the null space, it is the only solution.
Therefore, the full rank of the column corresponds to ” or A solution.”

Video 00:30:50|Approximately corresponding to Section 5 “5. Full rank : The null space has only the vicinity of the zero vector.
6. Walk to full rank : Every right end can be solved
When each row has a pivot, zero rows will not appear during the elimination process. Without zero lines, there is no shape like is equal to a non-zero number, there is no pair Limitations:
The freedom is not exhausted. A pivot is occupied variables, leaving
a free variable. As long as , the null space contains more than zero vectors, and there are infinitely many solutions; When the free variable is zero, it degenerates into the square matrix situation in the next section.
The example takes the transpose of the matrix from the previous section:
Rank is still , while , the free variables are . Eliminate elements to the simplest form of the row,
The first two columns are the pivot columns, and the identity matrix is made up on the left , the remaining part on the right is the free part . The appearance of indicates that the pivot column has been cleaned up. Each column of records how the corresponding free column is combined from the pivot column.
In this example, the null space is two-dimensional, and two special solutions can be obtained
They are respectively Take a commission with then multiplied by Got. because every There are solutions, The general solution of is a certain special solution plus , is always a two-dimensional “plane”.
Therefore, the row of full rank corresponds to “There must be a solution, and There are always infinite solutions.”
Comparing the two full ranks together, we can see a symmetry: the full rank tube is existence (There are no zero rows, so there are no pairs requirements), the list of full rank tubes is uniqueness (There are no free variables, so the null space is zero). Which one holds true depends on caught up Still caught up .

Video 00:37:27|Approximately corresponds to Section 6 “6. Practice in full order : Each right end can be solved” nearby.
7. Full rank square matrix and four situations
The last full rank situation is . At this time It is guaranteed that the null space only has zero vectors, Guarantee every Both can be solved. Putting the two together: for each There is exactly one solution, that is Reversible. The simplest form of the row is the cleanest one, which is the identity matrix.
The minimal example is
Give as you please , There is only one solution . This is exactly the characteristic of an invertible matrix and the criterion for a “good matrix”: when reduced to its simplest form, it becomes .
Rank the four situations together. To judge the solution, there are actually only two yes-or-no questions: Are there zero rows after elimination (i.e. is true), is there a non-zero vector in the null space (i.e. is established). When the two answers are combined, there are exactly four spaces:
| rank | row simplest form shape | solution situation |
|---|---|---|
| There is exactly one solution, Reversible | ||
| (full rank) | or solution | |
| (full rank) | There must be a solution, Infinitely many solutions | |
| and | one or infinite solutions |
written in the table There is a premise: the main element happens to fall in the first few columns. If the pivot is distributed on other columns, with The columns will be staggered, It is still “the unit matrix is spelled out on the pivot column, and the unit matrix is spelled out on the free column. , maybe with zero lines.” The shape will change, but the criteria will not change.
The last line deserves its own sentence: at the same time less than and When , two problems exist at the same time - there are zero rows (so there may be no solution), and there are free variables (so if there is a solution, it must not be unique). This is the fate of the most general matrix. The one at the beginning of this lecture The example falls into this grid: , than Smaller than small, so No solution, but There are solutions, and since there are two free variables there are infinitely many solutions. The whole lecture starts from this example and finally finds its place in the general list.
Concluding the whole story in one sentence: The rank tells you how many solutions there are, and the numbers in the matrix tell you what the solution is.

Video 00:42:41 | Approximately corresponding to Section 7 “7. Full-rank square matrix and four situations”.

MIT OCW Official Lecture Notes Summary Page 3/3 (18.06SC Lecture 8 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- Connect the right end to get on the right augmented matrix, the right end must be transformed synchronously when eliminating elements; if there is a zero row, the right end is obtained constraints.
- In this example, the third row is equal to the sum of the first two rows, and elimination gives zero rows. , the solvable condition is : solvable, No solution.
- Two equivalent languages for solvability: Belong to of column space;or any rows are combined into a combination of zero rows, which works on You must also get it .
- special solution How to find: Set all free variables to zero, and then backsubstitute the main variables. In this case, we get , substituting back into the original equation is established.
- General explanation special solution null space because ; In this example, two special solution for with .
- The constants in front of the special solution cannot be chosen arbitrarily, and the constants in front of the null space vector can be chosen arbitrarily; the solution set itself is not a subspace, but a plane that is translated away from the origin.
- rank is equal to the number of pivot elements, satisfying , , the number of free variables is .
- Full rank : There are only zero vectors in the null space, and the solution is or one; Example , The only solution is .
- Full of rank : no zero rows, each can be solved, free variables one, There are infinite solutions; Example .
- full rank square matrix : , Reversible, for each There is exactly one solution. The boundaries between the four situations are completely determined by rank and , relationship decision.
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| augmented matrix | augmented matrix | The matrix obtained by connecting the right end vector to the right side of the coefficient matrix |
| solvability | Solvability | The condition for a system of equations to have a solution is that the right end corresponding to the zero row must be zero. |
| column space | column space | The subspace composed of all linear combinations of each column |
| particular solution | special solution | satisfy A certain solution of , usually assuming that the free variables are all zero |
| free variable | free variable | A variable whose column does not have a pivot can take any value. |
| pivot variable | main variable | The variable whose column has a pivot is uniquely determined by the value of the free variable. |
| special solution | special solution | Free variables take turns in the null space with The obtained solution, its combination constitutes the null space |
| general solution | General explanation | All solutions of are equal to the special solutions plus the null space |
| rank | rank | The number of pivots in elimination determines the existence and degree of freedom of the solution |
| full column rank | Full rank | , each column has a pivot, and the null space has only zero vectors |
| full row rank | Full of rank | , each row has a pivot, for each All can be solved |
| row reduced echelon form | row simplest form | The main element is , the final state of elimination where the top and bottom of the pivot column are all zeros |
Machine-assisted translation · Read Chinese original
