I know that $\displaystyle\sum_{n=0}^{+\infty} \dfrac{(-1)^nx^{2n+1}}{2n+1}$ is the power series expansion for $f(x) = \tan^{-1}x$. The interval of convergence for this series is $(-1,1]$.
If I integrate the power series, I have $\displaystyle\sum_{n=0}^{+\infty} \dfrac{(-1)^nx^{2n+2}}{(2n+1)(2n+2)}$. Interval of convergence is $[-1,1]$. The corresponding function can be integrated using integration by parts $x\tan^{-1}x - \dfrac{1}{2}\ln(1+x^2) + C$. Here, I can solve for $C = \dfrac{1}{2}.$
Let's substitute $x=1$, which is part of the interval of convergence, $\displaystyle\sum_{n=0}^{+\infty} \dfrac{(-1)^n}{(2n+1)(2n+2)} =\tan^{-1}1 -\dfrac{1}{2}\ln(2) + \dfrac{1}{2} = \dfrac{\pi}{4} -\dfrac{1}{2}\ln(2) + \dfrac{1}{2}$.
Whats wrong? Im checking using MS Excel and it doesn't seem to get this sum.