Let $f:[0,\infty) \to [0,\infty)$ be a continuous, non-decreasing function, satisfying $f(0)=0$ and $f(x)=o(x^n)$ for any $n \ge 1$. Suppose also that $f(x)>0$ for every $x>0$.
I also know that $f$ is smooth on the open interval $(0,\infty)$.
Must $f$ be infinitely (right) differentiable at zero?
Comments:
The Taylor series of $f$ does not have to converge to $f$, e.g. in the famous example of $$ f(x) =\begin{cases}e^{-1/x^2} \text{ for } x >0 \\ 0 \text{ for } x = 0\end{cases} $$
In general, the existence of a polynomial approximation by itself does not imply differentiabiliy; in fact it does not even imply continuity (at $x>0$), as the following examples show:
$f(x)=\chi_{\mathbb Q}(x)x^n$ or even $\chi_{\mathbb Q}(x)e^{-1/x^2}$ which also satisfies $f(x)=o(x^n)$ for any $n \ge 1$.

