Theorem (canonical divisor of plane curves)
Let $V\subseteq \mathbb{P}^2$ be a plane curve of degree $d\geq 3$.
For any hyperplane section $H$, $$ \begin{align*} K_V = (d-3) H \end{align*} $$ is a canonical divisor. Therefore $$ \begin{align*} \deg K_V = (d-3)d. \end{align*} $$ In particular, this $K_V$ arises from dehomogenisation: if $H = \set{x_0 = 0}$ and $V = Z(f)$, then writing $x = x_1/x_0$, $y = x_2/x_0$, $F_0 = F(1,x,y)$, $$ \begin{align*} K_V = \frac{\d x}{\partial F_0/\partial x} = - \frac{\d y}{\partial F_0/\partial y}. \end{align*} $$