# Graeffe's method

In mathematics, Graeffe's method or Dandelin–Lobachesky–Graeffe method is an algorithm for finding all of the roots of a polynomial. It was developed independently by Germinal Pierre Dandelin in 1826 and Lobachevsky in 1834. In 1837 Karl Heinrich Gräffe also discovered the principal idea of the method.[1] The method separates the roots of a polynomial by squaring them repeatedly. This squaring of the roots is done implicitly, that is, only working on the coefficients of the polynomial. Finally, Viète's formulas are used in order to approximate the roots.

## Dandelin–Graeffe iteration

Let p(x) be a polynomial of degree n

${\displaystyle p(x)=(x-x_{1})\cdots (x-x_{n}).}$

Then

${\displaystyle p(-x)=(-1)^{n}(x+x_{1})\cdots (x+x_{n}).}$

Let q(x) be the polynomial which has the squares ${\displaystyle x_{1}^{2},\cdots ,x_{n}^{2}}$ as its roots,

${\displaystyle q(x)=\left(x-x_{1}^{2}\right)\cdots \left(x-x_{n}^{2}\right).}$

Then we can write:

{\displaystyle {\begin{aligned}q(x^{2})&=\left(x^{2}-x_{1}^{2}\right)\cdots \left(x^{2}-x_{n}^{2}\right)\\&=(x-x_{1})(x+x_{1})\cdots (x-x_{n})(x+x_{n})\\&=\left\{(x-x_{1})\cdots (x-x_{n})\right\}\times \left\{(x+x_{1})\cdots (x+x_{n})\right\}\\&=p(x)\times \left\{(-1)^{n}(-x-x_{1})\cdots (-x-x_{n})\right\}\\&=p(x)\times \left\{(-1)^{n}p(-x)\right\}\\&=(-1)^{n}p(x)p(-x)\end{aligned}}}

q(x) can now be computed by algebraic operations on the coefficients of the polynomial p(x) alone. Let:

{\displaystyle {\begin{aligned}p(x)&=x^{n}+a_{1}x^{n-1}+\cdots +a_{n-1}x+a_{n}\\q(x)&=x^{n}+b_{1}x^{n-1}+\cdots +b_{n-1}x+b_{n}\end{aligned}}}

then the coefficients are related by

${\displaystyle b_{k}=(-1)^{k}a_{k}^{2}+2\sum _{j=0}^{k-1}(-1)^{j}\,a_{j}a_{2k-j},\qquad a_{0}=b_{0}=1.}$

Graeffe observed that if one separates p(x) into its odd and even parts:

${\displaystyle p(x)=p_{e}\left(x^{2}\right)+xp_{o}\left(x^{2}\right),}$

then one obtains a simplified algebraic expression for q(x):

${\displaystyle q(x)=(-1)^{n}\left(p_{e}(x)^{2}-xp_{o}(x)^{2}\right).}$

This expression involves the squaring of two polynomials of only half the degree, and is therefore used in most implementations of the method.

Iterating this procedure several times separates the roots with respect to their magnitudes. Repeating k times gives a polynomial of degree n:

${\displaystyle q^{k}(y)=y^{n}+{a^{k}}_{1}\,y^{n-1}+\cdots +{a^{k}}_{n-1}\,y+{a^{k}}_{n}\,}$

with roots

${\displaystyle y_{1}=x_{1}^{2^{k}},\,y_{2}=x_{2}^{2^{k}},\,\dots ,\,y_{n}=x_{n}^{2^{k}}.}$

If the magnitudes of the roots of the original polynomial were separated by some factor ${\displaystyle \rho >1}$, that is, ${\displaystyle |x_{k}|\geq \rho |x_{k+1}|}$, then the roots of the k-th iterate are separated by a fast growing factor

${\displaystyle \rho ^{2^{k}}\geq 1+2^{k}(\rho -1)}$.

## Classical Graeffe's method

Next the Vieta relations are used

{\displaystyle {\begin{aligned}a_{\;1}^{k}&=-(y_{1}+y_{2}+\cdots +y_{n})\\a_{\;2}^{k}&=y_{1}y_{2}+y_{1}y_{3}+\cdots +y_{n-1}y_{n}\\&\;\vdots \\a_{\;n}^{k}&=(-1)^{n}(y_{1}y_{2}\cdots y_{n}).\end{aligned}}}

If the roots ${\displaystyle x_{1},\dots ,x_{n}}$ are sufficiently separated, say by a factor ${\displaystyle \rho >1}$, ${\displaystyle |x_{m}|\geq \rho |x_{m+1}|}$, then the iterated powers ${\displaystyle y_{1},y_{2},...,y_{n}}$ of the roots are separated by the factor ${\displaystyle \rho ^{2^{k}}}$, which quickly becomes very big.

The coefficients of the iterated polynomial can then be approximated by their leading term,

${\displaystyle a_{\;1}^{k}\approx -y_{1}}$
${\displaystyle a_{\;2}^{k}\approx y_{1}y_{2}}$ and so on,

implying

${\displaystyle y_{1}\approx -a_{\;1}^{k},\;y_{2}\approx -a_{\;2}^{k}/a_{\;1}^{k},\;\dots \;y_{n}\approx -a_{\;n}^{k}/a_{\;n-1}^{k}.}$

