advanced31 min studyLesson 306 in Mathematics

Krylov subspaces and Arnoldi

Build an orthonormal basis from repeated matrix actions and retain the small projected problem.

On this page

What you’ll understand

  • Construct the first Arnoldi basis vectors and Hessenberg coefficients.
  • Interpret breakdown as an invariant-subspace event in exact arithmetic.
  • Explain why orthogonalization and storage costs matter beyond matrix-vector products.

A huge matrix may be available only through a routine that multiplies it by a vector. Krylov methods exploit that interface by searching spaces generated from one starting direction and its successive matrix images. Raw powers quickly become numerically redundant, so an orthonormal basis is crucial. Arnoldi builds that basis while recording how the matrix acts on it, reducing a large operation to a small Hessenberg relation used by solvers and eigensolvers.

Repeated actions generate a search space, not a stable basis automatically

For a square matrix A and nonzero starting residual r₀, the kth Krylov space is the span of r₀, Ar₀, and successive powers through A to the power k−1 applied to r₀. A correction chosen from this space is a polynomial in A acting on r₀. The space depends on the starting vector as well as the matrix: an eigenvector seed produces only one dimension, even for a large matrix with many eigenvalues. Changing the right-hand side can therefore change the entire convergence history.

Explicitly storing raw powers is usually a poor numerical strategy. Dominant directions can overwhelm weak ones, making successive vectors nearly parallel and difficult to distinguish in finite precision. Arnoldi instead starts with v₁=r₀/‖r₀‖ and orthogonalizes each new matrix image against the existing basis. The intended columns satisfy VᵀV=I. That property is not merely cosmetic; it makes coefficient norms match physical vector norms and supports the small least-squares residual formulas used later.

Kk(A,r0)=span⁡{r0,Ar0,…,Ak−1r0},AVk=VkHk+hk+1,kvk+1ekT\mathcal K_k(A,r_0)=\operatorname{span}\{r_0,Ar_0,\ldots,A^{k-1}r_0\},\qquad AV_k=V_kH_k+h_{k+1,k}v_{k+1}e_k^{\mathsf T}
In exact arithmetic the columns of Vₖ are orthonormal. Hₖ is upper Hessenberg, and the final term records the part of the last matrix image outside the current search space.↔ Scroll wide equations horizontally.

Orthogonalization produces both a new direction and useful coefficients

At step j, compute w=Avⱼ. For each existing basis vector vᵢ, form its inner product with w, store that coefficient, and subtract the corresponding projection. The norm of the final w is hⱼ₊₁,ⱼ; if it is nonzero, divide by it to obtain the next unit vector. The resulting relation has no coefficients below the first subdiagonal because each new image lies in the span of the old basis plus one new direction. An additional orthogonalization pass can reduce numerical loss of orthogonality.

In exact arithmetic, a zero final norm means the current space is invariant under A. No new direction can be generated from that seed. This is often called a happy breakdown when it allows the desired problem to be solved within the invariant subspace, but the interpretation depends on the problem. For a nonsingular linear system with the initial residual as seed, exact residual minimization can then reach the solution. For a singular or inconsistent system, invariant-subspace termination alone need not mean zero residual. A very small floating-point norm also needs a tolerance-aware interpretation rather than division without checking.

w=Avj,hij=viTw,w←w−hijvi (i=1,…,j),hj+1,j=∥w∥2w=Av_j,\qquad h_{ij}=v_i^{\mathsf T}w,\quad w\leftarrow w-h_{ij}v_i\ (i=1,\ldots,j),\qquad h_{j+1,j}=\lVert w\rVert_2
This describes modified Gram–Schmidt Arnoldi sequentially: each coefficient uses the updated w. Reorthogonalization may be needed in finite precision.↔ Scroll wide equations horizontally.

The best subspace is constrained by memory and communication

Each new Arnoldi step uses one matrix-vector product, but also inner products and updates against every stored basis vector. Storage grows with the number of vectors, and orthogonalization work grows with the basis size. On distributed hardware, global reductions for inner products may cost more than local arithmetic. Restarting limits these costs by discarding or compressing the basis, but can lose valuable polynomial information. A shorter memory footprint can therefore change convergence, not just implementation efficiency.

