I'm trying to solve this Algebra Problem, and I'm not quite sure, if I'm on the right way.
Let $R$ be a commutative ring and $S \subset R$ a multiplicative subset. Show that $p \to pS^{-1}R$ defines a bijective map from the set of prime ideals of $R$ disjoint from $S$ to the set of prime ideals of the localization $S^{-1}R$.
This is what I did until now:
let $f$ be the map from the set of prime ideals over $R - S$ (let's call it P) to the set of prime ideals over $S^{-1}R$ (let's call it Q) So $f(p)=pS^{-1}R$
to show bijectivity of $f$, we have to show that $f$ is injective and surjectiv. for the injectivity, assume there are 2 prime ideals $A,B \in Q$ with $A=B$ ,therefor we could write $A=aS^{-1}R$ and $B=bS^{-1}R$ (this should follow from the surjectivity) and this implies $aS^{-1}R=bS^{-1}R$ and hence $a=b$, so $f$ is injectiv.
But now I don't know how to show the surjectivity. I mean why can I write an prime ideal in $S^{-1}R$ as a product $AS^{-1}R$ with $A$ a prime ideal in $R-S$ ???
Perhaps I should also mention how we defined the localization. Let $S \subset R$ be an multiplicative subset and R a commutative ring. then $S^{-1}R := S\times R / \sim$ where $(r,s)\sim (r',s') : \Leftrightarrow \exists p \in S$ s.t. $p(rs'-r's)=0$
Could somebody give me a hint how to show surjectivity?