I'm trying to follow a proof of the Bezout's theorem via Euclid's generalized algorithm on pdf1 and pdf2, specially the first one. I'm having trouble understanding homogeneity of some polynomials.
Let $f,g \in k[x_1,x_2,x_3]$ be homogeneous polynomials, apply Euclid's generalized algorithm on them as members of $k(x_1,x_2)[x_3]$ and you get $a,b \in k(x_1,x_2)[x_3]$ with $af + bg = 1$ (Gauss Lemma). Clearing the denominators of $a$ and $b$ we have $pf + qg = r \in k[x_1,x_2]$.
Now, the author say we can assume $p,q$ and thus $r$ as homogeneous, and though it seems to be clear, I can't really understand why. Thanks in advance.