This is the first lecture on eigenvalues and eigenvectors, the subject of most of the rest of the course (transcript, p. 1). The matrices are square. This lecture is about what these special numbers and vectors are; the following lectures show what they are for. Determinants, from the last three lectures, are the tool for finding them.
Vectors that keep their direction#
A matrix acts on vectors like a function: in goes , out comes (transcript, p. 1). Most vectors come out pointing in a new direction. A few come out parallel to where they went in, and those are the eigenvectors (pp. 1–2):
In words
capital A x equals lambda x
The multiplier is the eigenvalue. "Parallel" allows the very opposite direction too: may be negative, zero, or even an imaginary number (p. 2). The eigenvector must not be the zero vector.
Eigenvalue is nothing special from this point of view. It means : the eigenvectors for are the nonzero vectors in the nullspace. So if is singular, is one of its eigenvalues (pp. 2–3).
Two examples you can see#
Before any formulas, Strang takes matrices whose action we already know (p. 3).
A projection onto a plane (pp. 3–5). A typical vector is not an eigenvector: its projection points elsewhere. But a vector already in the plane is projected onto itself, : every vector in the plane is an eigenvector with , a whole plane of them (p. 4). A vector perpendicular to the plane is projected to zero, , so (p. 5). In three dimensions that gives three independent eigenvectors, two in the plane and one across it, with eigenvalues , and . All of this follows from the picture, without writing (p. 5).
A permutation (pp. 6–7). The matrix
In words
capital A equals 0 1; 1 0
exchanges the two components of a vector. The vector is unchanged, so it is an eigenvector with (p. 6). The vector comes out as , minus itself, so (p. 7). A matrix with no negative entries can have a negative eigenvalue.
Trace: the sum of the eigenvalues#
An matrix has eigenvalues, and for or more they are not easy to find: they are the roots of an equation of degree (p. 8). One fact helps at once (p. 8):
In words
lambda one plus lambda two plus and so on plus lambda n equals a one one plus a two two plus and so on plus a n n
The sum down the diagonal is the trace. For the permutation it is , so once was found, the other eigenvalue had to be : in the case one eigenvalue and the trace give the other (p. 8).
The characteristic equation#
Both and are unknown, and they are multiplied together, so elimination cannot be used directly (p. 3). The trick is to bring to the left (p. 9):
In words
the quantity capital A minus lambda capital I, x equals 0
A nonzero solves this only if is singular, and singular matrices have determinant zero (pp. 9–10):
In words
the determinant of the quantity capital A minus lambda capital I, equals 0
This is the characteristic (or eigenvalue) equation. It no longer contains , so the eigenvalues are found first (p. 10). There are of them, though some may be repeated, and "a repeated lambda is the source of all trouble" in 18.06, as Strang puts it (p. 10). Then for each , is a singular matrix and is in its nullspace, found by elimination with the free variable set to 1 (pp. 10–11).
A symmetric example#
Strang makes the example easy: , symmetric and constant down the diagonal (p. 11),
In words
capital A equals 3 1; 1 3
Subtracting from the diagonal only, not from every entry (p. 13):
In words
the determinant of 3 minus lambda 1; 1 3 minus lambda equals the quantity 3 minus lambda, all squared minus 1 equals lambda squared minus 6 lambda plus 8 equals 0
The is the trace, , and the is the determinant (pp. 13–14). For every matrix the equation reads
In words
lambda squared minus ( t r a c e ) lambda plus the determinant of capital A equals 0
It factors as , so and (p. 14). The product of the eigenvalues is the determinant, , in general as well as here (pp. 16, 20):
In words
lambda one lambda two and so on lambda n equals the determinant of capital A
The eigenvectors (pp. 15–16). has on the diagonal and off it; it is singular, as it must be (if it were not, 4 would be wrong), and its nullspace holds . has all four entries 1, and its nullspace holds . Each nullspace is a whole line of eigenvectors; "the" eigenvector means one reasonable basis vector for that line (p. 16).
Two things to notice, which Strang points out before computing anything. The eigenvalues are real, as he announces they will be for every symmetric matrix, and the eigenvectors and are perpendicular: their dot product is zero (pp. 11–12). The swap permutation, also symmetric, had the same eigenvectors.
Adding a multiple of I, and what does not work#
This is the permutation plus (p. 16). Its eigenvalues and are the permutation's and plus 3, and the eigenvectors did not change at all (p. 17). The reason is one line: if , then
In words
the quantity capital A plus 3 capital I, x equals lambda x plus 3 x equals the quantity lambda plus 3, x
It is tempting to go further (pp. 18–19): if and has eigenvalue , then "". That argument is wrong. It assumes that is also an eigenvector of , and normally has different eigenvectors. In general the eigenvalues of are not sums of eigenvalues of and , and those of are not products: eigenvalues are not linear (p. 19). worked only because every vector is an eigenvector of .
A rotation: complex eigenvalues#
The rotation, called because rotations are orthogonal matrices, is (p. 20)
In words
Q equals cos 90° minus sine 90°; sine 90° cos 90° equals 0 minus 1; 1 0
Trouble is coming (pp. 20–21). Every vector is turned through , so no real vector comes out parallel to itself. And the two facts above clash: the trace is , so the eigenvalues have opposite signs, but the determinant is , so their product is positive. The characteristic equation settles it (p. 22):
In words
the determinant of minus lambda minus 1; 1 minus lambda equals lambda squared plus 1 equals 0, lambda one equals i, lambda two equals minus i
A perfectly real matrix can have complex eigenvalues, and complex numbers enter the course here (p. 22). They come as a complex conjugate pair: switch the sign of the imaginary part of one and you get the other (pp. 22–23). Symmetric matrices never do this. is the opposite extreme, antisymmetric (), and antisymmetric matrices have purely imaginary eigenvalues. Matrices close to symmetric keep real eigenvalues; the ones in between have a symmetric part and an antisymmetric part (p. 23).
A repeated eigenvalue and too few eigenvectors#
One more bad case (p. 24). Change one entry of the earlier example to zero:
In words
capital A equals 3 1; 0 3, the determinant of the quantity capital A minus lambda capital I, equals the quantity 3 minus lambda, all squared
For a triangular matrix the eigenvalues sit on the diagonal, because the determinant of a triangular matrix is the product of its diagonal entries (pp. 24–25). Here twice. The trouble is in the eigenvectors: has a single nonzero entry, , in the corner, and its nullspace is the line through (p. 25). The second should bring a second independent eigenvector, and there is none (p. 26). The matrix is degenerate: a repeated eigenvalue opens the door to a shortage of eigenvectors. For all other matrices the next lecture gives "the complete story" (p. 26).
Eigenvalues of your own
(a) Find the eigenvalues and eigenvectors of , and check the trace, the determinant and the angle between the eigenvectors. (b) Do the same for the triangular .
(a) Eigenvalues
Trace , determinant , so : , . Sum , product .
(a) Eigenvectors
is singular; its nullspace holds . Check: . gives , and . The dot product : perpendicular, as for every symmetric matrix.
(b) Triangular
The eigenvalues are the diagonal entries, and (sum = trace, product = det). gives ; gives . Check: . The eigenvalues are different, so there is no shortage, but is not symmetric and : the eigenvectors are not perpendicular.
Summary#
- with : eigenvectors keep their direction, and is the stretch factor. means is singular.
- Find first from , then each from the nullspace of .
- The eigenvalues add up to the trace and multiply to the determinant; for , .
- Adding adds to each eigenvalue and keeps the eigenvectors; and have no such rule.
- Symmetric matrices have real eigenvalues and perpendicular eigenvectors (announced here, shown later); a rotation has complex ones (), and a repeated eigenvalue can leave too few eigenvectors.