@robjohn This answer of mine
math.stackexchange.com/questions/780913/…, which I remember you were talking about with someone on chat a while ago and seemingly didn't find any issues with, is bothering me. Does the integral on the first line actually exist as a Cauchy principal value? I'm not familiar with a definition that pertains to non integrable singularities at both endpoints.