Consider the following algebraic expression
-(1/((rm - rp)^2 (-1 + z) z (3 + \[Nu]^2)^2))l^2 (4 k^2 (-1 + z)^2 -4 k (-1 + z) (2 rp \[Nu] - 2 rm z \[Nu] + (-1 + z) Sqrt[rm rp (3 + \[Nu]^2)]) \[Omega] + (-rp + rm z) (3 rp z +rp (-4 + z) \[Nu]^2 -4 (-1 + z) \[Nu] Sqrt[rm rp (3 + \[Nu]^2)] + rm (-3 + (-1 + 4z)\[Nu]^2)) \[Omega]^2)
I am trying to extract the coefficients $A$, $B$, $C$ and $D$ of the above expression, which can be rewritten in the form (through a calculation I did by hand) $A/[z(1-z)]+B/(1-z)+C/z+D$. I tried with the Collect
command and different variations of it, but I am only being able to extract $C$.