I challenged myself to find a general formula for an $n$-degree polynomial with $n-2$ inflection points, all on the $x$-axis. Here is what I came up with (explanation is at the end).
$$\text{Even }n:f_n(x)=1+\sum_{k=1}^{n/2}\left(x^{2k}\prod_{i=1}^k \frac{(2i-2)(2i-3)-n(n-1)}{2i(2i-1)}\right)$$
$$\text{Odd }n: g_n(x)=x+\sum_{k=1}^{(n-1)/2}\left(x^{2k+1}\prod_{i=1}^k \frac{(2i-1)(2i-2)-n(n-1)}{2i(2i+1)}\right)$$
For example, here is the graph of $y=f_8(x)=\frac{1}{5}(429x^8-924x^6+630x^4-140x^2+5)$.
Then I discovered that these polynomials have another interesting property.
On a whim, for even $n$, I drew the graph of $y=f_n(x)|f_n(x)|$, which is like squaring the function but preserves positive and negative. As $n\to\infty$, the turning points approach a circle.
For odd $n$, the turning points on the graph of $y=n^2 g_n(x)|g_n(x)|$ (note the $n^2$) approach a circle.
(Another nice feature is that the turning points appear to be uniformly spaced around the circle.)
My question is:
Prove that, as $n\to\infty$, the turning points on $y=f_n(x)|f_n(x)|$ and $y=n^2 g_n(x)|g_n(x)|$ approach a circle.
(I think we will see the same phenomenon with any $n$-degree polynomial whose $n-2$ inflection points are all on the $x$-axis, where $n$ is large. That is, if we take any such polynomial, and multiply it by its modulus, and apply a certain vertical stretch, then the turning points will be approximately on a circle, uniformly spaced.)
Here is how I derived $f_n(x)$. Assume $f_n(x)=\sum\limits_{k=0}^n a_k x^k$ with leftmost and rightmost roots at $x=\pm1$, and $a_0=1, a_1=0$. To ensure that the inflection points are all on the $x$-axis, let $f_n(x)=(x-1)(x+1)\frac{{f_n}''(x)}{n(n-1)}$. Equate coefficients, then the above expression for $f_n(x)$ follows. The same method can be used to derive $g_n(x)$, except we assume $a_0=0$ and $a_1=1$.
Possibly related: question about an $(n+1)$-degree polynomial that is tangent to a circle at $n$ points.
EDIT
My derivation of $f_n(x)$ and $g_n(x)$ is incomplete, because I have not shown that they each have $n-2$ inflection points. I do not know how to show this.