I'm a little stuck on this question from my Abstract Algebra homework and I would like a hint (read: please don't solve this for me, I just want a little hint to get me on track). Here is the question in full:
Let $R$ be an integral domain. Let $I$ and $J$ be nonzero prime ideals in $R$ such that $I$ is properly contained in $J$, i.e., $I\subset J$ and $I\neq J$. If $I$ is principal, show that $J$ is not principal.
So far I've tried proving this by contradiction. So then suppose $I$ and $J$ are both principal. Then $I=\langle a\rangle$ and $J=\langle b\rangle$ for some nonzero $a,b\in R$. Since $\langle a\rangle\subset\langle b\rangle,$ we have that $b\,|\, a$ (we proved this in class), so $by=a$ for some $y\in R.$ Now since $J\setminus I$ is nonempty, let $x\in J\setminus I$. Then $x=bz$ for some $z\in R$ but $a$ does not divide $x.$ Now I get that $byz=az=xy$, and I feel like since $R$ is an integral domain I could potentially use this to show some kind of contradiction. Maybe, for instance, this could be used to show one of $a,b$ is zero, or this could lead to $x\in I$. Both of these would be contradictions and I'd be done. I also notice I haven't used the assumption the ideals are prime.
If it helps, I also proved as a lemma that if $\langle a\rangle$ is prime, then $a$ is prime: suppose $a\,|\,xy$ for some $x,y\in R$. Then $xy\in \langle a\rangle$. Since $\langle a\rangle$ is prime, $x\in\langle a\rangle$ or $y\in\langle a \rangle$. This shows $a\,|\,x$ or $a\,|\,y$. Thus, $a$ is prime.
So maybe since $a$ is prime, there's something about the $az=xy$ equation that could show $a$ divides $x$, giving a contradiction?
Does anyone have any hints for how I can proceed?
EDIT: This question has been flagged as a duplicate of In a PID every nonzero prime ideal is maximal, but here there is no assumption that $R$ is a PID. We are assuming $R$ is any integral domain.