Skip to Content
AlgorithmsAlgorithms
  • Article
  • Open Access

5 January 2026

38 Pages

A Constrained Optimization Approach to Bairstow’s Method

and
Istituto di Matematica Applicata e Tecnologie Informatiche—Consiglio Nazionale delle Ricerche, Via Adolfo Ferrata, 5, 27100 Pavia, PV, Italy
*
Author to whom correspondence should be addressed.
†
These authors contributed equally to this work.

Abstract

Bairstow’s method employs synthetic division to express a polynomial p ( x ) of degree n in the form p ( x ) = q ( x ) ( x 2 + B x + C ) + R ( B , C ) x + S ( B , C ) , where q ( x ) is the quotient polynomial of degree n − 2 , and R ( B , C ) , S ( B , C ) are the remainder coefficients that depend nonlinearly on the quadratic parameters B and C. The original algorithm proposed by Bairstow uses Newton–Raphson method to solve R ( B , C ) = S ( B , C ) = 0 ; it requires initial guesses within very narrow attraction basins for ill-conditioned polynomials and fails at singular Jacobian matrices. To address these issues, we reformulate Bairstow’s method as a constrained optimization problem that maximizes C 2 as the objective function subject to the constraints R ( B , C ) = S ( B , C ) = 0 . While modern, highly optimized, non-linear solvers (available in commercial software like MATLAB) have largely superseded classical iterative polynomial rootfinding techniques, our reformulated Bairstow approach offers distinct advantages for selective root extraction and application-specific constraints. Specifically, the optimization formulation enables the extraction of specific roots of interest rather than computing all roots simultaneously, naturally accommodates additional constraints for application-specific factorization x (such as discriminant conditions for real versus complex root extraction). The C 2 objective automatically selects the quadratic factor with the largest root magnitude, enhancing numerical stability during deflation. Numerical experiments validate the approach on polynomials with degree bigger than 10 including cases with simple real roots, multiple roots, mixed real and complex roots, and Chebyshev polynomials, achieving machine precision accuracy with robust handling of the discriminant constraint.

1. Introduction

Computing polynomial roots has been a fundamental challenge in numerical mathematics for millennia, with origins traceable to ancient civilizations. The Babylonians (circa 2000BCE) developed geometric methods for quadratic equations [1], Al-Khwarizmi formalized polynomial equation theory during the Islamic Golden Age [2], and Cardano published solutions for cubic and quartic equations during the Renaissance [3]. In the 19th century, Abel and Galois proved that general polynomials of degree five and above lack algebraic solutions [4,5], motivating the development of numerical approximation techniques including Newton’s method [6] and Horner’s scheme [7].
The emergence of electronic computation transformed polynomial rootfinding into a cornerstone of applied mathematics [8,9]. A fundamental technique is deflation: when a root r is found, the polynomial p ( x ) is divided by ( x − r ) to obtain p ( x ) / ( x − r ) of reduced degree [10]. However, for real polynomials with complex conjugate root pairs a ± b i , extracting individual roots via Newton’s method requires complex arithmetic throughout deflation [9,11], which posed significant computational challenges historically [12].
Leonard Bairstow’s 1914 innovation [13] addressed this by generalizing deflation from linear to quadratic factors ( x 2 + B x + C ) , enabling real arithmetic throughout [14]. His method employs synthetic division to express:
p ( x ) = q ( x ) ( x 2 + B x + C ) + R ( B , C ) x + S ( B , C ) ,
where q ( x ) is the quotient polynomial of degree n − 2 , and R ( B , C ) , S ( B , C ) are remainder coefficients depending nonlinearly on parameters B and C. The method seeks B and C satisfying R ( B , C ) = S ( B , C ) = 0 via Newton–Raphson iteration on the nonlinear system:
R ( B , C ) S ( B , C ) = 0 0 .
This formulation suffers from critical limitations [9]: it requires initial guesses within extremely narrow attraction basins for ill-conditioned polynomials, fails at singular Jacobians when det ( ∂ ( R , S ) / ∂ ( B , C ) ) = 0 , and provides no systematic factor selection when multiple quadratic factors exist. These issues are so severe that many modern textbooks do not recommend Bairstow’s method, even when complex conjugate roots are known to exist.
In subsequent decades, more robust alternatives emerged that largely superseded classical iterative methods for polynomial root-finding. A widely adopted strategy is based on the companion matrix associated with the polynomial, reducing root-finding to an eigenvalue computation efficiently solved using the QR algorithm or related variants. This approach is numerically robust and forms the basis of polynomial solvers in software packages such as LAPACK, MATLAB, NumPy, and Julia [8,15]. The Jenkins–Traub algorithm, a three-stage variable-shift procedure introduced in the late 1960s, became a benchmark for robustness due to its ability to avoid deflation issues, leading to adoption in several high-quality numerical libraries [16,17]. The Laguerre method, introduced by Edmond Laguerre in 1880, offers cubic convergence for simple roots and remarkable robustness for complex roots, making it the default algorithm in several computational platforms including Mathcad’s polyroots function [9]. More recently, simultaneous methods for computing all roots at once have gained attention. The Aberth–Ehrlich iteration is particularly noteworthy for its cubic convergence and ability to prevent multiple iterates from converging to the same root, making it attractive for high-precision and parallel computing contexts [18,19,20]. Multiprecision solvers such as MPSolve represent the current state of the art, combining Aberth–Ehrlich iteration with adaptive precision refinement and rigorous error bounds to compute even high-degree polynomials to thousands of digits of accuracy [20,21].
Despite these advances, a classical method such as Bairstow’s iteration continue to attract interest due to its structure-preserving nature and a natural ability to extract real quadratic factors. However, modern eigenvalue-based approaches—while robust and reliable—compute all roots simultaneously, making them less suitable when only specific roots satisfying particular constraints are needed. Moreover, they offer limited flexibility for application-specific factorization requirements such as extracting only real factors, only complex conjugate pairs, or roots within specified magnitude ranges, or geometric regions. These observations motivate revisiting Bairstow’s method through an optimization lens, addressing both its classical limitations and providing capabilities unavailable in standard root-finding approaches.
Furthermore, optimization-driven numerical methods have gained considerable attention in recent years, both in nonlinear equation solving [22] and in multiobjective constrained optimization frameworks [23]. Inspired by these trends We propose to reformulate Bairstow’s method as a constrained optimization problem, addressing both its classical limitations and providing selective root extraction capabilities unavailable in standard approaches. Rather than directly solving the nonlinear system (2), we maximize the objective function C 2 subject to the constraints R ( B , C ) = S ( B , C ) = 0 . This reformulation exploits a fundamental observation: the parameter C in the quadratic factor x 2 + B x + C equals the product of the two roots, hence | C | measures the geometric mean of root magnitudes. Maximizing C 2 , therefore, naturally selects quadratic factors corresponding to roots with larger magnitudes, providing a principled deflation strategy that addresses the arbitrary factor selection problem inherent in the classical formulation.
The optimization perspective offers several distinct advantages. The objective function naturally orders potential quadratic factors by root magnitude, eliminating ambiguity when multiple factors exist and enabling systematic extraction from largest to smallest. Perhaps most significantly, the framework accommodates additional constraints beyond the basic factorization requirements R = S = 0 . By incorporating discriminant conditions— B 2 − 4 C ≥ 0 for real factors or B 2 − 4 C < 0 for complex conjugate pairs—we achieve selective root extraction impossible in classical methods or standard eigenvalue approaches. This capability proves valuable in applications such as control system design, where extracting only stable poles (roots with negative real parts) or roots within specific magnitude ranges directly serves engineering objectives without computing all polynomial roots. In contrast, eigenvalue-based methods compute all roots simultaneously and require post-processing to identify desired subsets, potentially introducing numerical artifacts in the filtering step.
From a theoretical perspective, we establish that the optimization reformulation possesses strong structural properties under appropriate conditions. When the constraint manifolds defined by R ( B , C ) = 0 and S ( B , C ) = 0 intersect transversally, the constrained optimization problem admits a unique intersection with structural stability against perturbations, provided the polynomial possesses quadratic factors with distinct root magnitudes. These results follow from Morse theory applied to the optimization landscape [24], providing theoretical foundation for the method’s robustness. Such stability properties prove valuable for real-world applications where polynomial coefficients may be affected by measurement noise or modeling approximations.
The optimization formulation enables straightforward implementation using mature, well-tested software libraries without requiring specialized numerical routines. Packages such as SciPy [25], NLopt [26], IPOPT [27], MATLAB’s Optimization Toolbox [28], JuMP.jl [29], and Pyomo [30] provide robust constrained optimization solvers incorporating sophisticated features—automatic differentiation, sparse matrix exploitation, adaptive step-size control—that would require substantial effort to replicate in custom implementations. This accessibility represents a practical advantage, particularly for researchers and practitioners seeking to apply the method without developing specialized optimization expertise.
Despite these advantages, our approach has inherent limitations. Computational overhead per iteration exceeds the overhead per iteration of the classical Newton–Raphson method, and effective use demands some expertise in optimization algorithms and solver selection. The transversality assumption underlying our theoretical analysis may fail for certain polynomials, particularly at C 2 -maximizing solutions. Indeed, numerical experiments suggest that constraint tangency—nearly parallel gradients causing singular or ill-conditioned Jacobians—occurs systematically rather than exceptionally for some polynomial families. This observation raises questions about applying classical Morse theory to the optimization setting, suggesting that uniqueness and well-posedness claims hold reliably for well-conditioned polynomials with favorable geometry rather than arbitrary polynomials. Nevertheless, the optimization framework remains practically effective: modern solvers incorporate regularization and continuation techniques for navigating poor conditioning regions, and Sequential Quadratic Programming (SQP) maintains progress despite ill-conditioned Jacobians. Finally, polynomials with multiple root magnitudes might require additional regularization, and memory requirements for solution storage and path tracking could exceed classical Bairstow iterations, hence becoming prohibitive for extremely high-degree polynomials.
The remainder of this paper is organized as follows. Section 2 establishes theoretical foundations including Lagrangian formulation and Morse theory analysis of uniqueness and well-posedness conditions. Section 3 presents the algorithm and validation benchmark results comparing our approach with classical Bairstow’s method. Section 4 concludes with future research directions and potential extensions, while a final appendix reports some technicalities, such as the detailed proofs of theorems and propositions.

2. Theoretical Foundation

2.1. Problem Formulation

Consider a polynomial p ( x ) of degree n > 2 with real coefficients:
p ( x ) = a n x n + a n − 1 x n − 1 + … + a 1 x + a 0 , a n ≠ 0 .
Following Bairstow’s approach, we assume that:
p ( x ) = q ( x ) ( x 2 + B x + C ) + R ( B , C ) x + S ( B , C ) .
The core idea of Bairstow’s method is to find the specific values of B and C for which the quadratic trinomial x 2 + B x + C is a true factor of p ( x ) . If it is a true factor, then the division is exact, and the remainder must be zero. For the linear remainder R ( B , C ) x + S ( B , C ) to be identically zero, its coefficients must both be zero, i.e., R ( B , C ) = 0 and S ( B , C ) = 0 . This transforms the root-finding problem into one of solving a system of two non-linear equations for the two unknowns, B and C. If the trinomial admits a pair of complex conjugate roots, e.g., z and z ¯ in C , these roots are clearly roots of polynomial p ( x ) and must satisfy the relations:
B = − ( z + z ¯ ) = − 2 ℜ ( z )
C = z z ¯ = | z | 2      
Bairstow’s method solves this system iteratively using the Newton–Raphson method for two variables. To apply the Newton–Raphson method, we start with an initial guess for ( B , C ) and iteratively refine it by computing corrections ( Δ B , Δ C ) . Each refinement step requires calculating the values of the remainder coefficients R and S, as well as their partial derivatives with respect to B and C. The brilliance of Bairstow’s approach lies in its use of a highly efficient synthetic division process to compute all these necessary values. The following theorem establishes the mathematical foundation for Bairstow’s synthetic division and demonstrates how the algorithm simultaneously computes both the remainder coefficients and their partial derivatives required for Newton–Raphson iteration (see [12]).
Theorem 1
(Bairstow’s Synthetic Division). Consider a polynomial p ( x ) = ∑ i = 0 n a i x i and the quadratic divisor ( x 2 + B x + C ) such that p ( x ) = q ( x ) ( x 2 + B x + C ) + R ( B , C ) x + S ( B , C ) with B , C ∈ R . Then,
(i) 
 the synthetic division algorithm produces coefficients { b i } via the recursive relations:
b n = a n b n − 1 = a n − 1 − B b n b i = a i − B b i + 1 − C b i + 2 , i = n − 2 , n − 3 , … , 1 b 0 = a 0 − C b 2 ,
such that
q ( x ) = ∑ i = 0 n − 2 b i + 2 x i = b 2 + b 3 x + b 4 x 2 + … + b n x n − 2
and
R ( B , C ) = b 1 S ( B , C ) = b 0
(ii) 
 the partial derivatives of the remainder coefficients R ( B , C ) and S ( B , C ) with respect to B and C are given by:
