Let $A \subseteq B$ be an integral extension of integral domains. Suppose $P \in \mathrm{Spec}(A)$ and $Q \in \mathrm{Spec}(B)$ is the unique prime ideal lying above $P$. Prove that $B_Q=B_P$.
My attempt: since $P=Q\cap A \subseteq Q$, we have $B_Q \subseteq B_P$. For the converse, suppose $b/s \in B_P$. Then $s \not\in P$. Since $P=Q \cap A$, we have $s \not\in Q \cap A$. That is, $s \not\in Q$ or $s \not\in A$. If it's the former, then that's what we want. If it's the latter, how should I arrive at a contradiction?
I don't know how to use the condition that $B$ is integral over $A$. If $s$ satisfies the equation $s^n+a_{n-1}s^{n-1}+\cdots+a_1s+a_0=0$ for some $a_{n-1},\ldots,a_0 \in A$. What can that do for me?
Can anyone give me a hint? Thank you!
Look at $B_P|_{A_P}$ which is an integral extension. The fact that only one prime lies over $PA_P$ implies $B_P$ is local. Also observe that $QB_P$ has to be the unique maximal ideal of $B_P$. Thus anything outside $Q$ is a unit in $B_P$ and hence $B_Q$ =$B_P$