Hey everyone, I need a little bit of help with this question so any help would be much appreciated.

Find the Fourier series of the function and discuss the divergence of it.

$\displaystyle f(x)=\begin{cases} 1 \mbox{ for } |x| \le \frac{\pi}{2} \\ 0\mbox{ for } \frac{\pi}{2} < |x| < \pi \end{cases}$

Thanks for any help everyone.