How is $$\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}= \log 2?$$
I haven't done sequences in a long time, therefore proving this seems almost impossible. How is this sum gotten. Help very much appreciated.
How is $$\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}= \log 2?$$
I haven't done sequences in a long time, therefore proving this seems almost impossible. How is this sum gotten. Help very much appreciated.
\begin{align*} f(x) = \sum_{n=1}^{\infty} \frac{x^{n+1}}{n} &= x \sum_{n=1}^{\infty} \frac{x^n}{n} \\ & = x \sum_{n=1}^{\infty} \int x^{n-1} dx \\ & = x \sum_{n=0}^{\infty} \int x^n dx \\ & = x \int \left ( \sum_{n=0}^{\infty} x^n \right ) dx \\ & = x \int \left ( \frac{1}{1-x} \right ) dx \\ & = -x \log \vert 1-x \vert \\ \end{align*} \begin{align*} So, f(-1) &= -(-1) \log |1-(-1)| \\ & = \log(2) \end{align*}