$\newcommand\dag\dagger$ We have in $L^2 [-\pi , \pi ]$ the linear operator $$(Pf)(x)= \frac{1}{2\pi} \int_{-\pi}^{\pi} [4\cos^2 (x-y) -1] f(y) dy.$$
Show that $P$ is an orthogonal projector.
I have no idea about how to show that $P=P^2 =P^{\dag}$ .
So I think it's better to suppose I have an orthonormal system $\{e_n\}$, it will be $Pf= \sum\limits_n e_n \ \langle e_n , f \rangle$.
How can I use this fact in this case?
Just apply the integral twice and show the double integral reduces back down to the single integral via Fubini's theorem like so:
$$(P^2f)(x) = \frac{1}{4\pi^2}\int_{-\pi}^\pi \int_{-\pi}^\pi [4\cos^2(x-y)-1][4\cos^2(y-z)-1]f(z)\:dz\:dy$$
$$\frac{1}{4\pi^2}\int_{-\pi}^\pi f(z)\:dz \int_{-\pi}^\pi [4\cos^2(x-y)-1][4\cos^2(y-z)-1]\:dy$$
$$\frac{1}{4\pi^2}\int_{-\pi}^\pi f(z)\:dz \int_{-\pi}^\pi [2\cos(2y-2x)+1][2\cos(2y-2z)+1]\:dy$$
(for formatting purposes only pay attention to the $y$ integral for now)
$$\int_{-\pi}^\pi 2\cos(2z-2x)+2\cos(4y-2x-2z)+2\cos(2y-2x)+2\cos(2y-2z)+1\:dy$$
$$\left[y(2\cos(2z-2x)+1)+\frac{1}{2}\sin(4y-2x-2z)+\sin(2y-2x)+\sin(2y-2z)\right]_{-\pi}^\pi$$
(now bring the $z$ integral back into play)
$$\implies \frac{1}{2\pi}\int_{-\pi}^\pi [2\cos(2x-2z)+1]f(z)\:dz=\frac{1}{2\pi}\int_{-\pi}^\pi [4\cos^2(x-z)-1]f(z)\:dz \equiv (Pf)(x)$$
where we freely used the evenness of cosine and the $2\pi$-periodicity of sine to make the other terms vanish.