I was revising for my calculus exam and I came across a question that asked to find the Fourier Series of $f(x)=1+x$, on $-1<x<1$, which I did. Which I found to be:
$$f(x) = 1+\sum_{n=1}^\infty\frac{2(-1)^{n+1}}{n\pi} \sin(n\pi x)$$
I checked this by graphing it and it seemed to hold. However, the latter part of the question asks to evaluate the FS as $x=\frac{1}{2}$, to calculate:
$$\sum_{m=1}^{\infty}\frac{(-1)^{m+1}}{2m-1}$$
When I set $x=\frac{1}{2}$, I end up with:
$$\frac{3}{2} = 1+\sum_{n=1}^\infty\frac{2(-1)^{n+1}}{n\pi} \sin\bigg(\frac{n\pi}{2}\bigg)$$
$$\frac{\pi}{4} = \sum_{n=1}^\infty\frac{(-1)^{n+1}}{n} \sin\bigg(\frac{n\pi}{2}\bigg)$$
However I cannot transform the sine function into something else, any help?
HINT$1$: the sign at the sum is wrong, because the derivative at $x=0$ must be positive.
HINT$2$: $$\sin\frac\pi2n = \begin{cases} 0, \text{ if }n=2k\\ (-1)^k, \text{ if }n=2k+1\\ \end{cases}$$
HINT$3$: $$\frac\pi4 = \arctan 1 = \sum_0^\infty (-1)^k\frac1{2k+1}.$$