The problem:
Let $(\mathbb{Z}[x,y,z],+,\cdot)$ be the ring of polynomials with coefficients in $\mathbb{Z}$ in the variables $x$, $y$ and $z$ and the obvious operations $+$ and $\cdot$. Let $(x-y, x^3-z)$ be the ideal generated by $x-y$ and $x^3-z$. Find the ring to which $\mathbb{Z}[x,y,z]/(x-y,x^3-z)$ is isomorphic.
A similar question has been asked before: Which ring is $R[X,Y,Z,T]/(X-Y^2,T-Y^4,T^3-Z)$ isomorphic to?. Using the same approach, we set $x=y$ and $x^3=z$ and substitute for $y$ and $z$. Then we find $\mathbb{Z}[x,x,x^3]$ which is just $\mathbb{Z}[x]$. I'm trying to find out why this approach would work, i.e., formalise it in a proper proof. My idea is to use the first isomorphism theorem, but I get stuck near the end. I would very much appreciate if someone could help fill in this gap, check my proof for mistakes or provide additional (intuitive) information as to why the above method works.
My proof:
Consider the map $\varphi : \mathbb{Z}[x,y,z] \to \mathbb{Z}[x] : p(x,y,z) \mapsto p(x,x,x^3)$.
This is a homomorphism, since it obeys the relations $\varphi(p) + \varphi(q) = \varphi(p+q)$ and $\varphi(p) \cdot \varphi(q) = \varphi(p \cdot q)$ for all $p,q \in \mathbb{Z}[x,y,z]$ (verifying these is quite trivial).
Now take any $q \in \mathbb{Z}[x]$ and define a $p \in \mathbb{Z}[x,y,z]$ such that $p(x,y,z) = q(x)$. Since $\varphi(p(x,y,z)) = p(x,x,x^3) = q(x)$, $\varphi$ is surjective and it follows that $\mathbb{Z}[x] \subseteq \varphi(\mathbb{Z}[x,y,z])$. It is obvious that $\varphi(\mathbb{Z}[x,y,z]) \subseteq \mathbb{Z}[x]$ and, therefore, we must have $\varphi(\mathbb{Z}[x,y,z]) = \mathbb{Z}[x]$.
Lastly, we must show that $\ker(\varphi) = (x-y, x^3-z)$. For brevity's sake I will denote $I := (x-y,x^3-z).$
Let $p \in I$. Then there must exist $q_1, q_2 \in \mathbb{Z}[x,y,z]$ such that $p = q_1(x-y) + q_2(x^3-z)$. It follows that:
\begin{align*}\varphi(p(x,y,z)) &= \varphi(q_1(x,y,z)(x-y) + q_2(x,y,z)(x^3-z))\\ &= q_1(x,x,x^3)(x-x) + q_2(x,x,x^3)(x^3-x^3) = 0.\end{align*}
Thus $p \in \ker(\varphi)$ and $I \subseteq \ker(\varphi)$, since $p$ was chosen arbitrarily in $I$.
Now, take a $q \in \ker(\varphi)$. Then $\varphi(q(x,y,z)) = q(x,x,x^3) = 0$. Somehow we must get that $q \in I$ so that we can conclude $\ker(\varphi) \subseteq I$ and thus $I = \ker(\varphi)$, but I seem to get stuck on every path. Proof by contradiction or by contraposition also seems fruitless. What am I missing?
With all of the above, we may apply the first isomorphism theorem to conclude that: $$\mathbb{Z}[x,y,z]/I = \mathbb{Z}[x,y,z]/\ker(\varphi) \cong \varphi(\mathbb{Z}[x,y,z]) = \mathbb{Z}[x]$$