Fourier Series/1 over -1 to 0, Cosine of Pi x over 0 to 1/Mistake

Source Work

 * : Chapter One: $\S 3$. Other Types of Whole-Range Series: Example $3$

Mistake

 * By formulae $(3)$ the Fourier coefficients are:
 * $a_0 = \displaystyle \int_{-1}^0 \rd x + \int_0^1 \rd x = 1$


 * $a_n = \displaystyle \int_{-1}^0 \map \cos {n \pi x} \rd x + \int_0^1 \map \cos {n \pi x} \map \cos {\pi x} \rd x = 0$


 * $b_n = \displaystyle \int_{-1}^0 \map \sin {n \pi x} \rd x + \int_0^1 \map \sin {n \pi x} \map \cos {\pi x} \rd x$


 * $= \dfrac {\map \cos {-n \pi} - 1} {n \pi} + \dfrac 1 {2 \pi} \set {\dfrac {1 - \map \cos {n + 1} \pi} {n + 1} + \dfrac {1 - \map \cos {n - 1} \pi} {n - 1} }$

Correction
The author appears to have omitted to note that the term $a_1$ is non-vanishing: