I have a holomorphic function $f: \mathbb{C} \setminus \{0\} \rightarrow \mathbb{C}$, and I wish to extend $f$ to a holomorphic function $\tilde{f}: \widehat{\mathbb{C} \setminus \{0\} } \rightarrow \hat{\mathbb{C}}$ where $\widehat{\mathbb{C} \setminus \{0\} }$ is homeomorphic to the Riemann sphere by adding two points at infinity.
I believe that it suffices to determine where these two points at infinity go, so it seems that I should map both of them to $\infty$ in $\hat{\mathbb{C}}$. (In the more specific context of the problem I'm working on, I also have to show that $\tilde{f}$ is a double branched cover.) However, I'm struggling to show that $\tilde{f}$ is holomorphic that at these two points at infinity. I've tried computing the derivative directly by definition, but I'm running to issues involving arithmetic with $\infty$.
Please let me know in the comments if you need the complete context of the problem in case this is not enough information.