Today I posted this question about finding degree-$n$ Taylor polynomial of $\frac{x^5}{1+x^2}$. I just saw my teacher's solution to this question and this post is about something I don't understand on that solution.
So we have that, for $r \in \mathbb R$:
$$1 + r + r^2 + ... + r^n = \frac{1 - r^{n + 1}}{1-r}= \frac{1}{1 - r} - \frac{r^{n + 1}}{1 - r}$$
Now, note that:
$$\frac{1}{1+x^2} = \frac{1}{1 - (-x)^2} = 1-x^2 + x^4 +...+(-1)^nx^{2n} + \frac{(-1)^{n +1} x^{2n + 2}}{1 + x^2}$$
So this means that:
$$f(x) = \frac{x^5}{1 + x^2}= \underbrace{x^5-x^7 + x^9 +...+(-1)^nx^{2n + 5}}_{Q(x)} + \frac{(-1)^{n +1} x^{2n + 7}}{1 + x^2}$$
My teacher asked us if we think that $Q(x)$ is the degree $2n + 5$ Taylor polynomial of $f(x)$. We said yes, and she proved it in the following way:
For $Q(x)$ to be the degree $2n + 5$ taylor polynomial, we just need to show that:
$$\lim_{x \to 0} \frac{f(x) - Q(x)}{x^{2n + 5}} = 0$$
And this is my question: Why does this imply that $Q(x)$ is the Taylor polynomial of $f(x)$?