I have a problem that I've partially worked but don't understand the next part/have made a mistake?
$f(x)=0$ for $-\pi< x<0$ and $f(x)=x$ for $0≤x≤\pi$
I have $a_0=\dfrac \pi 4$ and $a_n=0$ and $b_n=0$ if n is even and $b_n=\dfrac 2 n$ if $n$ is odd
so.... $$f(x)= \frac π 4 + \sum_{n=0}^{\infty} (\frac{2}{2n+1}) \sin[(2n+1) π x]$$
Now I need to show $$\frac π 4 = 1 - 1/3 + 1/5 \dots$$ using suitable values of $x$. How would I go about doing this?