Symmetric matrices, , are "the most important class" of matrices (transcript, p. 1). Having learned to look at a matrix through its eigenvalues and eigenvectors, the question for each special kind is what it says about them, as Markov matrices always have eigenvalue 1 (p. 1).
Real eigenvalues, perpendicular eigenvectors#
The two main facts for a real symmetric matrix (p. 1):
- the eigenvalues are real (so the complex eigenvalues of rotations cannot happen);
- the eigenvectors are perpendicular (orthogonal).
Strang proves the first and leaves the second to the book (p. 1). The second needs care. For the identity every vector is an eigenvector, so "are perpendicular" really means can be chosen perpendicular (pp. 1–2). When the eigenvalues are all different, each has one line of eigenvectors and the lines are perpendicular; when one is repeated there is a whole plane of eigenvectors, in which perpendicular ones can be chosen. There is also a full set of them (p. 2).
The spectral theorem#
The usual diagonalisation is (p. 2). For a symmetric matrix the eigenvectors can be scaled to length one as well as made perpendicular: orthonormal. So the eigenvector matrix deserves the letter , and for orthonormal columns (p. 3):
In words
capital A equals capital Q capital lambda capital Q to the power minus 1 equals capital Q capital lambda capital Q ^ capital T
This is "one of the famous theorems of linear algebra": every symmetric matrix factors as an orthogonal matrix times a diagonal matrix times its transpose (p. 3). Conversely, any such product is symmetric, since transposing gives it back (pp. 3–4). The name comes from the spectrum, the set of eigenvalues, as light is broken into pure colours; in mechanics it is the principal axis theorem: along the right axes a material's directions do not couple (p. 4).
Why the eigenvalues are real#
Start from , allowing and to be complex (p. 4). Taking the complex conjugate of everything (change to ; products conjugate factor by factor) and using that is real gives (p. 5). This already shows that complex eigenvalues of a real matrix come in pairs , (p. 5). Now transpose, and use symmetry, (p. 5):
In words
x bar ^ capital T capital A ^ capital T equals x bar ^ capital T lambda bar which gives x bar ^ capital T capital A equals lambda bar x bar ^ capital T
Multiply this on the right by , and multiply the original equation on the left by (pp. 5–6). The left sides are the same, so the right sides are equal (p. 7):
In words
x bar ^ capital T capital A x equals lambda x bar ^ capital T x and x bar ^ capital T capital A x equals lambda bar x bar ^ capital T x which gives lambda equals lambda bar
A number equal to its own conjugate has no imaginary part: is real (p. 7). The cancellation needs . For a complex vector this is the right quantity, the length squared (pp. 7–9):
In words
x bar ^ capital T x equals x one bar x one plus x two bar x two plus and so on plus x sub n bar x sub n, the quantity a minus i b, the quantity a plus i b, equals a squared plus b squared
The imaginary parts and cancel, so the sum is positive for every (pp. 8–9). Plain would not do: "multiply numbers by their conjugates" (p. 9). The next lecture builds on this (p. 9).
Complex matrices (pp. 9–10). Where was symmetry used? If were complex, the step above would have produced . The proof works whenever . So the "good" matrices, with real eigenvalues and perpendicular eigenvectors, are those with if real and if complex; nearly all applications have real matrices, where this is just symmetry (p. 10).
A sum of projections#
Multiply out as columns times rows (p. 11):
In words
capital A equals lambda one q one q one ^ capital T plus lambda two q two q two ^ capital T plus and so on plus lambda n q n q n ^ capital T
Each , a unit column times its row, is a projection matrix (the of chapter 4 with ): it is symmetric, and its square is itself because (p. 12). Every symmetric matrix is a combination of mutually perpendicular projection matrices, another way to state the spectral theorem (p. 12).
Signs of pivots and eigenvalues#
Once the eigenvalues are known to be real, the next question is their signs, which decide stability for differential equations (pp. 12–13). Computing all 50 eigenvalues of a matrix is a real job; the textbook method, the roots of , is a very bad way numerically, fine for and but highly unreliable at that size (p. 13). Strang recalls that some 20 or 30 years earlier nobody really knew how to do it (p. 13). Pivots, though, are computed safely and quickly, and for symmetric matrices (p. 14):
In words
number of positive pivots equals number of positive eigenvalues ( capital A equals capital A ^ capital T )
If 28 of 50 pivots are positive, 28 eigenvalues are positive (p. 14). Shifting to moves every eigenvalue down by 7, so its pivots count the eigenvalues above 7: a start on computing eigenvalues (p. 14). The pivots are not the eigenvalues. Their products agree, since both give (the pivots when there are no row exchanges), but that says nothing about the individual numbers; the sign rule does (p. 14).
Positive definite matrices#
Positive definite matrices are an excellent subclass of the symmetric ones, the next section of the book (p. 15). They are symmetric with all eigenvalues positive, and by the sign rule, all pivots positive, which is the good way to test (pp. 15–16). Strang's example (pp. 15–16):
In words
capital A equals 5 2; 2 3 : pivots 5, 11 over 5; lambda squared minus 8 lambda plus 11 equals 0, lambda equals 4 plus or minus the square root of 5
(Strang reads the matrix aloud as "five three two two": diagonal 5 and 3, as the trace 8 confirms, and off-diagonal 2, as the determinant confirms.) The second pivot is , because the product of the pivots is the determinant (p. 16). Both eigenvalues are positive, as shows, but the pivots were simpler (p. 16).
The determinant is positive too, but that alone is not enough: has determinant , yet its pivots and eigenvalues are and (p. 17). The test needs all the upper-left sub-determinants, starting from the in the corner (pp. 17–18):
In words
capital A equals capital A ^ capital T is positive definite if and only if all n upper-left determinants are positive
The example passes (, ); the diagonal one fails at (p. 18). Pivots from the first week, determinants from the middle and eigenvalues from the last weeks come together here, for symmetric matrices (p. 18). The climax of the course, Strang says, will bring them together for matrices that need not be symmetric (p. 18).
A symmetric matrix taken apart
(a) Find the spectral factorisation of and write as a sum of projections. Check it by the pivots. (b) How many positive eigenvalues does have? Answer by pivots, then check.
(a) Eigenvalues and eigenvectors
Trace , determinant : . gives ; gives . They are perpendicular; normalised, and . So and .
(a) Sum of projections
and . Their sum is . The pivots are and , both positive, like both eigenvalues: is positive definite (sub-determinants and ).
(b) Counting by pivots
Elimination: first pivot , second . One positive and one negative pivot, so one positive eigenvalue. Check: , eigenvalues and ; the product of the pivots, , is their product.
Summary#
- Real symmetric : real eigenvalues, orthonormal eigenvectors (chosen so when eigenvalues repeat), .
- Proof of real : compare two ways; it needs and . Complex analogue: .
- , a combination of perpendicular projections.
- Signs of pivots = signs of eigenvalues, for symmetric matrices.
- Positive definite: all eigenvalues ⇔ all pivots ⇔ all upper-left determinants .