so I'm working on a problem in a UFD and in some part of the problem I concluded that $x|1$? what does this tell us about $x$? I was thinking well it means that for some $r$ we have $xr=1$ and that means $x$ is a unit now I have to get back to an equality: $d'=cdx$
I need to get rid of the x? how does $x|1$ help?.
Indeed, $x\mid 1$ means that $xr=1$ for some $r$. Then $x$ is a unit and has a unique inverse $r=x^{-1}$. Then you have $d'x^{-1} = cd$.