Lecture 25 · Symmetric matrices and positive definiteness
Understand the orthogonal diagonalization of symmetric matrices and the determination of positive certainty.
On this page
Symmetric matrices and positive definiteness | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 25 / Total 35 Lectures |Part 3 · Eigenvalues, positive definiteness and linear transformation
Video of this lecture: Bilibili p26 · Symmetric matrices and positive definiteness ↗(43:52)| 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
At this point in the third part, the way you look at matrices has changed: instead of asking about the elements row by row and column by column, you are asking about its eigenvalues and eigenvectors. Once this perspective is established, the “type of matrix” becomes information about the spectrum. The sum of each column of the Markov matrix is , then it must have an eigenvalue equal to , the long-term behavior is determined by this decision. This lecture deals with the most important class of matrices in linear algebra—symmetric matrix (symmetric matrix), which satisfies real matrix. The information it gives is particularly clean: the eigenvalues are all real numbers, and the eigenvectors can be selected in pairs. orthogonal (orthogonal) and the length is .
These two facts taken together allow the diagonalization of ordinary upgraded to
Among them columns orthogonal (orthonormal), while orthogonal matrix The inverse of an orthogonal matrix is exactly its transpose. This decomposition puts the “symmetry” in plain sight: taking the transpose of the entire product, with The positions are swapped and the matrix is returned unchanged. it is called in mathematics spectrum theorem (spectral theorem), called the principal axis theorem in mechanics. By splitting the product by columns and rows, you can also read its second statement: a symmetric matrix is a weighted sum of several mutually perpendicular projection matrices, and the weight is the eigenvalue.
This lecture will also answer three progressive questions. First, what guarantees that the eigenvalues are real numbers? A very short proof can be given using complex conjugate, and the “square of the length of a complex vector” that appears will be used repeatedly in the next lecture. Second, since the eigenvalues are all real numbers, can we know how many positive and how many negative ones there are without using the characteristic equation? Yes, see pivot (pivot) symbol. Third, taking “all eigenvalues are positive” as the definition, we get Positive definite matrix (positive definite matrix) A top-notch subclass of this symmetric matrix; it is equivalent to “all pivots are positive” and also equivalent to “all pivots are positive”sequential subject form (leading principal minor) is positive”. The pivots of the first week, the determinants in the middle of the course, and the eigenvalues of the last few lectures are combined into one thing for the first time.

MIT OCW Official Lecture Notes Summary Page 1/3 (18.06SC Lecture 25 Summary, CC BY-NC-SA 4.0).
1. Two basic facts and spectral theorem
This section first states the conclusion, then explains the meaning of each word, and finally writes them into a matrix equation.
Fact 1: The eigenvalues of a real symmetric matrix are all real numbers. We have seen before that the rotation matrix gives complex eigenvalues: plane rotation The matrix turns each non-zero vector out of its original direction, and the characteristic equation has no real roots. This situation does not happen with symmetric matrices.
Fact 2: The eigenvectors of a real symmetric matrix can be chosen to be perpendicular to each other. The four words “can be chosen” cannot be omitted. Identity matrix is symmetric, and its eigenvalues are all , and every non-zero vector is an eigenvector - facing the entire space, it makes no sense to say “eigenvectors are vertical”. The precise meaning is: if the eigenvalues are different from each other, each eigenvalue only corresponds to one eigenvector straight line, and these straight lines are automatically perpendicular in pairs; if a certain eigenvalue is repeated, the corresponding eigenvectors are spread out on a whole plane (or a higher-dimensional subspace), and a set of mutually perpendicular vectors can always be picked out in this plane. extreme case It is the repetition of “the entire space”, and of course the orthonormal basis can be selected from it. Therefore, what a symmetric matrix has is not “any set of eigenvectors are vertical”, but “there is a set of complete and mutually perpendicular eigenvectors”.
The complete set of eigenvectors means that it can be diagonalized, so the usual writing method holds:
Among them The columns of are feature vectors, is a diagonal matrix, and the diagonal elements are the corresponding eigenvalues. In the case of symmetric matrices, these columns can also be shortened to unit vectors; vertically plus units, they are orthonormal. The column vector orthogonal matrix convention is written as (Later in this lesson always represents this kind of matrix), so Replace with :
Two substitutions have been made here: Replace with , Replace with . The second point is true because the standard orthogonal column satisfies : By matrix multiplication, of The element is , standard orthogonality makes it in time is , in time is . For square matrices of the same order, It is enough to explain ——You don’t need to calculate the inverse, just transpose it.
This decomposition has an immediately detectable property: it must be symmetrical.
Used in the middle step It is a diagonal matrix, and the diagonal elements are all real numbers, which remain unchanged after transposition. In turn, every symmetric matrix can be written in this form, so “is a symmetric matrix” and “can be decomposed into “It’s the same thing.
Names and geometric meanings. A “spectrum” is the entire set of eigenvalues. The name is borrowed from the spectrum: a beam of white light can be decomposed into a number of pure colors, and a symmetric matrix can also be decomposed into a number of “pure” characteristic directions, each direction carrying a real weight. . It’s called the principal axis theorem in mechanics, and it means the same thing: Materials are easiest to describe under the appropriate coordinate axes (principal axes), and there are no cross-terms on that set of axes; in matrix terms, after switching to this set of axes, the matrix becomes a diagonal shape, and the directions are not coupled to each other.

