The residue theorem states that a meromorphic function with finitely many poles inside a positively oriented simple closed contour and none on it satisfies . The function must be holomorphic on a neighbourhood of the contour and its interior away from those poles.
Write and . Both integrals converge absolutely. Use the principal complex logarithm in the upper half-plane, with , and an upper semicircle of radius indented above zero by a clockwise semicircle of radius . The branch values on the negative real side are upper limits; equivalently use contours arbitrarily slightly above that side before taking a limit.
For , the large arc is and the small arc is , so both vanish. On approached from above, and . The oriented negative segment therefore contributes , and the positive segment contributes . The only enclosed pole is , with residue
Consequently
Comparing imaginary and real parts yields the upper-half-plane contour for square-root logarithmic integrals evaluation:
For , the principal value of complex exponentiation is , where the principal complex logarithm is with . De Moivre's theorem states that for every integer .
Since , the six roots are
Use the principal complex logarithm, for which , and set
Then the definition of complex exponentiation gives
and therefore
Other choices of branch of the complex logarithm produce further valid answers.
Write with . On a fixed branch of the complex logarithm on which and , the equation becomes
Its real and imaginary parts give the same condition , or
This is a logarithmic spiral. For the principal complex logarithm, it is the portion parametrized by that avoids the branch cut.
Principal cube root 2026-10-05
The principal cube root is using the principal complex logarithm. In the right half-plane, its complex argument lies between and . Consequently the roots of consist of one root with negative real part, , and two with positive real part, .
Set and . In an indented upper semicircle use the principal complex logarithm and . The negative real boundary contributes , the positive boundary contributes , and both circular arcs vanish. The pole at has residue . Thus ; comparing real and imaginary parts yields the displayed integrals.