I got
$$ f(x)=\begin{cases}-\dfrac{\pi}{2},& -\pi<x\le-\dfrac{\pi}{2}\\[1ex] \phantom{-} x,&-\dfrac{\pi}{2}<x\le\dfrac{\pi}{2} \\[1ex] \phantom{-}\dfrac\pi2,&\phantom{-}\dfrac{\pi}{2}<x\le\pi\end{cases}$$
Period is $2\pi$, which means $L$ is $\pi.$
Since this is an odd function, I need to find $b_n$, multiply that with $\sin\left(\frac{n\pi x}L\right)$ and that should be my series.
But I'm not sure if what I got is correct. I can't seem to be able to paste it into WolframAlpha with more than a few terms, either. The function itself is pretty straight forward, so you guys can probably see where I've gone wrong if I have!
Fourier series for an odd function should be $\sum\limits_{n=1}^\infty b_n \sin\left(\frac{n\pi x}L\right)$.
$$\sum_{n=1}^\infty \left(\frac{\sin\left(\frac{n\pi}2\right)}{n^2}-\frac{\pi\cos\left(\frac{n\pi}{2}\right)}{2n}+\frac{(-1)^n \pi}{2n}-\frac{\pi\cos\left(\frac{n\pi}{2}\right)}{2n} \right) \sin\left(\frac{n\pi x}\pi\right)$$
So, any fast math guys that can tell me where I should end up?