i need to solve the following question using parsevel's identity.
$\displaystyle\int_{-\pi}^{\pi} \cos^{4} x\, dx = \frac{3\pi}{4}$.
$\displaystyle\int_{-\pi}^{\pi} \cos^{6} x\, dx = \frac{5\pi}{8}$.
I tried using $f\left(x\right)$ as $\cos^{2}\left(x\right)$ but didn't get the answer after finding $a_{0}$, $a_n{ }$, and $b_{n}$. I got $a_{0}=1$, $a_{n}=0$, $b_{n}=0$.
Please help me.
I know that I have to use the Parseval's Indentity relation but I don't know whose function's expansion makes this possible.