Let $f_1=x^2-y, f_2=xy-z,f_4=xz-y^2$ be polynomials with coefficients in some field $k$. I want to prove that $f_2\notin (f_1,f_4)$.
My attempt: by contraddiction, let $f_2\in (f_1,f_4)$. Then there exist $\alpha,\beta\in k[x,y,z]$ such that $f_2=\alpha f_1+\beta f_4$. Computations give $\alpha=\frac{y}{x}$ and $\beta=-\frac{1}{x}$, wich are not polynomials.
Do you think this is correct? However, what is the straight way to proceed in these cases?