I think the following series has the value
$$\sum_{k=0}^\infty \frac{16(2k+1)^2}{(4m^2 - (2k+1)^2)^2}=\pi^2$$
for any positive integer $m$, but I am not sure how to go about computing it. Plugging the above sum into a computer for a few different values of $m$ seems to verify the result. I don't have much experience computing any infinite sums of the above form, so I am not sure where to begin. The context for computing this series is to show that $\cos(2mx)$ can be written as an infinite sum of the functions $\sin(kx)$. On a related note, I would also like to show that
$$\sum_{k=0}^\infty \frac{64m^2}{(4m^2-(2k+1)^2)^2} = \pi^2$$
where again, $m$ is a positive integer; this sum appears in showing the opposite relation, that $\sin(2mx)$ can be written as a sum of $\cos(kx)$. Again, I have verified on a computer that this is true for at least the first few values of $m$. This second sum would be reasonable to compute if it were an integral, but I'm not sure of a way I can immediately apply that idea (if we consider $f(x) = c^4/(c^2-x^2)^2$ then we could compute the integral of this function from $0$ to $\infty$ by substitution $x=c\tanh\theta$ fairly easily). I'm aware that there are easier ways to show these relations between sines and cosines, but I'm invested enough in this approach that I would like to find a way to compute these sums. Any tips would be appreciated.
Edit: I am actually not 100% sure that the first sum converges to $\pi^2$ for all $m$; in Wolfram Alpha, the sum comes out to be $\pi^2$ for $m=1,2$ but for any $m\geq 3$ it simply approximates the sum, and the approximated value is clearly less than $\pi^2$, so I may have made an error. The value of the second sum definitely seems to be $\pi^2$ though.