I need assistance finding the fourier series for the following function:
$$ f(x)=3\cos^2(5x) $$
I know that
$$ a_0={1\over 2\pi}\int_{-\pi}^\pi 3\cos^2(5x)\,dx={3 \over 2} $$
and
$$ b_n={1\over \pi}\int_{-\pi}^\pi 3\cos^2(5x)\sin(nx)\,dx=0 $$
I'm having difficulty calculating $a_n$ because I keep getting zero.
$$ a_n={1\over \pi}\int_{-\pi}^\pi 3\cos^2(5x)\cos(nx)\,dx=? $$
Thanks for your help.
Recalling the identity
which gives us the desired Fourier series
Added: to get $a_n$ note that the function is even so you can do the following