Following exercises in Atiyah-Macdonald, I am led to prove the following:
Let $\phi:A \rightarrow B$ be a ring homomorphism, and let $X = \operatorname{Spec}{A}$ and $Y = \operatorname{Spec}(B)$ be the prime spectra of $A, B$, endowed with the Zariski topology. We denote by $\phi^*$ the induced map between spectra $\phi^*:Y \rightarrow X$.
Show that if $\phi$ is surjective, then $\phi^*$ is a homeomorphism onto its image.
I have so far shown that $\phi^*$ is a continuous map. I have also shown that when $\phi$ is surjective, $\phi^*$ is injective. Thus $\phi^*$ is a continuous bijection onto its image. It remains for me to show that $\phi^*$ is an open (or equivalently a closed) map. Any tips on how to go about this ?