Assume $$f(x)=1-x^2+{x^4\over2!}-{x^6\over3!}+{x^8\over4!}+\cdots+{(-1)^nx^{2n}\over n!}.$$
I am trying to find $$\lim_{x\to 0}{1-x^2-f(x) \over x^4}.$$
I first found $\lim_{x\to0}{f(x)}$, which is clearly just $1$, seen after plugging in $0$ for all $x$ in the expression for $f(x)$.
This leaves $\lim_{x\to0}{1-x^2-1 \over x^4}$, which simplifies to $\lim_{x\to0}{1 \over x^2}$. This limit is equal to $-\infty$, however it is not the correct answer.
To find the correct answer, one must first substitute in $f(x)$ and simplify before taking the limit.
This gives $\lim_{x\to0}{1-x^2-(1-x^2+{x^4\over2!}-{x^6\over3!}+{x^8\over4!}+\cdots+{(-1)^nx^{2n}\over n!})\over x^4}$, which can then be simplified to $\lim_{x\to0}{-{x^4\over2!}+{x^6\over3!}-{x^8\over4!} \over x^4}$, and finally $\lim_{x\to0}({{-1\over2}+{x^2\over3!}-{x^4\over4!}+\cdots})$. Plugging in zero leaves only $-{1\over2}$, which is the correct answer.
Why does the second method work while the first method doesn't? Can't limits be distributed around to all the individual $x$s? Is this due to the nature of the infinite series?
Note: This problem comes from the 2007 AP BC Calculus Exam, Free Response Question #6. This question can be found at this link.
Any help would be greatly appreciated!