Bernoulli's method
published in 1729. In numerical analysis, Bernoulli's method, named after Daniel Bernoulli, is a root-finding algorithm which calculates the root of largest absolute value of a univariate polynomial. The method works under the condition that there is only one root (possibly multiple) of maximal absolute value. The method computes the root of maximal absolute value as the limit of the quotients of two successive terms of a sequence defined by a linear recurrence whose coefficients are those of the polynomial. Since the method converges with a linear order only, it is less efficient than other methods, such as Newton's method. However, it can be useful for finding an initial guess ensuring... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
published in 1729. In numerical analysis, Bernoulli's method, named after Daniel Bernoulli, is a root-finding algorithm which calculates the root of largest absolute value of a univariate polynomial. The method works under the condition that there is only one root (possibly multiple) of maximal absolute value. The method computes the root of maximal absolute value as the limit of the quotients of two successive terms of a sequence defined by a linear recurrence whose coefficients are those of the polynomial. Since the method converges with a linear order only, it is less efficient than other methods, such as Newton's method. However, it can be useful for finding an initial guess ensuring that these other methods converge to the root of maximal absolute value. Bernoulli's method holds historical significance as an early approach to numerical root-finding and provides an elegant connection between recurrence relations and polynomial roots. p = a_{0}z^d + a_{1}z^{d-1} + \dots + a_d of degree with complex coefficients. Choose starting values x_{-d+1}, x_{-d}, \dots, x_{-1}, x_0, that are usually 0, 0, 0, \dots, 0, 1 . Then, consider the sequence defined by the recurrence relation x_n = -\frac{a_1 x_{n-1} + a_2 x_{n-2} + \dots + a_d x_{n-d}}{a_0} . Let q_n = \frac{x_{n+1}}{x_n} be the ratio of successive terms of the sequence. If there is only one complex root of maximal absolute value, then the sequence of the has a limit that is this root. If the coefficients of the polynomial are real then, via the complex conjugate root theorem, each of the polynomial's roots must be either a real number or part of a complex conjugate pair. Therefore, if the polynomial contains a single dominant complex root, then the coefficients must include a complex number, and so the sequence generated using the coefficients will contain complex numbers. Bernoulli's method will work to find a single dominant root, regardless of whether it is real or complex. If a root is part of a complex conjugate pair, then each root in the pair has the same maximal absolute value, and a modified form of Bernoulli's method is needed to calculate them. a_n x_m + a_{n-1} x_{m-1} + \dots + a_0 x_{m-n} = 0 have the form x_m = c_1(m)r_1^m + c_2(m) r_2^m + \dots + c_k(m) r_k^m , where the r_i are the distinct complex roots of p(z) , and c_i(m) is polynomial in m of degree less than the multiplicity of r_i . For simple roots, c_i is a constant. The coefficients c_i can be determined from the first n terms of the sequence x_m by solving a linear system of equations. This system has always a unique solution since its matrix is a Vandermonde matrix if the roots are simple, or a confluent Vandermonde matrix otherwise. The quotient of two successive terms of the sequence is \frac{x_{m+1}}{x_m} = \frac{c_1(m+1) r_1^{m+1} + c_2(m+1) r_2^{m+1} + \dots + c_k(m+1) r_k^{m+1}} {c_1(m) r_1^m + c_2(m) r_2^m + \dots + c_k(m) r_k^m}. Factoring out r_1 gives \frac{x_{m+1}}{x_m} = r_1 \cdot \frac{c_1(m+1) + c_2(m+1) \left( \frac{r_2}{r_1} \right)^{m+1} + \dots + c_k(m+1) \left( \frac{r_k}{r_1} \right)^{m+1}} {c_1(m) + c_2(m) \left( \frac{r_2}{r_1} \right)^m + \dots + c_k(m) \left( \frac{r_k}{r_1} \right)^m} . Assuming r_1 is the dominant root, such that |r_1| > |r_i| for , each ratio \frac{r_i}{r_1} has an absolute value less than 1. Thus as increases, \left( \frac{r_i}{r_1} \right)^m approaches zero, so \lim_{m \to \infty} c_i(m)\left( \frac{r_i}{r_1} \right)^m = 0, even for non-constant c_i(m) . Hence the limit of the fraction is the same as that of \frac{c_1(m+1)}{c_1(m)}, which is 1 if is a constant or a nonzero polynomial in . Hence \lim_{m \to \infty} \frac{x_{m+1}}{x_m} = r_1 in all cases where there is only one root of maximal absolute value. This assumes c_1 \neq 0, which is satisfied by using initial values of all zeros followed by a final 1. Indeed, Cramer's rule implies that c_1 is a signed quotient of two nonsingular Vandermonde matrices, if all roots are simple; in the case of multiple roots, the dominant coefficient of c_1(m) is a signed quotient of two nonsingular confluent matrices. showing the dominant root at \left(\frac{1+\sqrt{5}}{2}, 0\right) . The following example illustrates Bernoulli's method applied to a quadratic polynomial. Let p(z) = z^2 - z - 1 = 0 . Then a_0 = 1 , a_1 = -1 , and a_2 = -1 , so the recurrence becomes: \begin{align} x_n &= -\frac{(-1)x_{n-1} + (-1)x_{n-2}}{1}\\ &= x_{n-1} + x_{n-2} \end{align} Using the recommended initial values x_{-1} = 0 , x_0 = 1 generates the following table: This eventually converges on \frac{1+\sqrt{5}}{2} \approx 1.618034 , also known as the Golden ratio, which is the largest root of the example polynomial. The sequence {x_n} is also the well-known Fibonacci sequence. Bernoulli's method works even if the sequence used different starting values instead of 0 and 1; the limit of the quotient q_n remains the same. The example also shows the absolute error approaching zero as the sequence continues. It is then possible to calculate the order of convergence using three contiguous errors. This example demonstrates that Bernoulli's method converged linearly as it approaches the dominant root of the polynomial. Naturally finds a dominant root: Normally, finding large roots is considered less stable, but substituting in with \left(\frac{1}{z}\right) , which reverses the order of coefficients, and then inverting the result of Bernoulli's method gives the smallest root of , which is more stable. def bernoulli_method(c, eps=1e-8, max_iter=60): """ Bernoulli's method for finding the dominant root of a polynomial. Parameters ---------- c : list List of polynomial coefficients in descending order of powers. For example, if p(x) = x^2 - x - 1, c = [1.0, -1.0, -1.0] eps : float, optional Convergence tolerance. Default is 1e-8. max_iter : int, optional Maximum number of iterations. Default is 60. Returns ------- float or complex The dominant root of the polynomial if found, otherwise float('nan'). Examples -------- >>> bernoulli_method([1.0, -1.0, -1.0]) # Golden ratio example 1.6180339901755971 >>> bernoulli_method([1.0, -3.0, 2.0]) # x^2 - 3x + 2 = (x - 2)(x - 1) 2.0000000074505806 """ n = len(c) x = [0.0] * (n - 2) + [1.0] # Initialize with zeros and a 1.0 q = [] for i in range(n - 1, max_iter + n): # Apply the recurrence relation: x_n = -(a_1*x_{n-1} + ... + a_d*x_{n-d})/a_0 x.append(-sum(c[k] * x[-k + i] for k in range(1, n)) / c[0]) q.append(x[-1] / x[-2]) # Quotient of two successive x terms q_n = x_{n+1} / x_n # Check for convergence after two quotient values if len(q) >= 2 and abs(q[-1] - q[-2]) An efficiency improvement would be to normalize the coefficients by the leading coefficient at the beginning of the method ( c = [coef / c[0] for coef in c] ), eliminating the need for a division operation in the recurrence relation inside the main loop body ( x.append(-sum(c[k] * x[-k + i] for k in range(1, n))) ). This change does not impact the convergence order of the method. Implementing higher-order convergence would require Aitken's delta-squared process.
Cite this
"Bernoulli's method". 1788307061. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1372738493 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy