Here in this answer I have tried to perform partial fraction for $\frac{1}{\sin(x-a)\sin(x-b)}$ as follows: $$\frac{1}{\sin(x-a)\sin(x-b)}=\frac{p}{\sin(x-a)}+\frac{q}{\sin(x-b)} \quad(1)$$ Multiplying $(1)$ by $\sin(x-a)$ and plugging $x=a$ yields: $$\left(\frac{1}{\sin(x-b)}=p+q\underset{\rightarrow 0}{\frac{\sin(x-a)}{\sin(x-b)}}\right)\bigg|_{x=a}\Rightarrow p=\frac{1}{\sin(a-b)}$$ Also to obtain q, multiply $(1)$ by $\sin(x-b)$ and plugg $x=b$ gives: $$\left(\frac{1}{\sin(x-a)}=p\underset{\rightarrow 0}{\frac{\sin(x-b)}{\sin(x-a)}}+q\right)\bigg|_{x=b}\Rightarrow q=\frac{1}{\sin(b-a)}=-p$$ So that means we can rewrite the original expression as: $$\frac{1}{\sin(x-a)\sin(x-b)}=\frac{1}{\sin\left(a-b\right)}\left(\frac{1}{\sin\left(x-a\right)}-\frac{1}{\sin\left(x-b\right)}\right)$$ However as pointed out in the comments this doesn't verify. Can anyone point out where I went sideways with this?
Also the same approach can be found here. Is there a rigurous way to prove that we can't perform partial fraction in this case?
Further question, what a about a general case such as proving/disproving: $${\prod_{k=1}^n\frac{1}{\sin(x-x_k)}}\neq\sum_{k=1}^n \frac{a_k}{\sin(x-x_k)}$$
What is really happening is that $x\mapsto\sin(x-x_k)$ is a rational function of $\exp(ix)$, so $\displaystyle\prod_{k=1}^n\frac{1}{\sin(x-x_k)}$ has a partial fraction decomposition of the form \begin{align*} \prod_{k=1}^n\frac{1}{\sin(x-x_k)} &=\prod_{k=1}^n\frac{2i\exp(-ix_k)\exp(ix)}{[\exp(ix)]^2-[\exp(ix_k)]^2} \\ &=\sum_{k=1}^n\left(\frac{\alpha^-_k}{\exp(ix)+\exp(ix_k)}+\frac{\alpha^+_k}{\exp(ix)-\exp(ix_k)}\right) \end{align*} with $\alpha_k^\pm\in\mathbb{C}$. To be able to say $$ \prod_{k=1}^n\frac{1}{\sin(x-x_k)}=\sum_{k=1}^n \frac{a_k}{\sin(x-x_k)} $$ is thus the condition $\alpha_k^+=\alpha_k^-$ which we can check holds if and only if $n$ is odd.