The question is how to factor an identity. The identity is shown below but it uses $f(x)$ as defined in Theorem 5.21, so let me show $f$'s definition first.
In the proof, we eventually get to this identity:
We have two equations there. I'm good with the first. Just expanding it out makes it obvious. My problem is on the second equation. By taking the expansion and factoring $x$ on all non-$x_0$ terms, I get
$$x(c_n x^{n-1} + \cdots + c_2 x + c_1).$$
Similarly for $x_0$,
$$x_0(c_n x_0^{n-1} + \cdots + c_2 x_0 + c_1).$$
Question. How can I use these two expressions and get the second equation in the identity?
If I let $g(x) = (c_n x^{n-1} + \cdots + c_2 x + c_1)$, then I have $g(x)$ in the first expression above and $g(x_0)$ in the second. These are not the same, so I'm puzzled as how this is allowed.