The small Hessenberg matrix is useful for several different algorithms. GMRES uses the extended Arnoldi relation to minimize a residual norm, while a Ritz eigensolver diagonalizes a projected matrix. These are distinct objectives built on the same basis construction. Verify both orthogonality and the Arnoldi relation when diagnosing an implementation. A plausible projected eigenvalue or a decreasing recursively updated residual can be misleading if the basis has lost orthogonality substantially. Large-scale methods still depend on trustworthy small linear algebra.

An invariant space discovered after two actions

Apply Arnoldi to A=[[2,1],[1,2]] with starting residual r₀=(1,0). Compute the first two basis vectors and projected matrix.

  1. The normalized seed is v₁=e₁. Its matrix image is (2,1), so h₁₁=2; subtracting 2e₁ leaves e₂, giving h₂₁=1 and v₂=e₂.

  2. The next image is Av₂=(1,2). Removing its e₁ coefficient 1 and e₂ coefficient 2 leaves zero, so no third basis vector is generated.

  3. Thus V₂=I and H₂=[[2,1],[1,2]]. The final coupling is zero, and the two-dimensional Krylov space is invariant. Direct multiplication verifies AV₂=V₂H₂.

The result

The projected problem is already the full two-dimensional action. Zero coupling is meaningful exact termination rather than an instruction to divide by zero.

Explore the model

Interactive lab

Interactive lab · matrix

Predict whether a seed creates another direction

Reset, set a=1 and b=1. For the seed e₂, predict Ae₂=(1,1), which is not parallel to e₂, so a second Krylov direction is available. Compare a fresh run with Reset, a=1, b=0: Ae₂=e₂ and the seeded space stays one-dimensional. The instrument shows this selected map, not the Arnoldi orthogonalization or its rounding errors.

Predict whether a seed creates another directionThe selected matrix is A = [[a,b],[0,1]]. Playback interpolates geometry between the identity and A; readouts always describe A. Its determinant is a and its singular values come from AᵀA. Positive a makes every supported matrix invertible. This two-dimensional family is not a general eigensolver or a learned network. Current readings: Area scale · det A: 1.4; Singular values · σmax, σmin: 1.597, 0.876; Condition number · κ₂(A): 1.823. All parameters are adjustable with the labeled controls below.Matrix A with first row 1.4, 0.6 and second row zero, one; display interpolates between identity and A while final determinant remains 1.4.−4−2024−2−1012x · equal geometric scaleyA = [ 1.4 0.6 ; 0 1 ]Display blend: 0% · final values below
Interpolated geometryOriginal unit squareSelected final transform
Area scale · det A
1.4
Singular values · σmax, σmin
1.597, 0.876
Condition number · κ₂(A)
1.823
t = 0 s

The selected matrix is A = [[a,b],[0,1]]. Playback interpolates geometry between the identity and A; readouts always describe A. Its determinant is a and its singular values come from AᵀA. Positive a makes every supported matrix invertible. This two-dimensional family is not a general eigensolver or a learned network. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA Krylov space depends on how the selected matrix acts on the particular seed.

Check your understanding

In exact Arnoldi arithmetic, what does hₖ₊₁,ₖ=0 mean?

Try it yourself

For A=diag(1,2,3) and normalized seed v₁=(1,1,1)/√3, compute h₁₁, h₂₁, and v₂.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Subtract the projection of Av₁ onto v₁ before normalizing the remainder.

Compare with the solution

The first coefficient is h₁₁=(1+2+3)/3=2. The remainder is (−1,0,1)/√3, whose norm is √(2/3), so h₂₁=√(2/3). Normalization gives v₂=(−1,0,1)/√2. Its dot product with v₁ is zero and its norm is one, providing two independent checks on the construction. The projected coefficient is a Rayleigh quotient of the seed, not necessarily an eigenvalue of A.

Take it with you

  • Krylov spaces depend on both a matrix and a starting vector.
  • Arnoldi records orthonormal basis geometry in a small Hessenberg relation.
  • Breakdown, reorthogonalization, storage, and restarting affect the meaning and reliability of the computation.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.