If 
 is an even function, then 
 and the Fourier series
 collapses to
| 
 
(1)
 
 | 
where
| 
 
(2)
 
 | |||
| 
 
(3)
 
 | |||
| 
 
(4)
 
 | |||
| 
 
(5)
 
 | 
where the last equality is true because
| 
 
(6)
 
 | 
Letting the range go to ,
| 
 
(7)
 
 | |||
| 
 
(8)
 
 | 
If 
 is an even function, then 
 and the Fourier series
 collapses to
| 
 
(1)
 
 | 
where
| 
 
(2)
 
 | |||
| 
 
(3)
 
 | |||
| 
 
(4)
 
 | |||
| 
 
(5)
 
 | 
where the last equality is true because
| 
 
(6)
 
 | 
Letting the range go to ,
| 
 
(7)
 
 | |||
| 
 
(8)
 
 | 
Weisstein, Eric W. "Fourier Cosine Series." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/FourierCosineSeries.html