A metal Chladni plate seen from above: fine sand has gathered along the lines where the vibrating plate stays still, forming a star of straight lines radiating from the central mount
Unit 12 · Advanced and Advanced + Ramsey Theory · 85 min

Eigenvalues of Graphs

The adjacency and Laplacian matrices, expanders, and the ranking of web pages
Image: Exhibit by Estes Objethos Atelier, photograph by Rodrigo Tetsuo Argenton, Matemateca IME-USP, CC BY-SA 4.0, via Wikimedia Commons (cropped)

The linear algebra toolkit, then the adjacency matrix whose powers count walks and whose eigenvalues give the number of edges and triangles. The spectra of the standard graphs, what the largest and second largest eigenvalues measure, the eigenvalue bounds on the chromatic number, and the Laplacian with its Fiedler vector for cutting a graph in two. Expanders, Cheeger's inequality, the Alon and Boppana bound, and a random walk that ranks the pages of the web.

Preview: the beginning of the unit

Sprinkle sand on a metal plate, hold it at the centre, and draw a violin bow along its edge. The plate sings at one pitch, and the sand jumps away from the parts that move and gathers along the lines that stay still, as on the title page of this unit, where Ernst Chladni (1756-1827) first drew such patterns in 1787. Every pitch has its own pattern, and the mathematics behind the pair of pitch and pattern is the mathematics of eigenvalues and eigenvectors. Graphs have eigenvalues too. Write the adjacency matrix of Unit 1 and compute its eigenvalues, and a surprising amount of the graph can be read off the resulting list of numbers: the number of edges and triangles, whether the graph is bipartite or connected, bounds on its chromatic number, the best place to cut it in two, how strongly it holds together, and, for the graph of the web, which page deserves to come first.

1 Matrices, eigenvalues, and eigenvectors

An \(n \times n\) matrix \(M\) is a table of \(n\) rows and \(n\) columns of numbers, with the entry in row \(i\) and column \(j\) written \(M_{ij}\). A vector \(\mathbf{x}\) with \(n\) entries \(x_1, \ldots, x_n\) is written as a column, and the product \(M\mathbf{x}\) is the vector whose \(i\)th entry is the sum of the products of row \(i\) with the entries of \(\mathbf{x}\), \begin{equation} (M\mathbf{x})_i = \sum_{j=1}^{n} M_{ij}\, x_j . \label{eq:matvec} \end{equation} A few more words are needed, and all of them appear in the box below. The product \(MN\) of two matrices has the entries \((MN)_{ij} = \sum_k M_{ik} N_{kj}\), which is Equation \eqref{eq:matvec} applied to every column of \(N\). The transpose \(M^{\mathsf{T}}\) swaps rows and columns, so that \((M^{\mathsf{T}})_{ij} = M_{ji}\), and a matrix with \(M^{\mathsf{T}} = M\) is symmetric. For a column vector \(\mathbf{x}\), the transpose \(\mathbf{x}^{\mathsf{T}}\) is a row, and \(\mathbf{x}^{\mathsf{T}}\mathbf{y} = \sum_i x_i y_i\) is a number, the scalar product of \(\mathbf{x}\) and \(\mathbf{y}\). Two vectors with scalar product 0 are orthogonal, and \(\mathbf{x}^{\mathsf{T}}\mathbf{x} = \sum_i x_i^2\) is the squared length of \(\mathbf{x}\). The identity matrix \(I\) has ones on the diagonal and zeros elsewhere, so that \(I\mathbf{x} = \mathbf{x}\), and the trace \(\operatorname{tr} M = \sum_i M_{ii}\) is the sum of the diagonal entries.

Most vectors change direction when a matrix is applied to them, and the ones that do not are the subject of this unit. A number \(\lambda\) is an eigenvalue of \(M\) if there is a vector \(\mathbf{x} \ne \mathbf{0}\) with \begin{equation} M\mathbf{x} = \lambda\mathbf{x} , \label{eq:eigen} \end{equation} and every such \(\mathbf{x}\) is an eigenvector for \(\lambda\). The matrix stretches an eigenvector by the factor \(\lambda\) and does not turn it; if \(\lambda\) is negative the vector is reversed. The eigenvectors for \(\lambda\) together with \(\mathbf{0}\) form a subspace, that is, a set of vectors that contains every sum and every multiple of its members, because multiples and sums of eigenvectors for \(\lambda\) are again eigenvectors for \(\lambda\). The number of independent directions in that subspace, its dimension, is the multiplicity of \(\lambda\). For example, the matrix of \(K_2\), with rows \((0, 1)\) and \((1, 0)\), sends \((1, 1)\) to itself and \((1, -1)\) to \((-1, 1)\), so its eigenvalues are \(1\) and \(-1\).

To find the eigenvalues of a small matrix, rewrite Equation \eqref{eq:eigen} as \((M - \lambda I)\mathbf{x} = \mathbf{0}\). A matrix sends a non-zero vector to \(\mathbf{0}\) exactly when its determinant, the number that Unit 4 computed for the matrix-tree theorem, is 0, so the eigenvalues are the roots of the characteristic polynomial \(\det(M - \lambda I)\). For a \(2 \times 2\) matrix with rows \((a, b)\) and \((c, d)\) the determinant is \(ad - bc\), and the characteristic polynomial is \((a - \lambda)(d - \lambda) - bc = \lambda^2 - (a + d)\lambda + (ad - bc)\); for \(3 \times 3\) matrices the determinant formula of Unit 4 gives a cubic. Beyond that the work is left to a computer, which finds the eigenvalues of a matrix with thousands of rows in a second; this unit checks the small cases by hand.

The full unit is part of the program

Want to see a complete unit first? Unit 3, Euler Tours and Hamilton Cycles, is free to read.