I am trying to solve the following question:
``Let $F$ be a field and let $F[x, y]$ denote the ring of polynomials in the variable $x$ and $y$ with coefficients in $F$. Suppose $f(x,y)$ belongs to $F[x, y]$. Apply the Factor Theorem to the ring $F[x]$ to show that $f(x, x) = 0$ if and only if $(x-y)$ is a factor of $f(x, y)$. More generally, show that $y - g(x)$ divides $f(x, y)$ if and only if $f(x, g(x)) = 0$, for $g(x)$ in $F[x]$.''
If $(x-y)$ is a factor of $f(x, y)$ then obviously $f(x, x) = 0$. But how do I prove the converse? Is there a version of the Factor Theorem for $F[x, y]$ that I need to use?