# Algorithms for Weighted Sums of Squares Decomposition of Non-negative Univariate Polynomials

2 PolSys - Polynomial Systems
Inria de Paris, LIP6
Abstract : It is well-known that every non-negative univariate real polynomial can be written as the sum of two polynomial squares with real coefficients. When one allows a weighted sum of finitely many squares instead of a sum of two squares, then one can choose all coefficients in the representation to lie in the field generated by the coefficients of the polynomial. In particular, this allows an effective treatment of polynomials with rational coefficients. In this article, we describe, analyze and compare both from the theoretical and practical points of view, two algorithms computing such a weighted sums of squares decomposition for univariate polynomials with rational coefficients. The first algorithm, due to the third author relies on real root isolation, quadratic approximations of positive polynomials and square-free decomposition but its complexity was not analyzed. We provide bit complexity estimates, both on the runtime and the output size of this algorithm. They are exponential in the degree of the input univariate polynomial and linear in the maximum bitsize of its complexity. This analysis is obtained using quantifier elimination and root isolation bounds. The second algorithm, due to Chevillard, Harrison, Joldes and Lauter, relies on complex root isolation and square-free decomposition and has been introduced for certifying positiveness of poly-nomials in the context of computer arithmetics. Again, its complexity was not analyzed. We provide bit complexity estimates, both on the runtime and the output size of this algorithm, which are polynomial in the degree of the input polynomial and linear in the maximum bitsize of its complexity. This analysis is obtained using Vieta's formula and root isolation bounds. Finally, we report on our implementations of both algorithms and compare them in practice on several application benchmarks. While the second algorithm is, as expected from the complexity result, more efficient on most of examples, we exhibit families of non-negative polynomials for which the first algorithm is better.
Keywords :
Document type :
Journal articles

Cited literature [32 references]

https://hal.archives-ouvertes.fr/hal-01538729
Contributor : Victor Magron <>
Submitted on : Wednesday, June 14, 2017 - 9:31:48 AM
Last modification on : Tuesday, May 11, 2021 - 11:36:59 AM
Long-term archiving on: : Tuesday, December 12, 2017 - 3:16:53 PM

### File

1706.03941.pdf
Files produced by the author(s)

### Citation

Victor Magron, Mohab Safey El Din, Markus Schweighofer. Algorithms for Weighted Sums of Squares Decomposition of Non-negative Univariate Polynomials. Journal of Symbolic Computation, Elsevier, 2019, 93, pp.200-220. ⟨10.1016/j.jsc.2018.06.005⟩. ⟨hal-01538729⟩

Record views