Consider the following non-linear system of ODEs : \begin{cases} x' = y \\ y' = x^2-\lambda x. \end{cases} In search of a solution such that $y(0) = y(2 \pi) = 0$, I am being told to seek $x$ and $y$ as $$ x(t) = \sum_{k \in \mathbb{Z}} a_k \cos(kt) \\ y(t) = \sum_{k \in \mathbb{Z}} b_k \sin(kt). $$ Question : Why do we let $k \in \mathbb{Z}$ ? As far as I know, for real periodic functions, Fourier series have coefficients $(a_k)_{k \geq 0}$ and $(b_k)_{k \geq 1}$.
Is it because, for example, $$ \sum_{k \in \mathbb{Z}} a_k \cos(kt) \cdot \sum_{k \in \mathbb{Z}} a_k \cos(kt) = \sum_{k \in \mathbb{Z}} (a \star a)_k \cos(kt) $$ where $$ (a \star a)_k := \sum_{k_1 + k_2 = k} a_{k_1} a_{k_2} $$ but $$ \sum_{k \geq 0} a_k \cos(kt) \cdot \sum_{k \geq 0} a_k \cos(kt) \neq \sum_{k \geq 0} (a * a)_k \cos(kt) $$ where $$ (a * a)_k := \sum_{\substack{k_1 + k_2 = k \\ k_1, k_2 \geq 0}} a_{k_1} a_{k_2} ? $$
This is done so that the coefficients of the square result from the convolution of the coefficient sequences. An easier procedure would be to use the complex Fourier series with reality conditions on the coefficients.
The basis for these games is $$ 2\cos kx\cos mx =\cos(k+m)x+\cos(k-m)x $$ where you combine and separate all the 4 cross terms involving $\pm k$ and $\pm m$.