Does there exist a function $f\in C^n(\mathbb{R},\mathbb{R})$ for $n\ge2$ such that $f^{(n)}$ has exactly $n$ zeros, $f^{(n-1)}$ has exactly $n-1$ zeros and so on ? Where $f^{(n)}$ is the nth derivative of $f$
This question arose from lot of question asked here on MSE.
Yes, the function $f(x)=e^{-x^2}$ has this property; the $n$th derivative is $f^{(n)}(x)=(-1)^n H_n(x) \, e^{-x^2}$, where $H_n$ is the Hermite polynomial of degree $n$, which because of orthogonality has exactly $n$ real zeros (they have to interlace with the zeros of $H_{n-1}$).