Good afternoon. I need to claculate the general n-term Taylor's expansion at zero of 2 functions:
- $e^{-x^2}$
- $e^{-\frac{1}{x^2}}$ if $x \ne 0$ and $0$ otherwise
For the first function everything seems easy.
First derivative is $-2x e^{-x^2}$, which is $0$
Second derivative is $-2 e^{-x^2} + 4x^2 e^{-x^2}$, which is $-2$
Third derivative is zero again
4th is $12 e^{-x^2} - 48x^2 e^{-x^2} + 16x^4 e^{-x^2}$ which is $12$
In the end after a few more calculation I realised that odd derivatives are equal to zero and then the form of th answer is something like $\frac{(-x^2)^n}{n!}$
Now, for the second function I instantly ran into a problem of derivative being undefined at zero. How do I deal with that?
The function $e^{-1/x^2}$ is a pathological one. All its derivatives are zero, so that all its Taylor polynomials are identically zero. This does not invalidate Taylor's theorem: the whole function is supplied by the remainder of the expansion.
The expressions of the derivatives at zero are indeed indeterminate forms. Anyway a derivative is a limit, which allows you to replace the indeterminate forms by their limits.