Consider the Weierstrass infinite product expansion of the $\sin(x)$ function: $$ \tag 1 \frac{\sin(x)}{x} = \prod_{n=0}^\infty \left( 1 - \frac{x^2}{n^2 \pi^2} \right) = \prod_{n\neq 0} \left( 1 - \frac{x}{n \pi} \right). $$ Moreover, it is easily shown that, given an integer $k \neq 0$, $$ \tag 2 \lim_{x \to k \pi} \frac{\sin(x)}{x(x-k\pi)} = \frac{(-1)^k}{k\pi}. $$ I wanted to obtain (2) from the expansion (1). However, I seem to get a wrong result, and I'm not finding the mistake in my reasoning.
Starting from (1), I write $$ \tag 3 \frac{\sin(x)}{x(x-k\pi)} = \frac{k\pi - x}{k\pi(x-k\pi)} \prod_{n \neq k,0} \frac{n\pi - x}{n\pi} = -\frac{1}{k\pi} \prod_{n \neq k,0} \frac{n\pi - x}{n\pi}, $$ and taking the limit $x \to k \pi$ I have: $$ \tag 4 \lim_{x \to k \pi} \frac{\sin(x)}{x(x-k\pi)} = - \frac{1}{k\pi} \prod_{n\neq k,0} \frac{n-k}{n} = \frac{1}{k\pi}.$$ The last step comes from the following considerations: $$ \tag 5 \prod_{n \neq k,0} (n-k) = \frac{1}{(-k)} \prod_{n \neq 0} n, $$ $$ \tag 6 \prod_{n \neq k,0} n = \frac{1}{k} \prod_{n \neq 0} n,$$ $$ \tag 7 \prod_{n\neq k,0} \frac{n-k}{n} = \frac{k}{-k} = -1.$$
Where did I go wrong? To be more specific, I know how to obtain the result (2) directly, I'm trying to do it from the infinite product expansion as an exercise to try the formula.
If the problem is in my "splitting" up non-convergent components of the product, I would also like to know what is the correct handle this kind of calculation.
If you want to show it using Weierstrass product, this is a way$$\frac{\sin\left(x\right)}{x\left(x-k\pi\right)}=\frac{1}{x-k\pi}\underset{n=1}{\overset{\infty}{\prod}}\left(1-\frac{x^{2}}{n^{2}\pi^{2}}\right)=\frac{1}{x-k\pi}\underset{n=1}{\overset{\infty}{\prod}}\left(\frac{\left(n\pi-x\right)\left(n\pi+x\right)}{n^{2}\pi^{2}}\right)=-\frac{k\pi+x}{k^{2}\pi^{2}}\underset{n=1,n\neq k}{\overset{\infty}{\prod}}\left(\frac{\left(n\pi-x\right)\left(n\pi+x\right)}{n^{2}\pi^{2}}\right)=-\frac{k\pi+x}{k^{2}\pi^{2}}\underset{n=1,n\neq k}{\overset{\infty}{\prod}}\left(1-\frac{x^{2}}{n^{2}\pi^{2}}\right)\underset{x\rightarrow k\pi}{\longrightarrow}-\frac{2}{k\pi}\underset{n=1,n\neq k}{\overset{\infty}{\prod}}\left(1-\frac{k^{2}}{n^{2}}\right).$$ It remain to show that $$\underset{n=1,n\neq k}{\overset{\infty}{\prod}}\left(1-\frac{k^{2}}{n^{2}}\right)=\frac{\left(-1\right)^{k-1}}{2}$$ and you can find a proof here How can I show that $\prod_{{n\geq1,\, n\neq k}} \left(1-\frac{k^{2}}{n^{2}}\right) = \frac{\left(-1\right)^{k-1}}{2}$? .