Let 𝑅 be a ring.
Two elements 𝑎,𝑏∈𝑅 are associate iff their corresponding principal ideals are equal, i.e. ⟨𝑎⟩=⟨𝑏⟩.
For 𝑅 an integral domain, this is equivalent to the existence of a unit𝑢∈𝑅× such that 𝑎=𝑢𝑏.
Proof of equivalence in a domain
Assume ⟨𝑎⟩=⟨𝑏⟩, so there exist 𝑐,𝑑∈𝑅 such that 𝑏=𝑎𝑐 and 𝑎=𝑏𝑑
so 𝑎=𝑏𝑑=𝑎𝑐𝑑 and thus 𝑎(1−𝑐𝑑)=0,
so 𝑐𝑑=1 and thus 𝑐∈𝑅×.