c09 · Section 1
Eigenvalues and eigenvectors
Which directions does a matrix leave alone?
L1Core
The idea, one concrete case and enough to use it. Every simplification is marked and linked to the precise statement.
Take the matrix below and apply it to three vectors:
Applying a matrix to a vector follows one rule: take a row of the matrix, multiply it entry by entry with the vector, and add the products. That sum is the dot product of the row and the vector. For the first row and the vector it is , and for the second row it is . So . !One direction under four eigenvalues. A factor of modulus above one stretches the arrow, a factor of modulus below one shrinks it, a negative factor sends it to the opposite ray, and zero collapses it to the origin. The sign says whether the direction survives; says by how much the length changes. Status: schematic.
The same rule gives the other two answers. It sends to , which is one times itself, and to . That last output is not a multiple of : if , the first coordinate forces and the second forces , so no single number works.
Two of the three directions survive the matrix unchanged apart from length, and the third is turned. A nonzero vector that the matrix only stretches is an eigenvector, and the stretch factor is its eigenvalue. An eigenvector and its eigenvalue satisfy
The equation says that applying the matrix to gives the same result as multiplying by the single number [S:24:148]. The bracketed code is a source tag: for source, then the number of the source, then the page inside it. The tag above names Axler's Linear Algebra Done Right, and tags that start with another source number name other books; the other one used throughout this chapter is Deisenroth, Faisal and Ong, Mathematics for Machine Learning.
The clause matters, because the zero vector satisfies the equation for every and carries no direction [S:23:422]. Any nonzero multiple of an eigenvector is another eigenvector for the same eigenvalue, so an eigenvalue describes a whole direction, not one arrow [S:27:111].
Read the equation one coordinate at a time. It says that is the zero vector. The identity matrix has on the diagonal and everywhere else, and it leaves every vector alone, so and .
A square matrix sends some nonzero vector to zero exactly when it has no inverse, and the determinant is the number that is zero exactly in that case. For a two-by-two matrix with entries read across the rows, the determinant is . So a nonzero solution exists exactly when [S:27:113].
That condition produces a polynomial, the characteristic polynomial, and its roots are the eigenvalues. For a two-by-two matrix it reads
where the trace is the sum of the diagonal entries. The two roots add to the trace and multiply to the determinant, because expands to [S:27:118][S:27:119]. The polynomial therefore carries both the sum and the product of the answer.
This is the first answer to the chapter's question. Eigenvalues matter because they describe what survives repetition. If , then , and after repeated application the vector is a power of times . A direction that stays put turns a long computation into one multiplication per step. The rest of the chapter uses that fact to predict long-run behaviour, to find a dominant direction by repeated multiplication, and to decompose matrices that are not symmetric.
A diagonal matrix makes the idea visible. The matrix with and on its diagonal sends to and to , so its eigenvalues are the diagonal entries. Nothing is turned, and nothing has to be solved.
The direction is not always visible by inspection. For the matrix
the trace is and the determinant is . The same polynomial reads [S:27:110]. Its roots are and , the values MML prints for this same matrix [S:27:113-114]. Their sum is the trace and their product is the determinant. Check the directions: goes to , and goes to .
The set of all eigenvectors for one eigenvalue, together with the zero vector, is a subspace called the eigenspace [S:24:178]. A subspace is a set of vectors closed under addition and under multiplication by a number, so it is a flat piece through the origin: a line, a plane, or the whole space. Here the two eigenspaces are two lines through the origin.
They are different lines, and together they fill the plane: every vector is a combination of the two, for two numbers and [S:24:179]. A combination here means the sum of scalar multiples: multiply each vector by its own number and add the results. That filling property is what the next section needs. It fails for some matrices, and the failure is worth seeing.
A negative eigenvalue sends the vector to the opposite ray and multiplies its length by . The vector shrinks when and grows when , so the sign carries the flip and the modulus carries the size [S:27:112]. An eigenvalue of zero collapses that direction to the origin. One number therefore answers two questions at once: does the direction survive, and how fast does it grow or shrink?
Stop and try
a two-by-two matrix has trace and determinant . What are its eigenvalues?
Key idea
An eigenvector is a nonzero direction that a matrix only stretches, and its eigenvalue is the stretch factor. The pair satisfies , and for a two-by-two matrix it is found from . Once you have the pair, repeated multiplication becomes powers of a few numbers.
The idea has a real limit. Not every real matrix has a real eigenvector. A quarter turn sends to and turns every nonzero vector, so over the real numbers it has no eigenvalues at all [S:24:149].
Over the complex numbers, which are the reals with a square root of adjoined, it has two [S:24:150]. They are and , the two numbers whose square is . If you assume every matrix has a real eigenvalue, this is the example that breaks it.
Finding roots of the characteristic polynomial is the textbook route, not the practical algorithm. The definition is with , and is an equivalent test. Numerical software almost never forms the polynomial, because for a large matrix its roots are hard to compute and sensitive to rounding [S:28:134]. The power method, which the next section defines, takes another route: it needs only matrix-vector products, one per step, so its cost stays low when a single direction is enough.
L2Deepen
The formal statement, the derivation and the edge cases. It refines L1 and never contradicts it.
The formal statement. Let be a finite-dimensional vector space over or , and let be a linear operator on . A scalar is an eigenvalue of when for some nonzero in . The eigenvectors for , together with the zero vector, form the eigenspace, which is the null space [S:24:178]. Because is finite-dimensional, is an eigenvalue exactly when fails to be invertible [S:24:149], and for a matrix that failure is the condition [S:27:113].
The derivation. The equation is the same as . A nonzero solution exists exactly when has a nonzero kernel, and on a finite-dimensional space that happens exactly when is not invertible. Writing the operator as a matrix in any basis turns the last condition into . Expanding the determinant gives a polynomial of degree in , so over it has roots counted with multiplicity. One step is omitted: the proof that the determinant does not depend on the basis. A change of basis replaces by a similar matrix, and similar matrices have the same determinant.
The edge case. Take . Its characteristic polynomial is , so is a double root. A reader who counts roots expects two eigendirections. The equation reads , so the eigenspace is the single line spanned by [S:27:114]. The algebraic multiplicity is and the geometric multiplicity is , and such a matrix is called defective [S:27:117]. Here the core's "one number answers two questions" breaks: the number gives the growth rate, not the number of surviving directions.
What the core hid. The core defined the eigenvalue from a matrix in the standard basis. The definition belongs to the operator, and the characteristic polynomial is the same in every basis. The core also hid the dependence on the field. Over a quarter turn has no eigenvalue, because has no real root [S:24:149]. Over the same turn has eigenvalues and [S:24:150]. The core said this at the end. The formal statement needs it at the start, because "the roots are the eigenvalues" is a statement about unless you add a real-root condition.
Where the analogy breaks. "Directions that stay put" describes a line, not an arrow. An eigenvector with lands on the opposite ray, and one with collapses to the origin. The invariant object is the line through . Distinct eigenvalues always give independent eigenvectors [S:27:117], but a repeated eigenvalue may give fewer directions than its multiplicity, as the shear shows.
L3Research
Full rigour, the original sources and the open questions. This is the research frontier.
Original sources. The definition you read is Definition 5.5 in Axler, stated for an operator on a vector space over or [S:24:148]. The same definition opens Hefferon's chapter, with the older names characteristic values and characteristic vectors, and with the note that "Eigen" is German for "characteristic of" or "peculiar to" [S:23:422]. MML gives the same etymology and notes the common convention of listing eigenvalues in descending order, while stating that it does not presume an ordering unless one is given [S:27:111].
An open question. A trained network is a map whose curvature changes during training, and the largest eigenvalue of its Hessian enters the necessary condition for plain gradient descent to become unstable [S:645:10]. The field has not settled which spectral quantity of the Hessian predicts a run that will diverge rather than settle. Evidence that would settle it: measured Hessian spectra and loss curves on the same architectures, at learning rates on both sides of the threshold, with the spectra computed independently of the training code. A useful predictor must fire before the divergence, which rules out any quantity read from the loss curve after it happens.
A frontier result. The edge-of-stability picture starts from a necessary condition and adds two empirical processes. The conventional quadratic model predicts that gradient descent is unstable only if the learning rate exceeds of the Hessian: the condition is necessary, not sufficient. Progressive sharpening is the observation that while the learning rate stays below that threshold, the curvature rises until the threshold is met. Self-stabilisation is the observation that a spike then pushes the parameters into a region of smaller curvature, so the run oscillates at the edge instead of diverging [S:645:10]. That is an eigenvalue statement. It uses the same you met in the first section, now on a matrix that changes at every step.
What to read next. Read Chapter 6 of Solomon for algebraic and geometric multiplicity and for the Jordan form [S:28:134]. Read Chapter 5 of Axler for the operator version and for the proof that a complex operator always has an eigenvalue [S:24:148]. Then read the stability section of the small-scale-proxies paper to see the eigenvalue used as a diagnostic rather than a definition [S:645:10].