\[\sum_{n=1}^{\infty}\frac{\cos\left(n\theta\right)}{n^{2}}=\frac{\pi^{2}}{6}-%
\frac{\pi\theta}{2}+\frac{\theta^{2}}{4}.\]