I have the following problem:
Let $R$ be a ring, and take $g,g'$ in $R$ such that $g\neq g'$. Then $(g)=(g')$ iff there exists an invertible element $\beta \in R^\times$ such that $\beta g=g'$. (In our class we denoted by $(g)$ the ideal generated by $g$ and same for $g'$
So I wanted to prove this and my Idea was the following:
$\Leftarrow$ Let $\beta\in R^\times$ such that $\beta g=g'$. By definition $(g')=Rg=\{ag':a\in R\}$. Therefore $$(g')=(\beta g)=\{\beta a g:a\in R\}=\{bg:R\ni b=\beta a\}=(g)$$ Thus we have shown the first implication.
$\Rightarrow$ Let $(g)=(g') \Leftrightarrow \{ug:u\in R\}=\{vg':v\in R\}$. Then we know that $$g=vg'~~~\text{and}~~~g'=ug$$for some $u,v\in R$. But Why can I then say that $v$ is invertible or how do I find an invertible element $\beta$?
Can someone help me and maybe also correct the part I just did?
Thanks a lot.