I was doing an exercise on Apostol's Calculus book (volume 1, exercise 31 on page 304, https://www.stumblingrobot.com/2016/01/13/prove-some-properties-of-the-function-e-1x2/) where I was asked to find the $n$th derivative of $f(x)$ at $0$, $f(x)$ defined as $e^{-1/x^2}$ for $x \not = 0$ and $0$ for $x = 0$. I believe this function and all of its derivatives are continuous since $\lim_{x \to 0} e^{-1/x^2} = 0$, and $\lim_{x \to 0} f^{n}(x) = 0$ for all $n$. But this would imply the Taylor series for the function is just $g(x) = 0$, which doesn't make sense to me since the Taylor series isn't approaching the function and seems to give too large of an error $(E_n(x) = \frac{1}{n!}\int_{0}^{x} (x-t)^nf^{(n+1)}(t) dt=\frac{1}{n!}\int_{0}^{x} (x-t)^n(0)dt = 0$).
Could someone explain what I'm overlooking here please? Thank you!