Knowing formulas for Fourier series when I'm given interval $(0,2l)$ & $(-l,l)$ I can't seem to find Fourier series of $sgn(\cos(x))$. I know that $a_n = \frac{2}{l} \int_0^{l}f(x)\cos(\frac{n\pi x}{l})dx$, $b_n$ same but with $\sin$. If I'm given interval $(0,2l)$ then $a_n = \frac{1}{l} \int_{\lambda}^{\lambda + 2l}f(x)\cos(\frac{n\pi x}{l})dx$, $b_n$ same where we usually put $\lambda = 0$.
My question is if I have that my function $sgn(cos(x))$ is:
$\begin{cases} 1&\text{if}\, x \in [\frac{\pi}{2},\frac{3\pi}{2}]\\ -1&\text{if}\, x \in [\frac{-\pi}{2},\frac{\pi}{2}]\\ \end{cases} $
What interval I should use for my Fourier series and this is the part where my understanding of this fails. Any help would be appreciated.