I'm working on an exercise from Atiyah and MacDonald's Commutative Algebra, and have hit a bump on Exercise 14 of Chapter 1.
In a ring $A$, let $\Sigma$ be the set of all ideals in which every element is a zero-divisor. Show that set $\Sigma$ has maximal elements and that every maximal element of $\Sigma$ is a prime ideal. Hence the set of zero-divisors in $A$ is a union of prime ideals.
I see by an application of Zorn's Lemma that $\Sigma$ has maximal elements. I take $\mathfrak{m}$ to be maximal in $\Sigma$, with $xy\in\mathfrak{m}$. Since $xy$ is a zero divisor, $xyz=0$ for some $z\neq 0$. If $yz=0$, then $y$ is a zero divisor, otherwise $x$ is a zero divisor. So I guess I then want to show $x\in\Sigma$ or $y\in\Sigma$. If neither is, then $\mathfrak{m}$ is properly contained in both $(\mathfrak{m},x)$ and $(\mathfrak{m},y)$. However, I'm not sure how to show either of these ideals is again in $\Sigma$.
If my understanding is correct, elements of $(\mathfrak{m},x)$ are finite sums of the form $\sum_ia_im_i+bx$ for $a_i\in A$, $m_i\in\mathfrak{m}$ and $b\in A$. To show this sum is a zero divisor, my hunch is that if $c_im_i=0$ for $c_i\neq 0$ and $dx=0$ for $d\neq 0$, then $$ \left(\sum_ia_im_i+bx\right)(d\prod_ic_i)=0. $$ My concern is that perhaps $d\prod_ic_i=0$, so the above wouldn't show that $(\mathfrak{m},x)$ consists of only zero divisors. How can I get around this? Or is there perhaps a better approach? Thank you for your help.