Let $I=\langle Y+X^2-1,XY-2Y^2+2Y \rangle$, decide whether if $\mathbb R[X,Y]/I$ is a field.
What I've tried to do was the following:
If $\mathbb R[X,Y]/I$ is a field, then $I$ is a maximal which also implies $I$ is a prime. As I couldn't prove $\mathbb R[X,Y]/I$ is a field, I've tried to show it isn't. First let me call $$p=Y+X^2-1, \space q=XY-2Y^2+2Y$$ I've noticed that $$p=Y+(X-1)(X+1),q=Y(X-2(Y-1))$$
So I took $g=Y,h=X-2(Y-1)$, then $gh=q \in I$ but $g,h \not \in I$.
I have the feeling that my solution is correct but I don't know how to formally prove that $g$ and $h$ are not in $I$. Would it be correct to argue: any element $s \in I$ is of grade at least 2 but $deg(g)=deg(h)=1$?
I would appreciate if someone could take a look at my answer and make the necessary corrections, thanks in advance.
If $Y\in I$, then $Y=(Y+X^2-1)f(X,Y)+(XY-2Y^2+2Y)g(X,Y)$. It follows that $Y\mid (Y+X^2-1)f(X,Y)$ and since $\gcd(Y,Y+X^2-1)=1$ we must have $Y\mid f(X,Y)$ hence $f(X,Y)=Yf_1(X,Y)$. Thus we get $1=(Y+X^2-1)f_1(X,Y)+(X-2Y+2)g(X,Y)$. Now set $X=0$ and $Y=1$ and reach a contradiction.
If $X-2Y+2\in I$, then $X-2Y+2=(Y+X^2-1)f(X,Y)+(XY-2Y^2+2Y)g(X,Y)$. It follows that $X-2Y+2\mid (Y+X^2-1)f(X,Y)$ and since $\gcd(X-2Y+2,Y+X^2-1)=1$ (why?) we must have $X-2Y+2\mid f(X,Y)$ hence $f(X,Y)=(X-2Y+2)f_1(X,Y)$. Thus we get $1=(Y+X^2-1)f_1(X,Y)+Yg(X,Y)$. Now set $X=1$ and $Y=0$ and reach a contradiction.