1/6 * pi^2 + sum over k from 1 to inf (( (-1)^(n+1) (n^2*pi^2-2)/(pi*n^3)) cos nx)