A non-singular projective curve $X$ is covered by two affine pieces (with respect to different embeddings) which are affine plane curves with equations $y^2 = f (x)$ and $v^2 = g(u)$ respectively, with f a square-free polynomial of even degree 2n and $u = 1/x, v = y/x^n$ in $K(X)$. Determine the polynomial g(u) and show that the canonical class on X has degree $2n − 4$. Why can we not just say that $X$ is the projective plane curve associated to the affine curve $y^2 = f (x)$?
First course in algebraic geometry, $k$ is closed. I'd appreciate if someone could check my solution here, I found this question conceptually very difficult. I don't really know how to picture whats going on. I think $y^2=f(x)$ is supposed to describe the 'finite' points of the curve and $v^2=g(u)$ describes the behaviour at infinity, and this distinguishes it from usual homogenization. It turns out (below), this only corresponds to two points at infinity, $(u,v)=(0,\pm 1)$. Yet the result implies the curve is genus $n-1$, which is very non-intuitive.
$g(u)=u^{2n}f(1/u)$ -- algebra omitted.
I take $\omega = dx$. $x-x_0$ is a local parameter at points $(x_0,y_0)$ with $y_0\neq 0$ and by construction this has no zeros or poles. When $y_0=0$, $y$ is a local parameter and we write $$\omega = \frac{2y}{f'}dy$$. We know that $f'$ is a unit at these points so we can ignore it. There are $2n$ distinct points of the form $(x_0,0)$, so we have counted $2n$ zeros of $\omega$ so far.
Now, we need to look at infinity. If $u\neq 0$, then the map between embeddings tells us we have already looked at that part, so the remaining points to look at are when $u=0$. At these points, $v^2=g(0)=1$ so we need to look at $(0,\pm 1)$ and $u$ is a local parameter here (just as $x-x_0$ was), so writing $$\omega = \frac{-1}{u^2} du$$ we see there is a pole order 2 at each of these points.