Let $\displaystyle f(x) = \begin{cases}e^{- \frac{1}{x^2}} &\text{for } x \neq 0 \\ 0 & \text{when } x=0 \end{cases}.$
Prove that $f$ has derivatives of all orders at $x=0$, and that $f^n(0)=0$ for $n=1,2,3,...$
I found this problem from Rudin's principles of Mathematical Analysis book (p.196). My problem is, can I use the formula $e^x=1+x+\frac{1}{2!}x^2+...$ and use directly Theorem 8.1 and Corollary on page 173 in the same book? If not can anyone please explain me the reason?