# Maclaurin series for complex function

I am trying to find the Maclaurin series for $f(z)=\frac{z^2}{z^2+4}$. I use the fact that $\frac{1}{1+z}=\sum_{n=0}^\infty (-1)^nz^n$ and factored to get $\frac{z^2}{z^2+4}=\frac{z^2}{4}\Big(\frac{1}{\frac{z^2}{4}+1}\Big)$= $\sum_{n=0}^\infty {(-1)^n \frac{z^{2n+2}}{4^{n+1}}}$. I am not getting the correct terms though, did I do something wrong?

-
No, you didn't do anything wrong. That's the correct series. – Antonio Vargas Mar 26 '13 at 17:43

$$\left|\;\frac{z^2}{4}\;\right|<1\iff |z|^2<4\iff |z|<2\ldots$$
$$\frac{z^2}{z^2+4}=1-\frac{4}{z^2+4}=1-\frac{1}{1+\left(\frac{z}{2}\right)^2}=\ldots$$