The exercise that I'm having trouble with is the following.
Hartshorne II.6.4: Let $k$ be a field of characteristic $\neq 2$. Let $f \in k[x_1, \dots x_n]$ be a square free nonconstant polynomial, i.e. in the unique factorization of $f$ into irreducible polynomials, there are no repeated factors. Let $A=k[x_1 \dots x_n,z]/(z^2-f)$. Show that $A$ is an integrally closed ring. [Hint: The quotient field $K$ of $A$ is just $k(x_1, \dots x_n)[z]/(z^2-f)$. It is a Galois extension of $k(x_1, \dots x_n)$ with Galois group $\mathbb{Z}/2\mathbb{Z}$ generated by $z \mapsto -z$. If $\alpha=g+hz \in K$, where $g,h \in k(x_1, \dots x_n)$, then the minimal polynomial of $\alpha$ is $X^2-2gX+(g^2-h^2f)$. Now show that $\alpha$ is integral over $k[x_1, \dots x_n]$ if and only if $g,h \in k[x_1, \dots x_n]$. Conclude that $A$ is the integral closure of $k[x_1, \dots x_n]$ in $K$.]
Even with the hint I have two questions.
1) Why do I require $f$ to be square-free? I know that I do not want $f$ to be a square, because then $(z^2-f)$ would not be a prime ideal in $k[x_1, \dots x_n,z]$. I cannot see where square-free is used though.
2) For $\alpha=g+hz$ with $g,h \in k(x_1, \dots x_n)$, the minimal polynomial over $k(x_1, \dots x_n)[z]$ is exactly the one given above. However, why couldn't there be some OTHER monic polynomial $s \in k[x_1, \dots x_n][z]$ such that $s(\alpha)=0$? I don't understand why $\alpha$ integral over $k[x_1, \dots x_n]$ forces $g,h \in k[x_1, \dots x_n]$.