The Fourier cosine series for an even function \(f(x)\) is given by
\(f(x)=a_{0}+\sum_{n=1}^{\infty}a_{n}\cos(nx)\)
The value of the coefficient \(a_{2}\) for the function \(f(x)=\cos ^{2}(x) in \left [ 0 , \pi \right ]\) is
- A\(-0.5\)
- B0
- C0.5
- D1