I want to find the Taylor series of $f(x)=\log(1+x), x \in (-1,+\infty), \xi=0, I=(-1,1)$
$$f'(x)=\frac{1}{1+x}$$
$$\sum_{n=0}^{\infty} (-1)^n x^n=\frac{1}{1+x}, x\in (-1,1)$$
$$f(x)=f(0)+\int_0^x f'(t) dt \Rightarrow f(x)=\int_0^x \frac{1}{1+x}dt= \int_0^x \sum_{n=0}^{\infty} (-1)^n x^n=\sum_{n=0}^{\infty} \int_0^x (-1)^n x^n=\sum_{n=0}^{\infty}(-1)^n \frac{x^{n+1}}{n+1}$$
But..I found that the Taylor series of $f(x)=\log(1+x)$ is equal to $\sum_{n=1}^{\infty} \frac{(-1)^{n-1} (n-1)!}{(1+x)^n}$..
What have I done wrong???