Fourier Series/Square Wave/Special Cases/Unit Half Interval

Special Case of Fourier Series for Square Wave
Let $\map S x$ be the square wave defined on the real numbers $\R$ as:


 * $\forall x \in \R: \map S x = \begin {cases}

1 & : x \in \openint 0 1 \\ -1 & : x \in \openint {-1} 0 \\ \map S {x + 2} & : x < -1 \\ \map S {x - 2} & : x > +1 \end {cases}$

Then its Fourier series can be expressed as:

Proof
From Fourier Series for Square Wave, the real function $\map f x$ defined on the open interval $\openint {-l} l$ as:


 * $\map f x = \begin {cases} -1 & : x \in \openint {-l} 0 \\ 1 & : x \in \openint 0 l \end {cases}$

has a Fourier series which can be expressed as:

The result follows by setting $l = 1$.