**Solution to Abstract Algebra by Dummit & Foote 3rd edition Chapter 7.4 Exercise 7.4.8**

Solution:

($\Rightarrow$) Suppose $(a) = (b)$. Then $a \in (b)$, and we have $a = ub$ for some element $u \in R$. Similarly, $b \in (a)$ and we have $b = va$ for some element $v \in R$. Now $a = uva$, and since $R$ is a domain, we have $uv = vu = 1$. Thus $u$ is a unit.

($\Leftarrow$) Suppose $a = ub$ where $u \in R$ is a unit. Then we have $$(a) = aR = ubR = buR = bR = (b);$$ note that $uR = R$ by Proposition 9 in the text.