For , the beta-integral evaluation gives
Differentiation under the integral sign near is justified by domination at zero and infinity. Therefore
Writing gives
Since
the logarithmic moments of the Cauchy kernel yield
The same expansion gives , agreeing with the supplied identity.
Choose a branch of the complex logarithm with , placing its branch cut down the negative imaginary axis. Thus for , while on the negative real axis for .
Integrate around an upper semicircle, with a small clockwise semicircular indentation above zero. The large arc contributes , and the small arc contributes . The only enclosed pole is , with
Writing for the required integral, the negative real segment contributes . Hence the residue theorem gives
The imaginary terms cancel, leaving
The integral converges at both endpoints because is integrable near zero and is integrable at infinity. As a real-variable check, scaling reduces the result to the vanishing first logarithmic moment at , one of the logarithmic moments of the Cauchy kernel.