Why does the random shift in the QR eigenvalue algorithm work in the non-symmetric case over the complex field
Imported on
The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.
Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.
Problem statement
I tried to implement the QR algorithm for non-symmetric matrices with complex entries to show to my students. The main part of the implementation was standard: the Householder reduction to the Hessenberg form, complex Given's rotations, etc. So far so good.
Now, if you do it without shifts, it will never converge if two eigenvalues have equal absolute values (which is not such an exceptional case: most real-valued matrices have conjugate pairs, the companion matrices of polynomials like have all their roots on the circle, etc., etc.). So, I needed to shift in some intelligent way.
Both Raleigh (shifting by the bottom right element) and Wilkinson (shifting by an eigenvalue of the bottom right matrix) fail: it is fairly easy to create the matrix (say, the same companion matrix of , but not only) for which the complex QR algorithm using these shifts will cycle or converge to a matrix that is not upper triangular, but has some blocks instead. No clever modification of those seemed to help either.
So, my solution was to follow my favorite general principle: "If you don't know how to do something, do it at random". My shift for a single run is just a uniform complex number in the bottom Gershgorin disk (centered at and of radius ). It seems to work like a charm (I couldn't create a matrix for which it would fail and it requires about 5 QR iterations per eigenvalue with relative precision for the below the diagonal values in the "reasonable" cases), but for the life of mine I cannot figure out why.
All literature I know just discusses why guessing a shift sufficiently close to a true eigenvalue accelerates the convergence, and that I understand. However, in this case, one can start with small eigenvalues and have quite large below diagonal entries, so at least in the beginning I do not see why it is any better than shifting by a totally random number at each iteration, which would not achieve much (or would it?). So, two questions:
What is the usually recommended shift for the complex case?
Why does my home-made contraption work?
Statement and context adapted from MathOverflow · fedja
CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history
Sources and original status
- MathOverflow Status in source : unanswered at collection
Last activity on the question :
Coverage, sources and method
This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.
This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.
Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.
Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.
Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.
OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.
Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.
Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.
- Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18,857 · CC BY-SA 4.0
- MathOverflow · 19,035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)