What is the maximum number of distinct real roots of a polynomial whose coefficients are all $1$, $-1$ or $0$?

255 Views Asked by At

What is the maximum number of distinct real roots of a polynomial whose coefficients are all $1$, $-1$ or $0$ ?

Experimentally, it seems the answer is $4$. (For example, $x^6-x^3-x^2+x$.)

I tried expressing the polynomial as $f(x)+g(x)$, where $f(x)$ has only even powers of $x$, and $g(x)$ has only odd powers of $x$, but I haven't been able to make this approach work.

Context: I've been exploring polynomials with integer coefficients, for example here and here.

2

There are 2 best solutions below

1
On BEST ANSWER

There is no maximum.

For example, to construct such a polynomial with $6$ distinct real roots, start with any polynomial with $6$ distinct real roots, e.g. $p(x) = x^6 -4x^4+3x^2-x$. Consider $$f_m(x) := x^{6m}- (x^{4m+6}+x^{4m+4} + x^{4m+2} + x^{4m}) + (x^{2m+4}+x^{2m+2}+x^{2m}) - x^m$$ for $m$ large and odd. Since $f_m(x^{1/m})$ converges pointwise to $p(x)$ as $m$ goes to infinity, $f_m(x)$ has at least as many real roots as $p(x)$ for $m$ sufficiently large.

Edit:

I previously wrote $$f_m(x) = x^{6m}- (x^{4m+3}+x^{4m+2} + x^{4m+1} + x^{4m}) + (x^{2m+2}+x^{2m+1}+x^{2m}) - x^m,$$ but this was wrong, as Sil noticed in the comments. When $x$ is negative the grouped terms cancel instead of combining, which causes $f_m(x^{1/m})$ to converge to $x^6 +x^2-x$ when $x$ is negative and $x^6-4x^4+3x^2-x$ when $x$ is positive. Now $f_m(x)$ is constructed so all of the exponents of the grouped terms have the same parity.

1
On

Here is a slightly different way to show there is no maximum. We show that if $f(x)$ is a polynomial with coefficients $-1,0,1$ and $m>0$ distinct real roots $\alpha_i$ such that $|\alpha_i|\neq 0,1$, then $f(x^n)f(x)$ has the same properties for sufficiently large odd $n$, but it has at least one additional real root $|\alpha|\neq 0,1$. Repeating this process we can construct a polynomial of required properties with any number of distinct real roots.

First we show that $f(x^n)$ has at least one distinct real root from $f(x)$ (and so must their product). Note that if $\alpha$ is a root of $f(x)$, then $\alpha^{1/n}$ (it is real due to $n$ being odd) is a root of $f(x^n)$. If $f(x)$ has a real root $\alpha$ with $|\alpha|>1$, then pick the one with minimal absolute value, so $|\alpha^{1/n}|<|\alpha|$ and hence $\alpha^{1/n}$ cannot be root of $f$, yet it is a root of $f(x^n)$. Similarly if $f$ has only real roots with $0<|\alpha|<1$, pick one with maximal absolute value, then $|\alpha^{1/n}|>|\alpha|$ assures $\alpha^{1/n}$ is not a root of $f(x)$.

Next we show that for sufficiently large $n$, the $f(x^n)f(x)$ has indeed only $-1,0$ and $1$ coefficients. This follows from the fact that $f(x^n)$ has all the exponents spaced out arbitrarily apart for sufficiently large $n$, hence multiplying each term $a_ix^i$ of $f(x)$ we get a polynomial with $-1,0,1$ coefficients whose exponents are distinct for each of such product, hence sum of all these is a $-1,0,1$ polynomial, but this sum is just $f(x^n)f(x)$.

As an example consider $f(x)=x^2-x-1$ which has two real roots $\phi=\frac{1+\sqrt{5}}{2}, \psi=\frac{1-\sqrt{5}}{2}$. Notice that $$g(x)=f(x^3)f(x)=x^8-x^7-x^6-x^5+x^4+x^3-x^2+x+1.$$ By the above $g(x)$ must have at least three distinct real roots (in fact it has four). Now we could repeat the same process with $g(x)$, then for example $g(x^9)g(x)$ is a $-1,0,1$ coefficients polynomial with eight distinct real roots, and so on...

Note: The above process works the same way for polynomials with coefficients $0,1$, you can start for example with $f(x)=x^3+x+1$ and get $0,1$ polynomial with arbitrary many distinct real roots.

Note 2: As noticed in the follow up post, the above example with $f(x)=x^2-x-1$ in fact leads to polynomials with only $-1,1$ coefficients, so $0$ is not needed. However the above construction can start with $f(x)=x^3-x-1$ instead, then it would indeed produce $-1,0,1$ polynomials.