\documentclass[11pt]{amsart} \usepackage[margin=1.15in]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{graphicx,booktabs,enumitem} \usepackage{tabularx} \usepackage{xurl} \usepackage[hidelinks]{hyperref} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{conjecture}[theorem]{Conjecture} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem{observation}[theorem]{Observation} \newtheorem{question}[theorem]{Question} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \setlength{\emergencystretch}{2em} \newcommand{\R}{\mathbb{R}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\RP}{\mathbb{RP}^1} \DeclareMathOperator{\sign}{sign} \DeclareMathOperator{\Crit}{Crit} \DeclareMathOperator{\Cin}{Cin} \newcommand{\ds}{d_s} \newcommand{\Sk}{S} \title{Point sets as extremal points of polynomials} \author{Alon Amit} \author{Claude Fable 5.2} \author{Claude Opus 5.5} \date{December 2026} \begin{document} \begin{abstract} Given a finite set $T$ of points in the plane, when is $T$ exactly the set of points at which the graph of a real polynomial is flat, and what is the least degree of such a polynomial? We call $T$ \emph{realizable} if it is the full set of critical points $\{(x,P(x)):P'(x)=0\}$ of some polynomial $P$, \emph{strongly realizable} if moreover every point of $T$ is a local maximum or minimum, and \emph{tightly realizable} if this happens in the least conceivable degree, $k+1$ for a set of $k$ points. Existence is classical in a slightly different guise: $T$ is realizable if and only if its abscissas are distinct and no two horizontal neighbours are level, and strongly realizable if and only if its heights zigzag. Our subject is the least degree. We describe the tight sets explicitly, prove that every triangle has exactly three tight orientations and every parallelogram exactly four, and show that the least degree, as a function of the orientation of $T$, is a step function that jumps at every tight orientation in a way determined by a single explicit derivative: to $2k$ for $k$ odd, and to $2k-1$ on one side and $2k+1$ on the other for $k$ even. We bound how fast it grows at collisions and alignments, show that for centrally symmetric sets it can climb in steps of four, and that without the strong condition it need not even be monotone. Regular polygons are the case in which everything is explicit: they are tight exactly in the Chebyshev position, which answers the problem that started this work, and in every other position the unique candidate of degree $2k-1$ has a closed form, which gives the first steps of the staircase exactly. Extensive computations, based on semidefinite programming and certified in exact or high-precision arithmetic where it matters, map the staircases and raise a number of questions. \end{abstract} \maketitle \section{Introduction}\label{sec:intro} \subsection{The question} The following problem was posed on Quora by Nikola Topalov. \begin{quote} \emph{Let $P\in\R[x]$ be a polynomial of degree $n\ge 4$ whose $n-1$ local extremum points form the vertices of a regular $(n-1)$-gon of unit side length. Determine the leading coefficient of $P$.} \end{quote} It is not obvious that such polynomials exist, or that the leading coefficient is determined. Both are true. The derivative is a rescaled Chebyshev polynomial, the polygon has to sit in one specific orientation, and the leading coefficient is $\pm\frac{(n-2)\,2^{n-2}}{n-1}\big(2\sin\frac{\pi}{n-1}\big)^{n-1}$ for unit side length, or $\pm(n-2)2^{n-2}/(n-1)$ for circumradius $1$, which is the normalization we use below (Theorem~\ref{thm:intro}). The natural next question is what happens when the polygon is rotated, and then, since nothing about the answer turns out to depend on the polygon being regular, what happens for an arbitrary finite set of points. For a nonconstant real polynomial $P$ let \[ \Crit(P)=\{(x,P(x)):\ P'(x)=0\} \] be the set of \emph{critical points} of its graph. A critical point is a \emph{turning point} if $P$ has a local maximum or minimum there, and a \emph{flat inflection point} otherwise. \begin{definition}\label{def:main} Let $T$ be a finite set of $k$ points in the plane. The set $T$ is \begin{itemize}[leftmargin=1.5em] \item \emph{realizable} if $T=\Crit(P)$ for some polynomial $P$; \item \emph{strongly realizable} if moreover $P$ can be chosen so that every point of $T$ is a turning point; \item \emph{tightly realizable}, or simply \emph{tight}, if it is realizable by a polynomial of degree $k+1$. \end{itemize} We write $d(T)$ and $\ds(T)$ for the least degree of a realization and of a strong realization. \end{definition} The two functions $d$ and $\ds$, and above all how they change as $T$ moves, are the main subject of this paper. A polynomial with $k$ critical points has degree at least $k+1$, so tight sets are those for which the least degree is as small as it can possibly be. A realization of degree $k+1$ has $P'=c\prod(x-x_j)$ with simple roots, so a tight set is automatically strongly realizable, and $d(T)=\ds(T)=k+1$. In all three notions the polynomial is not allowed any critical points outside $T$. The title's ``extremal points'' has two natural readings, depending on whether flat points count; the two notions above are the two readings, and we treat both. \subsection{Existence is classical} A realizable set has distinct abscissas, and no two horizontal neighbours can be at the same height, because a polynomial is strictly monotone between consecutive critical points. A strongly realizable set must in addition \emph{zigzag}: its heights, listed by increasing abscissa, alternately rise and fall. These conditions are also sufficient (Theorem~\ref{thm:exist}). For strong realizability this is the theorem of Wolibner~\cite{wolibner}, Kammerer~\cite{kammerer} and Young~\cite{young} on piecewise monotone polynomial interpolation, and the version with flat points follows from the same argument. So existence is not our subject. Our subject is the least degree, about which the classical literature has order-of-magnitude bounds over classes of data (Section~\ref{sec:related}). \subsection{Rotation} All three notions, and both least degrees, are unchanged by the maps $(x,y)\mapsto(ax+b,cy+e)$ with $ac\ne0$ (Lemma~\ref{lem:invariance}). These include translations, reflections in either axis and independent horizontal and vertical stretches. Given a figure in the plane up to similarity, the one parameter that remains interesting is therefore its orientation, and we study $d(T_\alpha)$ and $\ds(T_\alpha)$ as functions of the rotation angle $\alpha$. The answer is a staircase. Figure~\ref{fig:staircases} shows it for regular polygons, and Figure~\ref{fig:general} for random sets. \subsection{Main results} \noindent\emph{Part I: general point sets.} \begin{itemize}[leftmargin=1.5em] \item \emph{Zigzags in every direction} (Section~\ref{sec:existence}). A set zigzags in almost every direction, and so is strongly realizable in almost every orientation, exactly when it is an affine image of a regular polygon whose chord directions leave no gap wider than $90^\circ$ (Theorem~\ref{thm:allzigzag}). With rational coordinates this is possible only for $3$, $4$ or $6$ points. \item \emph{Tight sets} (Section~\ref{sec:tight}). $T$ is tight if and only if $y_j=c\,\Omega(x_j)+b$, where $\Omega'=\prod_j(x-x_j)$; over any abscissas they form a two-parameter family. A configuration of four or more points generically has no tight orientation. Every triangle has exactly three tight orientations per half-turn, one with each vertex in the middle (Theorem~\ref{thm:triangles}), and every parallelogram exactly four (Theorem~\ref{thm:parallelograms}). \item \emph{The first jump} (Section~\ref{sec:firstjump}). Rotating a tight set by any small angle raises $\ds$ from $k+1$ to $2k$ if $k$ is odd, and to $2k-1$ in one direction and $2k+1$ in the other if $k$ is even. The proof rests on the \emph{candidate} $H_T$, the unique polynomial of degree at most $2k-1$ that passes through the points of $T$ with slope zero at each of them. Any realization of degree at most $2k-1$ must equal $H_T$, but $H_T$ itself is a realization only when its derivative has no other real zeros. The proof also uses an explicit formula for the rate at which the leading coefficient of $H_T$ changes under rotation, which is always negative (Theorem~\ref{thm:rot}). For realizability the expensive side typically costs $2k$ instead of $2k+1$ (Proposition~\ref{prop:endflat}). \item \emph{The staircase} (Section~\ref{sec:degree}). On each arc of orientations where $T_\alpha$ is strongly realizable, $\ds$ is piecewise constant, the boundary between two steps belongs to the higher one, and the degree tends to infinity at both ends of the arc. It grows like a power of the horizontal distance at a collision and like the logarithm of the height ratio at an alignment (Theorems~\ref{thm:collisions} and \ref{thm:alignments}). For ordinary realizability the staircase need not be monotone (Example~\ref{ex:kite}). \item \emph{Symmetry} (Section~\ref{sec:symmetry}). For centrally symmetric sets each step adds a single parameter whose sign is prescribed, and steps can be blocked; for parallelograms $\ds\equiv1\pmod4$ on part of the circle (Theorem~\ref{thm:par4}). \end{itemize} \noindent\emph{Part II: regular polygons.} \begin{itemize}[leftmargin=1.5em] \item A regular $k$-gon is tight exactly in the Chebyshev position, where $P'\propto T_k$ (Theorem~\ref{thm:cheb}). This answers the original problem. \item In every other position the candidate $H_T$ has a closed form (Theorem~\ref{thm:closed}). Hence $\ds\ge2k-1$ on the whole circle, the first step of every staircase ends at an explicit algebraic number, and the steps for the triangle and the square are given by single inequalities: degree $6$ strongly realizes the triangle exactly for $0<|t|<(15-\sqrt{97})/8$, and degree $7$ the square exactly for $-3/50$. The parities of $m_1$ and $m_k$ are free. \end{lemma} \begin{proof} $\Crit(P)=T$ says that the real zeros of $P'$ are exactly the $x_j$, which is \eqref{eq:structure} with $g$ free of real zeros, and that $P(x_j)=y_j$. A real polynomial without real zeros has even degree. $P'$ changes sign at $x_j$ exactly when $m_j$ is odd. Between consecutive critical points $P$ is strictly monotone, so at an interior point $P'$ changes sign exactly when $\Delta_{j-1}$ and $\Delta_j$ have opposite signs. \end{proof} So a strong realization is one with all $m_j$ odd, and then $\deg P\equiv k+1\pmod 2$. The least possible degree of a strong realization with all $m_j=1$ is $k+1+\deg g$. \begin{lemma}[Invariance]\label{lem:invariance} Let $\Phi(x,y)=(ax+b,cy+e)$ with $ac\ne0$. Then $P$ realizes $T$ if and only if $\tilde P(x)=c\,P\big((x-b)/a\big)+e$ realizes $\Phi(T)$, with the same degree and with turning points corresponding to turning points. Hence $d(\Phi(T))=d(T)$ and $\ds(\Phi(T))=\ds(T)$, and $\Phi(T)$ is tight if and only if $T$ is. \end{lemma} \begin{proof} $\tilde P'(x)=\frac ca P'\big((x-b)/a\big)$ vanishes exactly at the images of the zeros of $P'$, and changes sign exactly where $P'$ does. \end{proof} Shears are not free: $(x,y)\mapsto(x,y+ex)$ adds $e$ to $P'$ and destroys every critical point. So for a figure given up to similarity, which the maps of Lemma~\ref{lem:invariance} reduce to a figure up to these maps and rotations, the one remaining parameter is the direction of the $x$-axis. This is why we rotate. \subsection{The candidate of degree \texorpdfstring{$2k-1$}{2k-1}} Every realization satisfies the $2k$ conditions $P(x_j)=y_j$, $P'(x_j)=0$. By Hermite interpolation there is exactly one polynomial $H_T$ of degree at most $2k-1$ that satisfies them. We call it the \emph{candidate}. Since $H_T'$ vanishes at every node, $H_T'=\omega\,g_T$ with $\deg g_T\le k-2$. \begin{lemma}\label{lem:candidate} Let $A(T)$ be the coefficient of $x^{2k-1}$ in $H_T$. Then \begin{equation}\label{eq:A} A(T)=-\sum_{j=1}^k\frac{y_j\,\omega''(x_j)}{\omega'(x_j)^3}, \end{equation} and the coefficient of $x^{k-2}$ in $g_T$ is $(2k-1)A(T)$. \end{lemma} \begin{proof} With $\ell_j=\omega/\big((x-x_j)\,\omega'(x_j)\big)$ the Lagrange basis, the Hermite basis polynomial with value $1$ and slope $0$ at $x_j$ and value and slope $0$ at the other nodes is $\big(1-2\ell_j'(x_j)(x-x_j)\big)\ell_j^2$, and $2\ell_j'(x_j)=\omega''(x_j)/\omega'(x_j)$. Its top coefficient is $-\omega''(x_j)/\omega'(x_j)^3$, and $H_T$ is the sum of these basis polynomials weighted by $y_j$. The second statement follows by comparing top coefficients in $H_T'=\omega g_T$. \end{proof} \begin{proposition}[The affine family]\label{prop:family} The polynomials $P$ with $P(x_j)=y_j$ and $P'(x_j)=0$ for all $j$ are exactly $P=H_T+\omega^2h$, $h\in\R[x]$, and then \begin{equation}\label{eq:gh} P'=\omega\,\big(g_T+2\omega'h+\omega h'\big). \end{equation} In particular: \begin{enumerate}[label=(\alph*)] \item A realization of degree at most $2k-1$ equals $H_T$. So if $A(T)\ne0$, then $d(T)\ge\ds(T)\ge2k-1$. \item The strong realizations of degree at most $D$ with all $m_j=1$ form a bounded convex subset of the affine space $H_T+\omega^2\R[x]_{\le D-2k}$. \end{enumerate} \end{proposition} \begin{proof} If $Q=P-H_T$ vanishes at the nodes, then $Q=\omega m$, and $Q'=\omega'm+\omega m'$ vanishes at the nodes; since $\omega'(x_j)\ne0$, $\omega$ divides $m$. (a) is immediate. In (b) the set is convex because for a fixed sign $\varepsilon$ the condition $\varepsilon\,(g_T+2\omega'h+\omega h')>0$ on $\R$ is convex in $h$, and the sign $\varepsilon$ is the same for all strong realizations, since it is the sign of $P'$ to the right of $x_k$, which is determined by $T$ (Remark~\ref{rem:sign}). If it were unbounded it would contain a ray $H_T+\omega^2(h_0+\lambda h_1)$, $\lambda\ge0$, with $h_1\ne0$; dividing by $\lambda$ and letting $\lambda\to\infty$, $F=\omega^2h_1$ would satisfy $\varepsilon\,F'/\omega\ge0$ on $\R$. Then $F$ is monotone on each $I_i$ and vanishes at both ends, so $F=0$ on $[x_1,x_k]$, a contradiction. \end{proof} \begin{remark}\label{rem:sign} For a strong realization, $\sign P'$ on $I_i$ is $\sign\Delta_i$, while $\sign\omega$ on $I_i$ is $(-1)^{k-i}$. So $\varepsilon=\sign g=(-1)^{k-i}\sign\Delta_i$, the same for all $i$ exactly when $T$ zigzags. For a realization with multiplicities $m$, the same holds with $\omega_m$ in place of $\omega$. \end{remark} \subsection{Moments} Writing $P'=\varepsilon\,\omega_m\,g$ with $\varepsilon\,\omega_m$ of the sign of $\Delta_i$ on $I_i$ and $g>0$, the conditions $P(x_{i+1})-P(x_i)=\Delta_i$ become \begin{equation}\label{eq:moments} L_i(g):=\int_{I_i}|\omega_m(x)|\,g(x)\,dx=|\Delta_i|\qquad(1\le i0$ of degree at most $D$ with $k-1$ prescribed weighted moments; deciding whether one exists is a semidefinite feasibility problem (Appendix~\ref{app:numerics}). \begin{lemma}\label{lem:surjective} For fixed multiplicities $m$, the linear map $g\mapsto(L_i(g))_{i0$ on $\R$ with $L_i(g)=|\Delta_i|$ for all $i$, as in \eqref{eq:moments}; then $P=y_1+\varepsilon\int_{x_1}^x\omega_mg$ is a realization. Let $C\subset\R^{k-1}$ be the set of vectors $(L_i(g))_i$ with $g$ a polynomial that is positive on $\R$. It is a convex cone contained in the open positive orthant $O$. It is dense in $O$: given $v\in O$, choose a continuous $f>0$ on $[x_1,x_k]$ with $L_i(f)=v_i$ (a sum of bumps supported in the interiors of the $I_i$, plus a small constant, rescaled on each interval), approximate $\sqrt f$ uniformly on $[x_1,x_k]$ by a polynomial $r$, and take $g=r^2+\eta$ with $\eta>0$ small. A convex set whose closure contains an open set $O$ contains $O$, because $O\subset\operatorname{int}\overline C=\operatorname{int}C$. So $(|\Delta_i|)_i\in C$. \end{proof} Part (b) is the theorem of Wolibner, Kammerer and Young; the argument above is a convex version of theirs and makes $g$ strictly positive, so the realization has no critical points outside $T$. Every finite set with distinct abscissas and no level neighbours is realizable, so in particular: \begin{corollary}\label{cor:rotations} For every finite set $T$ of distinct points, $T_\alpha$ is realizable for all but finitely many $\alpha\in\R/\pi\Z$: the exceptions are the angles at which two points are vertically aligned, or two horizontal neighbours are level. The set of $\alpha$ at which $T_\alpha$ is strongly realizable is a finite union of open arcs, each of which ends at an angle of one of these two kinds. \end{corollary} \begin{proof} Being a zigzag is an open condition among sets with distinct abscissas, and it can only be lost at an equality $x_i=x_{i+1}$ or $\Delta_i=0$. Each such equality, for a given pair of points, holds at one angle modulo $\pi$. \end{proof} Which end comes first is elementary. If $\psi_i\in(-\frac\pi2,\frac\pi2)$ is the direction of the segment from the $i$th to the $(i+1)$st point, the arc containing $\alpha=0$ extends counterclockwise to $\min_i\beta_i$, where $\beta_i=\frac\pi2-\psi_i$ (a collision) if $\psi_i>0$ and $\beta_i=-\psi_i$ (an alignment) if $\psi_i<0$. Tall sets meet collisions first, flat ones alignments. \subsection{Crossing a collision} When two points collide vertically, their order is exchanged. Under realizability nothing is lost except at the collision itself: the multiplicities change parity as the set passes through, turning points becoming flat points and back. Strong realizability is much more fragile. \begin{proposition}\label{prop:cross} Suppose that at some angle exactly one pair of points of $T$ is vertically aligned, in positions $i,i+1$ of the $x$-order, and that $i\ge3$ or $i\le k-3$. Then $T_\alpha$ is not a zigzag on at least one side of that angle. For $k\ge5$ the condition on $i$ always holds. \end{proposition} \begin{proof} Let $i\ge3$ and suppose $T_\alpha$ zigzags just before the collision, with the point in position $i$ above the one in position $i+1$, so the signs of $\Delta_{i-2},\Delta_{i-1},\Delta_i$ are $-,+,-$. Just after the collision the two points have exchanged positions and nothing else has changed. The differences in positions $i-2,i-1,i$ now have signs $-,s,+$, where $s$ is the sign of some difference of heights; no choice of $s$ alternates. The case $i\le k-3$ is the mirror image. \end{proof} So a strongly realizable arc can continue through a collision only if the colliding pairs tile the $x$-order, positions $(1,2),(3,4),\dots$ or $(2,3),(4,5),\dots$, all at the same angle. This is what happens for regular polygons (Lemma~\ref{lem:alternation}), and it turns out to characterize them. \subsection{Sets that zigzag in almost every direction} \begin{proposition}[Triangles]\label{prop:tri-zigzag} Three points zigzag in all but finitely many directions if and only if the triangle has no obtuse angle. \end{proposition} \begin{proof} Let $b$ be the middle point in the $x$-order. The set fails to zigzag exactly when $b$ is also the middle point in height, that is, when the vertical and the horizontal line through $b$ both separate the other two points $a$ and $c$, that is, when $a$ and $c$ lie in opposite open quadrants at $b$. Some frame has this property if and only if the angle at $b$ exceeds $\pi/2$. \end{proof} For larger sets the answer is a rigid family. By a \emph{chord direction} of $T$ we mean the direction, modulo $\pi$, of a line through two of its points. \begin{theorem}\label{thm:allzigzag} A set $T$ of $n\ge3$ points zigzags in all but finitely many directions if and only if $T$ is an affine image of a regular $n$-gon and every gap between cyclically consecutive chord directions of $T$, measured modulo $\pi$, is at most $\frac\pi2$. In that case $T$ zigzags in every direction in which its abscissas are distinct. \end{theorem} We thank OpenAI's Dot for this argument. \begin{proof} Throughout, \emph{directions} are taken modulo $\pi$, and ``$T$ zigzags'' refers to the frame in which a given direction is vertical. Assume first that $T$ zigzags in all but finitely many directions. \emph{Step 1: no three points are collinear.} If $A,B,C\in T$ lie on a line with $B$ between $A$ and $C$, then in every frame in which that line is steep, but not vertical, the three points are consecutive in the $x$-order and $B$ is between the others in height. These frames form an interval. \emph{Step 2: every chord direction tiles.} Fix a chord direction and the frame $\alpha_0$ in which it is vertical. By Step 1 the points lie in columns of one or two points. Rotate slightly, to $\alpha_0+\varepsilon$. In each column of two points the upper point moves to the left of the lower one if $\varepsilon>0$ and to the right if $\varepsilon<0$, so all differences $\Delta_i$ across a column have the same sign, negative for small $\varepsilon>0$ and positive for small $\varepsilon<0$. Since $T$ zigzags on both sides of $\alpha_0$, these differences sit at positions $i$ of one parity. Now let $R,S$ be two single-point columns that are adjacent in the $x$-order, and suppose that the difference between them has the same parity of position as the differences across columns (this is the case if they lie between two columns of two points, since the number of points strictly between such columns is then even, or if they come before the first or after the last column of two). Then it is negative for small $\varepsilon>0$ and positive for small $\varepsilon<0$, so by continuity $RS$ is horizontal at $\alpha_0$; but then rotating by $\varepsilon>0$ raises the right one of $R,S$, and the difference is positive, a contradiction. Between two columns of two points the number of single points is even, and by what we just showed it is zero; before the first column of two and after the last there is at most one. So at every chord direction the columns are pairs, except possibly a single point at either end. \emph{Step 3: $T$ is in convex position, with at least $n$ chord directions.} Let $d$ be the number of chord directions. Every pair of points spans exactly one of them, and in it the pair forms a column. If $n$ is odd, each direction has exactly one single point and $(n-1)/2$ pairs, so $d\,\frac{n-1}2=\binom n2$ and $d=n$. If $n=2m$, a direction has either $m$ pairs or $m-1$ pairs and two single points. A direction with $m$ pairs has a pair at each end, which consists of two vertices of the convex hull on a common supporting line, that is, a hull edge, and the two hull edges are parallel; so there are at most $h/2\le m$ such directions, where $h$ is the number of hull edges. Hence $(m-1)\,d+m\ge\binom{2m}2$, and $d\ge2m=n$. A point lies on only $n-1$ chords, so in some chord direction it belongs to no pair: it is a single point at an end, the unique extreme point of $T$ in some direction. So every point of $T$ is a vertex of its convex hull. \emph{Step 4: chords with the same index sum are parallel.} Number the vertices $v_0,\dots,v_{n-1}$ in cyclic order around the hull, indices modulo $n$. In a frame in which a chord direction is vertical, an interior column meets the boundary of the hull in two points, one on each of the two boundary chains between the leftmost and the rightmost column, so the $j$th interior column consists of the $j$th vertex of each chain. Going around the boundary, the two chains run in opposite directions from the leftmost column, so all pairs in this direction have the same index sum $s$ modulo $n$. A count shows that they are \emph{all} the chords with index sum $s$: for odd $n$ there are $\frac{n-1}2$ of each, and for $n=2m$ there are $m-1$ chords with even sum and $m$ with odd sum, matching the directions with and without single points. So the chord direction determines the index sum and conversely, and chords $v_iv_j$, $v_kv_l$ are parallel if and only if $i+j\equiv k+l\pmod n$. \emph{Step 5: $T$ is affinely regular.} For $n=3$ there is nothing to prove, and for $n=4$ Step 4 says that opposite sides are parallel. Let $n\ge5$ and $e_i=v_{i+1}-v_i$. The chords $v_iv_{i+3}$ and $v_{i+1}v_{i+2}$ have the same index sum, so $e_i+e_{i+1}+e_{i+2}$ is parallel to $e_{i+1}$, that is, $e_i+e_{i+2}=\lambda_ie_{i+1}$ for some real $\lambda_i$. The chords $v_{i-1}v_{i+3}$ and $v_iv_{i+2}$ also have the same index sum, so \[ e_{i-1}+e_i+e_{i+1}+e_{i+2}=\lambda_{i-1}e_i+\lambda_ie_{i+1} \] is parallel to $e_i+e_{i+1}$; since consecutive edges are linearly independent, $\lambda_{i-1}=\lambda_i$. So $e_i+e_{i+2}=\lambda e_{i+1}$ with one constant $\lambda$, and the linear map $M$ with $Me_0=e_1$ and $Me_1=e_2$ satisfies $Me_i=e_{i+1}$ for all $i$. Hence $M^n=I$ and $\det M=1$. $M$ is not $\pm I$, because $e_1\ne\pm e_0$; so its eigenvalues are $e^{\pm2\pi ij/n}$ and it preserves the inner product $\langle x,y\rangle'=\sum_{r=0}^{n-1}\langle M^rx,M^ry\rangle$, in which it is a rotation by $2\pi j/n$. In this inner product the polygon has equal sides and equal exterior angles, and since it is convex and closes up after one turn, $j=\pm1$. A linear map carrying $\langle\,,\rangle'$ to the standard inner product carries $T$ to a regular $n$-gon. \emph{Step 6: the condition on the gaps, and the converse.} Now let $T$ be any affine image of a regular $n$-gon. The chord directions of the regular polygon are $n$ equally spaced directions, those of chords with index sum $s$ forming one direction for each $s$, in cyclic order of $s$; an affine map preserves parallelism and the cyclic order of directions, so the same holds for $T$, and the tiling of Step 2 holds at every chord direction of $T$. Consider an open sector of directions between two cyclically consecutive chord directions $\delta<\delta'$, of width $w=\delta'-\delta$. Inside it no two points are vertically aligned, so the $x$-order is constant, and the pairs of neighbours in it are of two kinds: the pairs that form columns at $\delta$, which split into neighbours just after $\delta$, and the pairs that form columns at $\delta'$, which are neighbours just before $\delta'$. These are $n-1$ distinct pairs (for $n=2m$ consecutive directions have $m$ and $m-1$ pairs), so they are all the neighbours, and the two kinds alternate along the $x$-order. Just after $\delta$, the differences across the pairs of the first kind are negative, while a chord of the second kind makes an angle $w$ with the vertical, so its difference is positive if $w<\frac\pi2$ and negative if $w>\frac\pi2$. Inside the sector a difference vanishes only when its chord is horizontal, which happens for chords of the first kind at $\delta+\frac\pi2$ and for chords of the second kind at $\delta'-\frac\pi2$; both lie outside the open sector if and only if $w\le\frac\pi2$. So if $w\le\frac\pi2$ the differences alternate in sign throughout the sector, and if $w>\frac\pi2$ the set fails to zigzag on the part of the sector near $\delta$. This proves the converse, the necessity of the condition on the gaps, and the last statement. \end{proof} For three points the chord directions are the directions of the sides, and the gaps between them are the angles of the triangle, so the theorem contains Proposition~\ref{prop:tri-zigzag}. For a parallelogram the four gaps are the angles, at the vertices of the parallelogram, of the triangles formed by the centre and a side; this gives the following form. \begin{corollary}[Quadrilaterals]\label{prop:quad-zigzag} Four points zigzag in all but finitely many directions if and only if they are the vertices $\pm u,\pm v$ of a parallelogram (centred at the origin) with $|u\cdot v|\le\min\big(|u|^2,|v|^2\big)$. \end{corollary} \begin{proof} By Theorem~\ref{thm:allzigzag} the points form a parallelogram. Fix a frame in which the abscissas are distinct, and choose the signs of $u$ and $v$ and their names so that $01$. With $w=v-u$, the conditions $v_x/u_x>1$ and $v_y/u_y>1$ say that $u$ and $w$ lie in the same open quadrant of the frame, and some frame has this property if and only if $u\cdot(v-u)>0$. Running over the choices of signs and names, the set fails to zigzag on an interval of directions if and only if $|u\cdot v|>\min(|u|^2,|v|^2)$. \end{proof} So rectangles and rhombi zigzag in almost every direction, while a generic quadrilateral, or a generic set with five or more points, does not. The theorem has an arithmetic consequence. \begin{corollary}\label{cor:rational} If a set of $n\ge3$ points with rational coordinates zigzags in all but finitely many directions, then $n\in\{3,4,6\}$. All three occur, for instance the vertices of $(0,0),(1,0),(0,1)$, of the unit square, and of $(1,0),(1,1),(0,1),(-1,0),(-1,-1),(0,-1)$. \end{corollary} \begin{proof} In Step 5 the edges $e_i$ are rational vectors, so $\lambda$, the trace of $M$, is rational; it is also $2\cos(2\pi/n)$, an algebraic integer. So $2\cos(2\pi/n)\in\{-1,0,1\}$. The three examples are affine images of regular polygons whose largest gaps are $\frac\pi2$, $\frac\pi4$ and $\frac\pi4$. \end{proof} How much may a regular polygon be distorted? Squashing the regular pentagon vertically, in the orientation with a vertex at angle $0.1$, keeps it zigzagging in almost every direction down to a factor of about $0.24$; for the hexagon the threshold is about $0.21$. \begin{observation}\label{obs:allzigzag} For random sets the fraction of directions in which they zigzag is about $0.35$, $0.26$, $0.14$, $0.08$ for $k=4,5,6,8$, and no strongly realizable arc crossed a collision for $k\ge5$ ($0$ of $60$ sets for each $k$). \end{observation} \section{Tight sets}\label{sec:tight} \begin{theorem}\label{thm:tight} A set $T$ with distinct abscissas is tight if and only if there are constants $c\ne0$ and $b$ with \[ y_j=c\,\Omega(x_j)+b\qquad(j=1,\dots,k), \] equivalently $\Delta_i=c\int_{I_i}\omega$ for all $i$. The realization of degree $k+1$ is then unique, namely $P=c\,\Omega+b$. \end{theorem} \begin{proof} A realization of degree $k+1$ has $P'$ of degree $k$ vanishing at the $k$ nodes, so $P'=c\,\omega$. \end{proof} So over any $k$ abscissas there is a two-parameter family of tight sets, and in the $2k$-dimensional space of configurations they form a semialgebraic set $\mathcal T_k$ of dimension $k+2$. The two parameters are exactly the vertical part of the maps in Lemma~\ref{lem:invariance}; the horizontal part moves the abscissas. For $k\le2$ every set with distinct abscissas (and, for $k=2$, distinct heights) is tight. \begin{proposition}\label{prop:generic} For $k\ge4$, the configurations of $k$ points that have at least one tight orientation form a set of measure zero. \end{proposition} \begin{proof} That set is the image of $\R/\pi\Z\times\mathcal T_k$ under $(\alpha,T)\mapsto T_{-\alpha}$, a semialgebraic set of dimension at most $k+3<2k$. \end{proof} For three points the dimension count predicts finitely many tight orientations, and for centrally symmetric quadrilaterals as well, because the symmetry removes one condition (Lemma~\ref{lem:odd}). In both cases the number turns out not to depend on the shape. \subsection{Triangles} \begin{lemma}\label{lem:tri-tight} Let $T=\{A,B,C\}$ with $x_A0$. \end{proof} \begin{theorem}\label{thm:triangles} Every triangle has exactly three tight orientations modulo $\pi$. In each of them a different vertex is the middle one in the $x$-order. \end{theorem} \begin{proof} Fix a vertex $B$, with angle $\beta\in(0,\pi)$. We show that among the orientations in which $B$ is the middle vertex there is exactly one tight one. By Lemma~\ref{lem:invariance} we may place $B$ at the origin, and after a reflection in the $x$-axis (which reverses the direction of rotation but does not change the number of tight orientations) we may assume that the ray $BA$ is obtained from the ray $BC$ by a counterclockwise rotation through $\beta$. In a given orientation write $C=q(\cos\psi,\sin\psi)$ and $A=p(\cos(\psi+\beta),\sin(\psi+\beta))$. As the orientation runs once around $\R/\pi\Z$, so does $\psi$, and the rotation by $\pi$ replaces $\psi$ by $\psi+\pi$. The vertex $B$ is the middle one exactly when $\cos\psi$ and $\cos(\psi+\beta)$ have opposite signs; choosing the representative $\psi\in(-\frac\pi2,\frac\pi2)$, this means $\cos(\psi+\beta)<0$, that is, $\psi\in J=(\frac\pi2-\beta,\frac\pi2)$. Then $A$ is on the left and $C$ on the right, with \[ \frac ab=\frac pq\cdot\frac{-\cos(\psi+\beta)}{\cos\psi}=\frac pq\big(\sin\beta\tan\psi-\cos\beta\big)=:r(\psi), \] \[ \frac{y_B-y_A}{y_B-y_C}=\frac pq\cdot\frac{\sin(\psi+\beta)}{\sin\psi}=\frac pq\big(\cos\beta+\sin\beta\cot\psi\big)=:L(\psi). \] On $J$ the function $r$ increases strictly from $0$ to $\infty$, so $R(r(\psi))$ does too. The function $L$ is strictly decreasing on each interval where $\sin\psi\ne0$. By Lemma~\ref{lem:tri-tight} we must count the solutions of $L(\psi)=R(r(\psi))$ in $J$, and only $\psi$ with $L(\psi)>0$ can be solutions. If $\beta\le\frac\pi2$, then $J\subset[0,\frac\pi2)$ and $L>0$ on $J$. The difference $L-R\circ r$ is strictly decreasing on $J$; at the left end it tends to $\frac pq\sec\beta>0$ (to $+\infty$ if $\beta=\frac\pi2$), and at the right end to $-\infty$. So there is exactly one solution. If $\beta>\frac\pi2$, then $L>0$ exactly on $(0,\pi-\beta)\subset J$: for $\psi\in(\frac\pi2-\beta,0)$ the two sines have opposite signs, and for $\psi\in(\pi-\beta,\frac\pi2)$ we have $\sin(\psi+\beta)<0<\sin\psi$. On $(0,\pi-\beta)$ the difference $L-R\circ r$ is strictly decreasing from $+\infty$ to $-R(r(\pi-\beta))<0$, so again there is exactly one solution. (On the rest of $J$ the vertex $B$ is the middle one in height as well, and $T$ does not zigzag.) Each tight orientation has some middle vertex, so there are exactly three. \end{proof} For the equilateral triangle the three tight orientations are the three Chebyshev positions of Theorem~\ref{thm:cheb}. Earlier, before finding this argument, we had shown with the help of a computer that the tightness condition, after clearing denominators, is a single binary quintic form in $(\cos\alpha,\sin\alpha)$, which gives an odd number of tight orientations, and had counted exactly three for $100{,}000$ random triangles in exact arithmetic. \subsection{Parallelograms} After a translation a parallelogram is $T=\{\pm A,\pm B\}$ with $A,B$ linearly independent. In an orientation in which its abscissas are distinct and nonzero, put \[ \sigma=\frac{x_A}{x_B},\qquad \tau=\frac{y_B}{y_A}\in\R\cup\{\infty\}. \] \begin{lemma}\label{lem:par-tight} In such an orientation $T$ is tight if and only if $\tau=G(\sigma)$, where \[ G(\sigma)=\frac{5\sigma^2-1}{\sigma^3(5-\sigma^2)} . \] \end{lemma} \begin{proof} Here $\omega=(x^2-x_A^2)(x^2-x_B^2)$ is even, and we take $\Omega$ odd. If $T$ is tight then $P=c\,\Omega+b$, and evaluating at $\pm A$ gives $b=0$; so $y_A=c\,\Omega(x_A)$ and $y_B=c\,\Omega(x_B)$, with $\Omega(x_A)\ne0$ (see below). Conversely, if $y_B\,\Omega(x_A)=y_A\,\Omega(x_B)$ and $y_A\ne0$, then $c=y_A/\Omega(x_A)$ works at all four points. Now $\Omega(x)=\frac{x^5}5-\frac{(x_A^2+x_B^2)\,x^3}3+x_A^2x_B^2\,x$, and a short computation gives \[ \Omega(x_A)=\tfrac2{15}\,x_A^3\,(5x_B^2-x_A^2),\qquad \Omega(x_B)=\tfrac2{15}\,x_B^3\,(5x_A^2-x_B^2), \] whose ratio is $G(\sigma)$. ($\Omega(x_A)=0$ would need $x_A^2=5x_B^2$, and then $\Omega(x_B)\ne0$; in that case the condition reads $\tau=\infty=G(\sigma)$, and the argument is the same with $A$ and $B$ exchanged.) \end{proof} \begin{theorem}\label{thm:parallelograms} Every parallelogram has exactly four tight orientations modulo $\pi$. \end{theorem} \begin{proof} \emph{Both sides of the equation are circle maps.} As the orientation $\alpha$ runs once around $\R/\pi\Z$, the slope $x_A/y_A$ of the rotated vector $A$ runs once around $\RP=\R\cup\{\infty\}$, monotonically. Write $B=\beta A+\gamma JA$, where $J$ is the rotation by $\frac\pi2$; then $\gamma\ne0$, and since rotations commute with $J$, $x_B=\beta x_A-\gamma y_A$ and $y_B=\beta y_A+\gamma x_A$. Eliminating $x_A/y_A$, \[ \tau=\mu(\sigma):=\frac{(\beta^2+\gamma^2)\,\sigma-\beta}{\beta\,\sigma-1}, \] a M\"obius transformation of determinant $-\gamma^2<0$, which does not depend on $\alpha$. So $\sigma$ also runs once around $\RP$ as $\alpha$ runs around $\R/\pi\Z$, and the tight orientations correspond bijectively to the solutions $\sigma\in\RP$ of $G(\sigma)=\mu(\sigma)$ other than $\sigma\in\{0,\pm1,\infty\}$, where two abscissas coincide or vanish. \emph{$G$ is an increasing map of degree three.} The numerator of $G'$ is $15\sigma^2(\sigma^2-1)^2\ge0$, and in the chart $1/G$ near the poles $\sigma=\pm\sqrt5$ the derivative is nonzero. So $G\colon\RP\to\RP$ is a local homeomorphism except at the isolated points $0,\pm1,\infty$, near which it behaves like $\pm u^3$ in local coordinates, and it is everywhere orientation preserving. The value $0$ has the three preimages $\pm1/\sqrt5$ and $\infty$, so $G$ has degree $3$. The M\"obius map $\mu$ is a homeomorphism of degree $-1$. \emph{Counting.} Identify $\RP$ with $\R/\pi\Z$ by $\sigma=\tan\theta$, and lift $G$ and $\mu$ to maps $\tilde G,\tilde\mu\colon\R\to\R$. Then $\tilde G$ is strictly increasing with $\tilde G(\theta+\pi)=\tilde G(\theta)+3\pi$ and $\tilde\mu$ is strictly decreasing with $\tilde\mu(\theta+\pi)=\tilde\mu(\theta)-\pi$. So $D=\tilde G-\tilde\mu$ is strictly increasing with $D(\theta+\pi)=D(\theta)+4\pi$, and on any interval $[\theta_0,\theta_0+\pi)$ it meets $\pi\Z$ exactly four times. These are the solutions of $G=\mu$ on $\RP$. \emph{No spurious solutions.} At $\sigma=0$ we have $x_A=0$, so $y_A\ne0$ and $\mu(0)$ is finite, while $G(0)=\infty$. At $\sigma=\infty$ we have $x_B=0$, so $y_B\ne0$ and $\mu(\infty)\ne0=G(\infty)$. At $\sigma=1$, $G(1)=1$, and $\mu(1)=1$ would mean $A=B$; at $\sigma=-1$, $G(-1)=-1$, and $\mu(-1)=-1$ would mean $A=-B$. \end{proof} \begin{remark} For the square the four tight orientations are the Chebyshev positions of Theorem~\ref{thm:cheb}. In general a regular $k$-gon has exactly $k$ tight orientations modulo $\pi$, which its symmetry group reduces to two mirror images (Theorem~\ref{thm:cheb}); so the counts $3$ and $4$ for all triangles and all parallelograms are those of their regular members. We do not know which centrally symmetric hexagons have tight orientations, or how many. \end{remark} \section{The least degree as a function of the configuration}\label{sec:degree} \subsection{Steps} \begin{proposition}\label{prop:open} Let $\ds(T_0)=D\ge2k-1$. Then every configuration $T$ close enough to $T_0$ is strongly realizable in degree at most $D$. \end{proposition} \begin{proof} Write a strong realization of degree $D$ as $P_0'=\varepsilon\,\omega g_0$ with $g_0>0$ on $\R$, and put $D'=D-1-k\ge k-2$, which is even. We first arrange that $\deg g_0=D'$. If $D=2k-1$, then $P_0=H_{T_0}$ has exact degree $2k-1$ and $\deg g_0=k-2=D'$ already. If $D\ge2k$, then $D'>k-2$; let $q=(1+x^2)^{D'/2}-r$, where $r$ is the polynomial of degree at most $k-2$ with the same moments as $(1+x^2)^{D'/2}$ (Lemma~\ref{lem:surjective}). Then $q$ has degree $D'$, leading coefficient $1$ and zero moments. Since $q(x)\ge\frac12|x|^{D'}$ for $|x|\ge X_0$, and $g_0\ge c>0$ on $[-X_0,X_0]$, the polynomial $g_0+\eta q$ is positive for small $\eta>0$; it has exact degree $D'$ and the same moments as $g_0$. Now by Lemma~\ref{lem:surjective} the moment map $L_T$ on polynomials of degree at most $D'$ is surjective, with a right inverse depending continuously on $T$. So for $T$ near $T_0$ there is $g=g_0+\delta g$ with $L_T(g)=(|\Delta_i(T)|)_i$ and $\delta g$ small in coefficients. A polynomial of exact even degree $D'$ that is positive on $\R$ stays positive under small perturbations of its coefficients; so $g>0$. The sign $\varepsilon$ is locally constant, so $P=y_1+\varepsilon\int_{x_1}^x\omega g$ is a strong realization of $T$. \end{proof} The same argument applies to realizations with fixed multiplicities. The hypothesis $D\ge2k-1$ cannot be dropped: a tight set has $\ds=k+1$ and is surrounded by sets with $\ds\ge2k-1$ (Section~\ref{sec:firstjump}). Thus, away from the configurations with $\ds<2k-1$, the least degree $\ds$ is upper semicontinuous: each set $\{\ds\le D\}$ is open, and at the boundary between two steps the configuration belongs to the higher one. The reason is visible in the proof of the converse: as $T$ approaches the end of a step, the positive polynomial $g$ of the lower degree acquires a real zero, that is, the limiting polynomial has a critical point outside $T$, typically a flat inflection point (Theorem~\ref{thm:near0}, Figure~\ref{fig:staircases}). \begin{theorem}\label{thm:staircase} Let $T$ be a finite set. On every arc of orientations on which $T_\alpha$ is strongly realizable, $\alpha\mapsto\ds(T_\alpha)$ is piecewise constant with finitely many values on every compact subarc, and it tends to infinity at both ends of the arc. The same holds for $d(T_\alpha)$ on every arc on which $T_\alpha$ is realizable. \end{theorem} \begin{proof} For each $D$ the set of $\alpha$ at which $T_\alpha$ is strongly realizable in degree at most $D$ is defined by a first-order formula over the reals in $(\cos\alpha,\sin\alpha)$, so it is semialgebraic, a finite union of points and intervals. The proof of Theorem~\ref{thm:exist} shows that the moment vector lies in the interior of the image cone, and the image of finitely many polynomials spanning a small simplex around it varies continuously with $\alpha$; so every $\alpha_0$ in the arc has a neighbourhood on which the degree is bounded. By compactness finitely many values occur on a compact subarc. At an end of the arc, Theorems~\ref{thm:collisions} and \ref{thm:alignments} below give $\ds\to\infty$ and $d\to\infty$. \end{proof} \subsection{Growth at a collision} Let $\delta_i=x_{i+1}-x_i$ and $\operatorname{osc}(T)=\frac12(\max_jy_j-\min_jy_j)$. \begin{theorem}\label{thm:collisions} For every realizable $T$ and every $i$, \[ d(T)^2\ \ge\ \frac{|\Delta_i|\,(x_k-x_1)}{2\operatorname{osc}(T)\,\delta_i} \qquad\text{and}\qquad d(T)\ \ge\ \frac{|\Delta_i|}{\operatorname{osc}(T)\,\delta_i}\ \min_{x\in I_i}\sqrt{(x-x_1)(x_k-x)} . \] \end{theorem} \begin{proof} A realization is monotone between consecutive points of $T$, so after subtracting a constant it is bounded by $\operatorname{osc}(T)$ on $[x_1,x_k]$, and by the mean value theorem $|P'|\ge|\Delta_i|/\delta_i$ somewhere in $I_i$. The inequalities of Markov and Bernstein for $P'$ on $[x_1,x_k]$ give the two bounds. \end{proof} The second bound is the stronger one when the colliding pair lies strictly inside the range of the abscissas: there the degree grows at least like $1/\delta$, against $1/\sqrt\delta$ at the ends. Both rates occur (Section~\ref{sec:asymptotics}). \subsection{Growth at an alignment} For fixed abscissas the degree is governed by the \emph{height ratio} \[ \rho(T)=\max_{i,j}\frac{|\Delta_i|}{|\Delta_j|}\ \ge1 . \] \begin{theorem}\label{thm:alignments} Fix $x_1<\dots0$ as soon as $\max v/\min v<(1-k\epsilon)/(k\epsilon)$. Then $g=\sum_j\mu_jM_{jj}^{-1}g_j$ satisfies $L_i(g)=|\Delta_i|$, and it is positive on $\R$, because each $g_j\ge0$ and the zeros $m_j\pm R$ of different $g_j$ are different. Its degree is $4N$, and $N=O(1+\log\rho)$ suffices. \end{proof} \begin{observation}\label{obs:green} For three points with abscissas $x_10,\\ 2k+1,& s\,a\,c<0.\end{cases} \] \end{enumerate} \end{theorem} \begin{proof} The sign $\varepsilon$ of $g$ (Remark~\ref{rem:sign}) is locally constant on zigzags and equals $\sign c$ at $T_0$; assume $c>0$. The coefficients of $g_T$ depend continuously on $T$, and $g_{T_0}=c$, because $H_{T_0}=P_0$. (a) Let $k$ be odd. By Proposition~\ref{prop:family} with $h=\lambda$ constant, $g=g_T+2\lambda\,\omega'$ is admissible. The polynomial $\omega'$ has even degree $k-1$ and leading coefficient $k$, so it is bounded below, by $-M$ say, uniformly for $T$ near $T_0$. Fix $\lambda>0$ with $2\lambda M0$ and $\ds(T)\le k+1+(k-1)$. For even $k$ use $h=\lambda x$ instead: then $g=g_T+\lambda\,(2x\,\omega'+\omega)$, and $2x\omega'+\omega$ has even degree $k$ and leading coefficient $2k+1$. (b) By Proposition~\ref{prop:family}(a), $\ds(T)\ge2k-1$, and degrees of strong realizations are $\equiv k+1\pmod 2$. (c) Write $g_{T_s}=c+s\,r_s$, where $\deg r_s\le k-2$, the coefficients of $r_s$ converge as $s\to0$, and its coefficient of $x^{k-2}$ tends to $(2k-1)a\ne0$. If $s\,a>0$: on a bounded interval $|s\,r_s|0$, $H_{T_s}$ is a strong realization, and $\ds(T_s)=2k-1$ by Proposition~\ref{prop:family}(a). If $s\,a<0$ the leading coefficient of $g_{T_s}$ is negative, so $H_{T_s}$ is not a realization, and $\ds(T_s)\ge2k+1$; equality holds by (a). \end{proof} For rotations the derivative in (c) can be computed, and it never vanishes. \begin{theorem}\label{thm:rot} Let $T$ be a tight set with $k\ge3$ points and $P'=c\,\omega$, and let $\bar x$ be the mean of the $x_j$. Then \begin{equation}\label{eq:dA} \frac{d}{d\alpha}A(T_\alpha)\Big|_{\alpha=0}=-\sum_{j=1}^k\frac{1}{\omega'(x_j)^2}\;-\;\frac{c^2}{k^2-1}\sum_{j=1}^k(x_j-\bar x)^2\;<\;0 . \end{equation} Consequently, for all sufficiently small $\alpha\ne0$: \begin{enumerate}[label=(\alph*)] \item if $k$ is odd, $\ds(T_\alpha)=2k$; \item if $k$ is even, $\ds(T_\alpha)=2k-1$ when $\alpha\,c<0$, and $\ds(T_\alpha)=2k+1$ when $\alpha\,c>0$. \end{enumerate} \end{theorem} When $c>0$ the leftmost point of $T$ is a maximum and the rightmost a minimum, and a small negative $\alpha$ moves the first up and the second down. So for even $k$ the cheap direction is the one in which the two end points move apart vertically. \begin{proof} $A$ is invariant under translations of $T$, so we may assume $\bar x=0$ and rotate about the origin. To first order the rotation changes the data by $\delta y_j=\alpha\,x_j$ and $\delta x_j=-\alpha\,y_j$. \emph{Changing the heights.} Let $A_j$ and $B_j$ be the Hermite basis polynomials at the nodes: $A_j$ has value $1$ and slope $0$ at $x_j$, $B_j$ has value $0$ and slope $1$ there, and both vanish to second order at the other nodes. The top coefficient of $B_j=(x-x_j)\prod_{i\ne j}(x-x_i)^2/\omega'(x_j)^2$ is $\omega'(x_j)^{-2}$. Hermite interpolation reproduces the polynomial $x$, so $\sum_jx_jA_j+\sum_jB_j=x$, and comparing coefficients of $x^{2k-1}$ shows that the change of $A$ is $\alpha\sum_jx_j\,\mathrm{top}(A_j)=-\alpha\sum_j\omega'(x_j)^{-2}$. \emph{Moving the nodes.} Move $x_j$ to $x_j+\xi_j$, $\xi_j=-\alpha y_j$, keeping the heights. The new interpolant is $P+E$ with $E(x_j+\xi_j)=O(\xi^2)$ and $E'(x_j+\xi_j)=-P'(x_j+\xi_j)=-c\,\omega'(x_j)\,\xi_j+O(\xi^2)$. To first order $E=-c\sum_j\omega'(x_j)\,\xi_j\,B_j$, and since $\deg P=k+1<2k-1$ the change of $A$ is \[ -c\sum_j\frac{\xi_j}{\omega'(x_j)}=\alpha\,c\sum_j\frac{y_j}{\omega'(x_j)}=\alpha\,c^2\,\Omega[x_1,\dots,x_k], \] a divided difference of order $k-1$ (constants do not contribute). With $\bar x=0$ we have $\omega=x^k+e_2x^{k-2}+\dots$ and $\Omega=\frac{x^{k+1}}{k+1}+\frac{e_2x^{k-1}}{k-1}+\dots$, where $e_2=-\frac12\sum x_j^2$. The divided difference of order $k-1$ of $x^{k+1}$ is the complete symmetric polynomial $h_2(x_1,\dots,x_k)=-e_2$, that of $x^{k-1}$ is $1$, and lower powers give $0$. Hence $\Omega[x_1,\dots,x_k]=-\frac{e_2}{k+1}+\frac{e_2}{k-1}=-\frac{\sum x_j^2}{k^2-1}$. Adding the two contributions gives \eqref{eq:dA}, and (a), (b) follow from Theorem~\ref{thm:near}, with $s=\alpha$. \end{proof} For the regular $k$-gon in the Chebyshev position \eqref{eq:dA} gives $-k\,2^{2k-3}$, the derivative of the closed form $A=2^{2k-3}\cos k\varphi/\sin^3k\varphi$ of Theorem~\ref{thm:closed}. For random tight sets with $3\le k\le9$ the formula agrees with finite differences to seven digits, and computed staircases show the predicted jumps, on the predicted sides: $4\to6$, $5\to7$ or $9$, $6\to10$, $7\to11$ or $13$, $8\to14$. Figure~\ref{fig:general} shows three examples. \begin{figure}[t] \centering \includegraphics[width=\linewidth]{fig-general.pdf} \caption{Three random polynomials with all critical points real (top; the dots are the tight set $T$ of their critical points) and the least degree $\ds$ of a strong realization of $T_\alpha$ (bottom). Dotted lines: ends of the strongly realizable arc.} \label{fig:general} \end{figure} \subsection{The first jump for realizability} Allowing flat points changes the picture only on the expensive side, and only by one. \begin{proposition}\label{prop:endflat} Let $T_0$ be tight with $P_0'=c\,\omega_0$, and let $T$ range over a small neighbourhood of $T_0$ with $A(T)\ne0$. \begin{enumerate}[label=(\alph*)] \item $d(T)\ge2k$, except when $k$ is even and $\ds(T)=2k-1$, in which case $d(T)=2k-1$. \item Let $k$ be even. If the equation $\omega_0'(x)=\omega_0'(x_1)$ has no real solution other than $x_1$, then $d(T)\le2k$; the same holds with $x_k$ in place of $x_1$. \end{enumerate} So for even $k$, on the expensive side of Theorem~\ref{thm:rot}(b), $d=2k$ under the hypothesis of (b), while $\ds=2k+1$. For odd $k$, $d=\ds=2k$ near $T_0$. \end{proposition} \begin{proof} (a) A realization of degree at most $2k-1$ is $H_T$ (Proposition~\ref{prop:family}). Near $T_0$, $g_T$ is close to the constant $c$ on compact sets, so its real zeros, if any, are far outside $[x_1,x_k]$ and cannot be absorbed into the multiplicities at the nodes. Hence $H_T$ is a realization only if $g_T$ has no real zeros, that is, only if it is a strong realization, which requires $k$ even. (b) Let $Q$ be the unique polynomial of degree at most $2k$ with $Q(x_j)=y_j$, $Q'(x_j)=0$ for all $j$, and $Q''(x_1)=0$. For $T=T_0$ it is \[ Q_0=P_0-\frac{c}{2\,\omega_0'(x_1)}\,\omega_0^2,\qquad Q_0'=c\,\omega_0\Big(1-\frac{\omega_0'(x)}{\omega_0'(x_1)}\Big). \] The last factor vanishes simply at $x_1$, because $\omega_0''(x_1)\ne0$ (the zeros of $\omega_0''$ lie between those of $\omega_0'$, hence inside $(x_1,x_k)$), and by hypothesis nowhere else. So $Q_0'=\omega_{0,m}\,g$ with $m=(2,1,\dots,1)$ and $g$ of exact degree $k-2$ without real zeros. This persists for $T$ near $T_0$, since $Q$ depends continuously on $T$ and $\deg Q=2k$ exactly; so $Q$ realizes $T$ with the leftmost point flat. For odd $k$ the hypothesis always fails, since $\omega_0'$ has even degree and positive leading coefficient while $\omega_0'(x_1)>0$. \end{proof} The hypothesis of (b) holds at one end at least for the square, the hexagon and the octagon in the Chebyshev position, and for six random tight sets with $4$ or $6$ points; in each case the computed least degree $d$ just off the tight position is $2k$ on the expensive side and $2k-1$ on the cheap side (Figure~\ref{fig:both}). \section{Central symmetry}\label{sec:symmetry} Let $T$ be centrally symmetric about the origin, with $k$ even. Rotations preserve this. \begin{lemma}\label{lem:odd} If $P$ strongly realizes $T$ in degree $D$, then so does the odd polynomial $\frac12\big(P(x)-P(-x)\big)$, in degree at most $D$. The candidate $H_T$ is odd. \end{lemma} \begin{proof} $\omega$ is even, so $\tilde P(x)=-P(-x)$ has $\tilde P'(x)=\omega(x)\,g(-x)$; it realizes $-T=T$, and $g(-x)$ has the same sign as $g$. The mean of two strong realizations with $g$ of the same sign is a strong realization. $H_T$ is odd by uniqueness. \end{proof} So we may restrict to odd realizations, $P=H_T+\omega^2\,x\,\eta(x^2)$. In the variable $y=x^2$, with $W(y)=\omega(\sqrt y)$ and $G_0(y)=g_T(\sqrt y)$ (both are polynomials in $y$, since $\omega$ and $g_T$ are even), \eqref{eq:gh} becomes \begin{equation}\label{eq:K} g=G_0+K[\eta],\qquad K[\eta]=\big(W+4yW'\big)\,\eta+2yW\,\eta', \end{equation} where $'$ now denotes $d/dy$, and we need $\varepsilon\,g>0$ on $[0,\infty)$. Say that \emph{level $j$} is feasible if this holds for some $\eta$ of degree less than $j$; level $j$ corresponds to strong realizations of degree at most $2k-1+2j$. The polynomial $K[y^i]$ has degree $\frac k2+i$ and leading coefficient $2i+2k+1>0$. So each increase of the degree by $2$ adds a single parameter, the coefficient $b$ of $y^j$ in $\eta$, and if $\varepsilon\,g$ is to be positive for large $y$ that parameter must satisfy $\varepsilon b\ge0$ once $\frac k2+j$ exceeds the degree of everything else. For sets without symmetry each step adds two parameters, one of them free. \begin{lemma}[Blocking]\label{lem:block} Take $\varepsilon=-1$. Let $\nu$ be a finite positive measure on $[0,\infty)$ with $\int K[y^i]\,d\nu=0$ for $0\le i0$. Then level $j$ is infeasible. If moreover $\int K[y^j]\,d\nu\le0$, then level $j+1$ is infeasible as well. \end{lemma} \begin{proof} If $g=G_0+K[\eta]<0$ with $\deg\eta\int g\,d\nu=\int G_0\,d\nu>0$. If $\eta=\eta_0+b\,y^j$ with $\deg\eta_0\int g\,d\nu=\int G_0\,d\nu+b\int K[y^j]\,d\nu\ge\int G_0\,d\nu>0$. \end{proof} For a point mass at $y^*$ the hypotheses read: $y^*$ is a root of $K_1:=W+4yW'$, $G_0(y^*)>0$, and, since $K[y](y^*)=y^*\big(K_1(y^*)+2W(y^*)\big)$, the extra condition for $j=1$ is $W(y^*)\le0$. This is how the hexagon's jump from $13$ to $17$ is proved (Proposition~\ref{prop:hex}). \subsection{Parallelograms} Let $T=\{\pm(s,a),\pm(c,b)\}$ with $00$ of degree at most $2m$. In particular $T$ is tight exactly when $r^*=R(1)$. \begin{theorem}\label{thm:par4} If $r^*0$ be even of degree at most $4a+2$ with $R(q)=r^*$. An even polynomial that is nonnegative on $\R$ is of the form $q=\sum_iA_i(x^2)^2+x^2\sum_iB_i(x^2)^2$ (Markov--Luk\'acs), here with $\deg A_i,\deg B_i\le a$. Put $q'=\sum_iA_i(x^2)^2+s^2\sum_iB_i(x^2)^2$, which has degree at most $4a$ and is positive wherever $q$ is, since $q'$ vanishes only at common zeros of all $A_i(x^2)$ and $B_i(x^2)$, where $q$ vanishes too. On $(0,s)$ we have $x^2s^2$, so $\Lambda_1(q')\ge\Lambda_1(q)$ and $\Lambda_2(q')\le\Lambda_2(q)$, whence $R(q')\le r^*R(1)$ on the other (Theorem~\ref{thm:square-steps}). As a check, the parallelogram $\pm(s,-1)$, $\pm(1,\frac12)$ is tight near $s=0.41$; for smaller $s$ the computed degrees are $9$, $13$, $17$, $21$, $25$, $29$, and for larger $s$ they are $7$, $9$, $11$, $13$, $15$, $\dots$. \subsection{Flat end points fill the gaps} For realizability the restriction to odd polynomials is no longer available in general, and the blocking disappears. Near the square's Chebyshev position, on the side where $\ds$ takes the values $9,13,17,21,25$, the least degree $d$ takes the values $8,9,11,13,15,17,19,21,23,25,27$: degree $8$ has one outer vertex flat, and degrees $11,15,19,\dots$ have both outer vertices flat (computed on a grid of $60$ values of $t$; Figure~\ref{fig:both}). The solutions with both outer vertices flat have their own one-ratio problem, with $(x^2-c^2)^2$ in the weight, to which the argument of Theorem~\ref{thm:par4} does not apply. \part*{Part II. Regular polygons} \section{Regular polygons: the Chebyshev position}\label{sec:cheb} Throughout Part~II, $k\ge3$ and $\Pi$ is the regular $k$-gon with vertices \[ (x_j,y_j)=(\cos\theta_j,\sin\theta_j),\qquad \theta_j=\varphi+\frac{2\pi j}{k},\quad j=0,\dots,k-1, \] which by Lemma~\ref{lem:invariance} is no loss of generality. We put \[ t=\cos k\varphi,\qquad \Sk=\sin k\varphi . \] Rotating $\Pi$ by $2\pi/k$ permutes its vertices, and reflecting it in the $x$-axis replaces $\varphi$ by $-\varphi$; so every orientation is equivalent to one with $\varphi\in[0,\pi/k]$, on which $t$ decreases from $1$ to $-1$ and $\Sk\ge0$. \begin{lemma}\label{lem:distinct} The vertices of $\Pi$ have distinct abscissas if and only if $|t|<1$. In that case the abscissas are the $k$ roots of $T_k(x)-t$, so that $\omega=2^{1-k}\,(T_k-t)$, where $T_k$ is the Chebyshev polynomial of the first kind (compare~\cite{ryabichev}). \end{lemma} \begin{proof} Since $k\theta_j\equiv k\varphi\pmod{2\pi}$, we have $T_k(\cos\theta_j)=\cos k\theta_j=t$. Two abscissas coincide if and only if $\theta_i\equiv-\theta_j$ for some $i\ne j$, which forces $2k\varphi\equiv0$, i.e.\ $t=\pm1$; conversely, if $t=\pm1$ then $2\varphi=2\pi m/k$ for an integer $m$, and since $k\ge3$ there are $i\not\equiv j\pmod k$ with $i+j\equiv-m$. When the abscissas are distinct they are all $k$ roots of $T_k-t$, whose leading coefficient is $2^{k-1}$. \end{proof} \begin{lemma}[Alternation]\label{lem:alternation} If $|t|<1$, then, listed by increasing abscissa, the vertices of $\Pi$ alternate strictly between the upper and the lower half of the circumcircle. In particular $\Pi$ zigzags in every orientation in which its abscissas are distinct. \end{lemma} \begin{proof} Write $\theta=\pi+\alpha$ with $\alpha\in(-\pi,\pi]$. Then $x=-\cos\alpha$, so ordering by $x$ is ordering by $|\alpha|$, and a vertex lies in the upper half exactly when $\alpha<0$. The values of $\alpha$ form the set $\{\delta+ms\}\cap(-\pi,\pi]$ with $s=2\pi/k$ and some $\delta\in[0,s)$. Distinct abscissas exclude $\delta\in\{0,s/2\}$, and after reflecting in the $x$-axis we may assume $0<\delta0$ and lower ones $y<0$. \end{proof} So by Theorem~\ref{thm:exist} every orientation with $|t|<1$ is strongly realizable, and the staircase of $\ds$ is defined on the whole circle of orientations except at the degenerate ones. We write $\ds(t)$ for its value; by the symmetries above it depends only on $t$. \begin{theorem}\label{thm:cheb} The regular $k$-gon with $|t|<1$ is tight if and only if $t=0$. For $\varphi=\frac{3\pi}{2k}$ the realization of degree $k+1$ is \[ P_k(x)=\frac{1}{2k}\Big[(k-1)\,T_{k+1}(x)-(k+1)\,T_{k-1}(x)\Big],\qquad P_k'=\frac{k^2-1}{k}\,T_k , \] and for $\varphi=\frac\pi{2k}$, the mirror image, it is $-P_k$. So $\Pi$ has exactly $k$ tight orientations modulo $\pi$, which are rotations of these two by multiples of $2\pi/k$. \end{theorem} \begin{proof} By Theorem~\ref{thm:tight} and Lemma~\ref{lem:distinct}, $\Pi$ is tight if and only if some $P$ with $P'=c\,(T_k-t)$ takes the values $y_j$ at the nodes. Substitute $x=\cos\theta$. By product-to-sum, \[ \frac{d}{d\theta}P(\cos\theta)=-c\sin\theta\,(\cos k\theta-t)=\frac c2\big[\sin(k-1)\theta-\sin(k+1)\theta\big]+ct\sin\theta, \] so \[ P(\cos\theta)=\frac c2\left[\frac{\cos(k+1)\theta}{k+1}-\frac{\cos(k-1)\theta}{k-1}\right]-ct\cos\theta+\text{const}. \] At $\theta=\theta_j$ we have $\cos(k\pm1)\theta_j=\cos(k\varphi\pm\theta_j)=t\cos\theta_j\mp\Sk\sin\theta_j$, hence \begin{equation}\label{eq:affreg} P(x_j)=\alpha+\beta x_j+\gamma y_j,\qquad\beta=-\frac{c\,k^2\,t}{k^2-1},\quad\gamma=-\frac{c\,k\,\Sk}{k^2-1}, \end{equation} with a constant $\alpha$. The vectors $(1)_j$, $(x_j)_j$, $(y_j)_j$ in $\R^k$ are nonzero and pairwise orthogonal, because $\sum_je^{i\theta_j}=\sum_je^{2i\theta_j}=0$ for $k\ge3$. So $P(x_j)=y_j$ for all $j$ if and only if $\alpha=\beta=0$ and $\gamma=1$, which means $t=0$, $\Sk=\pm1$ and $c=\mp(k^2-1)/k$. For $\varphi=3\pi/(2k)$ we get $\Sk=-1$ and $c=(k^2-1)/k$, and integrating with $\int T_k=\frac12\big[\frac{T_{k+1}}{k+1}-\frac{T_{k-1}}{k-1}\big]$ gives $P_k$. The equation $\cos k\varphi=0$ has $k$ solutions modulo $\pi$. \end{proof} \begin{theorem}[The original problem]\label{thm:intro} Let $n\ge4$. A polynomial of degree $n$ whose $n-1$ local extrema are the vertices of a regular $(n-1)$-gon of circumradius $1$ has leading coefficient \[ \pm\frac{(n-2)\,2^{n-2}}{n-1}, \] which is $\pm\frac83$ for $n=4$ and $\pm6$ for $n=5$; for circumradius $R$ it is divided by $R^{n-1}$. After a translation, and possibly the reflection $y\mapsto-y$, the polynomial is $R\,P_{n-1}(x/R)$. \end{theorem} \begin{proof} A polynomial of degree $n$ has at most $n-1$ critical points, so here $\Crit(P)$ is the vertex set and $P$ is a tight realization. Apply Theorem~\ref{thm:cheb} with $k=n-1$ and Lemma~\ref{lem:invariance}; the leading coefficient of $P_k$ is $\frac{(k-1)2^{k-1}}{k}$. \end{proof} \begin{remark}[Affinely regular polygons] Formula \eqref{eq:affreg} holds for every $t$: if $P'=c\,(T_k-t)$ with $|t|<1$, the critical points of $P$ are the image of a regular $k$-gon under $(x,y)\mapsto(x,\alpha+\beta x+\gamma y)$, a vertical shear followed by a vertical stretch. So the tight sets over the abscissas of a regular polygon are exactly the affinely regular polygons obtained from it by such maps, and the Chebyshev position is the case without shear. \end{remark} \begin{figure}[t] \centering \includegraphics[width=\linewidth]{fig-chebyshev.pdf} \caption{The Chebyshev solutions $P_k=\frac{1}{2k}\big[(k-1)T_{k+1}-(k+1)T_{k-1}\big]$ for $k=3,4,5,6$, with the regular $k$-gon formed by their critical points.} \label{fig:chebyshev} \end{figure} \section{The candidate in closed form, and the first steps}\label{sec:closed} For regular polygons the candidate $H_T$ of Proposition~\ref{prop:family} can be written down in every position. We use the Chebyshev polynomials of the second kind, $U_n(\cos\theta)=\sin(n+1)\theta/\sin\theta$, and put \[ c_t=\frac{(k+1)(k-1+t^2)}{k}. \] \begin{theorem}\label{thm:closed} For $|t|<1$ and $\Sk\ne0$ the candidate for $\Pi$ is \[ H_t(x)=\frac{T_{k-1}(x)-t\,x}{\Sk}+\frac{\big(T_k(x)-t\big)\big(k\,t\,T_{k-1}(x)-(k-1+t^2)\,x\big)}{k\,\Sk^3}, \] and \begin{equation}\label{eq:gt} H_t'=(T_k-t)\,g_t,\qquad g_t(x)=\frac{(2k-1)\,t\,U_{k-2}(x)-c_t}{\Sk^3}. \end{equation} In particular the leading coefficient of $H_t$ is $2^{2k-3}\,t/\Sk^3$, which vanishes only for $t=0$, and every polynomial $P$ with $P(x_j)=y_j$ and $P'(x_j)=0$ for all $j$ is of the form $H_t+(T_k-t)^2h$. \end{theorem} \begin{proof} \emph{Values.} Since $k\theta_j\equiv k\varphi$, $T_{k-1}(x_j)=\cos(k\theta_j-\theta_j)=t\,x_j+\Sk\,y_j$, so the first term of $H_t$ equals $y_j$ at $x_j$, and the second vanishes there. \emph{Derivative.} Put $m=t\,T_{k-1}-(k-1+t^2)\,x/k$, so that $\Sk^3H_t=\Sk^2(T_{k-1}-tx)+(T_k-t)\,m$. Write $x=\cos\theta$, $c=\cos k\theta$, $e=\sin k\theta$, and use $\sin\theta\,T_n'(\cos\theta)=n\sin n\theta$, $\Sk^2=1-t^2$, $\sin(k-1)\theta=e\cos\theta-c\sin\theta$, $\cos(k-1)\theta=c\cos\theta+e\sin\theta$ and $e^2=1-c^2$. A direct expansion gives \[ \sin\theta\,\Big[\Sk^2\big(T_{k-1}'-t\big)+T_k'\,m\Big]=(c-t)\Big[k\,t\,e\cos\theta-\big(k\,t\,c+k-1+t^2\big)\sin\theta\Big]. \] Dividing by $\sin\theta$ and using $k\,e/\sin\theta=T_k'$, \[ \Sk^3H_t'=(T_k-t)\Big[t\,x\,T_k'-k\,t\,T_k-(k-1+t^2)+m'\Big]. \] Now $x\,T_k'-k\,T_k=k\,(x\,U_{k-1}-T_k)=k\,U_{k-2}$ and $T_{k-1}'=(k-1)\,U_{k-2}$, so the bracket is $(2k-1)\,t\,U_{k-2}-(k-1+t^2)(1+\frac1k)$, which is \eqref{eq:gt}. The leading coefficient follows from those of $T_k$ and $T_{k-1}$, which are $2^{k-1}$ and $2^{k-2}$, and the last statement is Proposition~\ref{prop:family}. \end{proof} The identity \eqref{eq:gt} was also verified symbolically for $3\le k\le12$. Two consequences are immediate: $\ds(t)\ge2k-1$ for \emph{every} $t\ne0$, not only near $0$, by Proposition~\ref{prop:family}(a); and the sign of the strong realizations is fixed. For $\varphi\in(0,\pi/k)$ the rightmost vertex is the one at angle $\varphi$, in the upper half-plane, and by Lemma~\ref{lem:alternation} its neighbour is in the lower half; so the rightmost point is a maximum, $P'<0$ beyond it, and \begin{equation}\label{eq:sign} g<0\quad\text{on }\R\ \text{ for every strong realization } P'=(T_k-t)\,g . \end{equation} Define the constants \[ \mu_k=-\min_{x\in\R}U_{k-2}(x)\quad(k\text{ even}),\qquad \rho_k=\inf_{\nu\ge0}\ \max_{x\in\R}\big[U_{k-2}(x)-\nu\,U_{k-1}(x)\big]\quad(k\text{ odd}), \] and for $\kappa>0$ let $\tau(\kappa)$ be the smaller root of $(k+1)\,t^2-k(2k-1)\,\kappa\,t+(k+1)(k-1)$. \begin{theorem}\label{thm:near0} Let $t\ne0$, $|t|<1$. \begin{enumerate}[label=(\alph*)] \item $\ds(t)\ge2k-1$. If $k$ is odd, $\ds(t)\ge2k$. If $k$ is even and $t>0$, $\ds(t)\ge2k+1$. \item If $k$ is odd, then $\ds(t)=2k$ if and only if $|t|<\tau(\rho_k)$. \item If $k$ is even and $t<0$, then $\ds(t)=2k-1$ if and only if $|t|<\tau(\mu_k)$. \item If $k$ is even, then $\ds(t)=2k+1$ for all sufficiently small $t>0$. For $k=4$ this holds exactly for $00$ the leading coefficient of $g_t$ is positive, contradicting \eqref{eq:sign}; the next admissible degree is $2k+1$. (b) The candidates of degree at most $2k$ are $H_t+\lambda(T_k-t)^2$, with $g=g_t+2\lambda T_k'=g_t+2\lambda k\,U_{k-1}$. By \eqref{eq:sign} we need, for some real $\lambda'$, \[ (2k-1)\,t\,U_{k-2}(x)+\lambda'\,U_{k-1}(x)0$ this is possible if and only if $(2k-1)\,t\,\rho_k0$; the product of the roots is $k-1>1$, so for $|t|<1$ it holds exactly when $|t|<\tau(\rho_k)$. (c) Now $H_t$ itself must be a strong realization, i.e.\ $g_t<0$ on $\R$, i.e.\ $(2k-1)|t|\,\big(-U_{k-2}(x)\big)0 , \] a quadratic in $y$ whose maximum is at $y=(28t+40\beta)/(144\beta)>0$. The maximum is negative if and only if \[ \frac{49t^2}{18\,\beta}+\Big(\frac{41}{9}+t\Big)\beta\ <\ \frac54t^2-\frac79t+\frac{15}{4}. \] The left side has minimum $\frac{7\sqrt2}{9}\,t\sqrt{41+9t}$ over $\beta>0$, and the right side is positive, so a suitable $\beta$ exists if and only if $1568\,t^2(41+9t)<(45t^2-28t+135)^2$, that is, $75t^4-616t^3-1902t^2-280t+675>0$. This quartic is decreasing on $[0,1]$, positive at $0$ and negative at $1$. \end{proof} In (b), $\rho_3=1$ and $\rho_5=\frac32$, both attained at $\nu=\frac12$: indeed $1-U_1+\frac12U_2=2(x-\frac12)^2$ and $\frac32-U_3+\frac12U_4=2(x-1)^2(2x+1)^2$. In (c), $\mu_4=1$ and $\mu_6=\frac54$. Table~\ref{tab:first} lists the resulting first steps. At the end of each of them the polynomial of the lower degree survives as a limit, with a critical point outside the polygon; the two simplest cases deserve to be stated separately. \begin{corollary}[The triangle and the square]\label{cor:tri-square} \leavevmode \begin{enumerate}[label=(\alph*)] \item For the triangle, $\ds(t)=6$ exactly for $0<|t|<\tau=\frac{15-\sqrt{97}}8=0.64389\ldots$, the smaller root of $4t^2-15t+8$. At $|t|=\tau$ the limiting polynomial of degree $6$ has a flat inflection point at $x=\pm\frac12$. \item For the square, $\ds(t)=7$ exactly for $-\frac350$ and for $t\le-\frac35$. At $t=-\frac35$ the limiting polynomial of degree $7$ is \[ P(x)=-\tfrac52\,\big(15x^7-21x^5+7x^3\big),\qquad P'(x)=-\tfrac{525}{16}\,x^2\big(T_4(x)+\tfrac35\big), \] whose graph passes through the four vertices with turning points there and has a flat inflection point at the origin (Figure~\ref{fig:square}). \end{enumerate} \end{corollary} \begin{proof} (a) is Theorem~\ref{thm:near0}(b) with $\rho_3=1$; the zero of $g$ at the end is the double root of $1-U_1+\frac12U_2$. (b) is Theorem~\ref{thm:near0}(a), (c) with $\mu_4=1$, for which $\tau(1)$ is the smaller root of $5t^2-28t+15$, namely $\frac35$. At $t=-\frac35$, \eqref{eq:gt} gives $g_t=-\frac{525}{16}x^2$. \end{proof} \begin{figure}[t] \centering \includegraphics[width=0.36\linewidth]{fig-square.pdf} \caption{The limiting polynomial of degree $7$ for the square at $t=-3/5$. Its derivative has a double root at the origin, a flat inflection point outside the square; so it realizes the square together with the origin, and the square itself needs degree $9$ there.} \label{fig:square} \end{figure} \begin{table}[t] \centering\small \begin{tabular}{@{}cllll@{}} \toprule $k$ & side & $\ds$ & end of the first step, $|t|$ & source\\ \midrule 3 & both & $6$ & $\frac{15-\sqrt{97}}{8}=0.643893$ & (b), $\rho_3=1$\\ 4 & $t<0$ & $7$ & $\frac35$ & (c), $\mu_4=1$\\ 4 & $t>0$ & $9$ & $0.495059$ & (d), quartic\\ 5 & both & $10$ & $\frac{45-\sqrt{1769}}{8}=0.367565$ & (b), $\rho_5=\frac32$\\ 6 & $t<0$ & $11$ & $\frac{165-\sqrt{23305}}{28}=0.440723$ & (c), $\mu_6=\frac54$\\ 6 & $t>0$ & $13$ & $0.495883$ & Proposition~\ref{prop:hex}, sextic\\ 7 & both & $14$ & $0.240298$ & (b), $\rho_7=2.216203$\\ 8 & $t<0$ & $15$ & $0.326772$ & (c), $\mu_8=1.631130$\\ 8 & $t>0$ & $17$ & $0.497392$ & numerical\\ \bottomrule \end{tabular} \caption{The first step off the Chebyshev position, from Theorem~\ref{thm:near0}. All values agree with the semidefinite computations to the digits shown.} \label{tab:first} \end{table} For even $k$ the position $t\to-1$ is the one in which the polygon has vertical sides at its far left and right, and $t\to+1$ the one with single vertices there. So the degree is $2k-1$ when the polygon is turned from the Chebyshev position towards vertical end sides, and $2k+1$ when it is turned towards end vertices, in accordance with Theorem~\ref{thm:rot}. For even $k$ the first step on the side $t>0$ ends close to $t=\frac12$: the values for $k=4,6,8,10,12$ are $0.49506$, $0.49588$, $0.49739$, $0.49825$, $0.49876$. The binding point is close to $\cos(\pi/k)$, where $U_{k-2}=1$ and \eqref{eq:gt} changes sign at about $t=\frac12$. \section{Staircases}\label{sec:staircases} Beyond the first step we rely on computation, with exact or high-precision certificates where it matters. The method is described in Appendix~\ref{app:numerics}. Figure~\ref{fig:staircases} shows the staircases of $\ds$ for $k=3,\dots,6$ and Table~\ref{tab:crossovers} the ends of the steps. \begin{table}[t] \centering \small \begin{tabularx}{\linewidth}{@{}llX@{}} \toprule polygon & side & $\ds$ on the step, and the end of the step (value of $|t|$)\\ \midrule triangle & both & $6\;(\tfrac{15-\sqrt{97}}8=0.64389)$, $8\;(0.85606)$, $10\;(0.93271)$, $12\;(0.96474)$, $14\;(0.97985)$, $16\;(0.98769)$\\ square & $t<0$ & $7\;(\tfrac35)$, $9\;(0.81947)$, $11\;(0.90807)$, $13\;(0.94854)$, $15\;(0.96902)$, $17\;(0.98025)$\\ square & $t>0$ & $9\;(0.49506)$, $13\;(0.70354)$, $17\;(0.80668)$\\ pentagon & both & $10\;(0.36756)$, $12\;(0.49940)$, $14\;(0.59702)$, $16\;(0.71537)$\\ hexagon & $t<0$ & $11\;(0.44072)$, $15\;(0.65056)$, $19\;(0.76365)$\\ hexagon & $t>0$ & $13\;(0.49588)$, $17\;(0.49798)$, $19\;(0.70460)$\\ \bottomrule \end{tabularx} \caption{Ends of the steps. Each step is open at its end, which belongs to the next step. Exact values are from Theorem~\ref{thm:near0}; the others are numerical, accurate to about the digits shown.} \label{tab:crossovers} \end{table} \subsection{The square: steps of four} For the square with $\varphi\in(0,\frac\pi4)$ put $c=\cos\varphi>s=\sin\varphi>0$. The vertices with positive abscissa are $(c,s)$ and $(s,-c)$, so in the notation of Theorem~\ref{thm:par4} the square is $\{\pm(s,-c),\pm(c,s)\}$ and $r^*=1+\tan\varphi$. \begin{theorem}\label{thm:square-steps} For the square, $\ds(t)\equiv1\pmod4$ for all $0r^*$ near $0$, hence throughout. \end{proof} For $t<0$ we have $r^*>R(1)$ and every step counts: the extremal $q$ alternate between the forms $A(x^2)^2$ and $x^2B(x^2)^2$ ($m=1$: $B$ constant, the polynomial of Corollary~\ref{cor:tri-square}; $m=2$: $A$ linear; $m=3$: $B$ linear; and so on). In both directions each crossover is a generalized eigenvalue problem for a pair of Gram matrices, and at every crossover $g$ is, up to sign, a perfect square; this gives a fast and accurate way to compute crossovers, which we used up to degree $805$ in Section~\ref{sec:asymptotics}. The triangle has the same structure: each degree is decided by one ratio of weighted moments over $(x_1,x_2)$ and $(x_2,x_3)$. \subsection{The hexagon: a jump of four, and a sliver} \begin{proposition}\label{prop:hex} Let $k=6$ and let $\tau_{13}=0.4958832125573908\ldots$ be the smaller root in $(0,1)$ of \[ 57967t^6-1076526t^5-12551331t^4+46577124t^3-25382175t^2-11884950t+7245875 . \] For $\tau_{13}\le t<1$ neither degree $13$ nor degree $15$ strongly realizes the hexagon. So there is no interval, however small, on which $\ds=15$. \end{proposition} \begin{proof} In the notation of \eqref{eq:K}, with $\omega$ replaced by $T_6-t$ and the factor $\Sk^3$ absorbed into $\eta$: $W=32y^3-48y^2+18y-1-t$, $K_1=W+4yW'=416y^3-432y^2+90y-1-t$ and $G_0=\Sk^3 g_t=11t\,(16y^2-12y+1)-\frac76(5+t^2)$; level $1$ is degree $13$ and level $2$ is degree $15$. Let $y^*(t)$ be the largest real root of $K_1$ ($y^*\approx0.76$, $x^*=\sqrt{y^*}\approx0.872$). The resultant of $K_1$ and $6G_0$ in $y$ is $-1024$ times the sextic above, whose roots in $(0,1)$ are $\tau_{13}$ and $0.8143\ldots$; at the second one the common root is not $y^*$. So $G_0(y^*(t),t)$ does not vanish on $(\tau_{13},1)$; it vanishes at $\tau_{13}$ and is positive just above, where its $t$-derivative is $11.62$. A common root of $W$ and $K_1=W+4yW'$ with $y>0$ is a double root of $W$, which occurs only for $t=\pm1$; so $W(y^*(t),t)$ keeps its sign, which is negative ($-1.49$ at $\tau_{13}$). Apply Lemma~\ref{lem:block} to the point mass at $y^*(t)$ for $t>\tau_{13}$. At $t=\tau_{13}$ itself $\int G_0\,d\nu=0$, which still excludes strict negativity of $g$ for $\eta$ of degree $0$; and for level $2$ the argument of Lemma~\ref{lem:block} gives $\int g\,d\nu\ge0$, again excluding $g<0$. (Both signs were also checked in $40$-digit arithmetic at $3999$ values of $t$.) \end{proof} That degree $13$ does realize the hexagon for $00$: degree $2k+3$ is blocked in each case. \begin{observation}[Long-range patterns]\label{obs:hex} \leavevmode \begin{enumerate}[label=(\alph*)] \item \emph{Hexagon, $t<0$.} The steps end at $|t|=0.440723$, $0.650557$, $0.763646$, $0.830545$, $0.873018$, $0.901509$, $0.921474$, $0.935972$ for degrees $11,15,\dots,39$, and degrees $13,17,\dots,41$ add nothing (the ends agree to eight digits). Writing $g=-A(x^2)^2-x^2B(x^2)^2$ as in Theorem~\ref{thm:par4}, the ends depend only on $\deg A$: they are unchanged if $B$ is omitted altogether (checked for $\deg A\le4$). \item \emph{Hexagon, $t>0$.} The pattern has period three in $\deg g/2$. Degrees $13,19,25,31,37$ end at $t=0.495883$, $0.704600$, $0.807394$, $0.864945$, $0.900223$; degrees $15,21,27,33,39$ add nothing; degrees $17,23,29,35,41$ add slivers, ending at $0.497982$, $0.705785$, $0.808240$, $0.865563$, $0.900686$. \item \emph{Octagon, $t<0$.} Degree $17$ adds nothing to degree $15$. \item \emph{Odd $k$.} For the pentagon the steps end at $t=0.367565$, $0.499402$, $0.597020$, $0.715369$, $0.734950$, $0.818382$, $0.820296$, $0.859087$, $0.874552$, $0.888580$, $0.909314$, $0.911945$, $0.930031$, $0.930576$ for degrees $10,12,\dots,36$. For the heptagon they end at $0.240298$, $0.484408$, $0.501173$, $0.536349$, $0.709173$, $0.711810$, $0.713994$, $0.803372$, $0.812476$, $0.813010$, $0.838050$, $0.868900$, $0.869540$ for degrees $14,16,\dots,38$. Large steps and slivers alternate irregularly, and no gain is exactly zero. \end{enumerate} \end{observation} \begin{figure}[t] \centering \includegraphics[width=\linewidth]{fig-gains.pdf} \caption{The additional rotation (in degrees of angle, logarithmic scale) that becomes strongly realizable each time the degree is raised by $2$. Open circles: no gain at all, to the accuracy of the computation. Dark bars: slivers.} \label{fig:gains} \end{figure} So the widths of the steps are not monotone in general: for the pentagon the degree-$14$ step, $0.49940\le t<0.59702$, is narrower than the following degree-$16$ step ($1.34^\circ$ against $1.81^\circ$ of rotation), and Figure~\ref{fig:gains} shows that this is the rule for $k\ge5$, not a small-degree accident. \subsection*{A heuristic explanation} Two things combine. First, the sign constraint: for even $k$ each step adds a single parameter with a prescribed sign (Lemma~\ref{lem:block}), so a step either helps or is blocked completely, which is why exact zeros occur; for odd $k$ each step adds two parameters, one of them free, and some gain always remains. Second, a phase. Near a degenerate position the task is to concentrate the positive polynomial $g$, a sum of squares of polynomials of degree $n=\deg g/2$, within a distance of order $\varphi$ of the abscissa $x_0=\cos\theta_0$ of the coalescing vertices. How well this can be done depends on where $x_0$ sits relative to a grid of mesh about $\pi/n$ in the variable $\theta$ (for instance the zeros of an orthogonal polynomial of degree $n+1$): well if $x_0$ is near a grid point, badly if it is halfway between two. Raising $n$ by one moves the grid at $x_0$ by the fraction $\theta_0/\pi$ of a mesh. If $\theta_0/\pi$ is rational with denominator $r$ the pattern repeats with period $r$ in $n$: $r=2$ for coalescing vertices at the centre (the square with $t>0$, the hexagon with $t<0$), where it is the parity symmetry of Theorem~\ref{thm:par4}, and $r=3$ for the hexagon with $t>0$, whose vertices coalesce at $x_0=\pm\frac12$. For the pentagon and the heptagon the node range is not symmetric and the pattern is quasi-periodic. Apart from Theorem~\ref{thm:square-steps} and Proposition~\ref{prop:hex} nothing in this paragraph is proved. \subsection{Realizability} Figure~\ref{fig:both} compares $d$ and $\ds$ for $k=3,\dots,6$. Just off the Chebyshev position $d=\ds$, except on the expensive side for even $k$, where $d=2k<\ds=2k+1$ (Proposition~\ref{prop:endflat}). Further out the two staircases separate. Flat end points give realizations of the other parity, and they fill the gaps that symmetry opens for $\ds$, but not all of them. \begin{observation}[Regular polygons, realizability]\label{obs:weakpoly} Computed on a grid of $60$ values of $t$ on each side, so the ends of the steps are approximate. \begin{enumerate}[label=(\alph*)] \item \emph{Square, $t>0$.} $\ds$: $9,13,17,21,25$. $d$: $8$ (up to $t\approx0.17$), $9$, $11$ (from $0.495$ to about $0.59$), $13,15,17,\dots,27$. For $t<0$, $d=\ds$. \item \emph{Hexagon.} For $t<0$, $\ds$: $11,15,19,23,27$, and $d$: $11$, $15$, $17$, $19$, $21$, $23$, $25$, $27$, $29$. For $t>0$, $\ds$: $13,19,25$, and $d$: $12$, $13$, $17$, $19$, $23$, $25$, $29$, so $d$ also skips from $13$ to $17$. \item \emph{Pentagon.} $\ds$ takes the even values $10,12,\dots$, and $d$ the values $10$, $11$, $12$, $13$, $15$, $16$, $17$, $18$, $20$, $22$, \dots, with one end point flat in the odd degrees. \end{enumerate} \end{observation} \begin{figure}[t] \centering \includegraphics[width=0.92\linewidth]{fig-both.pdf} \caption{Least degrees for the rotated regular $k$-gon, against the angle of rotation from the Chebyshev position, computed on a $\frac12^\circ$ grid up to degree about $22$. Black: strong realizability, $\ds$. Orange: realizability, $d$. The two coincide near the Chebyshev position (orange dot) except on one side for even $k$, where $d=2k$ and $\ds=2k+1$.} \label{fig:both} \end{figure} \subsection{Stiff segments} The family of strong realizations of least degree can be large while particular stretches of the graph are nearly rigid. Figure~\ref{fig:envelopes} shows exact envelopes, computed as pairs of semidefinite programs. \begin{observation}\label{obs:stiff} For the pentagon at $t=0.549$ (degree $14$, a $5$-parameter family), the vertical spread of the family over the interval between consecutive vertices on which the polynomial must drop the full height of the polygon over the shortest horizontal distance is about $0.11$, against $0.7$ to $1.1$ on its neighbours, and it shrinks further as the end of the step approaches. This is an inequality phenomenon: the constraint $g<0$ is nearly binding there, as for extremal polynomials in Markov-type inequalities. Wherever the band runs flat along the height of a neighbouring vertex, the envelope has reached the bound imposed by monotonicity between consecutive critical points. \end{observation} \begin{figure}[t] \centering \includegraphics[width=0.92\linewidth]{fig-envelopes.pdf} \caption{Families of strong realizations of least degree. The shaded band is the exact range of the whole family at each $x$ between the outermost vertices, the dark curve its analytic centre. Left: the triangle in degree $6$, a segment of solutions. Right: the pentagon in degree $14$, where the band nearly vanishes on the steep side.} \label{fig:envelopes} \end{figure} \section{Asymptotics of the steps}\label{sec:asymptotics} Call a pair of vertices that become vertically aligned as $t\to\pm1$ a \emph{tie}, and let $\varphi'$ be the angular distance to the degenerate position. The tying vertices are at angles $\theta_0+\varphi'$ and $-\theta_0+\varphi'$ for some $0<\theta_0<\pi$, so their horizontal distance is $2\sin\theta_0\sin\varphi'$ and their vertical distance $2\sin\theta_0\cos\varphi'$. \begin{proposition}[Interior ties]\label{prop:interior} Let $[x_1,x_k]$ be the range of the abscissas. If a tie has its two abscissas in an interval $J\subset(x_1,x_k)$, then \[ d(t)\ \ge\ \cot\varphi'\cdot\min_{x\in J}\sqrt{(x-x_1)(x_k-x)} . \] A tie strictly inside the range of the abscissas exists at both degenerate positions for every $k\ge5$, and for $k=4$ as $t\to+1$. The exceptions, with ties only at the ends of the range, are the triangle (both sides) and the square as $t\to-1$. \end{proposition} \begin{proof} The bound is Theorem~\ref{thm:collisions} with $\operatorname{osc}\le1$. For the list: as $t\to1$ the ties are at $\cos(2\pi j/k)$, $1\le j\le\lfloor(k-1)/2\rfloor$, and the leftmost abscissa is $-1$ (a single vertex) for even $k$ and the tie $j=\frac{k-1}2$ for odd $k$. As $t\to-1$ and $k$ is even the ties are at $\cos((2j+1)\pi/k)$, $0\le j<\frac k2$, and all vertices are tied. Odd $k$ with $t\to-1$ is the mirror image of $t\to1$. \end{proof} So, except in the two listed cases, the steps near a degenerate position shrink like $1/d$, not like $1/d^2$ as the Markov bound alone would allow. The two regimes are visible in Figure~\ref{fig:staircases}: compare the two sides of the square. \subsection{The square with \texorpdfstring{$t>0$}{t>0}} Here the tie is at the centre and $\varphi'=\varphi$. \begin{theorem}\label{thm:pi} Let $k=4$, $a\ge1$, and let $\zeta_a$ be the least positive zero of $P'_{2a+3}$, the derivative of the Legendre polynomial. For $0<\varphi<\frac\pi8$: \begin{enumerate}[label=(\alph*)] \item if $\tan\varphi\ge\zeta_a$, then degree $4a+5$ strongly realizes the square; \item if degree $4a+5$ strongly realizes the square, then $\tan^2\varphi\,(1+\tan\varphi)\ge\zeta_a^2$. \end{enumerate} Since $\zeta_a=\frac{\pi}{4a+7}\big(1+O(a^{-2})\big)$, the ends $\varphi_d$ of the steps satisfy $\varphi_d\,d\to\pi$, and $\ds(t)\,\varphi\to\pi$ as $t\to1$. \end{theorem} \begin{proof} By Theorems~\ref{thm:par4} and \ref{thm:square-steps}, degree $4a+5$ works if and only if $R(q)=r^*=1+\frac sc$ for some even $q>0$ of degree at most $4a$. With $y=x^2$ and $d\mu=(c^2-y)\,y^{-1/2}dy$ on $[0,c^2]$, and $A$ a polynomial, \[ \Lambda_1(A(x^2)^2)=4\int_0^{s^2}(s^2-y)A^2\,d\mu,\qquad\Lambda_2(A(x^2)^2)=4\int_{s^2}^{c^2}(y-s^2)A^2\,d\mu . \] The minimum of $\int yA^2d\mu/\int A^2d\mu$ over $\deg A\le a$ is the least zero of the orthogonal polynomial of degree $a+1$ for $\mu$. The substitution $y=x^2$ turns $\mu$ into the weight $c^2-x^2$ on $[-c,c]$, whose even orthogonal polynomials are the Gegenbauer polynomials $C^{(3/2)}_{2a+2}(x/c)=P'_{2a+3}(x/c)$; so this least zero is $c^2\zeta_a^2$. (a) If $\tan\varphi\ge\zeta_a$, the minimizer $A$ has $\int yA^2d\mu\le s^2\int A^2d\mu$, that is, $\Lambda_2\le\Lambda_1$, so $R(A(x^2)^2)\le1r^*$ (Theorem~\ref{thm:square-steps}), some $q=(1-\lambda)A(x^2)^2+\lambda$ with $0<\lambda<1$, which is positive, has $R(q)=r^*$. (b) As in the proof of Theorem~\ref{thm:par4}, a positive $q$ with $R(q)=r^*$ yields a sum $q'$ of squares $C_i(x^2)^2$, $\deg C_i\le a$, with $R(q')\le r^*$, so $(1+\varepsilon)\Lambda_1(C^2)\ge\Lambda_2(C^2)$ for one of them, where $\varepsilon=s/c$. Pointwise on $[0,c^2]$, $(1+\varepsilon)(s^2-y)\le(1+\varepsilon)s^2-y$ for $y\le s^2$, and $-(y-s^2)\le(1+\varepsilon)s^2-y$ for $y\ge s^2$. Hence $0\le(1+\varepsilon)\Lambda_1(C^2)-\Lambda_2(C^2)\le4\int\big((1+\varepsilon)s^2-y\big)C^2d\mu$, which forces $(1+\varepsilon)s^2\ge c^2\zeta_a^2$. The asymptotics of $\zeta_a$ are the standard ones for zeros of Gegenbauer polynomials near the centre of the interval. \end{proof} The bounds were checked against the computed crossovers for $1\le a\le200$; for $a=1$ they read $0.2516\le\tan\varphi_9=0.2695\le0.2852$. \begin{observation}[Second term] The computed crossovers for degrees $9$ to $805$ give $\pi/\varphi_d-d\to2.77594$; the values are $2.9351$, $2.8264$, $2.7955$, $2.7799$, $2.7785$ at $d=9,37,101,517,805$. A heuristic calculation, treating the term $\frac sc\Lambda_1$ as a perturbation of the extremal function $\cos(\pi v/2)/(1-v^2)$ of the limiting problem, predicts \[ \varphi_d=\frac{\pi}{d+2+\Cin(2\pi)/\pi+o(1)},\qquad \Cin(2\pi)=\int_0^{2\pi}\frac{1-\cos u}{u}\,du,\qquad 2+\frac{\Cin(2\pi)}{\pi}=2.775929 . \] \end{observation} \subsection{Ties at the ends} \begin{observation}\label{obs:edge} With crossovers computed to degree $516$ for the triangle and $517$ for the square with $t<0$, by the eigenvalue formulation, \[ \text{triangle: }\ \varphi_d\,(d+1)^2\to15.3185,\qquad\text{square, }t<0:\ \ \varphi'_d\,(d+2)^2\to17.6883 . \] The values of $\varphi_d\,d^2$ are $10.4547$, $13.4047$, $15.0114$, $15.2591$ at $d=6,16,100,516$ for the triangle, and $11.3594$, $14.3815$, $17.0173$, $17.5526$ at $d=7,17,101,517$ for the square. The ratio of the two limits is $1.15470$, and $2/\sqrt3=1.15470$. \end{observation} The ratio is explained by a common local problem. In both cases the polynomial must change by twice as much across the tie as on the adjacent interval, and after rescaling a neighbourhood of the end of the range of abscissas by $n^2$ both problems tend to the following one. For $r>0$ let $\delta_n(r)$ be the least $\delta$ for which some polynomial $p$ of degree at most $n$ satisfies \[ \int_0^\delta u\,(\delta-u)\,p^2\,du\ \ge\ r\int_\delta^1u\,(u-\delta)\,p^2\,du , \] and $c^*(r)=\lim_n4n^2\delta_n(r)$. The regular polygons have $r=2$, and the scalings of the two polygons give $\varphi'_d\,d^2\to c^*(2)$ for the square and $\varphi_d\,d^2\to\frac{\sqrt3}{2}c^*(2)$ for the triangle; numerically $c^*(2)=17.688$ (directly from the local problem: $17.685$ by extrapolation from $n\le320$). The necessary condition $\int_0^1u(u-\delta)p^2\,du\le0$ gives the lower bound $c^*(r)\ge j_{1,1}^2=14.68$, with $j_{1,1}$ the first zero of the Bessel function $J_1$. \begin{observation}[Universality]\label{obs:universal} The same local problem governs collisions at the end of the range for sets unrelated to polygons. If the pair $x_1,x_2$ collides and $r=|\Delta_1|/|\Delta_2|$, then $\ds(T)^2\,\delta_1/(x_k-x_1)\to c^*(r)$. Numerically $c^*(\frac12)=12.06$, $c^*(1)=14.67$, $c^*(2)=17.69$, $c^*(4)=21.07$, and three-point sets agree with these to three or four digits (for instance $10.706$ against $10.711$ at $r=\frac13$). The value $c^*(1)$ is consistent with $j_{1,1}^2=14.682$. \end{observation} \subsection{Interior ties} The same reasoning inside the range leads to a problem about band-limited functions on the line, with one parameter $\kappa\ge1$: the height available to the solution on each side of the tie, in units of half the drop across the tie. If $C(\kappa)$ denotes the critical value of half the gap times the degree, then $C(1)=\pi$, attained by $\cos(\pi v/2)/(1-v^2)$, and numerically $C(1.25)=2.9712$, $C(1.5)=2.8361$, $C(2)=2.6307$. \begin{conjecture}\label{conj:interior} At an interior tie at $x_0=\cos\theta_0$ that is the binding one, and for which the same $\kappa$ applies on both sides, \[ \ds(t)\,\varphi'\ \longrightarrow\ C(\kappa)\,\frac{\sqrt{(x_0-x_1)(x_k-x_0)}}{\sin\theta_0}\qquad(t\to\pm1), \] where $[x_1,x_k]$ is the limiting range of the abscissas. \end{conjecture} For the square with $t>0$ this is Theorem~\ref{thm:pi} ($\kappa=1$, $x_0=0$, range $[-1,1]$). For the hexagon with $t>0$ ($\kappa=1$, range $[-1,1]$) the main steps give slopes of $1/\varphi_d$ against $d$ of $0.3169$, $0.3171$, $0.3174$, $0.3177$, to be compared with $1/\pi=0.3183$. For the hexagon with $t<0$ ($\kappa=\frac32$, $x_0=0$, range $[-\frac{\sqrt3}2,\frac{\sqrt3}2]$) the predicted slope is $0.4072$, and the computed slopes lie between $0.403$ and $0.410$ for all degrees from $23$ to $63$; they oscillate, presumably because of the ties at the ends, which are present on that side too. For a parallelogram with $\kappa=\frac32$ the computed slope is $0.35261$, against $1/C(\frac32)=0.3526$; so the interior law, too, appears to be local and not special to polygons. \section{Large random sets, and open questions}\label{sec:random} \subsection{Random sets} Let $T$ consist of $k$ independent points, uniformly distributed in the unit square. Almost surely $T$ is realizable (Theorem~\ref{thm:exist}). It is strongly realizable when its heights, listed by abscissa, zigzag; in this model the heights in that order are independent and uniform, so \[ \Pr(T\text{ is strongly realizable})=\frac{2E_k}{k!}\sim4\Big(\frac2\pi\Big)^{k+1}, \] where $E_k$ is the number of alternating permutations of one type ($E_4=5$, $E_5=16$, $E_6=61$, $E_8=1385$), with the classical asymptotics $E_k/k!\sim2(2/\pi)^{k+1}$. The values $0.42$, $0.27$, $0.17$, $0.07$ for $k=4,5,6,8$ are close to the fractions of strongly realizable directions in Observation~\ref{obs:allzigzag}. \begin{proposition}\label{prop:random} \leavevmode \begin{enumerate}[label=(\alph*)] \item For $k\ge4$, $\mathbb E\,d(T)=\infty$, and $\mathbb E\big[\ds(T)\mid T\text{ zigzags}\big]=\infty$. \item There are constants $c,p>0$ such that $\Pr\big(d(T)\ge c\,k^2\big)\ge p$ for all $k$. \end{enumerate} \end{proposition} \begin{proof} (a) With positive probability the second and third abscissas are close to each other and far from the others, while the corresponding heights differ by at least $\frac14$; and the conditional density of the gap $\delta_2=x_3-x_2$ is bounded below near $0$ on that event. By Theorem~\ref{thm:collisions}, $d\ge c'/\delta_2$ there, so $\Pr(d\ge n)\ge c''/n$ for large $n$, and $\sum_n\Pr(d\ge n)=\infty$. The zigzag condition has positive probability on the same event. (b) With probability bounded below, at least $k/4$ consecutive gaps lie in the middle half of $[x_1,x_k]$ and $x_1<\frac18$, $x_k>\frac78$; the smallest of these gaps is below $1/k^2$ with probability bounded below, by the standard estimates for uniform spacings; and the heights of its two points, which are independent of the abscissas, differ by at least $\frac14$ with probability $\frac9{16}$. On this event Theorem~\ref{thm:collisions} gives $d\ge c\,k^2$. \end{proof} So the least degree of a random set is at least of order $k^2$ with positive probability, and heavy-tailed. We expect the median to be of order $k^2$ as well, but we have no upper bound of that order. \subsection{Open questions}\label{sec:questions} \begin{question}\label{q:monotone} Is $\ds(T_\alpha)$ always monotone on each side of its minimum along a strongly realizable arc? Even for triangles, where each degree is decided by one ratio of moments, we have no proof. \end{question} \begin{question} Which centrally symmetric hexagons, and more generally which sets with $k\ge5$ points, have tight orientations, and how many? Is the number constant on large families, as for triangles and parallelograms? \end{question} \begin{question} Is the end of every step an algebraic number of controlled degree? Beyond the first steps in Table~\ref{tab:first}, which constraint is binding at a crossover: a face of the cone of positive $g$, or a tangency? \end{question} \begin{question} Why are the staircases of the triangle and the square regular, while those of the pentagon and the hexagon have steps of erratic widths, slivers and skipped degrees? Is regularity tied to the coalescing vertices lying at the centre or at the ends of the range of abscissas, as the heuristic in Section~\ref{sec:staircases} suggests? \end{question} \begin{question} Do the hexagon's steps of four for $t<0$ and its period-three pattern for $t>0$ (Observation~\ref{obs:hex}) persist for all degrees? Can the heuristic phase explanation be made rigorous? \end{question} \begin{question} Evaluate $c^*(r)$ and $C(\kappa)$ in closed form, prove Conjecture~\ref{conj:interior}, and prove the end-tie limits of Observation~\ref{obs:edge}. Is $c^*(1)=j_{1,1}^2$? \end{question} \begin{question} Describe the stiff segments of Observation~\ref{obs:stiff} quantitatively: which interval is the stiffest, and how does the spread of the family on it scale within a step? \end{question} \begin{question} For random sets, is the median of $d(T)$ of order $k^2$? What is the distribution of $d(T)/k^2$? \end{question} \appendix \section{Computations}\label{app:numerics} \subsection{The semidefinite formulation} For a given set $T$, multiplicities $m$ and $D=\deg g$, deciding whether a realization exists is a semidefinite feasibility problem: write $g=\varepsilon\,v^{\mathsf T}Qv$, with $v$ a basis of the polynomials of degree at most $D/2$ and $Q\succ0$ (a polynomial positive on $\R$ is a sum of squares with a positive definite Gram matrix in any basis), and impose the $k-1$ linear moment conditions \eqref{eq:moments}. We used the basis of polynomials orthonormal for the Jacobi weight on the range of the abscissas, which keeps the problems well conditioned up to $\deg g$ of about $40$. Ends of steps were located by bisection on a scale-free measure of feasibility: since the moment conditions are linear and the cone is invariant under scaling, we normalize $\operatorname{tr}Q=1$, ask only that the moment vector be a positive multiple of $(|\Delta_i|)_i$, and maximize $\lambda_{\min}(Q)$. The optimum is positive exactly when a strong realization of degree at most $1+\sum m_j+D$ exists, and unlike a residual it is not distorted by the overall size of $g$, which near degenerate positions varies over many orders of magnitude. The problems were solved with Clarabel through CVXPY. For drawing we chose, within each family, the analytic centre (maximizing $\log\det Q$), and we computed exact envelopes, the maximum and minimum of $P(x)$ over the family, as pairs of semidefinite programs. Every polynomial shown was corrected to satisfy the conditions at the vertices to $10^{-9}$ and checked to have exactly the prescribed critical points. For the triangle and for centrally symmetric quadrilaterals each degree is decided by one ratio of moments, and the end of a step is a generalized eigenvalue problem for two Gram matrices (Theorem~\ref{thm:par4}). This allowed computations up to degree $805$ in Section~\ref{sec:asymptotics}. \subsection{Certificates} A strong realization in degree $d$ is certified by a positive definite Gram matrix $Q$ satisfying the moment conditions exactly: we corrected the numerical $Q$ onto the affine space of these conditions in $50$-digit arithmetic and checked that it remains positive definite. Non-existence in degree $d$ is certified by multipliers $\mu\in\R^{k-1}$ for which the functional $g\mapsto\sum_i\mu_iL_i(g)$ has a positive definite moment matrix on $v$, so that it is positive on every nonzero sum of squares, while $\sum_i\mu_i|\Delta_i|<0$; no positive $g$ can then satisfy the moment conditions. These certificates, in $50$-digit arithmetic, establish the statements about the hexagon's sliver in Section~\ref{sec:staircases}. The exact statements of Example~\ref{ex:kite} were checked in rational arithmetic, and the counts of tight orientations quoted after Theorem~\ref{thm:triangles} by exact root counting. \subsection{Code and data} The scripts, the computed staircases and the certificates are available from the first author, and the staircases of Part~II can be explored in the companion applet. \section*{Acknowledgments} We thank Nikola Topalov, who posed on Quora the question about regular polygons with which this work began, and OpenAI's Dot for the argument behind Theorem~\ref{thm:allzigzag}. \section*{A note on authorship} This work began with a problem posed on Quora and grew through a long collaboration between a mathematician and two language models made by Anthropic. Alon Amit posed the questions, chose the definitions and the direction of the work, and is responsible for the paper. Claude Opus 5.5 carried out the first computations and the exact crossovers for the triangle and the square, built the companion applets, and found the counts of tight orientations for triangles and parallelograms. Claude Fable 5.2 worked out most of the general theory of Part~I, the closed form of the candidate polynomial, the blocking and asymptotic results, and the large-scale computations. Both models drafted text. Statements that rest on computation are labelled as such: results called Observation are numerical, and every proof that relies on a computer says so. \bibliographystyle{amsplain} \begin{thebibliography}{99} \bibitem{arnold} V.~I. Arnold, \emph{Snake calculus and the combinatorics of the Bernoulli, Euler and Springer numbers of Coxeter groups}, Russian Math.\ Surveys \textbf{47} (1992), no.~1, 1--51. \bibitem{davis} C.~Davis, \emph{Extrema of a polynomial}, Amer.\ Math.\ Monthly \textbf{64} (1957), 679--680. \bibitem{iliev78} G.~L. Iliev, \emph{Partially monotone interpolation}, Serdica \textbf{4} (1978), 267--276. \bibitem{iliev80} G.~L. Iliev, \emph{Exact estimates for monotone interpolation}, J.\ Approx.\ Theory \textbf{28} (1980), 101--112. \bibitem{kammerer} W.~J. Kammerer, \emph{Polynomial approximations to finitely oscillating functions}, Math.\ Comp.\ \textbf{15} (1961), 115--119. \bibitem{kempner} A.~J. Kempner, \emph{On the shape of polynomial curves}, T\^ohoku Math.\ J.\ \textbf{37} (1933), 347--362. \bibitem{nikolceva} M.~G. Nikol\v{c}eva, \emph{Monotone interpolation and its application to parametric approximation} (Russian), C.\ R.\ Acad.\ Bulgare Sci.\ \textbf{29} (1976), 469--472. \bibitem{passow76} E.~Passow, \emph{An improved estimate of the degree of monotone interpolation}, J.\ Approx.\ Theory \textbf{17} (1976), 115--118. \bibitem{passowraymon} E.~Passow and L.~Raymon, \emph{The degree of piecewise monotone interpolation}, Proc.\ Amer.\ Math.\ Soc.\ \textbf{48} (1975), 409--412. \bibitem{precup82} R.~Precup, \emph{Estimates of the degree of comonotone interpolating polynomials}, Anal.\ Num\'er.\ Th\'eor.\ Approx.\ \textbf{11} (1982), 139--145. \bibitem{precup86} R.~Precup, \emph{New estimates of the degree of the comonotone interpolating polynomials}, Anal.\ Num\'er.\ Th\'eor.\ Approx.\ \textbf{15} (1986), 65--68. \bibitem{ryabichev} A.~Ryabichev and K.~Shcherbakov, \emph{Roots of polynomials and tangents of circles} (Russian), arXiv:2401.12394 (2024). \bibitem{wolibner} W.~Wolibner, \emph{Sur un polyn\^ome d'interpolation}, Colloq.\ Math.\ \textbf{2} (1951), 136--137. \bibitem{young} S.~W. Young, \emph{Piecewise monotone polynomial interpolation}, Bull.\ Amer.\ Math.\ Soc.\ \textbf{73} (1967), 642--643. \end{thebibliography} \end{document}