<s>[INST] Power series of $f(x)=\ln (x^2+4)$ I am supposed to find a power series representation of
$$f(x)=\ln\left(x^{2}+4\right).$$
Then, I am to graph it and observe what happens as $n$ increases. My attempt at a solution:
$$\ln\left(x^2+4\right) = \int \frac{1}{x^2+4}\,dx = \frac{1}{4}\int \frac{1}{\frac{x^2}{4}+1}\,dx = \frac{1}{4}\int \frac{1}{1-\left(-\frac{x^2}{4}\right)}\,dx.$$
Now that it is in the $\frac{1}{1-x}$ format, the power series representation is $\sum_{n=0}^{\infty} \int \frac{1}{4}\left(-\frac{x^2}{4}\right)^n$. The first terms are
$$\frac{1}{4} \left(x-\frac{x^5}{80}+\frac{x^7}{448}-\frac{x^9}{2304}+\cdots\right).$$
But as I graph these, they look nothing like the graph of $f(x)=\ln(x^2 +4)$. I am not sure if I turned the revised formula into a sum correctly.
 [/INST] Your integration is not correct $$\ln\left(x^2+4\right) \ne \int \frac{1}{x^2+4}\,dx $$ You need to start with $$\ln\left(x+4\right) =  \int \frac{1}{4+x}dx$$ and go from there. 
</s>