This problem comes from John M Lee's Introduction to smooth manifold 2ed, problem 2-5(b).Let $\tilde{f}=f(x^{\frac{1}{3}})$. For necessity, observe that $f'(x)=\tilde{f}'(x^3)\cdot 3x^2$, $f''(x)=\tilde{f}''(x^3)\cdot9x^4+\tilde{f}'(x^3)\cdot6x$, $f'''(x)=\tilde{f}'''(x^3)\cdot9x^6+\tilde{f}''(x^3)\cdot54x^3+\tilde{f}'(x^3)\cdot6$. We can prove by induction that $f^{(3n+1)}(x)=x^2({a_{3n+1}}^{(0)}\tilde{f}^{(n+1)}(x^3)+\cdots {a_{3n+1}}^{(6n)}f^{(3n+1)}(x^3)x^{6n})$, and so on. And obtain that $f^{(3n+1)}=0, f^{(3n+2)}=0$ $\forall n$. The computation is tedious, is there a easier proof without using explicit formula of $f^{(n)}$?
For another direction, we can use L'Hospital's Rule to compute and prove that $\tilde{f}^{(n)}$ exists. For example, $\lim\limits_{x\to 0}\frac{\tilde{f}(x)-\tilde{f}(0)}{x-0}=\lim\limits_{x\to 0}\frac{f(x)-f(0)}{x^3}=\lim\limits_{x\to 0}\frac{f'(x)}{3x^2}=\lim\limits_{x\to 0}\frac{f''(x)}{6x}=\frac{f'''(0)}{6}$. When it comes to $\tilde{f}^{(n)}$, the computation is very hard. Although Taylor expansion suggests that we may have $\tilde{f}^{(n)}=f^{(3n)}(0)\frac{1}{(3n)!}$, we cannot use Taylor expansion to prove this. Since there exists a smooth function that has no convergent Taylor expansion in arbitrary small neighborhood around 0.
More generally, I believe that $f(x^{\frac{1}{k}})$ is smooth iff $f(x)$ is smooth and $f^{(n)}(0)=0$ when $k\nmid n$. But if we still use the method above, the computation will be too complicated. So I want to ask if there is a easier way to prove this.