You are given $f(x)$ on an interval, say $0<x<b$. Sketch several periods of the even function $f_{c}$ of period $2 b$, the odd function $f_{s}$ of period $2 b$, and the function $f_{p}$ of period b, each of which equals $f(x)$ on $0<x<b$. Expand each of the three functions in an appropriate Fourier series.
$$
f(x)=\left\{\begin{aligned}
1, & 0<x<\frac{1}{2} \\
-1, & \frac{1}{2}<x<1
\end{aligned}\right.
$$