I was reading the book The Princeton Companion to Mathematics
On page $293$, there is a statement
$$\csc^2x=\sum_{n=-\infty}^{\infty}\frac{1}{(x-n\pi)^2}\tag{1}$$
Here is one method from the book:
Observe first that $$h(x)= \sum_{n=-\infty}^{\infty}\frac{1}{(x-n\pi)^2}$$ is well-defined for each real $x$ that is not a multiple of $\pi$. Note also that $h(x+\pi)=h(x)$ and $h(\frac{1}{2}\pi-x) = h(\frac{1}{2}\pi+x)$. Set $f(x) = h(x) - \csc^2(\pi x)$. By showing that there are constans $K_1$ and $K_2$ such that $$0<\sum_{n=1}^{\infty}\frac{1}{(x-n\pi)^2}<K_1$$ and $$0<\csc^2x-\frac{1}{x^2}<K_2$$ for all $0<x\leq\frac{1}{2}\pi$, we deduce that there is a constant $K$ such that $|f(x)|<K$ for all $0<x<\pi$. Simple calculations show that $$f(x)=\frac{1}{4}\left(f\left(\frac{1}{2}x\right)+f\left(\frac{1}{2}(x+\pi)\right)\right). \tag{2}$$ A single application of $(2)$ shows that $|f(x)|<\frac{1}{2}K$ for all $0<x<\pi$, and repeated applications show that $f(x) = 0$. Thus $$\csc^2x=\sum_{n=-\infty}^{\infty}\frac{1}{(x-n\pi)^2}$$ for all real noninteger $x$.
Are here other methods to prove (1)?