Consider the meromorphic function
Close the contour with a large semicircle in the upper half-plane, indenting above the three real pole . The large-arc integral vanishes by Jordan's lemma, while the upper-half-plane indentation rule gives
The three residue are
Their sum is , so the residue theorem yields
The real part of the integrand is an odd function, so its full-line principal value is zero. Its imaginary part,
is an even function. Taking imaginary parts and halving the full-line integral therefore gives
Use the upper half-disc of radius , with a clockwise semicircular indentation of radius above zero. The integrand is holomorphic inside that indented contour, so its total integral is zero. On the large arc,
because , and . Its integral has modulus at most and vanishes as .
On the small clockwise arc, , so the integral tends to . Therefore the remaining real-axis integral satisfies
The imaginary part is even and is an ordinary absolutely convergent integral: near zero its integrand tends to , and at infinity it is . Taking imaginary parts gives
The complex integral needs the Cauchy principal value because its real part has a singularity; the requested sine-product integral does not. This sine-product integral with inverse-square weight is an application of the upper-half-plane indentation rule.
By symmetry assume and integrate around an upper semicircle indented clockwise above zero. The residue at zero is . The expansion bounds the large arc by , including when . The upper-half-plane indentation rule therefore gives . Its imaginary part is even and ordinarily integrable, yielding the displayed value. At zero the sine-product integrand tends to ; at infinity it is bounded by . The principal value is needed for the auxiliary complex integral, not for the real sine-product integral.