The following is from Exercise 14.2.A of Ravi Vakil's algebraic geometry notes (page 401 here). The exercise asks us to consider the rational section $\frac{x^2}{x+y}$ of the sheaf $\mathcal{O}(1)$ on $\mathbb{P}_{k}^1$ and to compute the corresponding Weil divisor of poles and zeroes. I have a solution but it seems to go against what I think should be intuitively true so I was hoping someone could check it for me.
First of all, it seems to me that intuitively the resulting Weil divisor should be $2[(x)] - [(x+y)]$. However, let me explain my reasoning that led to a different result.
To compute the divisor of a rational section of an invertible sheaf we first have to choose a trivialisation. The obvious choice here is to trivialise on the open subset $D_+(x+y)$ of $\mathbb{P}^{1}$. This gives a trivialisation,
$$ \Psi: \mathcal{O}(1)|_{D_{+}(x+y)} \stackrel{\times \frac{1}{x+y}}{\longrightarrow} \mathcal{O}|_{D_{+}(x+y)}. $$ On sections, we obtain a map on the ring of homogenous polynomials, $$ \Psi_{D_{+}(x+y)}: k \Big[ \frac{x}{x+y}, \frac{y}{x+y} \Big] \cdot (x+y) \longrightarrow k \Big[\frac{x}{x+y} , \frac{y}{x+y}\Big]. $$ Then under this trivialisation, we obtain a section of the field of rational functions on $\mathbb{P}^{1}$. Namely we obtain the quotient of homogenous polynomials of the same degree, $$ \frac{x^2}{(x+y)^2}. $$ This then of course gives a Weil divisor of poles and zeroes of $2[(x)] - 2[(x+y)]$.
My confusion is that Ravi seems to say that you need to choose a trivialisation to compute this Weil divisor. But then of course a result of this is that ever single rational section of a line bundle on $\mathbb{P}^{1}$ gives a Weil divisor of degree $0$, since after choosing a trivialisation we will always have a quotient of homogenous polynomials of the same degree. I thought that was only true for principle Weil divisors, not locally principal.
So which answer is correct, my initial intuition, or the answer I obtained by doing the calculation through a trivialisation?