Video 00:06:35 | Approximately corresponding to Section 1 “1. Two basic facts and the spectral theorem”.
2. Why are eigenvalues real numbers?
This section only does one thing: prove fact one. The starting point is only , allow now with They are all complex numbers - just because you want a real number, you don’t presuppose it is a real number.
The first step is to take the complex conjugate of the entire equation. Conjugation is compatible with addition, subtraction, and multiplication, that is, , , so it can be conjugated term by term. And because is a real matrix and remains unchanged after element-by-element conjugation, so , got
This step does not use symmetry, but it has already been explained: if a real matrix has complex eigenvalues , then is also an eigenvalue (the eigenvector is ), complex eigenvalues appear in pairs.
The second step is to transpose the conjugated equation and then right-multiply both sides. :
Symmetry is used here for the first and only time: , so the left end is .
The third step is to return to the original equation , left multiplied by row vectors on both sides , got
If the left ends of the two expressions are the same, compare the right ends to get
Step 4, explain . Set The component is , then
Multiply one by one: , two imaginary parts with offset. This is exactly the square of the length of a complex vector. The square length of the real number is ;Changed to a complex number, each component must be multiplied by its own conjugate, so that the result is guaranteed to be a non-negative real number. As long as (Eigenvectors are not zero by definition), this sum is strictly greater than zero. So you can make an appointment and get ;A number is equal to its own conjugate, indicating that the imaginary part is zero, is a real number.
A final inventory of where symmetry comes in handy. If is a complex matrix, the step of transposing should be written as ; What allows the second step to directly follow the third step is exactly . for real matrices , the condition degenerates into , that is, symmetry. So the general version of a “good matrix” is one that satisfies The complex matrix (system processing in the next lecture); most matrices in applications are real, and in this case “good” equals “symmetric”.

Video 00:11:13 | Approximately corresponding to Section 2 “2. Why are eigenvalues real numbers”.

Video 00:16:40 | Approximately corresponding to Section 2 “2. Why are eigenvalues real numbers”.
3. The other side of the spectrum theorem: weighted sum of projection matrices
Previous section as a whole equation. Now take multiplication apart and see what it is made of. Expand by “column times row”: of the Column is , then multiply (its the OK ), get
every item All one Matrix, identity is very special. The projection formula given in Lecture 15 is ; put here into a separate column , the length is , so , the denominator disappears:
This is exactly what is projected onto on a straight line projection matrix (projection matrix). It’s symmetrical and remains unchanged when reprojected:
And because Perpendicular to each other, the straight lines projected by these projections are also perpendicular to each other. So the spectral theorem has a second version: Each symmetric matrix is the weighted sum of several mutually perpendicular projection matrices, and the weight is the eigenvalue. A term with a negative weight means that the component is reversed in that direction. Some people prefer to use this version of the notation theorem: it breaks the matrix into “purely directional” contributions, with each term describing the effect in only one direction.
4. The sign distribution of the pivot corresponds to the sign distribution of the eigenvalues
After knowing that the eigenvalues are all real numbers, the next question is whether they are positive or negative. Why Care About Positive and Negative: In Differential Equations Here, if the eigenvalue is negative, the solution decays and the system is stable; if the eigenvalue is regular, the solution diverges, and the sign directly corresponds to stability and instability.
The trouble is that judging symbols should not rely on calculating eigenvalues. one The order symmetric matrix has eigenvalues; if you press “Find To do this, we need to develop a Then find the roots of the degree polynomial. Of course it can’t be done by hand; it’s also unreliable if left to a computer—high-order polynomials are extremely sensitive to small perturbations in coefficients, and the calculated The root is very untrustworthy. It can be seen that “finding roots using characteristic polynomials” is just , A good method, not a good method for general matrices. However, elimination only involves division and subtraction, which can be completed instantly on a computer. The pivot calculation is fast and stable.
A beautiful fact in this lecture is: for symmetric matrices, The number of positive pivots is equal to the number of positive eigenvalues, and the number of negative pivots is equal to the number of negative eigenvalues.. Note that the pivot and the eigenvalue themselves are not equal, they only match the sign and number; the only equality relationship that can be asserted in advance is the product - when eliminating elements in order and not exchanging rows, The product of pivot elements is equal to the determinant, and The product of the eigenvalues is also equal to the determinant, so the product of the two is the same. But that’s just a total, the facts above give a symbol-by-symbol distribution. For example a order symmetric matrix, if we count a positive main element, If there is a negative pivot element, we can conclude that it has a positive eigenvalue, negative eigenvalues without having to calculate any of them.
This fact can also be used to “locate” feature values. Translate the matrix: with have the same eigenvectors, the eigenvalues are subtracted as a whole . So count If there are several positive pivot elements, we can know how many eigenvalues of the original matrix are greater than , the rest are less than . Change a few translation amounts, Each eigenvalue is framed into several intervals respectively, which is a reliable starting point for finding eigenvalues.

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

