GMRES and nonnormality
Minimize residuals over Krylov spaces and see why eigenvalues alone do not determine convergence.
On this page
The question for today
What you’ll understand
- Form the small Arnoldi least-squares problem used by GMRES.
- Compute a first-step residual for a nonnormal shear.
- Distinguish residual minimization, forward accuracy, and restart effects.
A nonsymmetric system may lack the positive energy geometry required by CG. GMRES instead chooses the smallest Euclidean residual available in a growing Krylov correction space. This clear optimization principle does not imply a simple eigenvalue-only convergence story. Nonnormal matrices can have strongly interacting directions even when all eigenvalues look benign. The starting residual, basis quality, preconditioning side, and restart policy all shape what a residual history means.
Arnoldi converts a large residual minimization into a small one
Start from x₀ with nonzero residual r₀=b−Ax₀ and let β be its norm. Arnoldi builds an orthonormal Vₖ₊₁ with first column r₀/β and the relation AVₖ=Vₖ₊₁Hbarₖ. A correction Vₖy then has residual Vₖ₊₁(βe₁−Hbarₖy). Orthogonality makes the large residual norm equal to the small coefficient residual norm. GMRES solves that small least-squares problem, commonly by updating a QR factorization, and reconstructs the corresponding iterate.
In exact arithmetic with unrestarted GMRES, successive correction spaces are nested, so the minimum residual norm cannot increase. This statement is about residuals, not necessarily the forward solution error, and it does not demand a decrease at every step. For nonsingular A, full-dimensional exact GMRES reaches the solution in at most n steps, possibly earlier. A zero initial residual should stop immediately. For singular or inconsistent systems, the same universal zero-residual conclusion is unavailable, so breakdown and convergence require a separate analysis.
Nonnormality makes eigenvalue-only intuition incomplete
A real matrix is normal when it commutes with its transpose; over complex scalars use the conjugate transpose. A normal matrix has an orthonormal eigenbasis over the complex numbers, making polynomial norms directly controlled by values on its eigenvalues. A nonnormal matrix need not have such a basis, and may even be defective. Its off-diagonal coupling can make a polynomial of A large despite small polynomial values at the eigenvalues. A repeated eigenvalue therefore does not imply that the matrix acts like a scalar identity.
The shear [[1,s],[0,1]] has both eigenvalues equal to one for every s, but a residual seeded in the second coordinate sees the coupling s. One GMRES step can leave almost the entire residual when s is large, while the identity solves every right-hand side in one step. A seed in the first coordinate still solves the shear immediately. Thus nonnormality and right-hand-side geometry both matter. This example does not establish a universal slow-convergence rule for all nonnormal matrices; it refutes an eigenvalues-alone prediction.
Preconditioning and restarting change what is minimized
Left preconditioning solves a system whose residual is M inverse times the original residual, so the usual Euclidean GMRES minimization concerns that transformed quantity. A small preconditioned residual need not mean the original residual is equally small. Right preconditioning instead changes the correction variables while retaining the original residual in the minimization. Neither is uniformly superior; the distinction must be explicit when interpreting convergence plots. A changing preconditioner may require a flexible algorithm rather than applying the fixed-preconditioner formulas unchanged.
Restarted GMRES discards its accumulated basis after a prescribed number of steps and begins a new cycle from the current residual. Within each exact cycle it still minimizes over its available correction space, but the globally optimal unrestarted polynomial history has been lost. Restarting can cause stagnation even when full GMRES would finish quickly. Finite-precision orthogonality loss and recursively tracked residual gaps add further diagnostic concerns. Check a true scaled residual and relate it to conditioning before treating a visually small curve as a forward-accuracy certificate.
Work it through
Two eigenvalues equal one, but one step is not enough
Run the first GMRES step for A=[[1,2],[0,1]], b=e₂, and x₀=0. Compare with the identity matrix.
The first correction lies in span(e₂), so write x=αe₂. Since Ae₂=(2,1), the squared residual is 4α²+(1−α)².
Differentiating gives 10α−2=0, hence α=1/5. The residual is (−2/5,4/5), with norm √(20/25)=2/√5≈0.8944.
For the identity, α=1 gives residual zero immediately. For the shear, the second Krylov direction adds e₁, and the full two-dimensional space contains the exact solution (−2,1), reached by unrestarted exact GMRES.
Identical eigenvalue lists do not imply identical first-step GMRES convergence. The off-diagonal coupling and residual direction are decisive here.
The living notebook
Explore the model
Interactive lab · matrix
Keep eigenvalues fixed while changing coupling
Reset, set a=1 and b=0, predicting identity action and condition 1. For a fresh run, Reset, set a=1 and b=2, predicting eigenvalues still 1 and 1 but a sheared second basis vector and condition near 5.828. Use the lesson's formula to predict first-step residual 2/√5 for seed e₂. Playback shows geometry, not a GMRES iteration or residual history.
- Area scale · det A
- 1.4
- Singular values · σmax, σmin
- 1.597, 0.876
- Condition number · κ₂(A)
- 1.823
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 matrix can keep its eigenvalues while changing the coupling seen by a Krylov method.
Pause & reason
Check your understanding
Your turn
Try it yourself
For A=[[1,10],[0,1]], compare the first GMRES step from zero for b=e₁ and b=e₂.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
The first seed is an eigenvector. For the second seed, minimize ‖e₂−α(10,1)‖.
Compare with the solution
For b=e₁, Ae₁=e₁, so choosing x=e₁ solves the system in one step. For b=e₂, the minimizing coefficient is α=1/101 and residual is (−10/101,100/101), with norm 10/√101≈0.9950. The same nonnormal matrix therefore gives exact one-step termination or almost no first-step reduction depending on the right-hand side. Its dimension still guarantees completion by two steps in exact unrestarted arithmetic.
Keep the idea
Take it with you
- GMRES minimizes a residual norm over its available Krylov corrections.
- Nonnormal coupling and the starting residual matter beyond the eigenvalue list.
- Preconditioning side, restarting, and finite precision change convergence interpretation.
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.