Unions of two ideals of a ring is ideal only iff one is contained in other. Justify.
Aryan Yadav, AIR 31, 2025
let R be a ring & I, J be 2 ideals of it, let $S = I\cup J$
1) If one is contained in other $\Rightarrow$ S is ideal
Without loss of generality assume I is contained in J i.e. $I \subseteq J$
$\Rightarrow S = J$ & obviously J is ideal
$\Rightarrow$ S is ideal of R
2) Assume S is an ideal of R
Assume neither I nor J are contained in one another $\Rightarrow$
$\exists\ x \in I,\ x \notin J$ & $\exists\ y \in J,\ y \notin I$
Clearly $x, y \in S \Rightarrow x - y \in S$ (ideal)
$\Rightarrow x - y \in I$ or $x - y \in J$
if $x - y \in I \Rightarrow x - (x-y) \in I$ (ideal)
$\Rightarrow y \in I$ contradiction
if $x - y \in J \Rightarrow x - y + y \in J$ (ideal)
contradiction
Hence we have contradiction
$\Rightarrow$ one of I & J is contained in the other
Hence 1) & 2) prove iff condition