Regarding the same homework problem as this question:
A curve (projective, irreducible, smooth) $V$ 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 > 4$ and $u = 1/x$, $v = y/x^n$ in $k(V)$. Determine the polynomial $g(u)$ and show that the canonical class has degree $2n - 4$. Why can we not just say that $V$ is the zero locus of the homogenization of $y^2 = f(x)$?
Here $k$ is an algebraically closed field of characteristic $0$.
I'm having a hard time wrapping my head around the setting of this problem.
For one, could $V$ live in $\mathbb P^n$ for any $n$?
When the question says "affine pieces", one way to interpret this is to take $V \cap U_0, \dots V \cap U_n$, where $U_i$ are the standard affine patches of $\mathbb P^n$, and take $x$ and $y$ to be coordinates resulting from dehomogenization. However, since the question talks about embeddings, and indicates that $x,y,u,v$ are elements of $k(V)$, another way I think of interpreting this is that $x,y,u,v$ are general rational functions on $V$, and $V = U_1 \cup U_2$ so that e.g. $U_1 \to \mathbb P^2$ given by $(x:y:1)$ is an isomorphism (onto its image). Which way is intended?
From the given equations we get $y^2 = x^{2n}g(1/x)$ on the second affine piece. The natural next step is to declare that $f(x) = x^{2n}g(1/x)$, and then get $g$. But why should this hold?