The expression is $$\ln {\frac{|1-x|}{1+x^2}}$$
I'm told there's an easy way to do it to get the first 2 non-zero term but I ended up differentiating this answer several times and got a very long answer that is not correct.
What I did in specific:
split up the ln expressions.
Differentiate once, so I get 1/|1-x| and 2x/(1+x^2).
Differentiate another time, and get an even longer expression.
What is the easy way to do this that I do not see?
Note that $f(x) =\ln|1-x|-\ln(1+x^2)$. but we know that $$ (\ln|1-x| )' =-\frac{1}{1-x} = -\sum_{n=1}^{\infty} x^n ~~~~\mbox{only for}~~0\le |x|<1\\\implies \ln|1-x| = -\sum_{n=1}^{\infty}\frac{x^n}{n} ~~~~\mbox{only for}~~0\le |x|<1$$ also from since $-\ln(1-h) = \sum_{n=1}^{\infty}\frac{h^n}{n} ~~~~\mbox{only for}~~0\le h<1$ we have $$\ln(1+x^2) = -\sum_{n=1}^{\infty}(-1)^n\frac{x^{2n}}{n} ~~~~\mbox{only for}~~0\le |x|<1$$ hence
$$f(x) = \sum_{n=1}^{\infty}\frac{ (-1)^{n}x^{2n}-x^n }{n} ~~~~\mbox{only for}~~0\le |x|<1$$