Graeffe’s Method
Source inspiration: (Mathew 2000-2019).
Description
Graeffe’s method, independently discovered by Karl Heinrich Graeffe (1799–1873), Germinal Pierre Dandelin (1794–1847), and Nikolai Ivanovich Lobachevsky (1792–1856), is a root-finding algorithm specifically for polynomials. Unlike iterative methods such as Newton-Raphson that track a single root, Graeffe’s method finds all roots simultaneously by transforming the polynomial into one whose roots are more widely separated, then reading off approximations directly from the coefficients.
Root Squaring
The core idea is the root-squaring transformation. Given a degree-\(n\) polynomial
\[p(x) = a_n x^n + a_{n-1} x^{n-1} + \cdots + a_0\]
with roots \(r_1, r_2, \ldots, r_n\), define \(p_1\) to be the polynomial of degree \(n\) whose roots are \(r_1^2, r_2^2, \ldots, r_n^2\). This is constructed via
\[p_1(x) = (-1)^n \, p\!\left(\sqrt{x}\right) p\!\left(-\sqrt{x}\right).\]
Applying this transformation \(m\) times yields a polynomial \(p_m\) with roots \(r_1^{2^m}, r_2^{2^m}, \ldots, r_n^{2^m}\). Even if the original roots are only mildly different in magnitude, after enough squarings the roots of \(p_m\) become widely separated, because the ratios are raised to the power \(2^m\).
Separated Root Theorem
Once the roots are sufficiently separated in magnitude — meaning \(|r_1^{2^m}| \gg |r_2^{2^m}| \gg \cdots \gg |r_n^{2^m}|\) — the separated root theorem (Vieta’s formulas applied term by term) gives
\[|r_k|^{2^m} \approx \left|\frac{c_{n-k}}{c_{n-k+1}}\right|, \qquad k = 1, 2, \ldots, n,\]
where \(c_j\) is the coefficient of \(x^j\) in \(p_m\). The magnitude of each original root is then recovered as
\[|r_k| \approx \left|\frac{c_{n-k}}{c_{n-k+1}}\right|^{1/2^m}.\]
For real roots, the sign of each root is chosen by checking which of \(p(+|r_k|)\) and \(p(-|r_k|)\) is (nearly) zero. Complex roots need the modified formulas mentioned below.
Convergence and Limitations
For polynomials with real roots of distinct magnitudes, the approximation error decreases quadratically with each root-squaring step — the number of accurate digits roughly doubles per iteration (similar to Newton-Raphson). Case 1 shows this from \(m = 3\) on.
However, the method has a serious practical limitation: the coefficients of \(p_m\) grow doubly exponentially in \(m\) (for separated roots, \(|c_{n-k}/c_n| \approx (|r_1| \cdots |r_k|)^{2^m}\)), rapidly exceeding the range of standard floating-point arithmetic. Most software cannot apply more than a handful of iterations before overflow. The method was popular in the 19th and early 20th centuries when it was implemented with extended-precision hand calculation or symbolic algebra systems; today it is primarily of historical and educational interest.
Special cases — double roots, complex conjugate root pairs, roots equal in magnitude — require modified formulas and careful coefficient analysis. Case 2 shows one of these, a double root: as with Newton-Raphson at a multiple root, its two estimates converge only linearly, their error roughly halving at each step from \(m = 2\) on, while the two simple roots still converge quadratically.
Among the other root finders on this site, Newton-Raphson refines one root from a starting guess, Lin-Bairstow finds real quadratic factors, and so complex-conjugate pairs, in real arithmetic, and the Madsen-Reid method finds the roots one at a time by safeguarded Newton steps and deflation.
Animations
Each animation below shows how the Separated Root Theorem estimates of each root’s magnitude evolve over successive Graeffe squaring iterations \(m = 0, 1, 2, \ldots\). Dashed horizontal lines mark the true root magnitudes; colored traces show the estimates converging toward (or slowly approaching) those targets as \(m\) increases.
Julia source scripts that generated these animations are linked under each case. The scripts carry out the root-squaring step on the coefficients in exact integer arithmetic, because in double precision the coefficients overflow at \(m = 8\): the largest coefficient of \(p_8\) is about \(2.2 \times 10^{353}\) in Case 1 and \(8.6 \times 10^{434}\) in Case 2.
Case 1 — Distinct real roots, \(f(x) = (x+1)(x-2)(x+3)(x-4)\), true \(|r_k| \in \{1,2,3,4\}\)
Behavior: All four estimates converge quadratically: from \(m = 3\) on, the number of correct digits in each estimate roughly doubles at every step, because \(|r_k/r_{k+1}|^{2^m} \to \infty\) doubly exponentially, pushing the coefficient ratios cleanly toward the individual root magnitudes. The first steps are irregular: the \(r_2\) estimate is accidentally close at \(m = 1\) (3.017) and moves away to 2.941 at \(m = 2\) before converging. Even though the roots are initially close (\(|r_1|/|r_2| = 4/3\)), a few squaring steps are enough to separate them.

Case 2 — Repeated real root at \(x = 5\), \(f(x) = (x-1)(x+2)(x-5)^2\), true \(|r_k| \in \{1,2,5,5\}\)
Behavior: The two estimates for the double root (both targeting \(|r| = 5\)) converge linearly — from \(m = 2\) on, the error is roughly halved each iteration rather than squared — because the separated-root condition \(|r_k|^{2^m} \gg |r_{k+1}|^{2^m}\) is never satisfied when two roots share the same magnitude. The two simple roots (\(|r| = 1\) and \(|r| = 2\)) converge quadratically as usual. This contrast in convergence rate is the signature of two real roots of equal magnitude: here a repeated root, and a real pair \(\pm r\) behaves the same way because one squaring turns it into a double root. A complex-conjugate pair also has two roots of equal magnitude but does not give this pattern: for roots \(3 \pm 4i\), 2 and 1 (magnitudes 5, 5, 2, 1, as here), the top two estimates cross back and forth over 5 and their error does not halve each step; it grows from \(m = 4\) to \(m = 5\) and from \(m = 7\) to \(m = 8\).
