I am wondering if it is possible to write
$$f(x)=\frac{1}{a \sin x +b}$$
as a sum of functions that don't have trigonometric functions in the denominator? Or just pure trigonometric functions, without a constant added. So maybe something like this:
$$\frac{1}{a \sin x +b}=A\sin^3 x \cos^2x + B\sin x \cos ^4 x + C\frac{1}{\cos x}+ D\frac{\cos^2 x }{\sin x}+\dots $$
The reason I'm asking is that I need to integrate products of $f(x)$ with powers $\cos^n x$, and it would be really neat to get rid of the constant in the denominator, as integrals of the form $\int\frac{\cos^n x}{a \sin x +b}dx$ are extremely hard to solve, whereas integral tables contain solutions to $\int \sin^p x \cos^q x dx$ and similar integrals.
One potential starting point could be
$$\frac{1}{a \sin x +b}=\frac{a \sin x -b}{(a \sin x +b)(a \sin x -b)}=\frac{a \sin x -b}{(a^2 \sin^2 x -b^2)}=...$$ with the goal to eventually make the replacement $\sin^2 x +\cos^2 x =1$. Can such a method be formalized? Or is the decomposition I have in mind provable not possible? Thanks for your help!
Consider $$f(x)=\frac{1}{\sin (x)+k}$$ If $k\ll 1$, you could use expansions and write $$f(x)=\sum_{n=0}^\infty (-1)^n \csc^{n+1} (x)\,k^n$$ If $k\gg 1$, you could use expansions and write $$f(x)=\sum_{n=0}^\infty (-1)^n \sin^{n}(x) \,k^{-(n+1)} $$