Finally, logarithms are used in order to find the absolute values of the roots of the original polynomial. These magnitudes alone are already useful to generate meaningful starting points for other root-finding methods.

To also obtain the angle of these roots, a multitude of methods has been proposed, the most simple one being to successively compute the square root of a (possibly complex) root of ${\displaystyle q^{m}(y)}$, m ranging from k to 1, and testing which of the two sign variants is a root of ${\displaystyle q^{m-1}(x)}$. Before continuing to the roots of ${\displaystyle q^{m-2}(x)}$, it might be necessary to numerically improve the accuracy of the root approximations for ${\displaystyle q^{m-1}(x)}$, for instance by Newton's method.

Graeffe's method works best for polynomials with simple real roots, though it can be adapted for polynomials with complex roots and coefficients, and roots with higher multiplicity. For instance, it has been observed[2] that for a root ${\displaystyle x_{\ell +1}=x_{\ell +2}=\dots =x_{\ell +d}}$ with multiplicity d, the fractions

${\displaystyle \left|{\frac {(a_{\;\ell +i}^{m-1})^{2}}{a_{\;\ell +i}^{m}}}\right|}$ tend to ${\displaystyle {\binom {d}{i}}}$

for ${\displaystyle i=0,1,\dots ,d}$. This allows to estimate the multiplicity structure of the set of roots.

From a numerical point of view, this method is problematic since the coefficients of the iterated polynomials span very quickly many orders of magnitude, which implies serious numerical errors. One second, but minor concern is that many different polynomials lead to the same Graeffe iterates.

## Tangential Graeffe method

This method replaces the numbers by truncated power series of degree 1, also known as dual numbers. Symbolically, this is achieved by introducing an "algebraic infinitesimal" ${\displaystyle \varepsilon }$ with the defining property ${\displaystyle \varepsilon ^{2}=0}$. Then the polynomial ${\displaystyle p(x+\varepsilon )=p(x)+\varepsilon \,p'(x)}$ has roots ${\displaystyle x_{m}-\varepsilon }$, with powers

${\displaystyle (x_{m}-\varepsilon )^{2^{k}}=x_{m}^{2^{k}}-\varepsilon \,{2^{k}}\,x_{m}^{2^{k}-1}=y_{m}+\varepsilon \,{\dot {y}}_{m}.}$

Thus the value of ${\displaystyle x_{m}}$ is easily obtained as fraction ${\displaystyle x_{m}=-{\tfrac {2^{k}\,y_{m}}{{\dot {y}}_{m}}}.}$

This kind of computation with infinitesimals is easy to implement analogous to the computation with complex numbers. If one assumes complex coordinates or an initial shift by some randomly chosen complex number, then all roots of the polynomial will be distinct and consequently recoverable with the iteration.

## Renormalization

Every polynomial can be scaled in domain and range such that in the resulting polynomial the first and the last coefficient have size one. If the size of the inner coefficients is bounded by M, then the size of the inner coefficients after one stage of the Graeffe iteration is bounded by ${\displaystyle nM^{2}}$. After k stages one gets the bound ${\displaystyle n^{2^{k}-1}M^{2^{k}}}$ for the inner coefficients.

To overcome the limit posed by the growth of the powers, Malajovich–Zubelli propose to represent coefficients and intermediate results in the kth stage of the algorithm by a scaled polar form

${\displaystyle c=\alpha \,e^{-2^{k}\,r},}$

where ${\displaystyle \alpha ={\frac {c}{|c|}}}$ is a complex number of unit length and ${\displaystyle r=-2^{-k}\log |c|}$ is a positive real. Splitting off the power ${\displaystyle 2^{k}}$ in the exponent reduces the absolute value of c to the corresponding dyadic root. Since this preserves the magnitude of the (representation of the) initial coefficients, this process was named renormalization.

Multiplication of two numbers of this type is straightforward, whereas addition is performed following the factorization ${\displaystyle c_{3}=c_{1}+c_{2}=|c_{1}|\cdot \left(\alpha _{1}+\alpha _{2}{\tfrac {|c_{2}|}{|c_{1}|}}\right)}$, where ${\displaystyle c_{1}}$ is chosen as the larger of both numbers, that is, ${\displaystyle r_{1}. Thus

${\displaystyle \alpha _{3}={\tfrac {s}{|s|}}}$ and ${\displaystyle r_{3}=r_{1}+2^{-k}\,\log {|s|}}$ with ${\displaystyle s=\alpha _{1}+\alpha _{2}\,e^{2^{k}(r_{1}-r_{2})}.}$

The coefficients ${\displaystyle a_{0},a_{1},\dots ,a_{n}}$ of the final stage k of the Graeffe iteration, for some reasonably large value of k, are represented by pairs ${\displaystyle (\alpha _{m},r_{m})}$, ${\displaystyle m=0,\dots ,n}$. By identifying the corners of the convex envelope of the point set ${\displaystyle \{(m,r_{m}):\;m=0,\dots ,n\}}$ one can determine the multiplicities of the roots of the polynomial. Combining this renormalization with the tangent iteration one can extract directly from the coefficients at the corners of the envelope the roots of the original polynomial.