Lecture 24b · Second Test Review
Review Part 2: Orthogonality, Projection, Determinants, and Eigenvalues.
On this page
Quiz 2 review | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 24b / Total 35 Lectures |Part 3 · Eigenvalues, positive definiteness and linear transformation
Video of this lecture: Bilibili p25 · Second test review ↗(48: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
The second test tests all the content of the second part of the course: orthogonality (including projection, least squares, Gram-Schmidt), determinant, and the two most basic sections of eigenvalue equations - solutions , diagonalization, calculation . These three pieces seem to be separate chapters, but they actually share the same language: use “a number” to summarize a certain aspect of the matrix (length, determinant, trace), and use “a set of directions” to describe the function of the matrix (base, eigenvector). The meaning of the review class is to re-sew them into a net, so that one question uses the tools of three chapters at the same time.
There is a boundary to the range to keep in mind: differential equations and matrix exponents are not part of this test; they belong to the third test. In other words, the eigenvalue section only tests “finding eigenvalues, writing diagonalizations, and calculating the power of matrices” and does not test .
This lecture is organized according to “Test Points - Methods - Typical Questions”. Each test point first gives the formulas or criteria that must be remembered, then goes through the specific numbers from previous years’ test questions, and finally points out the most likely mistakes. Most of these questions are short questions that can be completed in three to five minutes: finding a projection matrix, checking a determinant, and counting eigenvalues. Whether you can finish it quickly does not depend on how many formulas you have memorized, but on whether you can immediately judge “which box this number should be placed in.”

MIT OCW Official Lecture Notes Summary Page 1/6 (18.06SC Lecture 24b Summary, CC BY-NC-SA 4.0).
1. Review the map: three sections and one main line
The orthogonality section has two protagonists: the orthonormal matrix and projection matrix . “Column orthonormal” has an equivalent matrix writing method , because of Yuan is the inner product , orthonormal means that it can only take () or . From this, the projection onto the straight line is , projected into the subspace is ;when When there is no solution, put Projecting into column space yields the least squares solution. Gram-Schmidt does the opposite: starting from a set of linearly independent vectors, subtracting its projections in the existing directions one by one to obtain the orthonormal basis; because it needs to be divided by the length in the end, this step will bring a lot of square roots.
The skeleton of the Determinants section is three defining properties plus seven corollaries: properties one to three define determinants, properties four to ten (e.g. ) are derived from them, so there is no need to memorize them as ten unrelated formulas. There are two ways to calculate: press “Big formula” expansion of terms (half with positive sign, half with negative sign), and algebraic cofactor expansion by row or column; the latter is particularly effective for matrices with a large number of zero elements, and is given by .
In the Eigenvalue section, only the first two sections are tested: Solving characteristic equations , find the eigenvector, and when When the eigenvectors are linearly independent, all written once , thus .
A main line connects the three plates: the trace is equal to the sum of eigenvalues, the determinant is equal to the product of eigenvalues,
These two equations are almost free in the examination room: after calculating the eigenvalues, checking the sum and product, most of the arithmetic errors will be revealed on the spot. They will be used in every test point later.
The questions in the review class also repeatedly demonstrated one thing: a question often spans two chapters. After calculating the projection matrix, we then ask for its eigenvalues, which is the confluence of orthogonality and eigenvalues; the determinant recursion of the tridiagonal matrix finally becomes a The eigenvalue problem of a matrix is the confluence of determinant and eigenvalue; The projection matrix method requires both column space (orthogonality) and singularity (determinant). Memorize the three chapters as three courses separately, and you will get stuck when encountering this kind of question; only when you know that they are talking about the same thing will you know where to start.

MIT OCW Official Lecture Notes Summary Page 2/6 (18.06SC Lecture 24b Summary, CC BY-NC-SA 4.0).
2. Test point 1: Rank, eigenvalues and difference equations of projection matrix
Test point: given vector , find the projection to straight-line matrix , and read out its rank, eigenvalues, and solution.
The method is to reduce the general formula to a “only one column” situation. only one column when, It’s just a number that can be moved from the inverse position to the denominator:
This formula is not memorized. Set The projection on a straight line is , then the error Must go with Vertical, that is , solved from ; put ride back , you get the above . The same formula also explains : The first projection has cleared the components perpendicular to the straight line, and another projection will not change anything.
Typical questions : The denominator is , so
A matrix can read four types of information. Rank is , because all three columns are along direction; the column space is the straight line; the nullspace is the vertical plane; eigenvalues are ——Rank is It means that there are two linearly independent directions that are pressed to zero (double eigenvalues ), while Description If it does not move by itself, it is the characteristic value. the corresponding feature vector. Check trace: The sum of diagonal elements is .
Taking the initial value of the difference equation . The first step is to calculate the projection directly: , divided by Get coefficient , so
There is no need to calculate the second step: is already on the straight line, and the projection leaves the points on the straight line as they are (), so , unchanged thereafter.
If replaced by an ordinary matrix, “multiply times”, you must perform eigenvalue expansion: put , then , the labor lies in finding the eigenvalues, eigenvectors and three coefficients. The projection matrix skips this set of mechanical steps precisely because its two eigenvalues are : Let those two items start from disappear, leaving only This item. After all, The solution is , calculating difference equations and calculating the power of a matrix are essentially the same thing.
Common mistakes: forgetting the denominator ;Write the eigenvalues as ; Or redo the complete projection every iteration step, which is useless Just call it a day.
3. Test point 2: Two pictures of least squares
Test points: Use a straight line passing through the origin to fit the data, write a normal equation and solve it; at the same time, explain clearly what is drawn in the “fitting diagram” and the “projection diagram”.
Typical questions: time , the model is . If a straight line passes through exactly three points, it needs to be satisfied at the same time
Three equations, one unknown, and no solution. rewritten as :
Because the straight line passes through the origin, the model has no constant terms, so Not everything in it that column. The normal equation is : , , so
The two pictures must be distinguished. The first one is in On the plane: three points and straight lines , the straight line does not pass through any point, but the overall error is minimal. The second one is in where: the projected vector is , The column space is given by The straight line formed by the projection point is
And It is the coefficient under this set of basis. All the algebraic operations of least squares occur in the second picture; there is no “projecting the data points onto a straight line” in the first picture, which is the most common misunderstanding. The connection between the two graphs is the residual: Orthogonal to the column space, that is , which is exactly the shifted form of the normal equation.
This comparison also has a practical consequence: the projected image is located The number of dimensions is equal to the number of data points, and The order of is equal to the number of unknowns. No matter how many data points there are, the normal equation is just a small system of equations - there is only one unknown, Just a number .
Common mistake: clearly passed the origin but gave Add a column ; put count rather than a weighted sum ; Treat the fitted image as a projected image.

Video 00:18:22 | Approximately corresponding to Section 3 “3. Test Point 2: Two Pictures of Least Squares”.

MIT OCW Official Lecture Notes Summary Page 3/6 (18.06SC Lecture 24b Summary, CC BY-NC-SA 4.0).
4. Test point 3: Gram-Schmidt and orthonormal basis
Test points: Given a set of basis of a plane, find the orthogonal basis of the same plane; and remember the matrix criterion of “standard orthogonality” .
Method in one sentence: The first direction is retained, and the new vector subtracts its projection in the existing direction. For two vectors,
Typical questions: , . The plane formed by these two vectors is matrix column space, so this question is actually to find a set of orthogonal basis for this column space. inner product , , the coefficient is , so
Inspection: . The question only requires orthogonality, so there is no need to divide by the length; if you want a standard orthonormal basis, divide the length to get with ——Attention The square length of , the square root is the origin of “root signs everywhere” in this step.
When there are more than two vectors, the same action is repeated: No. vector minus its projection onto each orthogonalized vector,
Each subtraction eliminates an existing direction, and the remaining part must be perpendicular to all previous directions.
The answer is not unique: orthogonal pairs in the plane can be rotated as a whole. Gram-Schmidt only gives one pair and maintains The direction remains unchanged.
Easy to make mistakes: the projection direction is reversed (take to upper projection); change the first vector; change Write inversely .

Video 00:25:18 | Approximately corresponding to Section 4 “4. Test Point 3: Gram-Schmidt and Orthogonal Basis”.

MIT OCW Official Lecture Notes Summary Page 4/6 (18.06SC Lecture 24b Summary, CC BY-NC-SA 4.0).
5. Test point 4: Three quick calculation conclusions given by eigenvalues
Test point: Know one Four eigenvalues of a matrix, answer reversibility, determinant of inverse matrix, The trace - does not look at the elements of the matrix at all.
Set is eigenvalues. All three conclusions come from , , and “How simple transformations change eigenvalues”. The basis for the latter is very short: if , multiply left by both sides Got , that is ; and . The eigenvectors remain unchanged, only the eigenvalues change.
First, Reversible if and only if all . If a certain , then There are non-zero solutions, the null space is non-trivial, and the matrix is singular; otherwise, if there are no zero eigenvalues, then .
Second, . because The characteristic value of is (Eigenvectors remain unchanged), and the determinant of the inverse matrix is equal to the product of its eigenvalues.
Third, . plus Translate each eigenvalue , the trace is translated as a whole .
The three questions share the same action: first determine the eigenvalues of the new matrix, and then use the sum and product. This also shows that traces and determinants are the best self-checking tools in this lesson.
Common mistakes: (missing ); (should be ); put Wrongly written as .

Video 00:31:25 | Approximately corresponding to Section 5 “5. Test Point 4: Three quick calculation conclusions given by eigenvalues”.
6. Test Point 5: Matrix Family and Determinant Recursion
three diagonals Matrices: Second-Order Recursion and Periodic Solutions
Typical questions: is The matrix, the main diagonal and the upper and lower sub-diagonals are all , the rest are zero; note . Prove using algebraic cofactors Satisfy the second-order recurrence and find the coefficients.
Expand by first row. The first item is locational Multiply its algebraic cofactor; what remains after removing the first row and first column is , so this item is . The second item comes from locational , while It has a negative sign when it is expanded; its cofactor is expanded according to the first column, leaving only one term, and this term is in the cofactor position, take the positive sign, and the one that falls is exactly . The combination of the two symbols is negative, so
There’s a minus sign, so it’s not a Fibonacci type recursion. Rewrite the second-order recurrence into a first-order system: let , then
This is a standard way to deal with high-order recursion: pack two adjacent steps into a vector, and the second-order recursion becomes a matrix multiplication, and the eigenvalue theory can be directly applied.
The characteristic value of direction. by Got
real part squared Add the square of the imaginary part equal to , so the module length is , both eigenvalues fall on the unit circle. The mold length is less than will attenuate, greater than Will explode, equal to It neither increases nor decreases - this is the criterion of stability. And because , while The two eigenvalues of are different from each other (diagonalizable), so , and then . put By taking a few steps forward, you can see this cycle: , , , , , so Start repeating. Neither disappearing nor diverging, just circling periodically.
Common mistakes: missing position brings the negative sign, we get (Fibonacci type, eigenvalue is approximately with , the sequence grows exponentially); not checked Just follow the recursion and write down; when you see the complex eigenvalues, you think “there is no real behavior”. In fact, the complex eigenvalues represent rotation, and the module length determines the convergence.
The zero-opposite angle and diagonally opposite angle are family of matrices
Typical questions:
Both are symmetrical. Strange: The third column is the first column of times, so , the rank is , the column space is a plane in it. It cannot be used directly at this time , because It is singular in itself; a set of basis of column space should be taken, that is with , order , at this time , substitute Got
Inspection: Symmetry, , rank is , the trace is , and the eigenvalues of the projection matrix consistent. The middle row and column of this matrix happen to have only diagonal elements. , the reason is that the basis vector Itself is the direction of the coordinate axis: along The vector of the axis is already in the plane, the projection does not change it.
The eigenvalues of given, that is . Add the three to get , is equal to the sum of the diagonal elements. This is a very cheap self-check - the determinant of this question is zero, so it cannot help, only the trace can be used. If the problem requires feature vectors again, the approach is still the same: put each Substitute , find the corresponding null space.
Just the opposite: use The big formula for the term should be written It only takes two steps to expand according to the first row - the only non-zero element in the first row is , with a negative sign, expand it again to get , so Invertible, the column space is the entire , the projection matrix is ——The seemingly hardest question turns out to be the least laborious. From this, we can guess the rules of this family of matrices: odd-order ones are singular, and even-order ones are invertible.
Common mistakes: rigid application of singular matrices ( It is not reversible at this time); or write as soon as you see “Find Projection Matrix” , without first determining whether the matrix is invertible.

Video 00:38:15 | Approximately corresponding to Section 6 “6. Test Point 5: Matrix Family and Determinant Recursion”.

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

Video 00:43:30 | Approximately corresponding to Section 6 “6. Test Point 5: Matrix Family and Determinant Recursion”.

MIT OCW Official Lecture Notes Summary Page 6/6 (18.06SC Lecture 24b Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- The test scope is the first two sections of orthogonality, determinants and eigenvalues; differential equations and No test.
- The matrix language of orthogonality is ; Used for projecting to a straight line , projected into subspace using .
- Yes , , the rank is , the characteristic value is , the trace is .
- difference equation from set off, because , arrive in one step Then no longer move.
- least squares Project to , the normal equation gives .
- Gram-Schmidt pair , gives orthogonal vectors .
- The eigenvalues determine the reversibility (no zero eigenvalues), the determinant of the inverse matrix () and trace ().
- three diagonals The determinant of the matrix satisfies , ;The transfer matrix eigenvalue is , so , to is the cycle.
- Because the third column is , the first column is And singularly, the projection matrix is , characteristic value ; of , the projection matrix is .
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| orthonormal | orthogonal | The inner product of each pair is zero and the length of each vector is |
| projection matrix | projection matrix | Project the vector to a matrix on the subspace, satisfying , |
| least squares | least squares | When there is no solution, find the approximate solution that minimizes the error vector |
| normal equation | normal equation | , the least squares solution satisfies the equation |
| Gram-Schmidt | Gram-Schmidt | Subtract the projections in the existing directions one by one and convert the basis into a standard orthonormal basis. |
| determinant | determinant | A single number summarizing matrix invertibility and volume scaling, equal to the product of eigenvalues |
| cofactor | algebraic cofactor | Remove a certain row or column and include the sign of the cofactor, used to expand by rows |
| trace | trace | The sum of the main diagonal elements is equal to the sum of the eigenvalues |
| eigenvalue | eigenvalue | such that Numbers with non-zero solutions |
| eigenvector | eigenvector | Be A non-zero vector whose direction remains unchanged after action |
| diagonalization | diagonalization | write , using the eigenvector as the basis |
| singular | strange | Irreversible, equivalent to the existence of zero eigenvalues or linear dependence of column vectors |
| difference equation | difference equation | , long-term behavior is determined by eigenvalues |
| stability | Stability | Determined by the eigenvalue module length: greater than divergent, less than Attenuation, equal to Bounded |
Machine-assisted translation · Read Chinese original
