Lecture 34 · General Review
General review: eight main lines and core test points that connect the entire course.
On this page
Final course review | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 34 / Total 35 Lectures |Part 3 · Eigenvalues, positive definiteness and linear transformation
Video of this lecture: Bilibili p35 · General review ↗(43: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 last lecture ties together the entire course with exam questions from previous years. The questions seem scattered, but they actually cover the main line of the course: a question about A matrix question asks about rank, column space, null space, determinant and positive certainty; a column vector combination question asks about the column view of matrix multiplication and the uniqueness of the solution; an orthogonal question asks about projection; a Markov matrix question asks about eigenvalues, traces and steady states; several questions The construction question of the projection matrix and Pull back again; the last least squares question brings together projection, normal equations and fitting straight lines.
Reviewing is not about reading Lecture 33 over again. What should be remembered is a chain of cause and effect: Whether it can be solved and whether the solution is unique depends on Three numbers determine it; four basic subspaces are needed to see these three numbers clearly; rectangular matrices often have no solution, so they turn to orthogonality and projection, and use least squares to find the nearest solution; the determinant gives the square matrix a number, the eigenvalue gives the square matrix a set of directions, and positive certainty connects the two; the singular value decomposition (SVD) decomposes any matrix into “rotation-stretch-rotation”, and linear transformation shows that the matrix is just the coordinates of a certain transformation under a set of basis. The following seven sections are developed according to this chain. The first six sections each use a set of test questions in this lecture as a skeleton, and the last section gathers the entire course into a map.

MIT OCW Official Lecture Notes Summary Page 1/6 (18.06SC Lecture 34 Summary, CC BY-NC-SA 4.0).
1. Rank : , , Three numbers determine solvability and uniqueness
The question is this: is , rank (rank) is The matrix of No solution, There is exactly one solution. ask To what extent can it be determined.
The right end is a three-dimensional vector, so . There is an unsolvable right end, indicating that not every row has a pivot: when elimination reaches the end, at least one row becomes a zero row. This row is a linear combination of the remaining rows, column space. Just the true subspace of , then . Another condition is stronger: once there is a solution, there is only one solution, indicating nullspace. There is nothing else except the zero vector, the number of free variables , that is , each column is linearly independent. The two conditions are one constraint row and one constraint column. Sandwiched in the middle; conversely, the verification is also smooth: This will allow each right-hand side to have a solution, contradicting the first condition; It will make it impossible to have a unique solution, which is inconsistent with the second condition. Together
Specific examples can be taken
it is , rank 1: only , while Not in the column space, there is no solution. If you don’t want a matrix with only one column, add another column to the right , get , The matrix of , the column space becomes plane, Still can’t figure it out. This question states that “there is a solution if and only if ” and “only if and only if “The two criteria were used at the same time.

Video 00:04:21|Approximately corresponding to Section 1 “1. Rank : , , Three numbers determine solvability and uniqueness”.
2. with : Determinant, symmetry, positive certainty
The same question then asks three questions about whether they are true or false. The purpose is to squeeze several clues from the entire course into a matrix. Still take the top example, at this time , .
First sentence: . False. is , is , the two determinants are of fundamentally different orders. In this case , the determinant is 1; , the determinant is 0. What is really established is the difference between square matrices of the same order. :If It is a square matrix itself, then
So this judgment is wrong It’s not a square matrix, it’s not the multiplicative property of the determinant that’s wrong.
Second sentence: Reversible. True. Generally, reversible if and only if The columns of are linearly independent, that is, . The key is with have the same null space: given naturally ; conversely if , multiply left Got , there are still . This question , the null space only has zero vectors, Reversible - in this case it happens to be the identity matrix.
The third sentence: Right concentration. False. is always a symmetric matrix, always a square matrix, here again , but its rank is equal to , dissatisfied with rank. The reason is with Same solution (left multiplication can deduce the latter from the former), so , dimension , the rank is only . So there is non-zero such that , that is , violate positive definite (positive definite) requires “for everything” Yes ”. This example , the first line is all zeros. The correct statement that can be established is positive semidefinite (positive semidefinite): for any ,
And left nullspace It is non-trivial, and the equal sign can be obtained, so it cannot be strengthened into positive determination. This word “half” corresponds exactly to .
By the way, I can answer another little question: Find one that cannot be written as real matrix. It must be symmetric, so just give any asymmetric matrix, for example
What really needs to be remembered is Two structural properties of: symmetry and positive semi-definite.
Arranging the dimensions of the four fundamental subspaces together, these judgments have a unified basis:
The four dimensions of this question are in order . The last item is the key to the next question: is , number of rows is equal to rank and full of rank, so for each There are solutions; and It is one-dimensional and has one free variable, so there are infinite solutions. Replace with after with The role reversal is the easiest to miscalculate.

MIT OCW Official Lecture Notes Summary Page 2/6 (18.06SC Lecture 34 Summary, CC BY-NC-SA 4.0).
3. Combination of columns, null space and uniqueness of solution
The second question is for , first solve . The column view of a matrix multiplied by a vector is
The coefficient group has been written on the right end, and you can get it by comparing
This is the most basic way to read matrix multiplication: the product is linear combination of components.
Then ask: If , is the solution unique? Not unique. This equation is equivalent to , the third column falls in the plane formed by the first two columns; at this time falls in the null space, any solution plus it is still a solution, because . Uniqueness has always been associated with null space: Equivalent to , which is equivalent to each column being linearly independent. On the other hand, if the three columns are linearly independent and the combination is zero, it can only be inferred that all three coefficients are zero. Only the zero vector remains, and the solution is unique. As long as you find that one column is a combination of the other columns, you already know that the rank is insufficient and the solution is not unique; this is two sides of the same thing as the condition of “exactly one solution” in Section 1.
4. Orthogonal projection: closest point, projection matrix and least squares
Projection is the answer to “What to do when there is no solution?” This section connects the three projections in the course.
Let’s look at the orthonormal case first. If orthonormal (usually rewritten as ), ask Zhongli Which combination is the closest point. The answer is : Three vectors are orthogonal to each other, Perpendicular to the entire plane, its projection on the plane is the zero vector. Use standard basis Thinking about it again makes it clearest—— away from the plane The closest point is the origin.
Look at another straight line. passed is a straight line, its projection matrix is
The principle of the formula is the same as that of least squares: the points on the straight line are multiples of Throw it over, the coefficient is . Each column of the resulting matrix is A multiple of , rank is 1; it is symmetrical; projecting the vector on the straight line again remains unchanged, that is .
Finally, there is a complete calculation example. Set
The first column corresponds to the constant term, and the second column corresponds to , so is the intercept, is the slope. Three equations with two unknowns generally have no solution; least squares (least squares) solution satisfy normal equation(normal equations)
This equation comes from orthogonality: the residuals of least squares Must be with Each vector in is orthogonal to Each column of is orthogonal, that is, , the shifted term is the normal equation. In this example, the two columns are linearly independent. , so Only.
Work it out item by item , , the solution is
put Replacing: The two components of are respectively , , exactly equal to . The projection vector is
it is in column space The projection on; the corresponding fitting straight line is , in The heights at are in order , with data closest. Generally, to The projection matrix is , calculated according to the straight line formula above is it in special case.
Last question: Find a non-zero one , so that the least squares solution is zero. The condition is Orthogonal to both columns, that is ;at this time The projection onto the column space is zero and the normal equation gives , while Reversible (column independent), so . take
it is related to and The inner products of are all 0. Geometrically, The whole falls In the orthogonal complement of , the column space vector closest to it can only be zero.

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

Video 00:18:11 | Approximately corresponding to Section 4 “4. Orthogonal projection: closest point, projection matrix and least squares”.

Video 00:23:55 | Approximately corresponding to Section 4 “4. Orthogonal projection: closest point, projection matrix and least squares”.
5. Eigenvalues, diagonalization and matrix reconstruction from eigenpairs
back again Question: Ask for one matrix, the eigenvalues are and , the corresponding eigenvectors (eigenvector) are respectively with . This time the direction is reversed - usually eigenvalues are found for matrices, here matrices are found for eigenpairs.
Arrange feature vectors in columns , the eigenvalues are arranged in a diagonal matrix , then , so
The reason is simple: The columns of are feature vectors, But it is Write this set of equations side by side; multiply both sides by the right Just solve it . The determinant of is , so . Multiply:
Verify: , , both feature pairs are correct. The premise for this structure to be established is that Reversible, that is, the two eigenvectors are linearly independent, that is, the matrix can diagonalization (diagonalization); when the feature vector is not enough If it cannot be taken out, the matrix cannot be diagonalized.
There is another question in the same group of questions: Give a matrix that has orthogonal eigenvectors but is not symmetric. matrix. The eigenvectors of symmetric matrices can be orthogonal, which is a familiar family; but orthogonal eigenvectors are not exclusive to it. Antisymmetric matrix (skew-symmetric matrix) such as
The characteristic value of is , the eigenvectors are complex vectors and orthogonal to each other; orthogonal matrices such as rotation matrices Same thing. Therefore, “eigenvector orthogonality” cannot infer “matrix symmetry”.

MIT OCW Official Lecture Notes Summary Page 4/6 (18.06SC Lecture 34 Summary, CC BY-NC-SA 4.0).

Video 00:28:14 | Approximately corresponding to Section 5 “5. Eigenvalues, diagonalization and matrix reconstruction from eigenpairs”.
6. Markov matrix and long-term steady state
The question about Markov matrix is a A matrix where the elements in each column are nonnegative and sum to 1:
Find its three eigenvalues. Let’s first look at the relationship between columns: the first column plus the second column is equal to twice the third column, that is , the three columns are linearly related, so singular, , the null space contains . And since the sum of each column is 1, , so Also eigenvalues ( with have the same eigenvalues, but Belong to The eigenvectors of are also required separately). The last one is determined by the trace: the sum of the diagonals is , and the sum of eigenvalues is equal to the trace, so , .
Then let the process take place. Set , initial value , that is, ten individuals start from the second state. put Expand by eigenvectors,
when , the items corresponding to zero eigenvalues disappear immediately; The amplitude of is getting smaller and smaller, the signs alternate, and it tends to zero; only Which one is left, the limit is , this is Steady state(steady state). The eigenvector solution of :
Line by line verification All are established. coefficient There is no need to solve a linear system of equations: the Markov process neither increases nor decreases, the sum of the components remains the same, the initial total is 10, and The sum of the components of is exactly 10, so , the steady state is
The standard routine for this type of question is: use the column sum to be 1 to get , use Strange to get , use trace to get the last eigenvalue, and then use eigenvector expansion to see the long-term limit.
7. Whole course map: eight main lines and four decompositions
Arrange today’s questions according to the main line of the course, and a map of the entire course will appear.
Elimination and LU. The number of pivots is the rank; if there is a pivot in each row, there is a solution to any right end; if there is no pivot, a certain row is a combination of the other rows. elimination bar written as ;When there is row exchange, it is written as , among which is the permutation matrix. And Equal to the product of the pivots, swapping rows will bring only one symbol.
four subspaces. Column space and null space, row space and left null space, the dimensions are respectively ;The null space is the orthogonal complement of the row space, and the left null space is the orthogonal complement of the column space. Section 2 that There are infinite solutions, the dimension is used .
Orthographic projection. Invertible if and only if columns are independent; projection matrix put vote to ;The least squares solution is given by the normal equation is given; Gram-Schmidt orthogonalization gives .
determinant. , , It is the product of the principal element and the volume; if and only if Reversible. One more reminder: Only talk between phalanxes of the same level.
Eigenvalues. solution Get the roots of the characteristic polynomial; Transform the power, exponent, and difference equations of the matrix into pairs of eigenvalues and calculate them one by one; the eigenvalues of the Markov matrix satisfy And there must be , when the absolute values of the remaining eigenvalues are less than 1, the long-term behavior is determined by Determined by the eigenvector.
Positive certainty. Positive definite means that the symmetric matrix is non-zero for all All , which is equivalent to all eigenvalues being positive, all principals being positive, and all leading principal minors being positive. Positive definite when the columns are independent, in Time can only be semi-positive.
SVD. Any matrix—including rectangular matrices and singular matrices—can be written as , that is, “rotation-stretch-rotation”; the number of non-zero singular values is equal to the rank, and low-rank approximation is the source of image compression. It is the last decomposition of the course and the most general decomposition.
Linear transformation. After selecting the basis, the linear transformation is a matrix; changing a set of basis (change of basis), the matrix becomes , similar matrices represent the same transformation.
When reviewing, do not remember by “which lecture”, but by “which decomposition and subspace this question is asking about.” Today’s question is just a rearrangement of eight main lines: rank, four subspaces, determinants, and positive certainty are squeezed into the first question. Projection and least squares are combined into one group, and eigenvalues and Markov processes are combined into another group.

MIT OCW Official Lecture Notes Summary Page 5/6 (18.06SC Lecture 34 Summary, CC BY-NC-SA 4.0).

Video 00:39:05 | Approximately corresponding to section 7 “7. Whole lesson map: eight main lines and four decompositions”.

MIT OCW Official Lecture Notes Summary Page 6/6 (18.06SC Lecture 34 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- rank Decide everything: to someone There is no solution if and only if ;When there is a solution, the solution is unique if and only if . The answer to the first question in this lecture is .
- The dimensions of the four basic subspaces are , , , ; At full row rank, for each has solution, null space dimension Gives infinite solutions.
- This is only true for square matrices of the same order; for rectangular matrices, with The order is different, When the former is reversible (in this case, ), the latter rank is still , must be strange.
- Must be symmetrical and semi-positive definite; positive definite requires that everything is non-zero Yes , so in Time can only be semi-positive definite.
- In column view is a linear combination of columns: The solution is ; If the combination is zero, this vector is in the null space and the solution is not unique.
- Projection matrix: over The straight line corresponding to ;Standard orthogonal Arrive The closest point is zero.
- Least squares: , examples are , , projection , fitting straight line ; time .
- Reconstruct the matrix from the feature pairs using , examples are ; Orthogonal eigenvectors are not unique to symmetric matrices, but also to antisymmetric matrices and rotation matrices (orthogonal in the sense of complex vectors).
- The Markov matrix column sum is 1, so ;The three eigenvalues of the example question are , steady-state eigenvector , the coefficient 1 is derived from the conservation of total quantity, .
- The whole lesson is summarized into eight themes and four decompositions: elimination (), orthogonalization (), diagonalization (), singular value decomposition (), with four subspaces, determinants and positive definiteness.
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| rank | rank | The number of pivots is the dimension of both column space and row space. |
| pivot | pivot | The key number used to eliminate the lower elements in elimination, its number is equal to the rank |
| column space | column space | all linear combinations of columns, The equation has a solution when it falls in |
| nullspace | null space | satisfy of all , the dimension is |
| row space | row space | The space spanned by each row has a dimension of , is the orthogonal complement of the null space |
| left nullspace | left null space | satisfy of , the dimension is |
| determinant | determinant | A number corresponding to a square matrix is zero if and only if the matrix is singular |
| positive definite | positive definite | Symmetric matrix and non-zero for everything Yes |
| positive semidefinite | positive semidefinite | to everything Yes , allowing the existence of non-zero vectors equal to 0 |
| projection matrix | projection matrix | The matrix that projects the vector onto the subspace, the straight line case is |
| least squares | least squares | Ask for help when there is no solution smallest |
| normal equations | normal equation | , the least squares solution of the equation |
| orthonormal | orthogonal | A set of vectors that are pairwise orthogonal and of length 1 |
| eigenvalue | eigenvalue | such that has a non-zero solution |
| eigenvector | eigenvector | Be A non-zero vector that maps to a multiple of itself |
| characteristic polynomial | characteristic polynomial | , whose root is exactly the eigenvalue |
| diagonalization | diagonalization | written as , The columns of are linearly independent eigenvectors |
| trace | trace | The sum of the diagonal elements is equal to the sum of all eigenvalues |
| Markov matrix | Markov matrix | A square matrix whose columns are non-negative and whose column sum is 1 must have the eigenvalue 1 |
| steady state | Steady state | The distribution that tends to remain unchanged after a long period of time is given by Characteristic vector description of |
| skew-symmetric matrix | antisymmetric matrix | satisfy matrix, the eigenvalues are pure imaginary numbers |
| symmetric matrix | symmetric matrix | satisfy The matrix of can be orthogonally diagonalized |
| singular value decomposition | singular value decomposition | Any matrix is written as , that is, rotate-stretch-rotate |
| linear transformation | linear transformation | Maintain the mapping between addition and multiplication, represented by a matrix after selecting the basis |
| change of basis | basis transformation | Change a group of bases, and the matrix is change to represent the same transformation |
| similar matrices | similarity matrix | satisfy A pair of matrices with the same eigenvalues |
Machine-assisted translation · Read Chinese original
