Use the branch of the complex logarithm with , so the branch cut is the positive real axis, and take on the same slit plane. Apply the residue theorem to
on a positively oriented keyhole contour with inner radius and outer radius . The upper bank travels from to , the large circle counterclockwise, the lower bank from to , and the small circle clockwise. One may first keep the banks at small nonzero angles and then take their limits.
On the upper bank, and is positive. On the lower bank, the corresponding limits are and . Reversing the lower-bank orientation therefore makes the sum of the bank integrals tend to
Both are absolutely convergent: near zero compare with , and near infinity with . On the large circle, , so its contribution is . On the small circle it is . Both tend to zero.
The two simple poles are and . On the chosen branch their arguments are and , respectively. Consequently their residues are
For example, the first follows from , and the derivative of the denominator factor . The second uses , rather than the value from the principal square-root branch. Adding and applying the residue theorem yields
As is real, taking real parts gives
The imaginary part also gives , an independent consistency check on the orientation and branch factors.
The tangent half-angle substitution maps to , with
Because , both and are positive. Thus
Evaluating the improper integral gives
Although the change of variable has an infinite endpoint, the original integrand is continuous on the closed interval, and the transformed integrand decays as , so the limiting substitution is justified.
Inside the unit circle, use the geometric series for :
Outside the unit circle, expand in powers of instead:
The different Laurent series reflect different annuli separated by the pole at one. Both follow from absolutely convergent geometric series in their stated regions.
The Laurent theorem states that a holomorphic function on the annulus has a unique Laurent series
The integration circle is counterclockwise. The series converges absolutely at every point of the annulus and uniformly on every compact subannulus. The coefficient integrals are independent of the choice of by the Cauchy integral theorem applied between two such circles. These statements include or when the indicated annulus has those endpoints.

There are unlisted articles, also show them or only show them.