∂ R ∂ B = ∂ b 1 ∂ B = c 1 ( B ) ∂ S ∂ B = ∂ b 0 ∂ B = c 0 ( B ) ∂ R ∂ C = ∂ b 1 ∂ C = c 1 ( C ) = c 2 ( B ) ∂ S ∂ C = ∂ b 0 ∂ C = c 0 ( C ) = − b 2 − C c 3 ( B )
with
c n ( B ) = 0 c n − 1 ( B ) = − b n c i ( B ) = − b i + 1 − B c i + 1 ( B ) − C c i + 2 ( B ) , i = n − 2 , … , 1 c 0 ( B ) = − C c 2 ( B )
and
c n ( C ) = 0 c n − 1 ( C ) = 0 c i ( C ) = − b i + 2 − B c i + 1 ( C ) − C c i + 2 ( C ) , i = n − 2 , … , 1 c 0 ( C ) = − b 2 − C c 2 ( C )
(iii) 
the second-order partial derivatives of the remainder coefficients R ( B , C ) and S ( B , C ) with respect to B and C are given by:
∂ 2 R ∂ B 2 = ∂ c 1 ( B ) ∂ B ∂ 2 R ∂ B ∂ C = ∂ c 1 ( B ) ∂ C ∂ 2 R ∂ C 2 = ∂ c 2 ( B ) ∂ C ∂ 2 S ∂ B 2 = ∂ c 0 ( B ) ∂ B ∂ 2 S ∂ B ∂ C = ∂ c 0 ( B ) ∂ C ∂ 2 S ∂ C 2 = − 2 c 3 ( B ) − ∂ c 3 ( B ) ∂ C
with
∂ c n ( B ) ∂ B = 0 ∂ c n − 1 ( B ) ∂ B = 0 ∂ c i ( B ) ∂ B = − 2 c i + 1 ( B ) − B ∂ c i + 1 ( B ) ∂ B − C ∂ c i + 2 ( B ) ∂ B i = n − 2 , … , 1 ∂ c 0 ( B ) ∂ B = − C ∂ c 2 ( B ) ∂ B
and
∂ c n ( B ) ∂ C = 0 ∂ c n − 1 ( B ) ∂ C = 0 ∂ c i ( B ) ∂ C = − 2 c i + 2 ( B ) − B ∂ c i + 1 ( B ) ∂ C − C ∂ c i + 2 ( B ) ∂ C i = n − 2 , … , 1 ∂ c 0 ( B ) ∂ C = − c 2 ( B ) − C ∂ c 2 ( B ) ∂ C
Proof. 
  • Part (i): We verify by direct expansion that the recursive relations correctly implement polynomial long division. Expanding q ( x ) ( x 2 + B x + C ) + b 1 x + b 0 and collecting coefficients of like powers of x yields:
    Coeff of x n : b n Coeff of x n − 1 : b n − 1 + B b n Coeff of x i for 1 ≤ i ≤ n − 2 : b i + B b i + 1 + C b i + 2 Coeff of x 0 : b 0 + C b 2
    These coefficients must equal the corresponding coefficients a i of p ( x ) , which gives precisely the recursive relations (5) defining the b i coefficients. A straightforward calculation shows that R ( B , C ) = b 1 and S ( B , C ) = b 0 .
  • Part (ii): To establish the partial derivative relationships, we differentiate the recursive relations with respect to B and C. For the B-derivatives, differentiating the relations (5) (and noting that ∂ B ∂ C = 0 and ∂ C ∂ B = 0 since B and C are independent variables) yields:
    ∂ b n ∂ B = 0 ∂ b n − 1 ∂ B = − b n ∂ b i ∂ B = − b i + 1 − B ∂ b i + 1 ∂ B − C ∂ b i + 2 ∂ B i = n − 2 , n − 3 , … , 1 ∂ b 0 ∂ B = − C ∂ b 2 ∂ B
    Defining c i ( B ) : = ∂ b i ∂ B , we obtain the recurrence relations (8).
Similarly, for the C-derivatives:
∂ b n ∂ C = 0 , ∂ b n − 1 ∂ C = 0 ∂ b i ∂ C = − b i + 2 − B ∂ b i + 1 ∂ C − C ∂ b i + 2 ∂ C i = n − 2 , n − 3 , … , 1 ∂ b 0 ∂ C = − b 2 − C ∂ b 2 ∂ C
Defining c i ( C ) : = ∂ b i ∂ C we obtain the recurrence relations (9).
By direct expansion of the various terms in (9), and then using (8) it is not difficult to verify the following relations:
c n ( C ) = 0 c i ( C ) = c i + 1 ( B ) i = n − 1 , … , 1 c 0 ( C ) = − b 2 − C c 3 ( B )
therefore the partial derivatives of R and S with respect to B and C can be computed only from c ( B ) as in (7).
  • Part (iii): To compute the second-order partial derivatives, we compute the partial derivatives of (7)–(9) and then we apply the identities (13).    □
The following remark considers some special cases that may occur when applying Bairstow’s synthetic division.
Remark 1.
For values ( B * , C * ) such that p ( x ) = q ( x ) ( x 2 + B * x + C * ) (i.e., R ( B * , C * ) = S ( B * , C * ) = 0 ) , we find that:
b n * = a n b n − 1 * = a n − 1 − B * b n * b i * = a i − B * b i + 1 * − C * b i + 2 * i = n − 2 , n − 3 , … , 2 b 1 * = a 1 − B * b 2 * − C * b 3 * = 0 b 0 * = a 0 − C * b 2 * = 0
and then, if C * ≠ 0 :
b 0 * = 0 b 1 * = 0 b 2 * = a 0 C * b 3 * = 1 C * a 1 − B * b 2 * b i * = 1 C * a i − 2 − b i − 2 * − B * b i − 1 * i = 4 , 5 , … , n − 2 b n − 1 * = a n − 1 − B * a n b n * = a n
The case C * = 0 (and B * ≠ 0 ) is possible only when a 0 = 0 (in fact it corresponds to the factorization p ( x ) = q ( x ) ( x 2 + B * x ) ), and then:
b 0 * = 0 b 1 * = 0 b 2 * = a 1 B * b i * = 1 B * a i − 1 − b i − 1 * i = 3 , … , n − 2 b n − 1 * = a n − 1 − B * b n * = 1 B * a n − 2 − b n − 2 * b n * = a n
The case ( B * , C * ) = ( 0 , 0 ) is possible only when a 0 = a 1 = 0 (in fact it corresponds to the factorization p ( x ) = q ( x ) x 2 ), and then:
b 0 * = a 0 = 0 b 1 * = a 1 = 0 b i * = a i , i = 2 , 3 , … , n
An alternative point of view is discussed in the following remark.
Remark 2.
The relations (8) and (9) can be obtained from a different approach noting that relations (5) can be encoded by the linear system M b = a , where b = [ b 0 , b 1 , … , b n ] T , a = [ a 0 , a 1 , … , a n ] T and M = M ( B , C ) is the ( n + 1 ) × ( n + 1 ) (invertible, parameter-dependent) upper triangular matrix
M : = 1 0 C 0 … 0 0 1 B C 0 … 0 ⋮ ⋱ 0 … 0 1 B C 0 0 … 0 0 1 B C 0 … 0 0 0 1 B 0 … 0 0 0 0 1 .
The unknown vector b can be computed as b = M − 1 a , and its partial derivative(s) as
∂ b ∂ { B , C } = ∂ ∂ { B , C } M − 1 a = − M − 1 ∂ M ∂ { B , C } M − 1 a = − M − 1 ∂ M ∂ { B , C } b ,
through the formula for the derivative of the inverse matrix
d A ( x ) − 1 d x = − A ( x ) − 1 d A ( x ) d x A ( x ) − 1 .
Due to (14) we have that ∂ M ∂ B is a zero-filled matrix with the exception of the first upper-diagonal, which is the vector (of length n) [ 0 , 1 , 1 , … , 1 ] , therefore
∂ M ∂ B b = [ 0 , b 2 , b 3 , … , b n , 0 ] T .
For a similar argument, we have that ∂ M ∂ C is a zero-filled matrix with the exception of the second upper-diagonal, which is the vector (of length n − 1 ) [ 1 , 1 , … , 1 ] , therefore:
∂ M ∂ C b = [ b 2 , b 3 , … , b n , 0 , 0 ] T .
Introducing the vectors c ( B ) : = ∂ b ∂ B = [ c 0 ( B ) , c 1 ( B ) , … , c n ( B ) ] T and c ( C ) : = ∂ b ∂ C = [ c 0 ( C ) , c 1 ( C ) , … , c n ( C ) ] T , we can multiply on the left both sides of (15) by the matrix M , obtaining
M c ( B ) , c ( C ) = − 0 b 2 b 2 b 3 b 3 b 4 ⋮ ⋮ b n − 1 b n b n 0 0 0 .
Since M is an upper triangular matrix with unit diagonal, we can solve the linear system (18) using the backward substitution, obtaining the recurrence relations (8) and (9).
When R = S = 0 , the theorem guarantees that ( x 2 + B x + C ) is an exact factor of p ( x ) . The simultaneous computation of partial derivatives through the coefficients c i ( B ) , c i ( C ) enables efficient Newton–Raphson iteration without requiring separate finite difference approximations, making Bairstow’s method computationally elegant for its era.

2.2. Optimization Formulation and Lagrangian Analysis

Traditional approaches to Bairstow’s method face the fundamental challenge of multiple solution selection: when a polynomial possesses several quadratic factors, iterative methods tend converge to whichever factor lies closest to the initial guess, providing no systematic criterion for factor extraction ordering. Our reformulation addresses this limitation by prioritizing quadratic factors corresponding to larger magnitude roots, which exhibit better conditioning properties, improved deflation stability, and reduced sensitivity to numerical perturbations. In this section, we discuss all these points from both theoretical and practical perspectives.

2.2.1. Problem Formulation and Theoretical Motivation

Our central innovation transforms the classical constraint satisfaction problem into the optimization framework:
maximize C 2 subject to R ( B , C ) = 0 , S ( B , C ) = 0 ,
where R ( B , C ) and S ( B , C ) represent the remainder coefficients from synthetic division of polynomial p ( x ) by the quadratic factor ( x 2 + B x + C ) .
The choice of objective function C 2 emerges from fundamental algebraic considerations. For a quadratic factor with complex conjugate roots z = r e i θ and z ¯ = r e − i θ , Vieta’s formulas [31] (p. 44) yield C = z z ¯ = r 2 = | z | 2 . Consequently, maximizing C 2 = r 4 = | z | 4 directly selects the quadratic factor corresponding to roots with largest magnitude. This magnitude-based ordering principle aligns with established numerical analysis principles, as larger magnitude roots typically yield better-conditioned computational problems and exhibit reduced sensitivity to round-off errors [32].

2.2.2. Lagrangian Formulation and Optimality Conditions

