I have a question concerning one of the exercises of Hartshorne, Ch. II. Namely: Exercise 3.7 about gerneically finite morphisms.
A morphism $f: X \rightarrow Y$ with Y irreducible and $\eta$ generic point of Y, is called generically finite, if $f^{-1}(\eta)$ is a finite set. Now let $f: X \rightarrow Y$ be a dominant, generically finite morphism of finite type of integral schemes. Show that there is an open dense subset $U \subseteq Y$ sth. $f^{-1}(U) \rightarrow U$ is finite.
As a hint, one should prove first that the function field of $X$ is a finite field extension of the function field of $Y$.
I have started with the affine case: $X = \operatorname{Spec}\ A$, $Y = \operatorname{Spec}\ B$ with function fields $K$ resp. $L$. The assertion that $K$ now is a finite field extension of $L$ follows from Noether's Normalization theorem and Zariski's Lemma.
But how can I proceed from there? I would be grateful for an idea to help me go on. Thank you!
Here's a diagram of the algebraic setup. All the arrows are inclusions. $$ \require{AMScd} \begin{CD} A @>>> A \otimes_B L @>>> K\\ @AAA @AAA\\ B @>>>L \end{CD} $$ Since $K$ is finite over $L$ you know that algebra generators for $A$ over $B$ satisfy monic polynomials with coefficients in $L$. If you localize $B$ at a well-chosen element $f$ you can upgrade this statement!