Use the positive orientation shown in the source: the upper bank runs outwards and the lower bank returns towards one. On those banks the logarithm branch has values ℓ−iπ and ℓ+iπ, respectively, with ℓ=log(x−1). Their squared difference is −4iπℓ. The residue theorem therefore gives
The large-circle contribution is O(R−2log2R) and the small circle about one contributes O(ε∣logε∣2), both tending to zero. These estimates justify replacing the closed contour integral by its two cut-bank integrals.