Let $R$ be a ring, and let $P$ be a prime ideal of $R$. Let $S = R \setminus P$, and set $R_p = S^{-1} R$.
What are the units in $R_p$? I'm trying to prove that $\frac{a}{b}$ is an unit if and only if $a \in S$, but I'm having trouble.
One direction is easy as if $a \in S$, $\frac{b}{a} \in R_p$, which is the desired inverse.
The other direction is giving me some trouble.
So we let $\frac{a}{b}$ be an unit, and we find its inverse $\frac{a'}{b'}$. Then $\frac{aa'}{bb'} = \frac{1}{1}$ This means there exists $t \in S$ such that $taa' = tbb'$, but I have no idea how to proceed from here.
Thanks for your help!