Fundamentals / Numerical mathematics / Numerical linear algebra / Matrix computations and spectral accuracy

Recovering a spectrum from three-term recurrences

A large vibrating system supplies products with its stiffness operator. Derive the short recurrence implied by symmetry and use a residual and a moment test to interpret its small projected spectrum.

Let symmetry remove old directions

Assume \(A=A^T\), choose \(\|q_1\|=1\), and initialise \(\beta_0=0,q_0=0\). Arnoldi projects \(Aq_j\) against every available basis vector. For \(i<j-1\), \(Aq_i\) already lies in the span through \(q_{i+1}\), so \(q_i^TAq_j=(Aq_i)^Tq_j=0\). For \(i=j-1\) the product is the previously computed \(\beta_{j-1}\). Thus the only new diagonal coefficient is \(\alpha_j=q_j^TAq_j\).

\[w=Aq_j-\beta_{j-1}q_{j-1}-\alpha_jq_j,\]
\[\beta_j=\|w\|,\]
\[q_{j+1}=w/\beta_j.\]

A zero \(\beta_j\) signals an invariant subspace in exact arithmetic. Stacking the identities gives \(AQ_k=Q_kT_k+\beta_k q_{k+1}e_k^T\) where \(T_k\) is real symmetric tridiagonal. A normalised eigenpair \((\theta,z)\) of \(T_k\) gives a Ritz vector \(Q_kz\) and residual norm \(\beta_k|z_k|\). In an eigenbasis of \(A\), that residual is at least the distance from \(\theta\) to the nearest eigenvalue. To bound an angle to a particular eigenvector also separate its eigenvalue from its neighbours.

Read the first two measurements

Use \(A=\operatorname{diag}(1,2,4)\) and \(q_1=(1,1,1)^T/\sqrt3\). Direct averaging gives \(\alpha_1=7/3\) and \(\beta_1=\sqrt{14}/3\). The second direction is \((-4,-1,5)^T/\sqrt{42}\), giving \(\alpha_2=59/21\). The projected pair captures only part of the original three-dimensional spectrum. The first quadrature node \(7/3\) already gives the exact weighted average \(q_1^TAq_1\), while its square misses \(q_1^TA^2q_1=7\) by \(14/9\), exactly \(\beta_1^2\).

More generally, \(q_1^Tf(A)q_1\) integrates \(f\) against masses \(|v_i^Tq_1|^2\) at the eigenvalues. For degrees up to \(2k-1\), paths through the tridiagonal recurrence cannot step outside the first \(k\) directions and return to the first one in time. Hence

\[q_1^Tp(A)q_1=e_1^Tp(T_k)e_1=\sum_i |z_{1i}|^2p(\theta_i).\]

This is the Gauss quadrature rule for that spectral measure. It also explains why a mode orthogonal to the starting vector remains invisible regardless of the iteration count.

Why can a computed tridiagonal matrix contain a duplicate mode?

A rounding perturbation can reintroduce a converged eigendirection into later vectors. The three-term recurrence removes only the last two components explicitly. The reintroduced component can grow until a second Ritz vector reports the old mode. Monitor the Gram matrix of stored basis vectors and residuals in the original space. Selective or full reorthogonalisation trades extra products and storage for independent directions.

Ritz values approach the true eigenvalues as the Krylov basis grows.
Each column shows the projected eigenvalues at one subspace dimension. Horizontal lines mark the exact spectrum. The isolated upper mode settles early. The starting vector has nonzero overlap with every mode.

Tutorial on invisible modes and misleading accuracy

Start from a different vector for the same operator

Work through the solution

With \(q_1=(1,0,0)^T\), the first residual vanishes. The one-node quadrature is exact for every polynomial for this particular observation, despite both eigenvalues 2 and 4 remaining undetected.

Derive the quadrature weights for a two-mode experiment

Work through the solution

With equal projections on two distinct eigenvectors, the measure has two masses of one half. The first recurrence coefficient is their arithmetic mean and the first off-diagonal coefficient is half their absolute difference. The second diagonal equals the first. Diagonalising that two-by-two matrix returns both eigenvalues and weights without prior knowledge of the modes.

Trefethen and Bau · Krylov projections and spectral quadrature

Change parameters · Recovering a spectrum from three-term recurrences

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.