Proof (degree and ramification)

Surjectivity

Surjectivity follows from $ϕ$ is dominant and is a closed map, so $ϕ(V)$ is closed and dense so equals $W$.

Let's prove all but finitely many points are unramified. WLOG for the second part, we may assume $V,W$ are smooth and affine (by losing finitely many points, namely singular points and projective points at infinity).

Consider $$ \begin{align*} ϕ: V \xhookrightarrow{\id \times ϕ} V \times W \xrightarrow{π_2} W. \end{align*} $$ Since $\id \times ϕ$ is an isomorphism (as the inverse $π_1$ is a morphism), it identifies local rings, so the ramification index $e_P$ for $ϕ$ at $P\in V$ equals the ramification index of $π_2$ at $(\id \times ϕ)(P)$. Similarly, the degree of $π_2$ is the degree of $ϕ$, since $k(V) \simeq k((\id \times ϕ)(V))$. So WLOG, $ϕ = π_2|_{V}$.

Let $W \subseteq \mathbb{A}^m$ be with coordinates $y_1, \ldots, y_m$, and let $Q \in W$ be $(q_1, \ldots, q_m)$, so $\mathfrak{m}_Q = (y_1 - q_1, \ldots, y_m - q_m)$ (though it is also principal). Because $ϕ$ is a projection map, $ϕ^\ast$ acts as the identity on $y_i$, so we want to show if $Q = ϕ(P)$, then $$ \begin{align*} ϕ^\ast \mathfrak{m}_Q O_{V, P} = \mathfrak{m}_P = (y_1 - q_1, \ldots, y_m - q_m) O_{V,P}. \end{align*} $$ We know $ϕ^\ast: k(W) \hookrightarrow k(V)$, and $\deg ϕ = [k(V) : ϕ^\ast k(W)]$. By the theorem of primitive element, $k(V) = (ϕ^\ast k(W))[α]$ for some $α\in k(V)$. So we have $$ \begin{align*} \mathfrak{m}_P = (y_1 - q_1, \ldots, y_m - q_m, α - α(P)). \end{align*} $$ So we want to show $α - α(P) \in ϕ^\ast \mathfrak{m}_Q O_{V,P}$ for all but finitely many $P\in V$.

Let $p(\v y, x) = a_d(\v y) x^d + \ldots + a_1(\v y) x + a_0(\v y)$ be the minimal polynomial (note irreducible) of $α$ over $ϕ^\ast(k(W))$, with $d = \deg(ϕ)$. Clear denominators to assume WLOG $a_j$ are in $k[y_1, \ldots, y_m]$. ($α$ is ramified iff $α$ is a root of $p$ and derivatives of $α$.) Let $L$ be the algebraic closure of $k(y_1, \ldots, y_m)$. In $L$, we can factor $p(\v y, x)$ as $$ \begin{align*} p(\v y, x) ={}& a_d(\v y) \prod_{i=1}^{d} (x-α_i) \\ p'(\v y, x) ={}& da_d(\v y) \prod_{j=1}^{d-1} (x-β_j). \end{align*} $$ Consider $$ \begin{align*} R(p, p')(y_1, \ldots, y_m) := d a_d(\v y)^{2d-1} \prod_{i,j} (α_i - β_j). \end{align*} $$ By Galois theory (letting the Galois group act on this, this is the resultant), this is a polynomial in $y_1, \ldots, y_m$. $R(p,p')$ vanishes precisely when $a_d$ vanishes or $p$ and $p'$ have a common root. By irreducibility of $p$, $R(p,p')$ is not identically zero on $W$, because $p$ and $p'$ have no common factor. Therefore $\sb{Q\in W}{R(p,p')(q_1, \ldots, q_m) = 0} \subsetneq W$ is a proper closed subvariety, so finite, and call the complement of its preimage $U = \sb{P\in V}{R(p,p')(ϕ(P)) \neq 0}$, noting $V \setminus U$ is finite as each point has finite preimage.

If $P\in U$, then $$ \begin{align*} \frac{p(\v y, α) - p(\v y, α(P))}{α - α(P)}\in k(V) \end{align*} $$ is a unit in $O_{V,P}$, as the numerator only has one factor of $α - α(P)$. By construction, $p(\v y, α)\in ϕ^\ast I(V)$, and $p(\v y, α(P)) - p(\v q, α(P)) \in ϕ^\ast \mathfrak{m}_Q$. Since $α - α(P) = (\text{unit})(p(\v y, α) - p(\v y, α(P)))$, we have $α - α(P) \in ϕ^\ast \mathfrak{m}_Q$. So we have $ϕ^\ast \mathfrak{m}_Q O_{V,P} = (y_1 - q_1, \ldots, y_1 - q_1, α - α(P)) = \mathfrak{m}_P$ as needed.

$$ \begin{align*} \square \end{align*} $$

Sketch of the final statement (non-examinable): we have $ϕ^\ast : k(W) \hookrightarrow k(V)$. Fix $Q \in W$ and let $A := ϕ^\ast O_{W, Q}$. Define $B = \bigcap_{P\in ϕ\inv(Q)} O_{V,P}$. Then $ϕ^\ast: O_{W,A} \hookrightarrow B$ realising $B$ as a finitely generated torsion $A$-module. By the structure theorem for finitely generated torsion-free modules over a Euclidean domain, $B \simeq A^{\oplus r}$. We have $A \subseteq B \subseteq k(V)$ and $B$ is the integral closure of $A$ in $k(V)$ (i.e. any element $f$ of $k(V)$ which is a root of a monic polynomial with coefficients in $A$ is in $B$). From this it follows $[k(V) : ϕ^\ast k(W)]$ equals the rank $r$ of $B$ as an $A$-module. This is what's called "examining the degree of the function field on the generic fibre".

On the other hand, by the Chinese remainder theorem, $$ \begin{align*} B/ϕ^\ast \mathfrak{m}_Q B \simeq \bigoplus_{P\in ϕ\inv(Q)} O_{V, P}/ ϕ^\ast \mathfrak{m}_Q O_{V,P} = \bigoplus_{P\in ϕ\inv(Q)} O_{V/P}/\mathfrak{m}_P^{e_P} \end{align*} $$ by definition of $e_P$. So $r = \sum_{P\in ϕ\inv(Q)} e_P$ as needed. This is "studying the degree at a special fibre".

$$ \begin{align*} \square \end{align*} $$