"Compute the Fourier series of the periodic function $f(x)$ that is defined in $\mathbb R$ as follows:
$$f(x) = |x-2n \pi| $$ for all $x$ s.t. $(2n-1)\pi < x <(2n + 1)\pi.$
Give the definition of a tempered regular distribution, and explain why $f(x)$ is such a distribution. Finally compute the 2nd distributional derivative of $f(x)$."
I am stuck on the first one in finding the Fourier series.
I have problem finding the coefficient in front of the cosine, (the integral), assuming n is real I end up with:
integral from (2n-1)*pi to (2n+1)*pi of |x-2n*pi| cos(kx) dx
The function is even with period $\tau=2\pi$, and in the first half-period $f(x)=x$ and the cosine coefficients are
$\displaystyle b_n=\frac{4}{\tau}\int_0^{\frac{\tau}2} x \cos (nx)\mathrm{d}x=\frac{4}{\tau} \left[\frac{x}{n}\sin(nx)+\frac{1}{n^2}\cos(nx)\right]_0^{\frac{\tau}2}=\Big\{ ^{-\frac{8}{n^2\tau} \ \ n \text{ odd}}_{0 \ \ n \text{ even}}$
for $n\not=0$ and $\frac{\tau}2$ for $n=0$.
[edit] Misunderstood the question. Set $X=x-2n\pi$ and the above is the fourier series of $f(X)=|x|$, then use $\cos(a-b)=\cos(a)\cos(b)+\sin(a)\sin(b)$.