I want to prove that $$\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^{2}}=\frac{\pi^{2}}{12}, $$ using the Fourier Series for the $2\pi$-periodic function $f(\theta)=\theta^{2},\quad (-\pi<0<\pi)$, that is,
$$\theta^{2}=\frac{\pi^{2}}{3}+4\sum_{n=1}^{\infty}\frac{(-1)^{n}\cos(n\theta)}{n^{2}} $$ So,
$$\sum_{n=1}^{\infty}\frac{(-1)^{n}\cos(n\theta)}{n^{2}}=\frac{\theta^{2}}{4}-\frac{\pi^{2}}{12}.$$
I'm looking for a $\theta$ such that $(-1)^{n}\cos(n\theta)=(-1)^{n+1}\Rightarrow \cos(n\theta)=-1$ for all $n\in\mathbb{N}$. How can I choose that $\theta$?