For an entire function , let with noninteger real , and choose the branch of the complex logarithm with . On the cut ray , the bank whose argument approaches has value , while the other bank has argument approaching and value . The signed jump is therefore when defined as . Stating the branch and order of subtraction removes the sign ambiguity. A keyhole contour uses this phase relation to convert its two bank integrals into a constant multiple of one real or radial integral.
On choose the continuous argument , and putThis is holomorphic on the slit plane for every fixed . The upper boundary value at is , whereas the lower boundary value is . This difference is exactly what the keyhole contour measures.
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 toon 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 toBoth 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 areFor 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 yieldsAs is real, taking real parts givesThe imaginary part also gives , an independent consistency check on the orientation and branch factors.
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 1 8C Solution Created 2026-09-24 Updated 2026-10-14
Near zero the magnitude of the integrand is of order , and at infinity it is of order . Thus the improper integral converges exactly in the stripAt a boundary of this strip the logarithmic-variable oscillation has no limiting primitive, so conditional convergence does not enlarge it.
Use a keyhole contour about the positive real axis for , taking . The circular arcs vanish in the indicated strip. The upper and lower banks contribute . The only enclosed pole is the double pole at , whose residue is . The residue theorem therefore givesAt the quotient has a removable singularity, with limit one, agreeing with .
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 1 6B Solution Created 2026-09-24 Updated 2026-10-06
Introduce the Mellin transform integral , valid for . A keyhole contour for with has residues and , with the latter argument . The two sides of the positive-axis cut give . The small and large arcs vanish in this strip; simplifying the residue theorem identity yieldsDifferentiation under the integral is valid on compact substrips because the extra is dominated at both endpoints. ThereforeAt , the requested values are
For this real integral choose , so the upper bank of the positive real axis has . Use a counterclockwise keyhole contour with inner radius and outer radius , enclosing . The upper-bank contribution tends to . On the lower bank, , and the reversed orientation makes its contribution .
The large arc is because , while the small arc is . Both vanish, givingThe residues on this branch areThe residue theorem yieldsThereforeThe branch cut in (a) was arbitrary; here placing it on the integration axis makes the bank contributions directly proportional to the desired positive-real integral.
Use a counterclockwise keyhole contour around the positive real branch cut, with small radius and large radius . On the upper bank , so the integral tends to . On the lower bank , , giving the negative of the upper-bank integrand. That bank is traversed from to , so its contribution also tends to .
The outer circle contributes , since and its length is . The small circle contributes , since . Both vanish. HenceThe contour encloses both double poles but excludes the branch point.
Keyhole contour around the positive real branch cut
. The upper bank runs outwards and the lower bank runs inwards. The large circle is counterclockwise and the small circle is clockwise; both poles lie inside the contour. The gaps are enlarged for visibility. Details.Use the principal logarithm with , whose branch cut is the negative real axis. For this choice,has three simple poles away from the cut: , , and . The pole at , caused by , must be included.
Choose and , and use a positively oriented keyhole contour around the negative real axis: the large circle is traversed counterclockwise, the upper bank from to , the small circle clockwise, and the lower bank from to . Formally, use radial segments at arguments , then let with fixed. The function has continuous limiting values on each compact bank, which justifies this limit.
Put . The residues areThe first follows from ; the other two follow from the simple zeros of . Their sum isThese expressions are valid also for , since never vanish for real .
On the outer circle, for and . On the inner circle, and . Thus the estimation lemma bounds the two arc integrals byrespectively, as and .
On the upper bank, gives ; on the lower bank it gives . Accounting for the opposite orientations, their combined integral isThe real improper integral converges: its integrand is bounded near zero by and at infinity by . Taking the arc limits in the residue theorem gives , henceThe final subtraction is exactly the contribution of the pole at .


