I would need some help with a MacLaurin Series. The function for which I should find a MacLaurin Series looks like $$f(x) = \frac{1}{1+x^2}$$ and I also know the answer how the MacLaurin Series should look like $$f(x)=1−x^2+x^4−x^6+x^8+O(x^9)$$ but I do not not the steps in between.
Until know I have the following $$f'(x) = -\frac{2x}{(1+x^2)^2}$$ $$f''(x) = \frac{4x^2}{(1+x^2)^3}$$ $$f''(x) = -\frac{8x^3}{(1+x^2)^4}$$
So the series should look something like this $$f(x) = \frac{1}{1+x^2} -\frac{2x^2}{(1+x^2)^2} + \frac{4x^3}{(1+x^2)^3} -\frac{8x^4}{(1+x^2)^4} + ...$$
or I am completely wrong? I hope someone can help me!
Remember the easiest expansion
$$\color{green}{\frac{1}{1-x}=1+x+x^2+x^3+...+x^n(1+\epsilon(x))}$$
then
as when $x\to 0$, $\; -x^2 \to 0$, we can replace $x\;$ by $\; -x^2$ to get
$$\frac{1}{1+x^2}=1-x^2+x^4-x^6+...(-1)^nx^{2n}(1+\epsilon(x)).$$