We are asked to generate the taylor polynomial $P(x)$ for $$ f(x) = \frac{e^{{(x-1)}^2}-1}{(x-1)^{2}} $$ about $x=1$
Using substitution into the known taylor polynomial of $e^{x}$ and further algebraic manipulation, I can find the taylor series expansion: $$ P(x) = \sum_{n=0}^{\infty}\frac{(x-1)^{2n}}{(n+1)!} = 1+ \frac{(x-1)^2}{2!} + \frac{(x-1)^4}{3!}+...$$ which can be confirmed by Wolfram Alpha.
Here, I now want to find $f''(1)$; given that the general taylor series expansion for a function $k(x)$ about $a$ is $$k(a) + k'(a)(x-a) + \frac{k''(a)(x-a)^2}{2!} + \frac{k'''(a)(x-a)^3}{3!} +...$$ Thus should $$\frac{f''(1)}{2!}$$ not equal the coefficient of the second term of $P(x)$? Giving $f''(1) = 1$. However this appears to be incorrect when checked with Wolfram, which gives the second derivative as 'indeterminate'. Can anyone explain why? Help is much appreciated.
When dividing by $(x-1)^2$, you canceled terms on top and the bottom. These terms do not cancel when $x=1$.