For , and , the Krylov subspace is
The spaces are nested, , and they stop growing once , which happens for some ; then is -invariant. Building them needs only the map , which is why Krylov methods suit large sparse matrices.
The Arnoldi iteration computes an orthonormal basis of by Gram–Schmidt on , and is upper Hessenberg. For Hermitian it is tridiagonal, the recurrence has three terms, and the method is the Lanczos iteration; the eigenvalues of the tridiagonal matrix (Ritz values) approximate extreme eigenvalues of well after few steps. A Krylov method picks an approximation , , by an optimality condition: conjugate gradients minimises the -norm of the error for positive definite , and GMRES minimises the residual. Their convergence is a polynomial approximation problem on the spectrum of . In floating point the Lanczos vectors lose orthogonality, which must be managed by reorthogonalisation or analysed explicitly. See lectures 32–38 of Trefethen and Bau.