Video 00:23:06 | Approximately corresponding to Section 4 “4. The sign distribution of the pivot corresponds to the sign distribution of the eigenvalues”.

Video 00:28:31 | Approximately corresponding to Section 4 “4. The sign distribution of the pivot corresponds to the sign distribution of the eigenvalues”.
5. Positive definite matrix
Symmetric matrices are already “good” matrices, Positive definite matrix It is one of the “excellent” categories.
Definition: A symmetric matrix is called a positive definite matrix if all its eigenvalues are positive.
The first equivalence condition immediately follows from the facts in the previous section: All pivots are positive. This is exactly the criterion used in practice - there is no need to find the eigenvalues, just do one elimination and look at the sign of the pivot.
Example is
It is symmetric and the eigenvalues must be real numbers. The first pivot is ;The second pivot does not need to be calculated separately, because the product of the pivots is equal to the determinant:
two pivots with are both positive, so both eigenvalues are positive, Right concentration.
Then use the eigenvalues to compare. The trace is , the determinant is , the characteristic equation is
The solution is
approx. with , are indeed all positive numbers. Compare the costs: the pivot is two simple fractions , , the eigenvalue has a root sign; only the former is needed to judge whether it is positive or negative. In differential equations, knowing the sign is enough to judge stability, so the pivot criterion is far more economical than finding the eigenvalues. These two eigenvalues are not equal. According to fact 2, their corresponding eigenvectors fall on two mutually perpendicular straight lines.
It is not enough that the determinant is positive. A common misconception is that ”, so both eigenvalues are positive.” The product of two numbers with the same sign is of course positive, but “same negative” is also satisfied. Let’s look at a counterexample: the first pivot of a certain symmetric matrix is , and the overall determinant is , is a positive number. Since the product of pivot components is equal to the determinant, the second pivot component is . Both pivots are negative, and according to the sign facts in the previous section, both eigenvalues are also negative. The determinant of this matrix is positive, but it is obviously not positive definite.
Therefore, the inspection should be carried out “from small to large”. In addition to the determinant of the entire matrix, we also need to check the determinant of each order sub-matrix in the upper left corner—— of, of, until , they are called sequential subject form. The criteria for positive determination are: All sequential principals are positive. The two ends of this chain are easy to recognize: the first-order sequential principal is the first pivot, The principal subform of the order sequence is the entire determinant, and the intermediate steps are just supplemented by the test of “gradually growing out”, so the principal component and the determinant are connected into one line.
Check with examples: The first-order sequential main formula of is , the second order is , passes; the counterexample fails at first order, because , although the second-order Satisfies “the overall determinant is positive”. This is why “all” is used in the criterion: it requires All the numbers are positive, instead of just looking at the last big determinant.

Video 00:32:54 | Approximately corresponding to Section 5 “5. Positive Definite Matrix”.

