f(x) = \frac{4}{\pi} \sum_k \frac{\cos kx}{(2k-1)^2}