I was trying to write the function $\frac{1}{x\text{sin}(x)}$ in terms of partial fractions, so that I could integrate the function. If I had the form
$$\frac{1}{x\text{sin}(x)} = \frac{A}{x} + \frac{B}{\text{sin}(x)}$$
I then have
$$ 1 = A\text{sin}(x) + Bx $$
I think it is best to look at $0 < x < \pi$. The above equation should hold for all $0 < x < \pi$. If I choose $x = \frac{\pi}{2}$ and $x=\frac{\pi}{4}$ to find my coefficients, I find that
$$ A = 1+\sqrt{2}$$ $$ B = -\frac{2\sqrt{2}}{\pi}$$
However, if I choose $x=\frac{\pi}{2}$ and $x=\frac{\pi}{3}$ to find my coefficients, I find that
$$ A = \frac{6\sqrt{3}+8}{11}$$ $$ B = \frac{6-12\sqrt{3}}{11\pi}$$
I am wondering what is going wrong? The suspicion might be that it is wrong to decompose $\frac{1}{x\text{sin}(x)}$ in the manner as I have done, but it also means:
1) Can I NOT express it in terms of partial fractions?
2) How does one approach the integral then (I have tried partial fractions, substitution, and integration by parts)?