Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If I understand correctly, you should take the Riemann surface of this function in the complex 2-space with coordinates (x, y), and integrate the form dx/y along the path which lifts this interval to one branch until the branching point, then goes around this point and goes back along another lift of this interval, but on a different branch.
There is a detailed argument in this paper arxiv.org/pdf/1504.04405.pdf The Origins of Complex Geometry in the 19th Century (Raymond O. Wells, Jr.), Section 6