Proof (canonical divisor of plane curves)

Apply a linear change of coordinates (which preserves hyperplane sections) to assume WLOG $(0:1:0)\not\in V$. Let $V = Z(f)$ where $f\in k[x_0, x_1, x_2]$ is homogeneous of degree $d$.

Affine patch $\set{x_0 \neq 0}$

Define $$ \begin{align*} x := \frac{x_1}{x_0}, \quad y := \frac{x_2}{x_0}, \quad F_0(x,y) := f(1, x, y). \end{align*} $$ Because $f(1,x,y) = 0$ for $(1:x:y)\in V$, taking differential gives $$ \begin{align*} 0 = \pdfd{F_0}{x} \d x + \pdfd{F_0}{y} \d y, \end{align*} $$ so define $$ \begin{align*} ω := \frac{\d x}{\partial F_0/\partial y} = -\frac{\d y}{\partial F_0/\partial x}. \end{align*} $$ In the affine patch $\set{x_0\neq 0}$ and for $P\in V\cap \set{x_0\neq 0}$, by smoothness either $\pdfd{F_0}{x}(P)$ or $\pdfd{F_0}{y}(P)$ is non-zero. If $\pdfd{F_0}{y}(P) \neq 0$, then $x - x(P)$ is a local parameter, so $$ \begin{align*} ν_P(ω) = ν_P\Bigl(\frac{1}{\partial F_0/\partial y}\Bigr) = 0, \end{align*} $$ and if $\pdfd{F_0}{x}(P) \neq 0$, then $y-y(P)$ is a local parameter, so $$ \begin{align*} ν_P(ω) = ν_P\Bigl(-\frac{1}{\partial F_0/\partial x}\Bigr) = 0. \end{align*} $$ Hence $\op{supp}(ω)$ lies on the hyperplane $\set{x_0 = 0}$, meaning $$ \begin{align*} ω = \sum_{P\in V \cap \set{x_0 = 0}} ν_P(ω) P. \end{align*} $$

Affine patch $\set{x_2 \neq 0}$

Next, consider the affine patch $\set{x_2\neq 0}$ and define $$ \begin{gather*} z := \frac{x_0}{x_2}, \quad w := \frac{x_1}{x_2}, \quad F_2(z,w) := f(z,w,1), \\ η := \frac{\d z}{\partial F_2/\partial w} = -\frac{\d w}{\partial F_2/\partial z}. \end{gather*} $$ As before, $\op{supp}(η)$ lies on $\set{x_2 = 0}$.

Relating $ω$ and $η$

We note that from definition $$ \begin{align*} F_0(x,y) = f(1,x,y) = y^{d} f\Bigl(\frac{1}{y}, \frac{x}{y}, 1\Bigr) = y^d F_2\Bigl(\frac{1}{y}, \frac{x}{y}\Bigr) \end{align*} $$ so $$ \begin{align*} \pdfd{F_0}{x}(x,y) = y^{d-1} \pdfd{F_2}{w}\Bigl(\frac{1}{y}, \frac{x}{y}\Bigr) = z^{1-d} \pdfd{F_2}{w}(z, w). \end{align*} $$

Moreover, taking the differential of $y = 1/z$ gives $$ \begin{align*} \d y = -\frac{\d z}{z^2}. \end{align*} $$

Substituting, $$ \begin{align*} ω = -\frac{\d y}{\partial F_0/\partial x} = \frac{z^{-2} \d z}{z^{1-d} \partial F_2/\partial w} = z^{d-3} η. \end{align*} $$ Therefore for $P\in V \cap \set{x_0 = 0}$ (and noting $x_2(P) \neq 0$ by assumption) $$ \begin{align*} ν_P(ω) = (d-3) ν_P(z) + \underbrace{ν_P(η)}_{0} = (d-3) ν_P(H) \end{align*} $$ and hence $$ \begin{align*} ω = (d-3) H. \end{align*} $$