I have seen someone make the following statement.
For a polynomial over the real numbers with $f(x,x^2)=0 ~\forall x \in \mathbb{R}$ we can factor it $f(x,y)=(y-x^2)g(x,y)$ for some other polynomial $g$ in two variables over the real numbers. The reasoning that has been given for this is we can view $f$ as a polynomial just in $y$ and via the degree function we get:
$f(x,y)=(y-x^2)g_x(y)+r_x(y)$
Now $r_x$ must be constant for all $x$ and it follows: $0=f(x,x^2)=r_x(x^2)$. Now we get $f(x,y)=(y-x^2)g_x(y)$ as a result. We know that for all $x,$ $g_x$ is a polynomial in $y$ but the statement seems to imply that $g_x$ is a polynomial in $y$ and $x$ which is what seems fishy to me. Why would this be true and if not, can you even factor polynomials in this fashion?
(In the original statement I saw $g_x$ was just written as $g(x,y).$)