Consider the function $$g(x)=\begin{cases} \frac{1}{x}\ln\frac{1}{1-x}\hspace{.5cm} x\neq0,\\ 1 \hspace{1.8cm} x=0.\end{cases}$$
Let $f$ be the function defined on $(-\infty,1)$ by the integral $f(x)=\int_{0}^{x}g(u)du=\int_{0}^{x}\frac{1}{u}\ln\frac{1}{1-u}du$. Find the Taylor expansion about 0 of $f(x)$ and use this to confirm that the function $f$ is analytic.
My Taylor expansion is the following: $$0+g(0)(x)+\frac{g'(0)}{2!}x^2+\frac{g''(0)}{3!}+\cdots$$
which equals: $$f(x)=x+\frac{1}{2}\frac{x^2}{2!}+\frac{2}{3}\frac{x^3}{3!}+\frac{3}{2}\frac{x^4}{4!}$$
Which further equals: $$f(x)=\sum_{k=1}^{\infty}\frac{x^k}{k^2}.$$
Now I need to prove that this function is analytic, but I am not quite sure how to do that.