This is an attempt to generalize the result in [1].
Claim: Let $n\in \mathbb N$, and let $f:\mathbb R \to \mathbb R$ be such that its $n$-th derivative $f^{(n)}(x)\geq 0, \ \forall x\in \mathbb R$. Then the set $R$ of roots of $f$ either consists of at most of $n$ isolated points, or it is a (non-degenerate) closed interval.
Note: As argued in [1], under the stronger assumption $f^{(n)}(x)> 0$ the case of $R$ being a closed interval can be excluded.
The analogy of this claim to the fundamental theorem of algebra (restricted to real numbers) is shown in [1].
Special cases:
- for $n=1$ the claim states that if a function has nonnegative derivative, it has a single root or a closed interval of roots, e.g. consider the function $f(x) = \min\{x+1,0\} + \max\{x-1,0\}$ for which $R = [-1,1]$;
- for $n=2$ the condition $f^{(n)}(x)\geq 0$ implies that $f$ is (weakly) convex, and example could be the function $f(x)=x^2-1$ which has two roots, or $$ f(x) = \begin{cases} 0, &\text{ if } x\in [-1,1] \\ (|x|-1)^2, &\text{otherwise}, \end{cases} $$ in which case $R= [-1,1]$.
The reason why I think that $[a,b]\subset R$ for some $a<b$ implies that $f$ has no isolated roots is that this implies that all the derivatives of $f$ are zero on $(a,b)$, and so (assuming that the interval $[a,b]$ is maximal among the closed intervals contained in $R$) the derivatives $f^{(n-1)}(x),f^{(n-2)}(x),f'(x),f(x)$ are all positive for $x>b$ as $f^{(n)}(x)\geq 0$ for $x>b$ with inequality strict at $x=b+\varepsilon$ for $\varepsilon>0$ arbitrarily small.
Does the claim hold?