Following the method of Lagrange multipliers [33], we construct the Lagrangian functional:
L ( B ,   C ,   λ ,   μ ) = C 2 + λ R ( B ,   C ) + μ S ( B ,   C ) ,
where λ and μ denote the Lagrange multipliers associated with the equality constraints. The first-order optimality conditions require the gradient of the Lagrangian to vanish at critical points ( B * ,   C * ,   λ * ,   μ * ) , i.e., ∇ B , C , λ , μ L ( B * ,   C * ,   λ * ,   μ * ) = 0 . Remembering that B and C are independent variables, a straightforward calculation yields:
∂ L ∂ B ( B * ,   C * ,   λ * ,   μ * ) = ∂ C 2 ∂ B ( B * ,   C * ) ︸ = 0 + λ * ∂ R ∂ B ( B * ,   C * ) + μ * ∂ S ∂ B ( B * ,   C * ) = 0 ,
∂ L ∂ C ( B * ,   C * ,   λ * ,   μ * ) = ∂ C 2 ∂ C ( B * ,   C * ) ︸ = 2 C * + λ * ∂ R ∂ C ( B * ,   C * ) + μ * ∂ S ∂ C ( B * ,   C * ) = 0 ,
∂ L ∂ λ ( B * ,   C * ,   λ * ,   μ * ) = R ( B * ,   C * ) = 0 ,                        
∂ L ∂ μ ( B * , C * , λ * , μ * ) = S ( B * , C * ) = 0 ,                        
where the terms ∂ R ∂ B ( B * , C * ) , ∂ R ∂ C ( B * , C * ) , ∂ S ∂ B ( B * , C * ) , ∂ S ∂ C ( B * , C * ) can be computed using relations (7).
Equations (21a) and (21b) represent optimality conditions, which require that the gradient of the objective function be expressible as a linear combination of the constraint gradients. On the other hand, Equations (21c) and (21d) enforce the original constraints, ensuring the feasibility of the solution. The geometric condition resulting from Equations (21a)–(21b) and (21c)–(21d) ensures that C 2 achieves a critical point on the constraint manifold M = { ( B , C ) ∈ R 2 : R ( B , C ) = 0 , S ( B , C ) = 0 } . Moreover, the Linear Independence Constraint Qualification (LICQ) [33] requires that the constraint gradients be linearly independent at the optimal point. Equivalently, the Jacobian matrix of the non-linear system zeroing R ( B , C ) and S ( B , C ) must be non-singular at the stationary point ( B * , C * ) . Let
J ( B , C ) = ∂ R ∂ B ∂ R ∂ C ∂ S ∂ B ∂ S ∂ C .
Then, det ( J ( B * , C * ) ≠ 0 , so that rank ( J ( B * , C * ) ) = 2 . The LICQ condition has a direct geometric interpretation as the transversality of the constraint manifolds, a concept we will explore in the next section. Both conditions on the determinant and the rank of J ( B * , C * ) are typically satisfied for generic polynomials, ensuring the validity of the Lagrangian approach.
Remark 3
(Near-Tangency and Numerical Conditioning). Even when det ( J ( B * , C * ) ) ≠ 0 at solution points ( B * , C * ) , the constraint curves M R = { ( B , C ) ∈ R 2 : R ( B , C ) = 0 } and M S = { ( B , C ) ∈ R 2 : S ( B , C ) = 0 } can be nearly tangent at their intersection points. This geometric near-tangency, illustrated in Figure 1 for a specific polynomial, manifests numerically as a small (but nonzero) Jacobian determinant | det ( J ) | ≪ 1 , leading to a large condition number κ = σ max ( J ) / σ min ( J ) ≫ 1 , σ max ( J ) and σ min ( J ) being the largest and smallest singular values of J , respectively. In floating-point arithmetic, such ill-conditioning can cause significant numerical difficulties: small perturbations in the polynomial coefficients or intermediate computations may lead to large variations in the computed solution ( B * , C * ) , and iterative methods may exhibit slow convergence or require very accurate initial guesses to converge to the correct intersection point. The optimization-based reformulation may offer improved robustness in these scenarios by leveraging globalization strategies of constrained optimization solvers (line searches, trust regions), which may navigate ill-conditioned regions more effectively than purely local Newton–Raphson iterations.
Figure 1. Solution of the equations R ( B , C ) = 0 (blue curve) and S ( B , C ) = 0 (red curve) for the polynomial p ( x ) = ( x − 1 ) 2 ( x − 2 ) ( x − 3 ) ( x − 4 ) . The black dots correspond to the ( B , C ) values of the polynomial factor ( x − x 1 ) ( x − x 2 ) with roots x 1 ≠ x 2 . The green dot is the point ( B , C ) = ( − 2 , 1 ) , corresponding to the polynomial factor ( x − 1 ) 2 (i.e., to the roots x 1 = x 2 = 1 ).

2.2.3. Numerical Conditioning and Deflation Strategy

The preference for targeting larger magnitude roots in our optimization formulation finds some justification in numerical conditioning analysis. The problem of finding polynomial roots is known to be potentially ill-conditioned, where small perturbations in the polynomial’s coefficients can lead to large, and often unexpected, changes in the roots [32]. In the context of Bairstow’s method, the core computation is an iterative process to solve for a quadratic factor x 2 + B x + C . The stability of this process is linked to the condition number of the Jacobian matrix used in the Newton–Raphson step [11]. The fundamental connection between root magnitude and stability arises from the coefficient C, which for a pair of complex conjugate roots z and z ¯ is equal to their squared magnitude, C = z z ¯ = | z | 2 . The heuristic motivation for maximizing C 2 is that larger root magnitudes may correspond to better-conditioned extraction problems, though this relationship is problem-dependent and not guaranteed in general.
While the conditioning of the factor-finding step may favor large roots, the subsequent deflation strategy must be chosen with extreme care to manage error propagation. Our approach naturally facilitates a systematic deflation strategy: after extracting a quadratic factor ( x 2 + B * x + C * ) with the biggest C 2 , we deflate the polynomial through division and repeat the optimization process on the reduced-degree polynomial. This strategy, known as backward deflation, runs contrary to the established best practice for preserving numerical accuracy. Seminal work by J.H. Wilkinson demonstrated that to minimize the accumulation of rounding errors, one should find the roots of the smallest magnitude first and deflate with those. Such a process is called forward deflation, see, e.g., [8,9]. The rationale behind this last approach is that rounding errors introduced into the coefficients of the deflated polynomial have a much larger relative impact on the remaining small roots than on the large ones. By removing the smallest roots first, the integrity of the larger, well-separated roots is better preserved. Therefore, a deflation strategy based on extracting the largest roots first could be at risk of corrupting the calculation of subsequent, smaller roots, unless the specific optimization framework can demonstrably mitigate this error propagation. While this backward deflation strategy contradicts the conventional wisdom of forward deflation for minimizing error propagation, it is a necessary consequence of our canonical factor selection. Our framework prioritizes the robust extraction of the most significant (largest) factor first. The potential for reduced accuracy in subsequent smaller roots is a trade-off for the enhanced robustness and lack of ambiguity in the primary extraction step. This design choice reflects the method’s intended scope: OBA is not proposed as a replacement for general-purpose polynomial solvers (such as eigenvalue-based methods) when all roots are needed with uniform accuracy. Rather, OBA is particularly suited to applications where ( i ) only dominant factors are of interest, ( i i ) selective extraction with additional constraints is required, or ( i i i ) robustness of the primary extraction outweighs accuracy of smaller roots. Examples may include control system design (dominant poles), signal processing (roots within magnitude bounds), and stability analysis (largest-magnitude root detection). For applications requiring all roots with uniform accuracy, we recommend eigenvalue-based methods or forward-deflation strategies.

2.2.4. An Alternative Objective Function and Its Limitations

The objective function’s topology dictates the optimization method’s convergence. Selecting C 2 as the objective function to identify the quadratic factor x 2 + B x + C with the largest magnitude roots is a deliberate, theoretically grounded choice. Other choices are also possible. For example, an intuitive alternative as maximizing the coefficient vector’s Euclidean norm B 2 + C 2 could seem a reasonable proxy for “largeness”. We disregarded this choice since it creates a mixed criterion, conflating root magnitude (r) with angular position ( θ ). For complex conjugate roots r e ± i θ , the coefficients are B = − 2 r cos θ and C = r 2 , making the alternative objective B 2 + C 2 = 4 r 2 cos 2 θ + r 4 . This is not a pure function of r. The 4 cos 2 θ term biases selection toward roots near the real axis ( | cos θ | = 1 ) over roots of equal or greater magnitude on the imaginary axis ( cos θ = 0 ), compromising the primary goal of systematic, magnitude-based ordering.
A simple case demonstrates this. Consider the polynomial factors x 2 + 0.1 x + 4 (roots r 1 = 2 ) and x 2 + 2 2 x + 2 (roots r 2 = 2 ). The C 2 criterion yields 16 and 4, respectively. This result is decisive, and the ratio 16 / 4 = 4 directly corresponds to ( r 1 / r 2 ) 4 . The B 2 + C 2 criterion, however, yields 16.01 and 12. Although the ordering is preserved here, this alternative offers reduced discrimination and obscures the clear geometric relationship between the objective and root magnitudes.
In contrast, C 2 possesses powerful theoretical advantages, most critically its rotation invariance. Because C is the product of the roots ( r 2 for a complex pair, r 1 r 2 for a real pair), its value depends only on root magnitudes. Consequently, C 2 is independent of the roots’ arguments, making it a pure, unbiased measure. This property is coupled with strict monotonicity: a larger root magnitude always results in a larger C 2 value. This property guarantees maximizing C 2 is provably equivalent to maximizing root magnitude.
Furthermore, the C 2 optimization is robust under scaling of the polynomial variable, p ( x ) ↦ p ( λ x ) . If x 2 + B x + C is a monic factor of p ( x ) , the corresponding monic factor of p ( λ x ) is x 2 + ( B / λ ) x + ( C / λ 2 ) . The new coefficient C ′ is C / λ 2 . Therefore, in the first case we evaluate C 1 2 − C 2 2 ; in the other case we evaluate ( C 1 / λ 2 ) 2 − ( C 2 / λ 2 ) 2 = ( 1 / λ 4 ) ( C 1 2 − C 2 2 ) . Since λ − 4 is a positive constant, the ordering is invariant. This independence from arbitrary scaling is a crucial feature for any robust numerical method. These properties collectively demonstrate that maximizing C 2 is a theoretically sound and geometrically clear method for targeting the quadratic factor associated with the largest magnitude roots.

2.3. Geometric Reformulation and Morse Theoretic Analysis

The central theme of this work is that we can always reformulate the classical algebraic problem of polynomial root finding based on polynomial factorizations as a well-posed optimization problem on constraint manifolds. This geometric perspective, analyzed through Morse theory [24], provides both rigorous theoretical foundation and practical insights for robust numerical implementations. To preserve the narrative flow, we will only sketch theorems’ and propositions’ proofs, and refer to a final appendix for the detailed proofs.

2.3.1. From Algebraic Constraints to Geometric Optimization

We treat the remainder terms from Bairstow’s synthetic division, R ( B , C ) and S ( B , C ) , as defining constraint manifolds in R 2 :
M R = { ( B , C ) ∈ R 2 : R ( B , C ) = 0 } , M S = { ( B , C ) ∈ R 2 : S ( B , C ) = 0 } .
Since R and S are smooth functions of ( B , C ) , the set of all quadratic factors corresponds to the intersection M = M R ∩ M S . Rather than merely solving { R = 0 , S = 0 } , we formulate:
max ( B , C ) ∈ R 2 ∈ R 2 C 2 subject to R ( B , C ) = 0 , S ( B , C ) = 0 .
Geometrically, the quantity C 2 serves as a “height function” on M .
For well-conditioned polynomials, M is a discrete set of isolated points, and maximization selects a canonical factor independent of initialization or iteration details.
This formulation emerges naturally as the limit of penalized optimization:
max ( B , C ) ∈ R 2 C 2 − ϵ ( R 2 ( B , C ) + S 2 ( B , C ) ) ,
where as ϵ → ∞ , constraints are enforced while C 2 provides the selection mechanism.

2.3.2. Topological Structure of the Constraint Manifold

Morse theory provides a framework for analyzing a manifold’s topology by studying the critical points of smooth functions defined on it [24]. For our constraint manifold M = M R ∩ M S , the key concept governing its structure is transversality.
To formalize this concept, we must examine the local properties of the intersection at a point ( B * , C * ) . This is done by constructing the Jacobian matrix of the system of constraint equations, R and S. This matrix, denoted J ( B * , C * ) , is given by:
J ( B * , C * ) = ∂ R ∂ B ( B * , C * ) ∂ R ∂ C ( B * , C * ) ∂ S ∂ B ( B * , C * ) ∂ S ∂ C ( B * , C * ) .
Before stating the transversality condition, it is crucial to appreciate the triple meaning of this matrix. On the surface, it is an algebraic object—a collection of all first-order partial derivatives. At a deeper level, it represents the best linear approximation of the system’s behavior around the point ( B * , C * ) . Most importantly for our purposes, its properties encode geometric truth. The non-singularity of the Jacobian matrix J ( B * , C * ) is not merely a computational convenience, but the precise condition for a well-behaved, or transverse, intersection. This condition is precisely the definition of a transverse intersection between the manifolds M R and M S at the point ( B * , C * ) . That is, the manifolds intersect transversely if their gradient vectors, ∇ R and ∇ S , are linearly independent at the intersection point, which is equivalent to the condition:
det ( J ( B * , C * ) ) ≠ 0 .
When all intersections are transverse, the resulting manifold M is well-behaved, as stated in the following theorem.
Theorem 2
(Finite Intersection Property). For almost all generic polynomials p ( x ) , the constraint manifolds M R and M S intersect transversely. Consequently, their intersection M = M R ∩ M S consists of a finite set of isolated points.
Proof. 
The result follows from four key observations. We provide a more detailed proof of this result, including the algebraic proof that the set of non-transverse polynomials have measure zero, in Appendix A.1.
  • (i) By the Implicit Function Theorem, wherever their gradients are non-zero, M R and M S are smooth one-dimensional submanifolds (curves) in R 2 .
  • (ii) The constraint functions R and S are polynomial functions of the coefficients ( a 0 , … , a n − 1 ) and the parameters ( B , C ) . Consequently, the determinant of the Jacobian matrix, D ( a ; B , C ) : = det ( J ( B , C ) ) , is also a polynomial in all these variables. Transversality fails precisely when D ( a * ; B * , C * ) = 0 at an intersection point ( a * ; B * , C * ) . Since D is not identically zero on the set of intersection points (as demonstrated by explicit examples in Appendix A.1), the set of coefficient vectors for which transversality fails forms a proper algebraic subvariety of the coefficient space. By standard results in algebraic geometry [34], such subvarieties have measure zero. Therefore, for every given integer n, transversality holds for almost all n-degree polynomials, i.e., except for those polynomials whose coefficients ( a T = ( a 0 , a 1 , … , a n + 1 ) belong to a zero measure subset of R n + 1 .
  • (iii) For almost all such generic polynomials for which transversality holds, we consider the manifold intersection M R ∩ M S . A dimension counting argument yields that M R ∩ M S is a zero-dimensional manifold since dim ( M R ∩ M S ) = dim ( M R ) + dim ( M S ) − dim ( R 2 ) = 1 + 1 − 2 = 0 . Since a zero-dimensional manifold is a set of isolated points, we proved that the intersection points must be isolated.
  • (iv) The total number of intersection points, denoted by | M R ∩ M S | , is finite. Each intersection point ( B * , C * ) in M R ∩ M S corresponds to a quadratic factor x 2 + B * x + C * of p ( x ) , so the number of intersection points is bounded from above by the number of quadratic factors that can be built on degree-n polynomials. We can build such quadratic factors with conjugate pairs of complex roots, e.g., z and z ¯ , and considering any possible pairs of distinct real roots r 1 and r 2 . Each conjugate pair of complex roots corresponds to exactly one irreducible quadratic factor over R . Therefore, degree-n polynomial can have at most ⌊ n / 2 ⌋ distinct irreducible quadratic factors, providing the upper bound | M R ∩ M S | ≤ ⌊ n / 2 ⌋ . Instead, pairs of distinct real roots r 1 and r 2 correspond to reducible quadratic factors of the form ( x − r 1 ) ( x − r 2 ) = x 2 − ( r 1 + r 2 ) x + r 1 r 2 . For a degree-n polynomial the maximum possible number of such reducible quadratic factors is n 2 = n ( n − 1 ) / 2 , corresponding to all possible pairings of distinct real roots. If the irreducible quadratic factors form a polynomial of (even) degree n 1 ≤ n and we have n 2 = n − n 1 remaining real roots, the total number of intersection points is bounded by the minimum between n 1 / 2 and n 2 2 .    □
Remark 4
(Transversality Failures and Ill-Conditioning). While Theorem 2 establishes that transversality holds for generic polynomials, certain parametric families exhibit systematic transversality loss. Near-tangency of the constraint manifolds M R and M S leads to ill-conditioned Jacobians, with det ( J ) ≈ 0 , degrading both classical Bairstow iterations and the optimization formulation. Examples include polynomials with roots of nearly equal modulus, symmetric coefficient structures, and multiple or clustered roots. The optimization framework can incorporate straightforward strategies for detecting and handling such cases, such as condition monitoring via | det ( J ) | , regularization techniques, and algorithm switching between interior-point and sequential quadratic programming methods.

2.3.3. The Optimization Landscape and Solution Uniqueness

The objective function C 2 is automatically a Morse function on the discrete set M , ensuring the optimization problem is well-posed.
Proposition 1
(Unique Global Maximum). When transversality holds and all quadratic factors have distinct root magnitudes, problem (19) has a unique global solution.
Proof. 
By Theorem 2, M is finite, so C 2 achieves its maximum. For a quadratic factor with complex conjugate roots z , z ¯ , we have C = | z | 2 , so maximizing C 2 selects the factor whose complex roots have largest modulus. If all such quadratic factors have distinct magnitudes | z 1 |   >   | z 2 |   > … , then C 1 2 = | z 1 | 4 > C 2 2 > … are strictly ordered, guaranteeing uniqueness. The detailed proof is in Appendix A.2.    □
Remark 5
(Degenerate Cases). When root magnitudes are equal, multiple global maxima exist. This fact occurs with probability close to zero for random coefficient polynomials but can arise in the case of coefficient symmetries. The problem remains well-posed by introducing regularization terms that resolve non-uniqueness.

2.3.4. Structural Stability and Robustness

A major consequence of transversality is structural stability: the qualitative geometric structure persists under small perturbations.
Theorem 3
(Transversality Implies Structural Stability). When M R and M S intersect transversely, small perturbations (e.g., floating-point errors) shift intersection points continuously without destroying the solution structure.
Proof. 
Three steps establish this result: ( i ) locally, the Implicit Function Theorem guarantees each intersection point persists under small perturbations; ( i i ) globally, finite intersection points can all be covered by persistence neighborhoods; ( i i i ) polynomial degree bounds prevent new intersections from appearing. The detailed proof is in Appendix A.3.    □
A very crucial point affecting conditioning in (25) relates directly to transversality. The Jacobian determinant det ( J ) measures conditioning: as det ( J ) → 0 , manifolds become tangent, the problem becomes ill-conditioned, and sensitivity increases. The condition number κ = σ max ( J ) / σ min ( J ) quantifies this fact formally.

2.3.5. Connection to Classical Bairstow’s Method

Classical Bairstow’s method applies Newton–Raphson method to { R ( B , C ) = 0 ,   S ( B , C ) = 0 } :
B k + 1 C k + 1 = B k C k − J k − 1 R ( B k , C k ) S ( B k , C k ) ,
where J k is the Jacobian. This relation can be interpreted as discretized Newton–Raphson flow seeking the M R ∩ M S intersection points ( B * , C * ) zeroing ( R , S ) . Transversality ensures J is invertible, making the flow well-defined.
Theorem 4
(Convergence and Transversality). Classical Bairstow’s method, viewed as Newton–Raphson method applied to the system { R ( B , C ) = 0 , S ( B , C ) = 0 } , converges locally and quadratically to a solution ( B * , C * ) whenever transversality holds at that point, i.e., whenever det ( J ( B * , C * ) ) ≠ 0 . Conversely, when det ( J ( B * , C * ) ) = 0 , the Jacobian is singular, the transversality condition fails, and the classical Newton–Raphson update becomes ill-defined or loses its local convergence guarantees; in practice, convergence is typically unreliable or fails.
Proof. 
The Jacobian J is precisely the transversality matrix from (24). Newton–Raphson method requires an invertible Jacobian in order to define the update and to guarantee local quadratic convergence; failure of transversality means det ( J ) = 0 , so the update is ill-defined or badly conditioned. The optimization reformulation enables the use of globalization strategies (line searches, trust regions) that enhance practical robustness compared to Newton-Raphson’s purely local iteration. The detailed proof is in Appendix A.4.    □

2.3.6. Extensions: Selective Root Extraction via Additional Constraints

A fundamental advantage of the optimization formulation over classical Bairstow’s method is the natural accommodation of additional constraints beyond R ( B , C ) = S ( B , C ) = 0 . While traditional root-finding methods compute all roots indiscriminately, the constrained optimization framework enables targeted extraction of roots satisfying specific geometric or algebraic properties. This capability has a manifest significant practical value in applications requiring only particular root subsets.
The most natural extension constrains the discriminant Δ = B 2 − 4 C of the quadratic factor x 2 + B x + C . Recall that Δ ≥ 0 corresponds to real roots while Δ < 0 indicates complex conjugate pairs. We can therefore formulate:
maximize C 2 subject to R ( B , C ) = 0 , S ( B , C ) = 0 , B 2 − 4 C ≥ 0
to extract real factors, or:
maximize C 2 subject to R ( B , C ) = 0 , S ( B , C ) = 0 , B 2 − 4 C < 0
to extract complex conjugate pairs.
These formulations remain well-posed constrained optimization problems solvable by standard methods. The discriminant constraint is smooth and convex in ( B , C ) , adding minimal computational complexity while enabling precise root-type control impossible in classical approaches. Sequential Quadratic Programming handles such inequality constraints naturally through active-set methods or interior-point techniques [33], with the algorithm automatically determining whether the constraint is active at the solution.
Furthermore, we can extend this framework beyond discriminant constraints to general geometric regions. For instance, to extract roots in the left half-plane (relevant for stability analysis in control theory), we impose B > 0 (ensuring negative real parts for the roots). For detecting roots within annular regions r 1 ≤ | z | ≤ r 2 , we add r 1 2 ≤ C ≤ r 2 2 . More complex regions can be specified through appropriate inequality constraints on ( B , C ) , with the constraint manifold M intersecting these admissible regions to identify desired factors.
Remark 6.
From the Morse-theoretic perspective, adding inequality constraints restricts the feasible set M to a subset satisfying both equality constraints R = S = 0 and inequality constraints. When constraints are transverse to M , the restricted feasible set maintains finite discrete structure, and C 2 maximization remains well-posed. Such an extension is straightforward also from the implementation viewpoints, since we can generalize the Lagrangian formulation (20) to incorporate inequality multipliers by using Karush-Kuhn-Tucker (KKT) conditions. This strategy provides necessary optimality conditions that non-linear optimization solvers verify automatically. Further details on practical algorithmic implementation are reported in Section 3.

3. Numerical Results

We present some computational experiments comparing our Optimization-Bairstow approach (OBA) on the problem
maximize f ( B , C ) = C 2 , subject to : R ( B , C ) = 0 S ( B , C ) = 0 B 2 − 4 C ≥ 0 ,
with the classical Newton–Raphson Bairstow approach (NRBA) for the solution of (1) and (2).
We addresses three fundamental questions:
( i )   
Does the optimization-based approach offer computational advantages over classical Bairstow’s method?
( i i )  
How do both methods handle challenging cases such as multiple roots and discriminant boundary conditions?
( i i i )
What are the trade-offs in terms of accuracy, robustness, and computational efficiency?
To this end, we design four test classes, each one represented by a specific polynomial, to systematically evaluate different algorithmic aspects:
•
with polynomial p 1 ( x ) = ( x − 1 ) ( x − 2 ) ( x − 3 ) we examine basic convergence properties with well-separated simple roots;
•
with polynomial p 2 ( x ) = ( x − 1 ) 3 we test robustness near the discriminant boundary with multiple roots;
•
with polynomial p 3 ( x ) = ( x 2 + 1 ) ( x − 1 ) ( x − 2 ) we evaluate mixed real/complex root scenarios and constraint effectiveness;
•
with Chebyshev polynomial T 10 ( x ) assesses scalability to higher-degree, well-conditioned problems.
For each test polynomial, we compare OBA and NRBA performance across multiple initial points ( B 0 , C 0 ) , measuring convergence rates, accuracy (via root error norms), and robustness to numerical artifacts. We pay particular attention to cases where the discriminant B 2 − 4 C ≈ 0 , as these reveal fundamental differences between constrained optimization and unconstrained root-finding approaches.
We conducted all experiments using MATLAB R2025a on a MacBook Pro equipped with an Apple M1 Max processor and 64GB of RAM.
We obtain the numerical (local) solution of the OBA using MATLAB’s fmincon function, which permits extensive customization through multiple parameters, including the selection of the optimization algorithm. We have the expressions for the exact gradient of the objective function f ( B , C ) , i.e., ∇ f = [ 0 , 2 C ] , and the gradients of the constraints (28) as inputs to MATLAB’s fmincon function. For computing the gradients ∇ R and ∇ S , we employed the relations given in (7)–(8).
We primarily used the optimization algorithm Algorithm = ’interior-point’, which is the default setting for fmincon. This algorithm utilizes the Hessian matrix of the Lagrangian (or an approximation of it) and accepts an optional user-supplied Hessian function. We implemented this Hessian computation following the analytical expressions derived in (10)–(12). However, during our tests, we observed no significant differences—either in terms of the computed solution or the number of iterations required—between providing the analytical Hessian and relying on MATLAB’s internal numerical approximation when no Hessian function is supplied. In cases where interior-point exhibited convergence difficulties, we switched to Algorithm = ’sqp’ (Sequential Quadratic Programming) with the options SubproblemAlgorithm = ’cg’ and ScaleProblem = ’true’, as the results tables indicate. For all tests, we employed stringent convergence tolerances: OptimalityTolerance = 1e-16, StepTolerance = 1e-29, and ConstraintTolerance = 1e-29. Such an extremely tight convergence tolerances (1e-16, 1e-29) were chosen to highlight fundamental algorithmic differences rather than mask them with premature convergence. While such precision exceeds most practical requirements, it reveals the theoretical limits of each approach. We obtain the numerical solution of the NRBA using MATLAB’s fsolve function with the default internal algorithm (specifically, Algorithm = ‘trust-region-dogleg’), for which we provided the exact evaluation of the Jacobian (22) using the same gradient formulations. The trust-region-dogleg algorithm solves the nonlinear system (2) by minimizing the squared norm R 2 ( B , C ) + S 2 ( B , C ) within a trust region at each iteration, thereby reformulating the root-finding problem as an unconstrained optimization problem that is similar in spirit to our constrained optimization approach. However, unlike fmincon, the fsolve function does not permit the imposition of additional constraints on the solution, which limits its flexibility for selective root extraction. We set the convergence tolerances to FunctionTolerance = 1e-16, StepTolerance = 1e-29, and OptimalityTolerance = 1e-15.
The computational cost of OBA and NRBA is assessed by recording the cumulative number of evaluations of the functions R ( B , C ) and S ( B , C ) , along with their corresponding gradient computations (using the relations (5)–(8)). These evaluations occur within the principal iterative loop of both algorithms and represent the dominant source of computational expense due to their high complexity and repeated invocation. The memory requirement scales as O ( n ) , where n denotes the degree of the polynomial, since at each deflation step we allocate (and subsequently deallocate) only two vectors storing the values [ b 0 , b 1 , … , b n ] and [ c 0 ( B ) , c 1 ( B ) , … , c n ( B ) ] in the relations (5) and (8). The length of these vectors decreases from n + 1 at the first deflation to n − 1 at the second, and so forth.
Remark 7.
Our numerical experiments suggest that standard convergence criteria in thefminconfunction are not sufficient to prevent the emergence of plateaus in constraint violation measurements, which may considerably increase the number of iterations executed by the algorithm. Figure 2 illustrates the graphs showing the degree of constraint violation across various deflations in the computation of the roots of the Chebyshev polynomial of first kind T 10 ( x ) , starting from the initial point ( B 0 , C 0 ) = ( 100.0 ,   0.0 ) (see Section 3.4). Notably, for deflations 2 and 3, a plateau with a value of approximately 10 − 13 emerges beginning at iteration 10. To prevent this problem, for our numerical experiments, we implemented a stopping condition in the fminconfunction that halts the algorithm when both the value and the relative change (compared to the preceding iteration) of the constraint violation measure are adequately small. The selected parameters to implement this stopping criterion were 10 − 11 for the constraint violation and 10 − 4 for the change in the relative constraint violation.
Figure 2. Contraints violation vs. iteration of the 4 deflations used by the OBA to compute the roots of the Chebishev polynomial of first kind T 10 ( x ) starting from the initial point ( B 0 , C 0 ) = ( 100.0 , 0.0 ) .
Although we always seek and compute the values B and C satisfying the constraints as real numbers, the corresponding roots of the quadratic polynomial x 2 + B x + C may be complex conjugates. As explained previously, our optimization approach includes the discriminant constraint B 2 − 4 C ≥ 0 to obtain solutions ( B * , C * ) corresponding to real roots. However, finite-precision floating-point arithmetic and numerical round-off errors can cause complications, particularly when roots satisfy B 2 − 4 C = 0 (corresponding to coincident real roots). In such cases, the computed values B * and C * may actually satisfy B * 2 − 4 C * ≈ 0 − (a slightly negative value), which results in computed roots that appear as complex conjugates rather than the intended multiple real root. We observe this phenomenon particularly in numerical experiments involving polynomials with multiple roots.

3.1. Polynomial of Low Order with Simple Real Roots

We consider the polynomial p 1 ( x ) = ( x − 1 ) ( x − 2 ) ( x − 3 ) that has simple roots at x = 1 ,   2 ,   3 . The constraints in (28) are satisfied by the three coefficients pairs ( B * ,   C * ) ∈ { ( − 3 ,   2 ) ,   ( − 4 ,   3 ) ,   ( − 5 ,   6 ) } , that correspond to the polynomial factors ( x − 1 ) ( x − 2 ) , ( x − 1 ) ( x − 3 ) , and ( x − 2 ) ( x − 3 ) , respectively.
To assess the performance and robustness of both approaches, we tested the optimization-based algorithm (using fmincon) and the classical Newton–Raphson Bairstow’s method (using fsolve) starting from five different initial guesses ( B 0 ,   C 0 ) . These initial points were chosen to span different regions of the parameter space, including points far from any solution (e.g., ( 0 , − 100 ) and ( 100 , − 100 ) ) and points on the boundary of the discriminant constraint B 2 − 4 C = 0 (e.g., ( 0 , 0 ) and ( 10 , − 25 ) ).
The results, presented in Table 1, Table 2 and Table 3, show that both methods successfully converge to one of the three valid solutions from all tested initial points. The fmincon approach consistently identifies the solution that maximizes C 2 , thus extracting the quadratic factor with the largest-magnitude roots (e.g., ( B * , C * ) = ( − 5 , 6 ) corresponding to roots x = 2 , 3 when starting from ( 0 , − 100 ) ). In contrast, fsolve converges to whichever solution lies in the attraction basin of the initial guess, with no systematic preference for any particular factor. The number of iterations (and computational cost) required is comparable between the two methods, ranging from 8 to 23 iterations (9 to 24 function evaluations) depending on the initial point.
Since p 1 ( x ) is a third-degree polynomial, the first two roots x 1 * and x 2 * correspond to the quadratic factor x 2 + B * x + C * , while the third root x 3 * is obtained by deflation as ( x − x 3 * ) = p 1 ( x ) / ( x 2 + B * x + C * ) .
Table 1. Polynomial p 1 ( x ) = ( x − 1 ) ( x − 2 ) ( x − 3 ) . Comparison of the computed solution ( B * ,   C * ) and number of iterations, with respect to different initial points ( B 0 ,   C 0 ) , using the Matlab’s function fmincon (with Algorithm = ’interior-point’) applied to the constrained optimization problem (28) and the function fmincon for the solution of the nonlinear system (2). N i t e r s is the number of iterations executed and N e v a l s is the number of evaluations of the functions R ( B ,   C ) and S ( B ,   C ) .
Table 2. OBA results for the polynomial p 1 ( x ) = ( x − 1 ) ( x − 2 ) ( x − 3 ) : errors between the computed and exact values of the roots. The values of the roots x 1 * and x 2 * are obtained from the computed values ( B * ,   C * ) as roots of the quadratic polynomial x 2 + B * x + C * , while the root x 3 * is computed by deflation as ( x − x 3 * ) = p 1 ( x ) / ( x 2 + B * x + C * ) .
Table 3. NRBA results for the polynomial p 1 ( x ) = ( x − 1 ) ( x − 2 ) ( x − 3 ) : errors between the computed and exact values of the roots. The values of the roots x 1 * and x 2 * are obtained from the computed values ( B * ,   C * ) as roots of the quadratic polynomial x 2 + B * x + C * , while the root x 3 * is computed by deflation as ( x − x 3 * ) = p 1 ( x ) / ( x 2 + B * x + C * ) .
For this problem, the MATLAB’s roots function returns the values:
  • x 1 = 3.000000000000002 ,
  • x 2 = 1.999999999999998 ,
  • x 3 = 1.0 .

3.2. Polynomial of Low Order with Multiple Real Roots

We consider the polynomial p 2 ( x ) = ( x − 1 ) 3 , which has a triple root at x = 1 . The constraints in (28) are satisfied by the unique solution ( B * ,   C * ) = ( − 2 ,   1 ) , corresponding to the quadratic factor ( x − 1 ) 2 with discriminant B * 2 − 4 C * = 0 .
This test case is particularly challenging due to the presence of multiple roots. As discussed earlier, the discriminant constraint B 2 − 4 C = 0 lies precisely on the boundary between real and complex roots, making the problem sensitive to numerical round-off errors. The results presented in Table 4, Table 5 and Table 6 demonstrate this sensitivity and highlight the differences between the two approaches.
The OBA (using fmincon with sqp algorithm) converges to solutions very close to ( B * ,   C * ) = ( − 2 ,   1 ) , with errors on the order of 10 − 9 to 10 − 6 , see Table 4. The computed roots x 1 * and x 2 * from the quadratic factor are complex conjugate and very close to 1, with errors ranging from 10 − 9 to 10 − 8 , cf. Table 5. The third root x 3 * obtained by deflation maintains comparable accuracy.
In contrast, the NRBA (using fsolve) exhibits the numerical artifact mentioned previously: although the computed values ( B * ,   C * ) are close to ( − 2 ,   1 ) , with errors of order 10 − 4 to 10 − 5 as shown in Table 4, the discriminant B * 2 − 4 C * becomes slightly negative due to round-off errors. Consequently, the roots x 1 * and x 2 * are computed as complex conjugates with imaginary parts on the order of 10 − 5 , cf. Table 6, rather than as the intended coincident real root. The third root x 3 * from deflation is real but carries an error of similar magnitude.
This numerical artifact illustrates a fundamental difference between the two approaches: while NRBA seeks any solution to R ( B ,   C ) = S ( B ,   C ) = 0 without regard for the discriminant, OBA’s constraint B 2 − 4 C ≥ 0 explicitly enf orces real root extraction. When finite-precision arithmetic causes B * 2 − 4 C * to become slightly negative, NRBA interprets this as a complex conjugate pair, while OBA’s constraint handling maintains the intended real root structure.
As shown by Table 4, the number of iterations is significantly higher for this case compared to p 1 ( x ) , ranging from 25 to 84 iterations, reflecting the increased difficulty of the problem. Notably, fmincon required the sqp algorithm instead of the default interior-point. Such an algorithm switch (from interior-point to SQP) is occasionally required to improve the convergence behavior, particularly for multiple root cases. This highlights that no single algorithm configuration is universally optimal, supporting the value of robust optimization solvers with automatic algorithm selection capabilities. For comparison, MATLAB’s roots function also encounters numerical difficulties with this polynomial, returning one real root and a pair of complex conjugate roots with imaginary parts of order 10 − 6 , rather than three coincident real roots.
Table 4. Polynomial p 2 ( x ) = ( x − 1 ) 3 . Comparison of the computed solution ( B * ,   C * ) and number of iterations, with respect to different initial points ( B 0 ,   C 0 ) , using the Matlab’s function fmincon (with Algorithm = ’sqp’) applied to the constrained optimization problem (28) and the function fsolve for the solution of the nonlinear system (2). N i t e r s is the number of iterations executed and N e v a l s is the number of evaluations of the functions R ( B ,   C ) and S ( B ,   C ) .
Table 5. OBA results for the polynomial p 2 ( x ) = ( x − 1 ) 3 : errors between the computed and exact values of the roots. The values of the roots x 1 * and x 2 * are obtained from the computed values ( B * , C * ) as roots of the quadratic polynomial x 2 + B * x + C * , while the root x 3 * is computed by deflation as ( x − x 3 * ) = p 2 ( x ) / ( x 2 + B * x + C * ) .
Table 6. NRBA results for the polynomial p 2 ( x ) = ( x − 1 ) 3 : errors between the computed and exact values of the roots. The values of the roots x 1 * and x 2 * are obtained from the computed values ( B * , C * ) as roots of the quadratic polynomial x 2 + B * x + C * , while the root x 3 * is computed by deflation as ( x − x 3 * ) = p 2 ( x ) / ( x 2 + B * x + C * ) .
For this problem, the MATLAB’s roots function returns the values:
  • x 1 = 1.000005494235414 ,
  • x 2 = 9.999972528822916   ×   10 − 1 + i 4.758074903516874   ×   10 − 6 ,
  • x 3 = 9.999972528822916   ×   10 − 1 − i 4.758074903516874   ×   10 − 6 .

3.3. Polynomial of Low Order with Mixed (Simple) Real and Complex Roots

We consider the polynomial p 3 ( x ) = ( x 2 + 1 ) ( x − 1 ) ( x − 2 ) , which has two complex conjugate roots at x = ± i and two simple real roots at x = 1 , 2 . For this case, the constraints in (28) are satisfied by the two coefficients pairs ( B * ,   C * ) ∈ { ( 0 ,   1 ) ,   ( − 3 ,   2 ) } , corresponding to the polynomial factors ( x 2 + 1 ) and ( x − 1 ) ( x − 2 ) , respectively. This test case demonstrates the behavior of the methods when the polynomial contains both real and complex roots. The discriminant constraint B 2 − 4 C ≥ 0 in our OBA formulation ensures that only real root pairs are extracted, thus the solution ( B * ,   C * ) = ( − 3 ,   2 ) , corresponding to the real roots x = 1 ,   2 , should be preferred when maximizing C 2 subject to the discriminant constraint. The solution ( 0 ,   1 ) corresponding to ( x 2 + 1 ) has B 2 − 4 C = − 4 < 0 and is excluded by the constraint.
The results presented in Table 7, Table 8 and Table 9 demonstrate excellent agreement between both approaches.
As shown in Table 7, both the OBA (using fmincon) and the NRBA (using fsolve) consistently identify the solution ( B * ,   C * ) = ( − 3 ,   2 ) corresponding to the real root pair ( x = 1 ,   2 ) from all tested initial points. The OBA requires 16 to 48 iterations (25 to 53 evaluations of the constraints), while the NRBA converges in 18 to 23 iterations (19 to 24 evaluations of the functions R ( B ,   C ) and S ( B ,   C ) ).
This convergence behavior is particularly noteworthy because the system R ( B ,   C ) = S ( B ,   C ) = 0 has two valid solutions: ( − 3 ,   2 ) with real roots and ( 0 ,   1 ) with complex roots. Despite the absence of an explicit discriminant constraint in the NRBA formulation, all tested initial points happen to lie in the attraction basin of the real root solution ( − 3 ,   2 ) . This suggests that, for this particular polynomial and choice of initial points, the real root solution has a larger basin of attraction than the complex root solution. However, this behavior is not guaranteed in general—different initial points might converge to ( 0 ,   1 ) .
The computed roots shown in Table 8 and Table 9 are extremely accurate for both methods, with errors at machine precision level, order 10 − 16 or exactly zero. Since both methods extract the same quadratic factor ( x − 1 ) ( x − 2 ) first, the subsequent deflation to obtain the complex roots ( x 2 + 1 ) produces identical results, confirming that both approaches yield equivalent accuracy when converging to the same solution.
For comparison, MATLAB’s roots function computes all four roots with high accuracy, though the complex roots exhibit small real parts (order 10 − 16 ) due to numerical round-off.
Table 7. Polynomial p 3 ( x ) = ( x 2 + 1 ) ( x − 1 ) ( x − 2 ) . Comparison of the computed solution ( B * ,   C * ) and number of iterations, with respect to different initial points ( B 0 ,   C 0 ) , using the Matlab’s function fmincon (with Algorithm = ’interior-point’) applied to the constrained optimization problem (28) and the function fsolve for the solution of the nonlinear system (2). N i t e r s is the number of iterations executed and N e v a l s is the number of evaluations of the functions R ( B ,   C ) and S ( B ,   C ) .
Table 8. OBA results for the polynomial p 3 ( x ) = ( x 2 + 1 ) ( x − 1 ) ( x − 2 ) : errors between the computed and exact values of the roots. The values of the roots x 1 * and x 2 * are obtained from the computed values ( B * ,   C * ) as roots of the quadratic polynomial x 2 + B * x + C * , while the roots x 3 * and x 4 * are computed by deflation as roots of p 3 ( x ) / ( x 2 + B * x + C * ) .
Table 9. NRBA results for the polynomial p 3 ( x ) = ( x 2 + 1 ) ( x − 1 ) ( x − 2 ) : errors between the computed and exact values of the roots. The values of the roots x 1 * and x 2 * are obtained from the computed values ( B * ,   C * ) as roots of the quadratic polynomial x 2 + B * x + C * , while the roots x 3 * and x 4 * are computed by deflation as roots of p 3 ( x ) / ( x 2 + B * x + C * ) .
For this problem, the MATLAB’s roots function returns the values:
  • x 1 = 2 ,
  • x 2 = 1 ,
  • x 3 = 5.724587470723463   ×   10 − 16 + i ,
  • x 4 = 5.724587470723463   ×   10 − 16 − i .

3.4. Chebyshev Polynomial of the First Kind

We now consider the Chebyshev polynomial of the first kind of degree 10, denoted by T 10 ( x ) . The Chebyshev polynomials of the first kind are defined by the recurrence relation
T 0 ( x ) = 1 , T 1 ( x ) = x , T n + 1 ( x ) = 2 x T n ( x ) − T n − 1 ( x ) ,
or equivalently by the trigonometric formula
T n ( x ) = cos ( n arccos ( x ) ) , x ∈ [ − 1 , 1 ] .
The roots of T n ( x ) are all real, simple, and lie in the interval ( − 1 , 1 ) . They are given analytically by
x k = cos 2 k − 1 20 π , k = 1 , 2 , … , n .
For n = 10 , the polynomial T 10 ( x ) has degree 10 and can be written explicitly as
T 10 ( x ) = 512 x 10 − 1280 x 8 + 1120 x 6 − 400 x 4 + 50 x 2 − 1 .
Explicitly, its roots are (in decreasing order):
x 1 = cos ( π / 20 ) ≈ 0.9876883405951378 , x 2 = cos ( 3 π / 20 ) ≈ 0.8910065241883679 , x 3 = cos ( 5 π / 20 ) = cos ( π / 4 ) ≈ 0.7071067811865476 , x 4 = cos ( 7 π / 20 ) ≈ 0.4539904997395468 , x 5 = cos ( 9 π / 20 ) ≈ 0.1564344650402309 , x 6 = cos ( 11 π / 20 ) ≈ − 0.1564344650402309 , x 7 = cos ( 13 π / 20 ) ≈ − 0.4539904997395468 , x 8 = cos ( 15 π / 20 ) = cos ( 3 π / 4 ) ≈ − 0.7071067811865476 , x 9 = cos ( 17 π / 20 ) ≈ − 0.8910065241883679 , x 10 = cos ( 19 π / 20 ) ≈ − 0.9876883405951378 .
This test case is particularly interesting because it involves a higher-degree polynomial with well-separated simple roots, allowing us to assess the performance and accuracy of both methods for more complex polynomials. Since T 10 ( x ) has ten real roots, both OBA and NRBA must perform five successive deflations to extract all quadratic factors.
To avoid excessively large tables, we report the Euclidean norm of the error vector for all computed roots rather than individual root errors. For a set of computed roots { x 1 * , … , x 10 * } and exact roots { x 1 , … , x 10 } , we define the root error norm as
E roots = ∑ k = 1 10 | x k * − x k | 2 .
Additionally, to describe the order in which roots are extracted, we introduce a root extraction sequence. For each deflation step j = 1 , … , 5 , we identify which pair of exact roots { x i j , x j j } from (31) most closely matches the computed quadratic factor roots. We then report the sequence of index pairs ( i 1 , j 1 ) , ( i 2 , j 2 ) , … , ( i 5 , j 5 ) to indicate the extraction order. This allows us to compare whether OBA’s preference for maximizing C 2 (which selects roots of largest magnitude) differs systematically from NRBA’s extraction pattern.
For the first deflation step, both methods use the specified initial guess ( B 0 ,   C 0 ) . After computing the first quadratic factor with solution ( B 1 * ,   C 1 * ) , the polynomial is deflated and the process repeats on the reduced polynomial. For each subsequent deflation step j = 2 , … , 5 , the initial point is set to the solution from the previous step: ( B 0 ,   C 0 ) j = ( B j − 1 * ,   C j − 1 * ) . This warm-start strategy typically reduces the number of iterations needed for subsequent deflations and creates a natural continuation path through the sequence of constraint manifolds.
The results are presented in Table 10 and Table 11.
Table 10. Polynomial T 10 ( x ) (Chebyshev of the first kind, degree 10). Comparison of the root error norm E roots and total number of iterations (summed over all 4 deflation steps), using fmincon (OBA) and fsolve (NRBA) starting from different initial points ( B 0 , C 0 ) .
Table 11. Root extraction sequences for T 10 ( x ) . For each initial point, we report the sequence of root pairs (identified by their indices from (31)) extracted at each deflation step. Remarkably, for each initial point ( B 0 , C 0 ) , both OBA and NRBA produce identical extraction sequences, although the sequences differ across different initial points.
The results for the Chebyshev polynomial T 10 ( x ) presented in Table 10 and Table 11 reveal several important observations about both methods.
As shown in Table 11, both OBA and NRBA produce identical root extraction sequences when starting from the same initial point ( B 0 ,   C 0 ) , although the extraction sequences vary across different initial points. This remarkable result reveals fundamental insights into the constraint manifold structure and algorithmic behavior. The identical extraction sequences suggest that both OBA and NRBA, despite their different formulations, follow equivalent paths through the constraint manifold M = { ( B , C ) : R ( B , C ) = S ( B , C ) = 0 } when properly initialized. The warm-start strategy ( B 0 , C 0 ) j = ( B j − 1 * , C j − 1 * ) creates deterministic continuation paths where each deflation step’s solution serves as the natural starting point for the next, effectively eliminating the initialization sensitivity that typically plagues classical Bairstow’s method.
The variation across different initial points demonstrates that multiple valid factorization paths exist through the parameter space, but each path is uniquely determined by its starting point. This suggests that the optimization landscape, while containing multiple solution trajectories, is well-structured for well-conditioned polynomials like T 10 ( x ) . The fact that OBA and NRBA traverse identical paths indicates that the constraint optimization’s convergence properties and Newton-Raphson’s local convergence properties align when the problem is well-conditioned and properly initialized.
From a theoretical perspective, this validates our Morse-theoretic analysis: the constraint manifold intersections are indeed transverse, the warm-start strategy maintains trajectories within convergence basins, and the discrete solution structure permits systematic traversal. The method independence of the extraction sequences suggests that the geometric structure of the constraint problem, rather than the specific optimization technique, determines the factorization pathway.
Moreover, this result indicates that, for this well-conditioned polynomial with well-separated roots, both methods converge to the same sequence of quadratic factors from each given starting point. The variation across initial points demonstrates that different initial guesses can lead to different (but equally valid) factorization paths through the parameter space. The warm-start strategy of using ( B j − 1 * , C j − 1 * ) as the initial point for subsequent deflation steps creates a deterministic continuation path: once the first quadratic factor is determined by the initial point ( B 0 , C 0 ) , the entire extraction sequence is determined by the successive warm starts.
Table 10 shows that both methods achieve extremely high accuracy, with root error norms E roots consistently at machine precision level, ranging from 2.572 × 10 − 15 to 5.773 × 10 − 14 . The total number of iterations required for the complete factorization (summed over all 5 deflation steps) varies significantly with the initial point: from as few as 26–28 iterations (for ( B 0 , C 0 ) = ( 0 , 0 ) ) to as many as 79–138 iterations (for ( B 0 , C 0 ) = ( 100 , 0 ) . Regarding the computational cost we observe, for most cases, a number of function evaluations roughly doubled for OBA vs. NRBA. Generally, NRBA tends to be more efficient than OBA in terms of total iterations and number of function evaluations for most initial points, though both achieve comparable accuracy.
While both methods achieve comparable accuracy, their computational efficiency differs significantly. OBA requires solving a constrained optimization problem at each deflation step, involving additional constraint gradient evaluations and potentially more iterations and function evaluations. However, this overhead is offset by the systematic factor selection, eliminating the need for multiple random restarts that classical NRBA often requires for difficult polynomials.
This test demonstrates that for well-conditioned polynomials with well-separated real roots, both OBA and NRBA can achieve excellent performance and identical extraction patterns from the same initial point. While different initial points may lead to different factorization sequences, the final accuracy remains consistently high, indicating that multiple valid extraction paths exist through the constraint manifold defined by R ( B , C ) = S ( B , C ) = 0 . The warm-start strategy ensures that the extraction sequence is fully determined by the choice of initial point for the first deflation.
Remark 8.
Repeated deflation is central to polynomial root-finding: after extracting a factor, the quotient polynomial is used for subsequent extractions. It is well established that deflation order significantly affects numerical stability and error accumulation [32,35]. Specifically, extracting roots in order of increasing magnitude minimizes error propagation, as errors in the deflated polynomial coefficients are damped rather than amplified in subsequent extractions. Instead, by maximizing C 2 = | z | 4 (where z denotes the roots of the extracted quadratic), OBA tries to extract the factor with largest-magnitude roots first. In contrast, classical Bairstow’s method extracts whichever factor lies in the basin of attraction of the initial guess, with no intrinsic preference for magnitude ordering. Achieving optimal deflation order with NRBA requires either foreknowledge of root magnitudes or multiple restarts with different initializations—both potentially adding computational overhead and complexity.

3.5. Robustness

In order to assess the robustness of the OBA, we have analyzed the absolute error of two roots computed at the first deflation step for the Chebishev polynomial of first kind of degree 20
T 20 ( x ) = 524288 x 20 − 2621440 x 18 + 5570560 x 16 − 6553600 x 14 + 4659200 x 12 + − 2050048 x 10 + 549120 x 8 − 84480 x 6 + 6600 x 4 − 200 x 2 + 1 ,
from a sample of 20,000 random initial points ( B 0 , C 0 ) uniformly distributed over the domain [ − 2 , 2 ] × [ − 1 , 1 ] . Figure 3 shows the Cumulative Distribution Functions of the root absolute errors (at the first deflation step) of OBA and NRBA, where we can see that the performance of OBA is similar to NRBA. The comparison reveals that neither method uniformly dominates the other across the entire range. At lower error thresholds, one curve (e.g., NRBA) may lie to the left, indicating better performance for small errors, while at higher thresholds the curves intersect, and OBA may outperform NRBA for larger errors. This pattern suggests that the relative advantage of each method depends on the error regime considered. For instance, NRBA appears more favorable in reducing small to moderate errors, whereas OBA may exhibit competitive or superior behavior in the tail of the distribution. Such intersections imply that conclusions about superiority should be context-dependent, focusing on the error range most relevant to the application. The degree of separation between the curves in specific regions provides insight into the magnitude of performance differences. From a practical perspective, this indicates that model selection should account for the operational error range: NRBA may be preferable when minimizing typical errors is critical, while OBA could offer robustness in scenarios where large deviations are more consequential.
Figure 3. Cumulative Distribution Functions of the root absolute errors (at the first deflation step) of T 20 ( x ) using OBA and NRBA for a sample of 20,000 random initial points ( B 0 , C 0 ) uniformly distributed over the domain [ − 2 , 2 ] × [ − 1 , 1 ] .

3.6. Final Considerations and Practical Implications

The comprehensive numerical experiments across four distinct polynomial classes demonstrate that both OBA and NRBA achieve comparable accuracy for well-conditioned problems, with root errors consistently at machine precision level. Despite theoretical concerns about backward deflation in OBA (extracting largest roots first), our experiments show that error propagation remains well-controlled for the tested polynomials. The optimization framework’s constraint handling appears to provide sufficient numerical stability to offset potential deflation-induced errors, though this warrants further investigation for higher-degree polynomials.
It is also worth noting that the two methods, OBA and NRBA, exhibit distinct behavioral differences that have important practical implications. These results have practical implications for applications requiring selective root extraction. Control system design often needs only dominant poles (largest magnitude roots), making OBA’s systematic largest-magnitude-first extraction valuable. Digital signal processing applications requiring roots within specific magnitude ranges benefit from OBA’s constraint flexibility. These results have practical implications for applications requiring selective root extraction. Control system design often needs only dominant poles (largest magnitude roots), making OBA’s systematic largest-magnitude-first extraction valuable. Digital signal processing applications requiring roots within specific magnitude ranges benefit from OBA’s constraint flexibility.
The optimization-based approach demonstrates particular advantages in handling multiple roots and discriminant boundary conditions, where the constraint framework provides better numerical stability than unconstrained root-finding. For polynomials with well-separated roots, both methods perform similarly, suggesting that the choice between approaches should depend primarily on application requirements rather than raw computational efficiency.

4. Conclusions

This paper has presented a reformulation of Bairstow’s method for polynomial factorization, transforming the classical Newton-Raphson iteration into a constrained optimization problem with well-understood geometric structure and robust convergence properties. The method operates by recasting the quadratic factor extraction problem as maximizing C 2 subject to the polynomial remainder constraints R ( B , C ) = 0 and S ( B , C ) = 0 .
The theoretical foundation presented in this work establishes that the constraint manifolds M 1 and M 2 corresponding to the constraints R ( B , C ) = 0 and S ( B , C ) = 0 . intersect transversally for generic well-conditioned polynomials, forming a finite discrete set of candidate quadratic factors. Morse theory provides the crucial insight that C 2 serves as a natural Morse function on this constraint manifold, with the maximum corresponding to the quadratic factor containing roots of largest magnitude. This optimization perspective resolves the fundamental ambiguity of classical Bairstow’s method—which among many possible quadratic factors should be extracted—by providing a principled selection criterion grounded in topological structure rather than heuristic choices. The structural stability analysis further reveals that solution uniqueness and robustness are quantifiable through the Jacobian determinant det ( J ) = c 2 2 − c 1 c 3 , offering both theoretical guarantees and practical conditioning measures that guide numerical implementation.
Such a reformulation also reveals connections between polynomial factorization and modern optimization theory. The Lagrangian formulation L ( B , C , λ 1 , λ 2 ) = C 2 − λ 1 R ( B , C ) − λ 2 S ( B , C ) unifies the classical Bairstow iteration with KKT conditions for constrained optimization, showing that successful Newton–Raphson steps approximate gradient flow on the constraint manifold toward critical points of C 2 . This perspective clarifies why classical Bairstow succeeds when initialized near the optimal factor and fails when far from it—Newton–Raphson method lacks global guidance toward the maximum, a deficiency that an explicit optimization formulation may remedy through systematic search strategies.
Future research directions include extending the framework to higher-degree factors (cubic or quartic extraction), generalizing to polynomials with complex coefficients, and developing specialized variants for sparse polynomial structures arising in applications. The optimization perspective opens possibilities for hybrid methods combining our approach with other root-finding techniques, potentially leveraging the strengths of multiple algorithms for maximum robustness across diverse polynomial types. Applications in control theory (pole placement with stability constraints), digital signal processing (filter design with frequency domain specifications), and computational geometry (polynomial intersections in geometric modeling) benefit directly from the selective extraction capability.

Author Contributions

Conceptualization, G.M. and M.M.; methodology, G.M. and M.M.; software, M.M.; validation, M.M.; formal analysis, G.M.; investigation, G.M. and M.M.; resources, G.M. and M.M.; data curation, G.M. and M.M.; writing—original draft preparation, G.M. and M.M.; writing—review and editing, G.M. and M.M.; visualization, M.M.; supervision, G.M. and M.M.; project administration, G.M. and M.M.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Implementation code, test polynomials, solver parameters, and reproduction scripts are available at https://gitlab.com/max.martinelli/bairstow-optimization-approach (accessed on 21 December 2025).

Acknowledgments

GM and MM are affiliated with the Italian Istituto Nazionale di Alta Matematica (INdAM). GenAI (chatGPT4 by OpenAI, Claude Sonnet 4.5 by Anthropic) could have served as writing assistant and editor assistant. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Detailed Proofs and Technical Details

This appendix provides rigorous proofs of the main theorems from Section 2, along with technical details, historical context, and connections to broader mathematical theory. The presentation includes all intermediate steps and supporting lemmas necessary for full mathematical rigor.

Appendix A.1. Thom’s Transversality Theorem and Its Application

We begin with Thom’s fundamental result, which underlies our analysis of the constraint manifold structure. René Thom developed transversality theory in the 1950s as part of his broader differential topology program. The theorem has since become fundamental across different area of Mathematics, including Differential Topology (generic properties of maps), Dynamical Systems (structural stability), Algebraic Geometry (intersection theory), and Numerical Analysis as in our application
Theorem A1
(Thom’s Transversality Theorem). Let M , N , and P be smooth manifolds, where P is a submanifold of N . Then, the set of smooth maps f : M → N that are transverse to P is residual (a countable intersection of open dense sets) in the space C ∞ ( M , N ) of smooth maps from M to N equipped with the C ∞ topology. In particular, transversality is a generic property: almost all smooth maps are transverse to any given submanifold.
For polynomial factorization via Bairstow’s method, we apply Thom’s theorem as follows. Consider the space P n of monic polynomials of degree n:
P n = p ( x ) = x n + a n − 1 x n − 1 + … + a 1 x + a 0 : a i ∈ R .
This space is naturally identified with R n via the coefficient vector ( a n − 1 , … , a 0 ) . For each polynomial p ∈ P n , Bairstow’s synthetic division defines constraint functions:
R p ( B , C ) = coefficient of x in remainder ,      
S p ( B , C ) = constant coefficient in remainder ,
yielding a parameterized family:
Φ : P n × R 2 → R 2 , Φ ( p , B , C ) = ( R p ( B , C ) , S p ( B , C ) ) .
For fixed p, the constraint manifolds are:
M R p = { ( B , C ) ∈ R 2 : R p ( B , C ) = 0 } ,
M S p = { ( B , C ) ∈ R 2 : S p ( B , C ) = 0 } .
These intersect transversely at ( B * , C * ) if the gradients ∇ R p ( B * , C * ) and ∇ S p ( B * , C * ) are linearly independent. Then, the following theorem holds.
Theorem A2
(Generic Transversality for Polynomial Constraints). The set of polynomials p ∈ P n for which constraint manifolds M R p and M S p intersect transversely at all intersection points is residual in P n . Consequently, transversality holds for almost all polynomials.
Proof. 
The proof proceeds in five steps: we first establish the polynomial structure of the problem, then define the relevant algebraic varieties, demonstrate that the non-transversality locus is a proper subvariety, and conclude via a measure-zero argument.
  • Step 1: Polynomial Structure. Consider the map
    Ψ : P n × R 2 → R 2 , Ψ ( a , B , C ) = R a ( B , C ) , S a ( B , C ) ,
    where a = ( a 0 , … , a n − 1 ) denotes the coefficient vector of a monic polynomial of degree n. A crucial observation is that R and S are polynomial functions of all variables ( a 0 , … , a n − 1 , B , C ) . This follows directly from Bairstow’s synthetic division algorithm (Proposition 1), which computes R and S through a finite sequence of additions and multiplications of the coefficients a i and the parameters B, C.
    The partial derivatives ∂ R ∂ B , ∂ R ∂ C , ∂ S ∂ B , and ∂ S ∂ C are therefore also polynomials in ( a 0 , … , a n − 1 , B , C ) . Consequently, the Jacobian determinant
    D ( a ; B , C ) : = det ( J ( B , C ) ) = ∂ R ∂ B ∂ S ∂ C − ∂ R ∂ C ∂ S ∂ B
    is a polynomial function of all n + 2 variables.
  • Step 2: The Incidence Variety. Define the incidence variety:
    V = { ( a , B , C ) ∈ R n + 2 : R a ( B , C ) = 0 and S a ( B , C ) = 0 } .
    This is an algebraic variety in R n + 2 defined by two polynomial equations. Geometrically, a point ( a , B , C ) ∈ V means that the quadratic x 2 + B x + C is a factor of the polynomial with coefficient vector a . By standard dimension counting (two equations in n + 2 variables), we expect dim ( V ) = n for generic configurations.
  • Step 3: The Non-Transversality Locus. Define the non-transversality locus:
    N = ( a , B , C ) ∈ V : D ( a ; B , C ) = 0 .
    This is the subset of the incidence variety where transversality fails, i.e., where the Jacobian is singular. Since N is defined by one additional polynomial equation ( D = 0 ) within V , it is a subvariety of V . The key question is whether N is a proper subvariety (i.e., N ⊊ V ), or equivalently, whether D is identically zero on V .
    To prove that N is a proper subvariety, we exhibit an explicit polynomial for which transversality holds at all intersection points. Consider the polynomial:
    p ( x ) = ( x 2 + 1 ) ( x 2 + 4 ) = x 4 + 5 x 2 + 4 ,
    corresponding to coefficient vector a = ( 4 ,   0 ,   5 ,   0 ) (for the monic polynomial x 4 + 0 · x 3 + 5 x 2 + 0 · x + 4 ). This polynomial has exactly two irreducible quadratic factors over R :
    • x 2 + 1 with ( B 1 , C 1 ) = ( 0 , 1 ) , corresponding to roots ± i ;
    • x 2 + 4 with ( B 2 , C 2 ) = ( 0 , 4 ) , corresponding to roots ± 2 i .
    We now verify that transversality holds at both intersection points. For a degree-4 polynomial p ( x ) = x 4 + a 3 x 3 + a 2 x 2 + a 1 x + a 0 , synthetic division by x 2 + B x + C yields:
    b 4 = 1 , b 3 = a 3 − B , b 2 = a 2 − B b 3 − C , b 1 = a 1 − B b 2 − C b 3 = R ( B , C ) , b 0 = a 0 − C b 2 = S ( B , C ) .
    For p ( x ) = x 4 + 5 x 2 + 4 (i.e., a 3 = 0 , a 2 = 5 , a 1 = 0 , a 0 = 4 ):
    b 4 = 1 , b 3 = − B , b 2 = 5 − B ( − B ) − C = 5 + B 2 − C , R ( B , C ) = 0 − B ( 5 + B 2 − C ) − C ( − B ) = − 5 B − B 3 + B C + B C = − 5 B − B 3 + 2 B C , S ( B , C ) = 4 − C ( 5 + B 2 − C ) = 4 − 5 C − B 2 C + C 2 .
    The partial derivatives are:
    ∂ R ∂ B = − 5 − 3 B 2 + 2 C , ∂ R ∂ C = 2 B , ∂ S ∂ B = − 2 B C , ∂ S ∂ C = − 5 − B 2 + 2 C .
    At ( B 1 , C 1 ) = ( 0 , 1 ) :
    J ( 0 , 1 ) = − 5 + 2 0 0 − 5 + 2 = − 3 0 0 − 3 , det ( J ( 0 , 1 ) ) = 9 ≠ 0 .
    At ( B 2 , C 2 ) = ( 0 , 4 ) :
    J ( 0 , 4 ) = − 5 + 8 0 0 − 5 + 8 = 3 0 0 3 , det ( J ( 0 , 4 ) ) = 9 ≠ 0 .
    Since transversality holds at both intersection points for this polynomial, we have demonstrated that D is not identically zero on V . Therefore, N is a proper subvariety of V .
  • Step 4: Measure-Zero Conclusion. Let π : R n + 2 → R n denote the projection onto coefficient space, π ( a , B , C ) = a . The set of “bad” coefficients—those for which transversality fails at some intersection point—is:
    B = π ( N ) = a ∈ R n : ∃ ( B , C ) with ( a , B , C ) ∈ N .
    By elimination theory [34], the projection of an algebraic variety is a constructible set (a finite union of locally closed sets). Since N is a proper subvariety of V , we have dim ( N ) ≤ dim ( V ) − 1 = n − 1 . The projection B = π ( N ) is therefore contained in a constructible set of dimension at most n − 1 in R n . By standard results in real algebraic geometry [36], constructible sets of dimension strictly less than n have Lebesgue measure zero in R n .
  • Conclusion. The set B of coefficient vectors for which transversality fails has measure zero in coefficient space R n . Equivalently, for almost all polynomials p ∈ P n (in the sense of Lebesgue measure), the constraint manifolds M R p and M S p intersect transversely at all intersection points. This completes the proof. □
Remark A1
(Comparison with Thom’s Theorem). The classical approach to proving generic transversality invokes Thom’s Transversality Theorem (Theorem A1) with an appeal to a parametric version. The algebraic proof presented above is more direct for our setting: it exploits the polynomial structure of Bairstow’s method to give an explicit measure-zero argument without requiring the full machinery of jet bundles and the C ∞ topology. Both approaches yield the same conclusion—transversality is generic—but the algebraic proof has the advantage of being self-contained and providing a concrete verification via explicit examples.
We now provide the detailed proof of Theorem 2 from the main text, establishing that constraint manifolds intersect at finitely many isolated points.
Theorem A3
(Finite Intersection Property). Let p ( x ) = ∑ i = 0 n a i x i with a n ≠ 0 be a polynomial such that, for every solution ( B * , C * ) of R ( B * , C * ) = S ( B * , C * ) = 0 , the Jacobian determinant satisfies det ( J ( B * , C * ) ) ≠ 0 . Then the constraint manifolds M R = { ( B , C ) ∈ R : R ( B , C ) = 0 } and M S = { ( B , C ) ∈ R : S ( B , C ) = 0 } intersect transversely at all their intersection points, and the intersection M R ∩ M S consists of finitely many isolated points. In particular, the number of such intersection points is bounded above by ⌊ n / 2 ⌋ .
Proof. 
We establish this through six detailed steps.
  • Step 1: Smoothness and Manifold Structure. The functions R ( B , C ) and S ( B , C ) are smooth (infinitely differentiable) in ( B , C ) because they arise from polynomial operations. By the Implicit Function Theorem, if ∇ R ( B , C ) ≠ 0 at some point, then M R is a smooth one-dimensional submanifold of R 2 near that point. Similarly for M S where ∇ S ( B , C ) ≠ 0 . For well-conditioned polynomials without special symmetries (such as all roots having identical real parts or moduli), these gradient non-degeneracy conditions hold at all points of interest. Thus, M R and M S are smooth curves in the plane.
  • Step 2: Transversality for Well-Conditioned Polynomials. For well-conditioned polynomials, the transversality condition can hold at intersection points. When satisfied, the Jacobian matrix
    J ( B , C ) = ∂ R ∂ B ∂ R ∂ C ∂ S ∂ B ∂ S ∂ C
    is non-singular at ( B * , C * ) . This property ensures that the gradients ∇ R and ∇ S are linearly independent. While Thom’s Transversality Theorem (Theorem A2) suggests this is generic, numerical evidence indicates possible failures for solutions maximizing the quantity C 2 . Nevertheless, for many well-conditioned polynomials, sufficient transversality exists to ensure finite isolated intersections.
  • Step 3: Dimension Counting. Since in the previous step we proved that the one-dimensional manifolds M R and M S intersect transversely in R 2 , we infer that their intersection is zero-dimensional. This result simply follows from the dimension formula:
    dim ( M R ∩ M S ) = dim M R + dim M S − dim ( R 2 ) = 1 + 1 − 2 = 0 .
    Zero-dimensional manifolds in R 2 are discrete point sets. Therefore, transversality ensures these points are isolated: each has a neighborhood containing no other intersection points.
  • Step 4: Finiteness from Polynomial Structure. Each intersection point ( B * , C * ) corresponds to a quadratic factor x 2 + B * x + C * of p ( x ) . A degree-n polynomial has exactly n roots (counting multiplicity). Complex roots appear in conjugate pairs, each corresponding to one irreducible quadratic factor over R . Real roots correspond to linear factors. Therefore, p ( x ) admits at most ⌊ n / 2 ⌋ distinct irreducible quadratic factors. Each factor corresponds to at most one intersection point, bounding | M R ∩ M S | ≤ ⌊ n / 2 ⌋ .
  • Step 5: Alternative Bound via Bézout’s Theorem. An alternative (though looser) bound comes from algebraic geometry. Bézout’s Theorem [37] states that two algebraic curves of degrees d 1 and d 2 in R 2 intersect in at most d 1 · d 2 points (counting multiplicity and complex intersections). The constraint functions R ( B , C ) and S ( B , C ) are polynomials in ( B , C ) of degree at most n − 1 . Therefore, M R ∩ M S contains at most ( n − 1 ) 2 points, confirming finiteness though providing a weaker bound than the structural argument.
  • Step 6: Summary. Combining these observations: M R and M S are smooth curves; when transversality holds, they intersect at isolated points; polynomial structure bounds the number of such points by ⌊ n / 2 ⌋ . Therefore, for well-conditioned polynomials where sufficient transversality exists, M R ∩ M S is a finite discrete set. □

Appendix A.2. Proof of Global Maximum Existence and Uniqueness

This section provides the complete proof of Theorem 1, establishing uniqueness of the global maximum under appropriate conditions.
Theorem A4
(Unique Global Maximum—Detailed Version). Consider the constrained optimization problem:
max ( B , C ) ∈ R 2 C 2 subject to R ( B , C ) = 0 , S ( B , C ) = 0 .
When transversality holds and all quadratic factors of p ( x ) have distinct root magnitudes, this problem has a unique global solution.
Proof. 
We provide a six-step detailed analysis of the “optimization landscape”.
  • Step 1: Existence of Maximum. By Theorem A3, M R ∩ M S is a finite discrete set when transversality holds. Specifically, if M R ∩ M S = { ( B 1 , C 1 ) , ( B 2 , C 2 ) , … , ( B k , C k ) } for some k ≤ ⌊ n / 2 ⌋ , then:
    max ( B , C ) ∈ M R ∩ M S C 2 = max i = 1 , … , k C i 2 .
    Since we maximize a continuous function over a finite set, the maximum exists.
  • Step 2: Geometric Interpretation of C. Each intersection point ( B i , C i ) corresponds to a quadratic factor q i ( x ) = x 2 + B i x + C i of polynomial p ( x ) . The roots of q i ( x ) are:
    z i , z i ¯ = − B i ± B i 2 − 4 C i 2 .
    For complex conjugate roots (when B i 2 − 4 C i < 0 ), the parameter C i relates to root modulus by Vieta’s formula:
    C i = z i z i ¯ = | z i | 2 .
    For real roots r i , s i (when B i 2 − 4 C i ≥ 0 ):
    C i = r i s i .
    Therefore, maximizing C 2 selects the quadratic factor whose roots have largest magnitude (for complex pairs) or largest product (for real pairs).
  • Step 3: Uniqueness Under Distinct Magnitudes. Suppose all quadratic factors have roots with distinct magnitudes. Order them: | z 1 | > | z 2 | > … > | z k | . Then, it holds that
    C 1 2 = | z 1 | 4 > C 2 2 = | z 2 | 4 > … > C k 2 = | z k | 4 .
    The strict inequality ensures:
    max i = 1 , … , k C i 2 = C 1 2 ,
    with the maximum achieved uniquely at ( B 1 , C 1 ) .
  • Step 4: Connection to Root Magnitudes. The global maximum corresponds to the quadratic factor containing p ( x ) ’s root(s) of largest modulus. If z max is the root with | z max | = max { | z | : p ( z ) = 0 } , then the optimal solution has C * = | z max | 2 . This provides the following interpretation: the optimization naturally selects the “dominant” factor corresponding to the polynomial’s largest-magnitude roots.
  • Step 5: Morse Function Perspective. The objective f ( B , C ) = C 2 restricted to the discrete manifold M R ∩ M S is automatically a Morse function. On discrete manifolds, any smooth function is a Morse function since there are no non-trivial tangent spaces where the Hessian could be singular. This ensures the optimization landscape is well-behaved with clear global structure.
  • Step 6: Degenerate Cases. When the distinct magnitude assumption fails—i.e., two or more quadratic factors have roots with equal maximum modulus—the optimization problem has multiple global maxima. For randomly generated polynomials, exact magnitude ties occur with probability zero, making uniqueness realistic for most applications. However, special polynomial structures can create degeneracies. For example, p ( x ) = x 4 − 2 a x 2 + a 2 = ( x 2 − a ) 2 has all roots with magnitude a , creating non-uniqueness. Such cases require regularization or lexicographic ordering for resolution. □

Appendix A.3. Proof of the Structural Stability Property

We provide the complete proof of Theorem 3, establishing that transversality implies structural stability under perturbations.
Theorem A5
(Transversality Implies Structural Stability). If constraint manifolds M R and M S intersect transversely at all intersection points, then the constraint system is structurally stable: the number and local structure of intersection points are preserved under sufficiently small perturbations.
Proof. 
We establish structural stability through three detailed steps using the Implicit Function Theorem and persistence theory [38].
  • Step 1: Local Persistence via Implicit Function Theorem. Consider an intersection point ( B * , C * ) where transversality holds:
    det ∂ R ∂ B ( B * , C * ) ∂ R ∂ C ( B * , C * ) ∂ S ∂ B ( B * , C * ) ∂ S ∂ C ( B * , C * ) ≠ 0 .
    Consider a perturbation ( R ϵ , S ϵ ) satisfying ∥ ( R ϵ , S ϵ ) − ( R , S ) ∥ C 1 < ϵ for small ϵ > 0 . The C 1 norm includes both function values and first derivatives, ensuring smoothness is preserved. By the Implicit Function Theorem, since the Jacobian is non-singular at ( B * , C * ) , the perturbed system { R ϵ = 0 , S ϵ = 0 } has a unique solution ( B ϵ * , C ϵ * ) in a neighborhood of ( B * , C * ) . Moreover, this solution depends continuously on ϵ :
    ( B ϵ * , C ϵ * ) → ( B * , C * ) as ϵ → 0 .
    This establishes local persistence: each transverse intersection point persists under small perturbations.
  • Step 2: Global Persistence via Compactness. Since transversality holds at all intersection points, each point has a persistence neighborhood guaranteed by Step 1. By Theorem A3, there are finitely many intersection points: M R ∩ M S = { ( B 1 * , C 1 * ) , … , ( B k * , C k * ) } . Let ϵ i > 0 be the persistence threshold for the i-th point. Setting ϵ * = min i = 1 , … , k ϵ i > 0 , we obtain a uniform perturbation bound. For any perturbation with ∥ ( R ϵ , S ϵ ) − ( R , S ) ∥ C 1 < ϵ * , all k intersection points persist.
  • Step 3: No Spurious Solutions. We must verify that small perturbations do not create new intersection points. The constraint functions R ( B , C ) and S ( B , C ) are polynomials in ( B , C ) of bounded degree (at most n − 1 where n is the polynomial degree). By Bézout’s Theorem, the number of intersection points (counting multiplicity) is bounded by ( n − 1 ) 2 . Since this bound is finite and perturbations are continuous, small perturbations cannot create intersection points “from infinity.” Furthermore, at non-intersection points ( B , C ) where R 2 ( B , C ) + S 2 ( B , C ) > δ > 0 , continuity ensures that sufficiently small perturbations maintain R ϵ 2 ( B , C ) + S ϵ 2 ( B , C ) > δ / 2 > 0 . Thus, non-intersection points remain non-intersection points under small perturbations.
  • Conclusion. Combining these steps: each existing intersection point persists (Steps 1–2), and no new intersection points appear (Step 3). Therefore, the constraint system is structurally stable. Small perturbations to polynomial coefficients (e.g., from floating-point arithmetic) shift intersection points continuously but preserve their number and local structure. This stability is essential for reliable numerical computation: well-conditioned problems remain well-conditioned under small numerical error. Conversely, when transversality fails ( det ( J ) ≈ 0 ), structural stability is lost, and numerical solutions become unreliable. This theoretical prediction matches practical numerical experience with Bairstow’s method. □

Appendix A.4. Connection to Classical Bairstow’s Method Convergence

We provide the detailed analysis underlying Theorem 4, connecting classical Bairstow’s method to transversality.
Theorem A6
(Convergence and Transversality). Classical Bairstow’s method, defined by the Newton–Raphson iteration
B k + 1 C k + 1 = B k C k − J ( B k , C k ) − 1 R ( B k , C k ) S ( B k , C k ) ,
converges locally and quadratically to a solution ( B * , C * ) , provided that R ( B * , C * ) = S ( B * , C * ) = 0 and the transversality condition holds at that point, i.e., det ( J ( B * , C * ) ) ≠ 0 . Conversely, if det ( J ( B * , C * ) ) = 0 , then the Jacobian is singular, the Newton–Raphson update is not well defined in the usual sense, and the classical local convergence theory does not apply; in practice, the iteration is typically unstable or fails to converge.
Proof. 
The proof follows from the standard Newton–Raphson theory applied to our specific geometric setting.
  • Step 1: Newton–Raphson Theory. For a nonlinear system F ( x ) = 0 where F : R m → R m , Newton’s method:
x k + 1 = x k − J F ( x k ) − 1 F ( x k ) ,
converges locally to a solution x * if:
  • F ( x * ) = 0 (feasibility);
  • J F ( x * ) is non-singular (regularity);
  • x 0 is sufficiently close to x * (initialization).
Under these conditions, convergence is quadratic: ∥ x k + 1 − x * ∥ ≤ C ∥ x k − x * ∥ 2 for some constant C depending on the Hessian of F.
  • Step 2: Application to Bairstow’s Method. In our setting, F ( B , C ) = ( R ( B , C ) , S ( B , C ) ) and the Jacobian is:
    J F ( B , C ) = J ( B , C ) = ∂ R ∂ B ∂ R ∂ C ∂ S ∂ B ∂ S ∂ C .
    The regularity condition det ( J ( B * , C * ) ) ≠ 0 is precisely the transversality condition (24). Thus, Bairstow’s method converges locally to ( B * , C * ) if and only if the constraint manifolds intersect transversely at that point.
  • Step 3: Failure at Non-Transverse Intersections. When det ( J ( B * , C * ) ) = 0 , the Jacobian is singular, and Newton’s iteration becomes ill-defined (the inverse in the update formula does not exist). Geometrically, this means M R and M S are tangent at ( B * , C * ) —they touch but do not cross transversely. In practice, near-singularity ( | det ( J ) | ≈ 0 ) causes severe numerical difficulties: the iteration becomes unstable, step sizes become unpredictable, and convergence (if it occurs at all) is extremely slow.
  • Step 4: Geometric Interpretation. Classical Bairstow’s method can be viewed as following the Newton flow:
    d d t B ( t ) C ( t ) = − J ( B ( t ) , C ( t ) ) − 1 R ( B ( t ) , C ( t ) ) S ( B ( t ) , C ( t ) ) .
    This flow seeks zeros of the vector field ( R , S ) , which correspond to intersection points of M R and M S . Transversality ensures the flow is well-defined and convergent. When transversality fails, the flow becomes singular and the method breaks down.
  • Step 5: Advantage of Optimization Reformulation. The optimization perspective offers robustness beyond classical Newton–Raphson method. Modern constrained optimization solvers employ globalization strategies (line searches, trust regions) that maintain progress even when the Jacobian becomes ill-conditioned. Furthermore, the objective function C 2 provides directional guidance: even near singular points, gradient information from the objective can guide the search toward the global maximum. This explains why the optimization-based approach demonstrates superior practical performance compared to classical Bairstow’s method, particularly for challenging polynomials where transversality may be marginal. □

Appendix A.5. Practical Implementation Guidelines

This section provides concise recommendations for implementing the optimization-based Bairstow algorithm (OBA), see also Table A1.
  • Initialization. For the dominant irreducible quadratic factor, a possible initialization may consist in taking B 0 = 0 and C 0 = | a 0 | 2 / n , as the discriminant is negative. If the serached dominant factor is real, we recommend starting from an initial point that correspond a positive discriminant. Other initialization criteria can be based on using Cauchy bounds.
  • Algorithm Selection and Tolerances. According to MATLAB recommendationm we suggest using the interior-point method as default, and switch to SQP if the interior-point method exhibits difficulties in convergence. Recommended tolerances are very problem dependent. Specific values close to the machine precision can be recommended only if a very accurate root calculation is required. Furthermore, due to the possibility of plateaus in the constraint violation (see Remark 7), special care should be devoted in identifying a suitable convergence criterion and tolerance values.
  • Failure Detection. Monitor | det ( J ) | throughout; values below 10 − 8 indicate near-tangency requiring regularization or algorithm switching. Set a maximum iteration limit (e.g., 1000). Validate solutions by checking | p ( z * ) | < 10 − 10 ∥ p ∥ where z * are roots of the extracted factor. Terminate and reinitialize if iterates escape a reasonable bound.
Table A1. OBA implementation recommendations.

References

  1. Katz, V.J. A History of Mathematics: An Introduction, 3rd ed.; Addison-Wesley: Boston, MA, USA, 2009. [Google Scholar]
  2. Berggren, J.L. Mathematics in Medieval Islam. J. Am. Orient. Soc. 2007, 127, 495–509. [Google Scholar]
  3. Cardano, G. Artis Magnae Sive de Regulis Algebraicis; The Great Art or the Rules of Algebra, Translator; Johann Petreius: Nuremberg, Germany, 1545. [Google Scholar]
  4. Abel, N.H. Démonstration de l’impossibilité de la résolution algébrique des équations générales qui passent le quatrième degré. J. Fur Die Reine Und Angew. Math. 1826, 1, 65–84. [Google Scholar]
  5. Galois, É. Mémoire sur les conditions de résolubilité des équations par radicaux. J. Math. Pures Appl. 1846, 11, 381–444. [Google Scholar]
  6. Newton, I. De Analysi per Aequationes Numero Terminorum Infinitas, 1669. Manuscript Circulated Privately, Published in 1711. Available online: https://grokipedia.com/page/De_analysi_per_aequationes_numero_terminorum_infinitas (accessed on 21 December 2025).
  7. Horner, W.G. A new method of solving numerical equations of all orders, by continuous approximation. Philos. Trans. R. Soc. Lond. 1819, 109, 308–335. [Google Scholar] [CrossRef] [Scilit]
  8. Wilkinson, J.H. The Algebraic Eigenvalue Problem; Oxford University Press: Oxford, UK, 1965. [Google Scholar]
  9. Press, W.H.; Teukolsky, S.A.; Vetterling, W.T.; Flannery, B.P. Numerical Recipes: The Art of Scientific Computing, 3rd ed.; Cambridge University Press: Cambridge, UK, 2007. [Google Scholar]
  10. Householder, A.S. The Numerical Treatment of a Single Nonlinear Equation; McGraw-Hill: New York, NY, USA, 1970. [Google Scholar]
  11. Stoer, J.; Bulirsch, R. Introduction to Numerical Analysis, 3rd ed.; Springer: New York, NY, USA, 2002. [Google Scholar]
  12. Ralston, A.; Rabinowitz, P. A First Course in Numerical Analysis, 2nd ed.; McGraw-Hill: New York, NY, USA, 1978. [Google Scholar]
  13. Bairstow, L. Applied Aerodynamics; Longmans, Green and Company: London, UK, 1914. [Google Scholar]
  14. Acton, F.S. Numerical Methods That Work; Harper & Row: New York, NY, USA, 1970. [Google Scholar]
  15. Golub, G.H.; Van Loan, C.F. Matrix Computations, 4th ed.; Johns Hopkins University Press: Baltimore, MD, USA, 2013. [Google Scholar]
  16. Jenkins, M.A.; Traub, J.F. A Three-Stage Variable-Shift Iteration for Polynomial Zeros. SIAM J. Numer. Anal. 1968, 5, 173–195. [Google Scholar]
  17. Jenkins, M.A. Algorithm 493: Zeros of a Real Polynomial. Commun. ACM 1970, 13, 717–720. [Google Scholar] [CrossRef] [Scilit]
  18. Ehrlich, L.W. A Modified Newton Method for Polynomials. Commun. ACM 1967, 10, 107–108. [Google Scholar] [CrossRef] [Scilit]
  19. Aberth, O. Iteration methods for finding all zeros of a polynomial simultaneously. Math. Comput. 1973, 27, 339–344. [Google Scholar] [CrossRef]
  20. Bini, D.A.; Fiorentino, G. Design, Analysis and Implementation of a Multiprecision Polynomial Rootfinder. Numer. Algorithms 2000, 23, 127–173. [Google Scholar] [CrossRef] [Scilit]
  21. Tilli, P. Newton-Like Methods for Polynomial Rootfinding. Math. Comput. 1998, 66, 63–86. [Google Scholar]
  22. Qureshi, S.; Argyros, I.K.; Soomro, A.; Gdawiec, K.; Shaikh, A.A.; Hincal, E. A new optimal root-finding iterative algorithm: Local and semilocal analysis with polynomiography. Numer. Algorithms 2024, 95, 1715–1745. [Google Scholar] [CrossRef] [Scilit]
  23. Raghav, Y.S.; Haq, A.; Ali, I. Multiobjective intuitionistic fuzzy programming under pessimistic and optimistic applications in multivariate stratified sample allocation problems. PLoS ONE 2023, 18, e0284784. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Milnor, J. Morse Theory; Annals of Mathematics Studies; Princeton University Press: Princeton, NJ, USA, 1963; Volume 51. [Google Scholar]
  25. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Johnson, S.G. NLopt: Nonlinear Optimization Library, Version 2.7.1. 2024. Available online: https://ui.adsabs.harvard.edu/abs/2021ascl.soft11004J/abstract (accessed on 21 December 2025).
  27. Wächter, A.; Biegler, L.T. On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming. Math. Program. 2006, 106, 25–57. [Google Scholar] [CrossRef] [Scilit]
  28. The MathWorks, Inc. Optimization Toolbox User’s Guide, r2024a ed.; The MathWorks, Inc.: Natick, MA, USA, 2024. [Google Scholar]
  29. Dunning, I.; Huchette, J.; Lubin, M. JuMP: A modeling language for mathematical optimization. SIAM Rev. 2017, 59, 295–320. [Google Scholar] [CrossRef] [Scilit]
  30. Hart, W.E.; Laird, C.D.; Watson, J.P.; Woodruff, D.L.; Hackebeil, G.A.; Nicholson, B.L.; Siirola, J.D. Pyomo—Optimization Modeling in Python; Springer Optimization and Its Applications; Springer: Berlin/Heidelberg, Germany, 2017; Volume 67. [Google Scholar] [CrossRef] [Scilit]
  31. Bronshtein, I.N.; Semendyayev, K.A.; Musiol, G.; Mühlig, H. Handbook of Mathematics, 5th ed.; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar]
  32. Wilkinson, J.H. The perfidious polynomial. Stud. Numer. Anal. 1984, 24, 1–28. [Google Scholar]
  33. Nocedal, J.; Wright, S.J. Numerical Optimization, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar]
  34. Gelfand, I.M.; Kapranov, M.M.; Zelevinsky, A.V. Discriminants, Resultants, and Multidimensional Determinants; Birkhäuser: Boston, MA, USA, 1994. [Google Scholar]
  35. Wilkinson, J.H. Rounding Errors in Algebraic Processes; Prentice-Hall Series in Automatic Computation; Prentice-Hall: Englewood Cliffs, NJ, USA, 1963. [Google Scholar]
  36. Bochnak, J.; Coste, M.; Roy, M.F. Real Algebraic Geometry; Ergebnisse der Mathematik und ihrer Grenzgebiete; Springer: Berlin/Heidelberg, Germany, 1998; Volume 36. [Google Scholar]
  37. Fulton, W. Algebraic Curves; Mathematics Lecture Note Series; W.A. Benjamin: New York, NY, USA, 1974. [Google Scholar]
  38. Edelsbrunner, H.; Harer, J. Computational Topology: An Introduction; American Mathematical Society: Providence, RI, USA, 2010. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.