\documentclass[12pt]{article} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage[margin=1in]{geometry} \usepackage{enumitem} \usepackage[colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} \newtheoremstyle{plainsl} {8pt plus 2pt minus 4pt} {8pt plus 2pt minus 4pt} {\slshape} {0pt} {\bfseries} {.} {5pt plus 1pt minus 1pt} {} \theoremstyle{plainsl} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{remark}[theorem]{Remark} \newcommand{\Q}{\mathbb Q} \newcommand{\RR}{\mathbb R} \newcommand{\I}{\mathcal I} \newcommand{\coeff}[1]{[x^{#1}]} \title{Positive rational quadrature for polynomials} \author{GPT-6.2 Astra, with prompting by Darij Grinberg} \date{\today} \begin{document} \maketitle \begin{quote} \textbf{Abstract.} If a polynomial is nonnegative on an open interval, why is the difference of its antiderivative at the two endpoints nonnegative? Over $\mathbb{R}$, this follows from basic measure theory. We prove this constructively over any totally ordered field, and even over a partially ordered commutative $\mathbb{Q}$-algebra in which $1/1,\ 1/2,\ 1/3,\ \ldots$ are positive. The proof uses a finite quadrature rule: For each degree bound $d$, we express the integral $\int_0^1 p(x) dx$ of a polynomial $p$ of degree $\leq d$ as a positive weighted sum of values at rational fractions in the interval. We also ask whether nonnegativity inside the interval implies nonnegativity at its endpoints. We prove this over every totally ordered field and, more generally, over any partially ordered field in which every square is nonnegative. We give a counterexample over a totally ordered $\mathbb{Q}$-algebra. \medskip \textbf{Manifest.} This note was written by GPT-6.2 Astra (Researcher subscription), written in response to my prompts. I have fully proofread it. I have preserved the original ``olympiad worksheet'' format, as this is a problem that has caught my attention back in my high school days. \footnote{This work is in the public domain. --Darij} \end{quote} \section{The theory} All polynomials here will be univariate; the variable is called $x$. The base ring is assumed to be a $\Q$-algebra. Given a polynomial $p$, write \[ \I(p)=F(1)-F(0), \quad \text{where $F$ is an antiderivative of $p$ (that is, a polynomial with $F'=p$).} \] We call this value $\I(p)$ the \emph{integral} of $p$, % [DG] You refer to it as "integral" further below. as it is an algebraic definition of $\int_0^1 p(x) dx$. % [DG] Added some context to disambiguate. In particular, $\I(x^k)=1/(k+1)$. We first work over $\Q$. The following is our main result: \begin{theorem}\label{thm.d-rule} For each integer $d\geq 0$, one can construct rational numbers $01$. % Indeed, the addend with $j=j_i$ contributes $N^{d-1}p((t_i+j_i)/N) % = N^{d-1}p(t_i)$, from % which we subtract $p(t_i)$. Each of the other $N-1$ addends keeps its % coefficient $N^{d-1}$. % [DG] This wasn't wrong, but I've changed it to fit the form you'll be % stating it in a paragraph further down. Since $N=D+1>1$ and $d>0$, we can solve \eqref{eq:qti-interpolated-pre} for $q(t_i)$ by dividing by $N^d-1$; we thus obtain \begin{align} q(t_i) &= \sum_{j=0}^{N-1} p\!\left(\frac{t_i+j}{N}\right) \cdot \dfrac{1}{N^d-1} \begin{cases} N^{d-1}-1, & \text{if } j=j_i;\\ N^{d-1}, & \text{if } j\ne j_i. \end{cases} \label{eq:qti-interpolated} \end{align} We can now write down the new rule in degree $\leq d$. For $1\leq i\leq s$ and $0\leq j0$, $N>1$ and $d\geq2$. Their sum is $1$, as we see by taking $p=1$ in~\eqref{eq:refined-rule}. The nodes $u_{i,j}$ are rational and occur in increasing order in this double sum: for fixed $j$ we have \[ \frac{j}{N}0$. Take \[ s=\frac{1}{2+d+\sum_{i=1}^d c_i^2}. \] Then $00 . \] But $a0$, we can divide by it and obtain $p(a)=p(a+(b-a)s)/q(s)\geq0$. Applying this conclusion to the polynomial $p(a+b-x)$ gives $p(b)\geq0$ as well. \end{proof} \paragraph{Partially ordered fields.} The same proof works in a partially ordered field in which every square is nonnegative. Indeed, in such a field, the reciprocal of any $z>0$ is positive: $z^{-1}=z(z^{-1})^2$ is nonzero and nonnegative. This justifies both taking the reciprocal in the definition of $s$ and dividing by $q(s)$. \paragraph{Failure in partially ordered rings.} Order the commutative $\Q$-algebra $\Q(T)$ (the field of univariate rational functions with rational coefficients) by eventual sign at positive infinity, so that $T$ exceeds every integer. This makes $\Q(T)$ a totally ordered field. The polynomial $p(x)=Tx-1$ satisfies $p(r)>0$ for every rational $00$.} \label{eq:weighted-question} \end{equation} Indeed, the sum equals $\int_0^1 t^{y-1}p(t)\,dt$. The integrand is nonnegative on $(0,1)$, and the integral converges also for $00$, is then a first-order sentence in the language of ordered fields. For a general totally ordered field $K$, passing to its real closure can enlarge the interval on which the hypothesis must hold. For example, take $K=\Q(T)$ with the order used in Section~\ref{app.endpoints}, and put $g(t)=(2t^2-1)^2-1/T$. Every $t\in K$ with $00$. Thus $g(t)>0$ throughout $(0,1)$ in $K$. In the real closure, however, $t=1/\sqrt{2}$ belongs to $(0,1)$ and gives $g(t)=-1/T<0$. Can one give an elementary proof of~\eqref{eq:weighted-question} that works directly over an arbitrary totally ordered field $K$? \begin{thebibliography}{9} \bibitem{Fuchs} L\'aszl\'o Fuchs, \emph{Partially Ordered Algebraic Systems}, Akad\'emiai Kiad\'o, 1963. \url{https://real-eod.mtak.hu/17986/}. \bibitem{PrestelDelzell} Alexander Prestel and Charles N. Delzell, \emph{Mathematical Logic and Model Theory: A Brief Introduction}, Springer, 2011. \url{https://doi.org/10.1007/978-1-4471-2176-3}. \end{thebibliography} \end{document}