The problem is to express the number
$$1\over x^5 + 2x^4 + 3x^3 + 3x^2 + 2$$
using only rational numbers in the denominator, knowing that $x^5 + 2 = -2(x + 1)(x^3 + x^2 + x)$.
(This is an example from a final exam of an algebra course from the past year (which is freely available to students).)
I know how to solve this problem, but I do not understand why this is possible. The trick comes from knowing that this number can be expressed using addition and multiplication of $x$ and rational numbers, ie. as
$$r_0 + r_1x + r_2x^2 + r_3x^3 + r_4x^4 + r_5x^5 + \dots$$
My solution follows, skip to questions if you are not interested.
From the polynomial equation it follows that $x^5$ equals $-2 - 2x - 4x^2 - 4x^3 - 2x^4$, therefore an expression containing $x$ with exponent 5 or greater can be rewritten as an expression with only $x^0$ to $x^4$.
So my number can be expressed as
$$ax^4 + bx^3 + cx^2 + dx + e$$
Putting an equals sign between these two expressions and multiplying by the denominator gives
$$1 = (x^5 + 2x^4 + 3x^3 + 3x^2 + 2)(ax^4 + bx^3 + cx^2 + dx + e)$$
I can multiply the right hand side and "normalize" it (by replacing $x^{\ge5}$) to get
$$1 = (e - f)x^4 + \dots + (2e - 2d)$$
From this formula I can create a system of linear equations, because the coefficient of $x^n$ has to be one if n equals zero, and zero otherwise. Solving this system will let me find the values of the coefficients.
Question 0: Why does this problem even have a solution of the form I used?
Question 1: Is there a solution like this for any expression $1 \over f(x)$, where f is a polynomial of $x$, knowing $x$ is a root of another polynomial? Will my method always work? Why?
Apologies if this is a duplicate, but everything I could find about rationalizing the denominator was about simple fractions like $1 \over 2 + \sqrt 6$.
I'd appreciate even just comments directing me towards what I can study because I am out of keywords.