Given a multivariate polynomial that takes only non-negative values over the reals, can it be represented as a sum of squares of rational functions?
Hilbert's question can be restricted to homogeneous polynomials of even degree, since a polynomial of odd degree changes sign, and the homogenization of a polynomial takes only nonnegative values if and only if the same is true for the polynomial.
which cannot be represented as a sum of squares of other polynomials. In 1888, Hilbert showed that every non-negative homogeneous polynomial in n variables and degree 2d can be represented as sum of squares of other polynomials if and only if either (a)
n = 2 or (b) 2d = 2 or (c) n = 3 and 2d = 4.[2] Hilbert's proof did not exhibit any explicit counterexample: only in 1967 the first explicit counterexample was constructed by Motzkin.[3] Furthermore, if the polynomial has a degree 2d greater than two, there are significantly many more non-negative polynomials that cannot be expressed as sums of squares.[4]
The following table summarizes in which cases every non-negative homogeneous polynomial (or a polynomial of even degree) can be represented as a sum of squares:
Any homogeneous polynomial of degree 2d and n variables can be represented as sum of squares?
2d (Degree)
Any polynomial of degree 2d and n variables can be represented as sum of squares?
2d (Degree)
2
4
≥6
2
4
≥6
n (Number of variables)
1
Yes
Yes
Yes
n (Number of variables)
1
Yes
Yes
Yes
2
Yes
Yes
Yes
2
Yes
Yes
No
3
Yes
Yes
No
3
Yes
No
No
≥4
Yes
No
No
≥4
Yes
No
No
Solution and generalizations
The particular case of n = 2 was already solved by Hilbert in 1893.[5] The general problem was solved in the affirmative, in 1927, by Emil Artin,[6] for positive semidefinite functions over the reals or more generally real-closed fields. An algorithmic solution was found by Charles Delzell in 1984.[7] A result of Albrecht Pfister[8] shows that a positive semidefinite form in n variables can be expressed as a sum of 2n squares.[9]
Dubois showed in 1967 that the answer is negative in general for ordered fields.[10] In this case one can say that a positive polynomial is a sum of weighted squares of rational functions with positive coefficients.[11] McKenna showed in 1975 that all positive semidefinite polynomials with coefficients in an ordered field are sums of weighted squares of rational functions with positive coefficients only if the field is dense in its real closure in the sense that any interval with endpoints in the real closure contains elements from the original field.[12]
A generalization to the matrix case (matrices with polynomial function entries that are always positive semidefinite can be expressed as sum of squares of symmetric matrices with rational function entries) was given by Gondard, Ribenboim[13] and Procesi, Schacher,[14] with an elementary proof given by Hillar and Nie.[15]
Minimum number of square rational terms
It is an open question what is the smallest number
such that any n-variate, non-negative polynomial of degree d can be written as sum of at most square rational functions over the reals. An upper bound due to Pfister in 1967 is:[8]
In the other direction, a conditional lower bound can be derived from computational complexity theory. An n-variable instance of 3-SAT can be realized as a positivity problem on a polynomial with n variables and d=4. This proves that positivity testing is NP-Hard. More precisely, assuming the exponential time hypothesis to be true, .
In complex analysis the Hermitian analogue, requiring the squares to be squared norms of holomorphic mappings, is somewhat more complicated, but true for positive polynomials by a result of Quillen.[16] The result of Pfister on the other hand fails in the Hermitian case, that is there is no bound on the number of squares required, see D'Angelo–Lebl.[17]
^Artin, Emil (1927). "Über die Zerlegung definiter Funktionen in Quadrate". Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg. 5 (1): 100–115. doi:10.1007/BF02952513. S2CID122607428.
^McKenna, K. (1975). New facts about Hilbert's seventeenth problem. Model Theory and Algebra, Lecture Notes in Mathematics. Vol. 498. Springer, Berlin, Heidelberg. pp. 220–230.