Let $R$ be a unitary ring and $I_1,I_2$ be nontrivial ideals of $R$. I know that if $I_1+I_2=R$, then $I_1I_2=I_1 \cap I_2$. I wonder if this inverse holds.
When $R=\mathbb{Q}[X,Y]$ and $I_1=(X),I_2=(Y)$, then $I_1I_2=(XY)=I_1 \cap I_2$, but $I_1+I_2=(X,Y) \neq \mathbb{Q}[X,Y]=R$. According to this example, it is known that more conditions for $R$ are needed for the inverse to hold.
Then I heard that if $R$ is PID, the inverse holds, that is, $I_1I_2=I_1 \cap I_2 \Longrightarrow I_1+I_2=R$. However, I cannot prove it.
Would you have any ideas or hints for the proof? Thank you.