This is exercise 15.4.G. of Vakil's notes.
Let $\mathscr{L}$ be an invertible sheaf on an irreducible normal scheme $X$ with $s$ a rational section of $\mathscr{L}$. We want that $\mathscr{O}_X(\text{div}(s)) \cong \mathscr{L}$. The first part of the hint is to show that $\{U\subseteq X: \mathscr{O}_X(\text{div}(s))|_U\cong \mathscr{O}_X|_U\}$ forms a basis for the topology on $X$ which I think is just using that $\mathscr{O}_X(\text{div}(f_i))|_{U_i} \cong \mathscr{O}_X|_{U_i}$ with $U_i$ the trivializing open sets for $\mathscr{L}$ and $f_i$ the rational function corresponding to $s$ on $U_i$. What I am confused about is how to conclude the sheaves are isomorphic.
He says: on each $U$ where $\mathscr{O}_X(\text{div}(s))|_U\cong \mathscr{O}_X|_U$ let $\phi_U: \mathscr{O}_X(\text{div}(s))(U) \to \mathscr{L}(U)$ be given by $t\mapsto ts$ where $t$ is a "rational function with zeros and poles constrained by $s$." I cannot tell what he means by $t$ and $ts$ here. I am guessing that he means $t \in \mathscr{O}_X(\text{div}(s))(U)$ corresponds to some element $f$ of $\mathscr{O}_X(U)$ by our choice of open set and then we are really performing the map $t\mapsto fs$ which makes sense. But the dependence on the choice of isomorphism makes it very hard for me to think about gluing these together to some map on all of $X$ as the distinct isomorphisms for each $U$ don't have anything to do with each other.
Any clarification on what is going on here is greatly appreciated!
(Edit for detail since it isn't clear I've used the definition):
Here is what I have so far. Let $\{U_i\}$ be trivializing open subsets for $\mathscr{L}$ with $\psi_i: \mathscr{O}_X|_{U_i} \to \mathscr{L}|_{U_i}$ the isomorphisms. Say that $s\in \mathscr{L}(V)$ for a dense open $V \subseteq X$. Let $f_i = \psi_i^{-1}(s|_{U_i \cap V}) \in \mathscr{O}_X(U_i \cap V) \subseteq K(X)$ so that $\text{div}(s)|_{U_i} = \text{div}|_{U_i}(f_i)$ then we have $\mathscr{O}_X|_{U_i} \to \mathscr{O}_X(\text{div}(s))|_{U_i}$ given by $1\mapsto 1/f_i$ well defined since $\text{div}|_{U_i}(1/f_i) + \text{div(s)}|_{U_i}= 0 \geq 0$ and it is invertible (I think) since multiplication by $f_i$ takes $t\in \mathscr{O}_X(\text{div}(s))(U_i)$ to $t f_i$ which has $\text{div}|_{U_i}(t f_i) = \text{div}|_{U_i}(t) + \text{div}(s)|_{U_i} \geq 0$ since $t \in \mathscr{O}_X(\text{div}(s))(U_i)$ and normality ensures that this condition is enough that $t f_i \in \mathscr{O}_X(U_i)$. So the trivializing neighborhoods of $\mathscr{L}$ are also trivializing for $\mathscr{O}_X(\text{div}(s))$ and the former are a basis for $X$ since $\mathscr{L}$ is an invertible sheaf, so the first claim is fine. It is just not clear how to use these to get an isomorphism on all of $X$.