“Know how to solve every problem that has been solved.” “What I cannot create, I do not understand.” — Richard Feynman

Spectra from Moments

Linear Algebra

Five things you half-know are secretly the same object: the density of states, the Lanczos algorithm, Gaussian quadrature, Padé approximants, and the continued-fraction form of a Green's function. The thread that ties them is one idea — a spectral function is a probability measure, its moments are matrix–vector products, and Lanczos turns those moments into a quadrature rule for the spectrum. Once you see it, "compute the spectrum of a huge operator" stops being a dozen techniques and becomes one move.

1. A spectral function is a probability distribution

Take a large Hermitian operator with eigenvalues and eigenvectors . The eigenvectors form a basis, so any unit vector can be expanded in them, with coefficients . The squared coefficients , placed at their eigenvalues , form a distribution over the spectrum — the spectral function:

Each spike sits at an eigenvalue with height , the squared magnitude of that expansion coefficient. Because is normalized the heights are nonnegative and sum to one, — so is genuinely a probability distribution over the spectrum. The same object is called the local density of states (solid state), the strength function (nuclear, with ), and the absorption spectrum (TDDFT). One object, many names — the difference is only which you choose.

What does it mean to put H inside a delta?

The right-hand side is an ordinary sum of spikes, but the left-hand side has an operator inside a delta function. That is shorthand from the functional calculus. For any ordinary function, the operator version is defined to keep the eigenvectors and apply the function to the eigenvalues:

This is the same rule behind every operator function you already use — time evolution , the thermal weight , the inverse : apply the scalar function to the eigenvalues, leave the eigenvectors alone. Take the function to be the delta and you get

an operator that depends on the real dial . It is zero almost everywhere; the instant lands on an eigenvalue it becomes the projector onto that eigenstate. Sweeping the dial across all energies simply slices the identity operator up by eigenvalue:

Sandwich it between and and the projectors turn into the squared coefficients, which is exactly why the two sides of the spectral function agree:

And the bridge to your resolvent page: on the real axis this operator-delta is just the imaginary part of the Green's function (Sokhotski–Plemelj). The spectral spikes are the imaginary edge of the smooth resolvent:

Predict, then reveal: if , one exact eigenvector, what is ?

All the overlap collapses onto a single term, so — a single spike at , probability one. One eigenstate is one pure tone. (Note the type: is always a distribution, never a scalar.)

2. The moments are free

A distribution has moments. The -th moment of is its average of ; let the delta functions do the integral and something nice happens:

The -th moment of the spectrum is just apply to a total of times, then dot with — no eigenvalues, no diagonalization, only matrix–vector products. The moments peel off the distribution's shape one feature at a time: (it is normalized), is the mean (its center of mass), and the first two together give the variance — the width:

Predict, then reveal: when is the width exactly zero, and what does that say about ?

Zero variance means the distribution has no spread — all its weight is on a single point. By §1 that happens exactly when is an eigenstate of : collapses to one spike, so . The energy variance is the cleanest test for "is this an eigenstate?"

3. Lanczos builds the orthogonal polynomials of S

Computing from its moments is the classical moment problem, and the tool that solves it is orthogonal polynomials. Lanczos is exactly that tool in disguise. Run Gram–Schmidt on the Krylov sequence . Because is Hermitian you get a three-term recurrence, and the recurrence coefficients fill a tridiagonal Jacobi matrix:

The -th Lanczos vector is , where is the degree- orthonormal polynomial with respect to the measure . The Lanczos 's and 's are nothing but the recurrence coefficients of those polynomials. Lanczos never "knew" it was doing classical orthogonal-polynomial theory on the spectral measure — it just was.

4. It is Gaussian quadrature

Diagonalize the small matrix : eigenvalues , eigenvectors . Then

and this is not an approximation — it is the -point Gauss quadrature rule for the measure . By the defining property of Gauss quadrature, it is exact for every polynomial up to degree , which means it reproduces the first moments exactly. So:

Lanczos steps — about matrix–vector products — give the unique -pole spectrum that matches the true spectrum through moments. Nothing with that many parameters does better. It also explains why Lanczos pins down the extremal eigenvalues first: the extremes dominate the high moments, and quadrature spends its accuracy exactly where the moments are largest.

5. The resolvent is a continued fraction

Your Green's function equals the top-left element of , and the element of a tridiagonal inverse is a continued fraction in the Lanczos coefficients:

Truncating at level is simultaneously the Gauss quadrature above, the Padé approximant of , and the recursion method (Haydock) for the density of states — the same truncation seen three ways. The kernel polynomial method is the cousin where you expand in Chebyshev moments instead of these power moments: same philosophy, different orthogonal family.

Why this is the spine

Every spectral task is now one move — project onto a Krylov space, read the Jacobi matrix:

Reproduce cold. Two steps carry the whole result; do them by hand:
  1. Show the element of is that continued fraction. One cofactor expansion of a tridiagonal matrix — do it for the case and read off the pattern. This is the load-bearing step.
  2. Count parameters: Lanczos coefficients are fixed by moments. That parameter count is the moment-matching theorem.