Lin-Bairstow Method

← Numerical Methods

Source inspiration: (Mathew 2000-2019).

Description

The Lin-Bairstow method finds the roots of a real polynomial \(P(x) = a_n x^n + \cdots + a_1 x + a_0\) two at a time, by finding a quadratic factor \(x^2 - rx - s\). It uses only real arithmetic, yet finds complex-conjugate pairs of roots as well as real ones.

Dividing \(P(x)\) by \(x^2 - rx - s\) leaves a quotient \(Q(x)\) and a remainder,

\[ P(x) = (x^2 - rx - s)\,Q(x) + b_1 (x - r) + b_0, \qquad Q(x) = b_n x^{n-2} + \cdots + b_3 x + b_2 , \]

where quadratic synthetic division computes the \(b\)’s, and the same recursion applied to the \(b\)’s gives the \(c\)’s:

\[ \begin{aligned} b_n &= a_n, & b_{n-1} &= a_{n-1} + r\,b_n, & b_k &= a_k + r\,b_{k+1} + s\,b_{k+2} \quad (k = n-2, \ldots, 1, 0), \\ c_n &= b_n, & c_{n-1} &= b_{n-1} + r\,c_n, & c_k &= b_k + r\,c_{k+1} + s\,c_{k+2} \quad (k = n-2, \ldots, 2, 1). \end{aligned} \]

The quadratic is a factor exactly when \(b_0 = b_1 = 0\), and the method is Newton’s method on these two equations in \(r\) and \(s\). The \(c\)’s are the partial derivatives (\(\partial b_0/\partial r = c_1\), \(\partial b_0/\partial s = \partial b_1/\partial r = c_2\), \(\partial b_1/\partial s = c_3\)), so each step evaluates them at \((r_j, s_j)\) and solves, by Cramer’s rule in Mathews’ module,

\[ \begin{pmatrix} c_1 & c_2 \\ c_2 & c_3 \end{pmatrix} \begin{pmatrix} \Delta r \\ \Delta s \end{pmatrix} = -\begin{pmatrix} b_0 \\ b_1 \end{pmatrix}, \qquad r_{j+1} = r_j + \Delta r, \quad s_{j+1} = s_j + \Delta s . \]

The method needs degree \(n \ge 3\), a starting guess \((r_0, s_0)\), and \(c_1 c_3 - c_2^2 \neq 0\) at every iterate. Real starts keep the iterates real, and a real polynomial always has a real quadratic factor. Mathews suggests \(r_0 = -a_1/a_2\), \(s_0 = -a_0/a_2\) (if \(a_2 \neq 0\)), from \(P(x) \approx a_2 x^2 + a_1 x + a_0\) near \(x = 0\).

In general, Newton’s method for a smooth system converges quadratically from close enough starts when its Jacobian is nonsingular at the solution. Here that holds exactly when \(x^2 - rx - s\) and \(Q(x)\) have no common root, as when every root of \(P\) is simple. When they share one, convergence can drop to linear: for \(P(x) = (x^2 + 1)^2\) from \((0.1, -1.2)\), the error ratio tends to \(1/2\).

For Mathews’ Example 4, \(P(x) = x^4 + x^3 + 3x^2 + 4x + 6\) from \((r_0, s_0) = (-2.1, -1.9)\), the iterates converge to \(x^2 + 2x + 2\), with roots \(-1 \pm i\), and \(Q(x) = x^2 - x + 3\) gives \(\tfrac12 \pm \tfrac{\sqrt{11}}{2} i\). From step 2 on, the error’s exponent roughly doubles each step (errors from 40-digit arithmetic):

\(j\) \(r_j\) \(s_j\) error \(\lVert (r_j + 2,\, s_j + 2) \rVert\)
0 −2.1 −1.9 \(1.41 \times 10^{-1}\)
1 −1.989302820836 −1.949988192338 \(5.11 \times 10^{-2}\)
2 −1.999992769905 −2.000150979221 \(1.51 \times 10^{-4}\)
3 −1.999999996545 −1.999999991124 \(9.52 \times 10^{-9}\)
4 −2.000000000000 −2.000000000000 \(1.42 \times 10^{-17}\)

Repeating the method on \(Q(x)\) (deflation) finds the rest. For the quintic \(x^5 + 6x^4 - 20x^2 + 22x + 8\) of Mathews’ Examples 1–3, the start \((-2, 3)\), his divisor \(x^2 + 2x - 3\), gives \(x^2 + 3.238964x + 0.853460\) (roots \(-2.949618\), \(-0.289346\)); his suggested start on the cubic quotient gives \(x^2 - 2.301046x + 1.851731\) (roots \(1.150523 \pm 0.726655i\)), leaving \(x + 5.062082\).

Convergence is only local. From \((r_0, s_0) = (-1, -2)\) on the same quintic, the iterates are thrown out to \(|s_{26}| \approx 7 \times 10^8\) and wander for more than 90 steps, and the factor they reach depends on the arithmetic: \(x^2 - 2.301046x + 1.851731\) in double precision, \(x^2 + 8.011701x + 14.931211\) with 30 or more digits.

Quadratic synthetic division extends the division by \(x - c\) of Horner’s Method, the iteration is two-variable Newton-Raphson as in Nonlinear Systems, Graeffe’s Method is another method made for polynomials, and Muller’s Method can also reach complex roots, using complex arithmetic.

References

Mathew, John H. 2000-2019. Numerical Analysis - Numerical Methods Modules. https://web.archive.org/web/20190808102217/http://mathfaculty.fullerton.edu/mathews/n2003/NumericalUndergradMod.html.