I want to find the sum of $$\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$$ I know that this is equal to $\frac{\pi^2}{12}$ thus I was thinking this must just be a taylor series of some trigonometric function but after looking it up, I cannot seem to find one that satisfies this. Any suggestions are greatly appreciated.
From below the user states that $$\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2} = \sum_{n=0}^{\infty}\left(\frac{1}{2n+1} \right)^2 -\sum_{n=1}^{\infty}\left(\frac{1}{2n}\right)^2 = \sum_{n=1}^{\infty}\frac{1}{n^2} - 2\sum_{n=1}^{\infty}\left(\frac{1}{2n}\right)^2 = \ldots = \frac{\pi^2}{12}$$
I want to know the details of the $\ldots$ part.