Numerical Methods

All books

Eigenvalues

You have one of these when you ask which values are allowed — which frequencies, which loads, which energies — rather than what any one of them is.

Eigenvalues, not parabolic. The answer is a set of allowed values, fixed once the matrix is written. A parabolic answer moves forward in time.

What you are modelling

A system with patterns in it. Most patterns get distorted or decayed by the system. A few come back unchanged, scaled by a number. Those numbers are the answer, and they decide what the system is like: how it rings, when it buckles, whether it is stable.

The model you write down

Ax=λx,A x = \lambda x ,

or, when two matrices are involved because one of them carries the mass or the metric,

Ax=λBx.A x = \lambda B x .

The vector xx is the pattern. The scalar λ\lambda is what the system does to it.

What it becomes on a computer

Worked number. The matrix [2112]\begin{bmatrix}2&1\\1&2\end{bmatrix} has eigenvalues 11 and 33: subtract λ\lambda from the diagonal and set the determinant to zero.

A matrix, usually large and sparse, and usually not written down on purpose. It arrives from somewhere else: a discretised structure, a linearisation about an equilibrium, a network of links. So the method depends on what you can do with the matrix, not on its entries. A Krylov method builds a small subspace from repeated products AvAv and solves the eigenvalue problem inside that subspace.

The gap between the two eigenvalues is the speed. The figure multiplies a vector by a symmetric matrix and draws it turning toward the dominant eigenvector. The ratio of the second eigenvalue to the first is the factor by which the wrong direction shrinks each step.

Figure 1

The signature

The answers are a discrete set, not a curve. The question is usually local — the first three modes, the smallest one, the one nearest zero — and that locality is what makes the problem tractable on a matrix with a million rows.

Eigenvalues are also the standard way a stability question is asked: perturb the equilibrium, linearise, and look at the sign of the real part.

Flags that matter here

Techniques

Every method named here is in Methods, A to Z, with its price and what it will not do.

Start from the model you have. Each row is a property of the model in front of you, the methods that fit it, and what the fit costs. The method-keyed table below is the same list sorted by name.

what your model is the methods that fit the price
the largest eigenvalue, and a matrix you can multiply Power iteration one eigenvalue, and it may converge slowly
the one nearest a value you choose Inverse iteration, shift-invert a factorisation per shift
symmetric, and several eigenvalues Lanczos, subspace iteration reorthogonalisation is the cost
non-symmetric Arnoldi, QR algorithm storage grows with the basis
generalised, or a singular BB QZ cubic, and it is dense
a non-linear eigenvalue, or a large sparse one Jacobi–Davidson, contour integral (FEAST) a solve inside every step
technique what it does when it wins when it is the wrong tool
Power iteration Multiplies repeatedly; finds the largest One dominant eigenvalue, cheap multiply You want the smallest, or two eigenvalues are close
Inverse iteration, shift-invert Multiplies by (A−σI)−1(A-\sigma I)^{-1} An eigenvalue near σ\sigma Each step needs a linear solve
Lanczos Krylov subspace, symmetric matrices A few extreme eigenvalues, large sparse AA Non-symmetric matrices
Arnoldi Krylov subspace, general matrices A few extreme eigenvalues, non-symmetric Memory: it stores every vector unless restarted
QR algorithm Similarity transformations to triangular form All eigenvalues of a dense matrix Large sparse problems
QZ Generalised problem Ax=λBxAx=\lambda Bx Singular or ill-conditioned BB Large sparse problems; it is dense
Jacobi–Davidson Subspace correction aimed at one eigenvalue Interior eigenvalues, non-linear problems You need many eigenvalues
Subspace iteration Several vectors at once A block of dominant eigenvalues Interior eigenvalues
Contour integral (FEAST) Integrates around a region of the complex plane All eigenvalues in a window Very large problems without a good solver

Systems that live here

What goes wrong

symptom cause fix
A complex eigenvalue arrives and the code assumed real The matrix is non-symmetric Complex arithmetic, or work with the real block
The smallest eigenvalue comes out wrong Power iteration converges to the largest Shift-invert about zero
A known mode is missing The start vector was orthogonal to it Try several starts; use a block method
Spurious eigenvalues near a boundary The discretisation, not the physics Refine, and check convergence of each eigenvalue
The solver reports an infinite eigenvalue A generalised problem with singular BB That is a constraint; use QZ and read it as such

Used in this collection

Back to the map: the nine kinds puts this class among the other eight.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.