Is the map $f^*:\mathrm{Spec}(S) \to \mathrm{Spec}(R)$ injective or surjective where $f: R \to S$ is a ring homomorphism.
I know that if $P$ is a prime ideal in $S$, then $f^{-1}(P)$ is a prime ideal in $R$.
I think it is injective but cannot show why.
Take $$k\to k[x]$$ then $\rm{spec} \ k$ has one element, so it cannot be injective.