Let's say I have a ratio of polynomials as follows
$P(x)=\frac{a_0x^n+a_1x^{n-2}+a_2x^{n-4}+...}{b_0x^n+b_1x^{n-2}+b_2x^{n-4}+...}$.
The polynomials are finite. Is there a procedure to convert it into a polynomial
$P(x) = A_0 + A_1 f(x) + A_2g(x) + ...$
where $f(x)$ and $g(x)$ are some power functions of x. Maybe there is a way to expand it in series if it is not divisible...
This is not possible. Think of $P(x)=1/x$. This does not have a Taylor expansion, so even your second questions, the series expansion is not possible.