So I was reading about Laurent series and $\mathrm{e}^{-1/x^2}$ was used as an example. We define the function $f(x) = \mathrm{e}^{-1/x^2}$ for $x \neq 0$ and $f(0)=0$. Then it was stated that, as a real function, $f(x)$ is infinitely differentiable everywhere, but as a complex function it is not differentiable at $x=0$. Why is this?
We know that $f$ is real differentiable if the derivative exists at every point of its domain. We have $$f'(x) = -\frac{f(x)}{x^2},$$ so that $f'(0)=0/0$?
It is complex differentiable if $$\lim_{z \to z_0} \frac{f(z)-f(z_0)}{z-z_0}$$ exists. I guess we have an essential singularity in the argument of the exponential function at $z_0=0$ which is why it is not complex differentiable?