Symmetric Matrices and Positive Definiteness
Symmetric matrices are the most important class of matrices, and this lecture states their two main facts up front. The eigenvalues are real, and the eigenvectors can be chosen perpendicular — which turns the diagonalization into the spectral theorem A = Q Lambda Q-transpose. Strang proves the eigenvalues are real, shows that the signs of the pivots match the signs of the eigenvalues, and closes by introducing positive definite matrices, the subclass where every eigenvalue, every pivot, and every sub-determinant is positive.
The two main facts, stated right away
This is the lecture on symmetric matrices — “the most important class of matrices.” The question we now ask of any matrix is: what are its eigenvalues, what are its eigenvectors? And when a matrix has special structure, that structure should show up there. Markov matrices have an eigenvalue equal to . What do symmetric matrices — real matrices with — have?
Strang tells you the two main facts immediately:
- The eigenvalues are real. The rotation matrices that produced complex eigenvalues — that can’t happen here.
- The eigenvectors are perpendicular — or more carefully, can be chosen perpendicular.
Why the careful wording? Take the identity matrix: certainly symmetric, all eigenvalues equal to . But every vector is an eigenvector, so how can they all be perpendicular? The point is that in the typical case — all eigenvalues different — each eigenvalue owns one line of eigenvectors, and those lines really are perpendicular. When an eigenvalue repeats, there’s a whole plane of eigenvectors, and in that plane we have the freedom to choose perpendicular ones. Either way, a symmetric matrix has a full set of perpendicular eigenvectors.
The spectral theorem
For a usual matrix with a complete set of eigenvectors, diagonalization reads . What changes when is symmetric? The is still diagonal, with real ‘s. But the eigenvector matrix is now special: its columns are perpendicular, and we can scale each to length one — no problem. So the columns are orthonormal, and the right letter is no longer but :
The last step is the payoff: for a square matrix with orthonormal columns, the inverse is the transpose, .
The name comes from the spectrum — the set of eigenvalues — by analogy with the spectrum of light as a combination of pure things: the matrix is broken into pure eigenvalues and eigenvectors. In mechanics it’s the principal axis theorem: look at a material along the right axes and it becomes diagonal — the directions don’t couple.
And the symmetry is visible in the formula itself. Transpose : the outer factors swap, , and you get the same product back. Anything of that form is automatically symmetric, and the theorem says every symmetric matrix arises this way.
Why the eigenvalues are real
Start from the only thing we know: , where for all we know at this moment and could be complex. Two moves, then a comparison.
Move 1 — conjugate everything. Conjugation respects products, so . Since is real, :
Notice symmetry hasn’t been used yet — this already says something on its own: for any real matrix, complex eigenvalues come in conjugate pairs , with eigenvectors .
Move 2 — transpose. Transposing the conjugated equation gives . Now symmetry enters: . “At that moment I used the assumption.”
Compare. Multiply the original equation on the left by , and multiply the transposed equation on the right by :
Same left side, so the right sides agree: . If the factor is not zero, cancel it and conclude — a number equal to its own conjugate has no imaginary part. is real.
So everything hangs on that one quantity, and it’s worth a second of its own. For a real vector, is the length squared — Pythagoras. For a complex vector the honest analogue conjugates one factor: each term is , and when you multiply by , the result is — the and cancel, and makes the come in with a plus. Every term is positive, so is positive except for the zero vector. “If you want a decent answer, multiply numbers by their conjugates.” That’s the length squared of a complex vector, and it’s the safe cancellation that finishes the proof — and a preview of the next lecture, where complex vectors and matrices get their full treatment.
Every symmetric matrix is a combination of projections
Break the factorization down. Write out with columns and multiply columns times rows:
What kind of matrix is , a unit column times its own transpose? We met it in chapter four: it’s with no need to divide by , since that’s . It’s a projection matrix — symmetric, and squaring it brings back a in the middle, so it equals its own square.
So every symmetric matrix is a combination of mutually perpendicular projection matrices, weighted by real eigenvalues. That’s another way people like to state the spectral theorem.
Pivots know the signs of the eigenvalues
Once the eigenvalues are real, the next question is: are they positive or negative? That’s the question that decides between stability and instability in differential equations. And you’d hate to have to compute the eigenvalues to answer it. For a symmetric matrix of order 50, finding the 50 eigenvalues by pencil and paper is a lifetime’s job — and even numerically, forming the degree-50 polynomial and finding its roots is a very bad, unstable way to do it. (Strang apologizes: that’s the method he taught, but he meant it for two-by-twos and three-by-threes.) Real eigenvalue computation belongs to numerical linear algebra.
But Matlab will quite happily find the 50 pivots, safely and quickly. And here’s the remarkable fact:
Nobody is confusing pivots with eigenvalues — they’re different numbers. The one connection you already know is that the product of the pivots equals the product of the eigenvalues, because both equal the determinant (pivots when there are no row exchanges). But the product says nothing about the 50 individual signs, which this theorem does.
It even gives a start on computing eigenvalues: shift the matrix to , and all eigenvalues shift down by . Count the positive pivots of the shifted matrix and you know how many eigenvalues of lie above and how many below.
Positive definite matrices: the excellent subclass
The last minutes start the next section of the book. If symmetric matrices are good, positive definite matrices are “a subclass that are excellent — just the greatest.”
What about determinants as a test? Positive eigenvalues certainly make the determinant positive — but that alone is not enough. The matrix
has determinant , yet its pivots (and eigenvalues) are and : not positive definite at all. The fix is to test all the sub-determinants coming down from the upper left — tests, not one. For the good example: and , passes. For the bad one: the determinant is , fails immediately.
Problems
Work these before revealing the solutions — the pivot tests make most of them fast.
Find the eigenvalues and orthonormal eigenvectors of
and write out the factorization . Check that the eigenvectors are perpendicular.
Show solution
, so , — real, as symmetry guarantees.
For : gives . For : . Their dot product is : perpendicular. Normalize to unit length (divide by ):
Multiplying it out: . ✓
For the matrix of Problem 25.1, write as a combination of projection matrices, and verify that each equals its own square.
Show solution
With and :
Then
Each piece is a projection: squaring gives because . (Check on the first one: squared is — the same matrix.)
Without computing any eigenvalues, determine how many eigenvalues of
are positive and how many are negative. Then confirm by finding the eigenvalues.
Show solution
Eliminate: the first pivot is . Subtract times row one from row two: the second pivot is . One positive pivot, one negative pivot — so by the sign theorem for symmetric matrices, one positive and one negative eigenvalue.
Confirm: , so and . One positive, one negative, matching the pivots. (Consistency check: product of pivots product of eigenvalues .)
For which numbers is
positive definite? Answer with the sub-determinant test, and check that the pivot test gives the same condition.
Show solution
Sub-determinants: the determinant is ✓; the determinant is , which is positive exactly when .
Pivots: the first pivot is . The second pivot is the determinant divided by the first pivot, , positive under exactly the same condition.
So is positive definite precisely for . At the determinant is zero — the matrix is singular, with an eigenvalue , so it just fails.
Give a symmetric matrix whose determinant is positive but which is not positive definite, and explain which test it fails. Then state what its two pivots tell you about its two eigenvalues.
Show solution
The lecture’s own example works:
It fails the sub-determinant test at the first step: the upper-left determinant is , which is negative. (Two negatives multiply to a positive determinant — that’s exactly why the whole determinant alone can’t detect the problem.)
The pivots are and , both negative — so by the sign theorem both eigenvalues are negative (here they are simply and ). This matrix is in fact negative definite: the mirror image of excellent.