Can anyone give me a hand with this exercise about Fourier series?
Let $f(x)=-\log|2\sin(\frac{x}{2})|\,\,\,$ $0\lt|x|\leq\pi$
1) Prove that f is integrable in $[-\pi,\pi]$.
2) Calculate the Fourier coefficients of $f$.
3)The Fourier series converge to $f$?
$------------------$
What I know:
About part 2, as f is even, then it would be enough to calculate the "$a_n$" coefficients of the series. That is, the $\int_{-\pi}^{\pi}f(x)cos(nx)$. This integrals can be done integrating by parts, I think. (am I right?)
My problems are part 1 and 3, I don't see how to prove them. Thanks for any help.
EDIT: Also, i met a problem at part 2. Calculating $a_n$, i arrive at a point where i need to find the value of $\int_{0}^{\pi}cotag(\frac{x}{2})sin(nx)$. I know (checked it numerically) that the value of this integral is $\pi$ for any natural $n$. But I can't find a way to prove this "by hand", as integration by parts doesn't seem to work here... Any ideas?