Video 00:34:13 | Approximately corresponding to Section 5 “5. Positive Definite Matrix”.
6. Three clues converge
The positive definite matrix is the climax of this lecture, not because it adds another definition, but because it combines three originally separate clues in the course into one thing:
- first week pivot: Appears during the elimination process number;
- mid-course determinant: Taken all the way from the upper left corner a sequence subject form;
- The last few lectures eigenvalue: real eigenvalues.
For symmetric matrices, these three sets of numbers can be mutually determined: the eigenvalues are all positive, the pivots are all positive, and the sequential principal subforms are all positive. The three are equivalent to each other. If any one group is all positive, the other two groups are also all positive; if any group has a negative sign, there must be something wrong with the other two groups. In other words, “right concentration” can be said in three completely different languages and they all mean the same thing. This is also the reason why the title of this lecture juxtaposes “symmetry” and “positive definiteness”: symmetry ensures that the eigenvalues fall on the real number axis, and positive definiteness nails the symbols of this group of real numbers.
The following route is also clear from this: the next lecture extends the same idea to complex matrices and fast Fourier transforms, and the final climax of the course is to integrate all the clues into the general Square matrix - no symmetry required.

MIT OCW Official Lecture Notes Summary Page 3/3 (18.06SC Lecture 25 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- symmetric matrix (symmetric matrix) satisfies . Two basic facts: eigenvalues are all real numbers; eigenvectors can be selected as a set of complete and orthogonal vectors.
- “Can be selected” cannot be omitted: each non-zero vector of the unit matrix is an eigenvector; when the eigenvalues are repeated, they correspond to an entire plane, and a group that is perpendicular to each other can always be picked out in the plane.
- spectrum theorem: The symmetric matrix can be written as , The columns of are orthogonal, ;The transpose of the entire product is returned unchanged, so this form is automatically symmetric, which in turn characterizes a symmetric matrix.
- Proof that the eigenvalues are real: by Take the conjugate to get ; transpose and right multiply , use , and then left multiplied by the original formula Comparing the results, we get , while .
- The “good” condition for the complex matrix case is , real symmetry is just a real special case of it; symmetry only exists when Replace with used in that step.
- spectral decomposition: ;each is projected onto The projection matrix of the direction satisfies , and the direction of projection is perpendicular to each other.
- The number of positive pivots of a symmetric matrix is equal to the number of positive eigenvalues, and the same is true for the number of negative pivots; the product of the two is equal because the product of the pivots and the product of the eigenvalues is equal to the determinant.
- Use translation (The overall eigenvalue is reduced by ) number pivot symbol, you can count how many eigenvalues of the original matrix are greater than .
- Positive definite matrix: Symmetric and all eigenvalues are positive; equivalent to all pivots being positive, also equivalent to all sequential subject form is positive.
- Example :pivot , All are positive, eigenvalues are all positive; the first subject of the counterexample is , the overall determinant is , so the second pivot is , both eigenvalues are negative - a positive overall determinant does not guarantee positive definiteness.
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| symmetric matrix | symmetric matrix | satisfy is a real matrix, the eigenvalues are real, and the eigenvectors can be chosen to be perpendicular to each other. |
| spectral theorem | spectrum theorem | Decomposition of symmetric matrices , Column orthonormal |
| principal axis theorem | Principal Axis Theorem | The name of the spectrum theorem in mechanics: after changing to the main axis, the matrix becomes diagonal, and the directions are not coupled to each other. |
| spectrum | Spectrum | The total eigenvalues of the matrix, the name is borrowed from the decomposition of the spectrum |
| orthonormal | orthogonal | Pairs are orthogonal and both have lengths a set of vectors |
| orthogonal matrix | orthogonal matrix | Column vector orthonormal square matrix , satisfy , so |
| projection matrix | projection matrix | shaped like symmetric idempotent matrix of , cast the vector to The straight line |
| complex conjugate | complex conjugate | put become ; Used to eliminate the imaginary part when proving real eigenvalues |
| pivot | pivot | The key number used to eliminate the lower elements in elimination; the number of symbols in the pivot element of a symmetric matrix is consistent with the eigenvalue |
| positive definite | positive definite | Symmetric and all eigenvalues are positive, which is equivalent to all principal components and all sequential principal expressions being positive. |
| leading principal minor | sequential subject form | upper left corner Arrive The determinants of sub-matrices of each order are all positive definite regular matrices. |
| determinant | determinant | The product of the principal components and the product of the eigenvalues is equal to it, but it cannot be determined to be positive just because it is positive. |
Machine-assisted translation · Read Chinese original
