Let X be an integral scheme of finite type over an arbitrary field $k$. Let $f:X\to {\mathbb{P}}^{1}$ be a dominant morphism. What is meant by the rational function of $f$? Fulton uses the notation $\text{div}(f)$ but it is not at all clear to me how to obtain a rational function from a dominant morphism to the projective line.