Choose . The inverse integrand is . Because , the exponential factor decays towards the left. Closing the Bromwich contour to the left and using the residue theorem picks up just the simple pole at , with residue . Hence
Its defining integral checks both the answer and its convergence condition:
Choose the square root of one minus z squared with : explicitly with principal square roots. It is single valued and holomorphic away from the two specified exterior real branch cuts. If for , its boundary values are
For example, above the right cut approaches the negative real axis from below, selecting ; above the left cut approaches it from above, selecting . Continuing once around either branch point changes the sign, which explains the need for cuts.
Apply the residue theorem to on a large disk slit along both cuts, with small arcs excluding . The only enclosed pole is at zero, and its residue is . On the positively oriented boundary of the slit domain, the upper right lip runs from one to , and the lower right lip returns from to one. The jump in gives their combined integral as , where . The left lips similarly give after the substitution .
Figure 1.
A contour around the two exterior square-root cuts
. Original schematic. The two slit boundaries are traversed with the retained domain on the left; each contributes twice the same real integral multiplied by i. The sole enclosed pole is at zero. Details.
The small arcs contribute because the branch singularities have order . The large arc contributes because . Taking limits therefore yields , and hence
The real substitution independently reduces the integral to , confirming its value and sign.
The residue theorem states that a positively oriented simple closed contour enclosing isolated poles and none on the contour has integral times the sum of their residues, provided the function is holomorphic elsewhere inside. Near a simple zero of , . Hence
For , this gives for every integer .
To evaluate the real integral, integrate around an upper semicircle, with a small upper semicircular indentation excluding zero. Use the branch real on the positive axis and with argument between zero and in the upper half-plane. The large arc tends to zero as and the small arc as . The only enclosed pole is , whose contribution is
On the negative real axis the upper boundary value is . The two real segments therefore contribute
Comparing real parts yields
The integral is absolutely convergent at both zero and infinity, so no principal-value interpretation is needed.
A pole of order at has extending holomorphically to a nonzero value there. Its residue is the coefficient of in the Laurent series. The Cauchy integral theorem gives for a closed contour in a simply connected domain of holomorphicity. The residue theorem replaces zero by times the enclosed residues for a positively oriented simple contour avoiding finitely many poles.
For the first integral, use the upper-half-plane semicircle, with a small clockwise upper semicircle excluding the origin. Near zero,
There are no poles inside the indented contour. The large arc vanishes because and the integrand there is ; the small arc tends to . Therefore the real-axis complex principal value is . Taking real parts gives the ordinary convergent cosine-difference inverse-square integral
The real numerator cancels to second order at zero, so this final real integral itself needs no principal-value convention.
For , the simple poles are , . Differentiating the denominator gives
Integrate around the rectangle with vertices . It contains only . On the top side , and reversed traversal therefore contributes times the bottom integral. The vertical sides vanish for . The residue theorem gives , so the exponential moment of the hyperbolic secant is
Figure 1.
Indented semicircle and height-one rectangle for the two real integrals
. Original contour diagrams. The left contour excludes the origin with a clockwise indentation; the right encloses only the pole . Other hyperbolic-secant poles are shown outside the rectangle. Details.
For a pole of order at , the residue is . For the rational integral, close the real-axis contour with an upper semicircle. The poles are double at and simple at , with
The arc integral vanishes as . By the residue theorem the whole real-axis integral is , and evenness gives
For the second calculation, reciprocal expansion of the sine gives . Multiplying by yields . Therefore
At every nonzero integer , has a simple pole with residue one, giving residue after division by .
The cotangent contour summation uses the positively oriented square of half-side . Its length is and on its boundary. The supplied cotangent bound implies . Its enclosed residues sum to . The residue theorem therefore proves the Basel problem value
Figure 1.
Upper-half-plane and square contours for the rational integral and the Basel sum
. Original contour diagrams. Both are counterclockwise. The upper semicircle encloses poles at and ; the example square has half-side , enclosing the integer poles from to . Details.
The residue theorem states that the contour integral of a meromorphic function around a positively oriented simple closed contour equals times the sum of its enclosed residues, provided there are no singularities on the contour. The roots of are , . They are simple poles, with residues .
Use the sector contour of angle , running outward along the positive axis and inward along the rotated ray. It encloses only . The large-arc contribution is , hence vanishes. With , the two ray contributions give
Since ,
For the second integral, use on a branch continuous across the sector away from zero, with a small inner arc of radius . Its large arc is and its small arc is , both vanishing for . On the rotated ray, changes by , so the two radial contributions add rather than subtract. The enclosed residue is . Consequently
Both answers are instances of the Mellin integral of a reciprocal binomial. The direct contour argument also tracks the branch needed when is odd.
Figure 1.
A sector encloses exactly one root of the denominator
. An original illustrative contour for , with outward and inward rays, an outer arc, and the inner indentation needed for a fractional power. Only the root at angle is enclosed. Details.
For a simple pole, the residue is , the coefficient of its Laurent series. On an anticlockwise circle , integration of each Laurent term is zero except , whose integral is . This proves the stated single-pole residue theorem.
For , the only pole inside the rectangle of height is , with residue . The residue theorem therefore gives . The upper edge is traversed from right to left and satisfies , so the two horizontal contributions sum to .
On the right edge the modulus is bounded by , and on the left by . Multiplying by the fixed edge length shows that both contributions tend to zero because . Thus
Using yields
This rectangular contour for an exponential beta integral also gives the ordinary beta integral after the substitution .
Use . Jordan's lemma says that for , if a function has maximum modulus on upper semicircles, then ; a bound is . For use lower semicircles instead. The rational factors here meet this decay condition, so the residue theorem evaluates their inverse transforms.
For , only the upper half-plane contains a pole, at . Its residue after multiplication by is . The lower contour encloses no pole. Therefore
Here is the Heaviside step function, with midpoint value for symmetric Fourier inversion.
For , the upper-pole residue is when , while the clockwise lower contour gives the matching expression for . Thus
The final rational factor has double poles at . At the upper pole,
The upper inverse integral is times that residue. The lower contour for negative supplies , and the value at zero is zero. Consequently
Split the Fourier transform integral at zero:
By Fourier inversion applied to this pair, or by the residue theorem, the other transform is
For example, inversion with gives ; evenness supplies the desired sign convention.
Take the spatial Fourier transform of the Laplace equation. For it gives . Removing the exponentially growing solution and matching the boundary gives
At this formula is interpreted by continuity; a single transform value does not alter the inverse integral. The previous transform pair identifies
the Poisson kernel for the upper half-plane. The convolution theorem therefore gives the Poisson integral
This is the bounded harmonic solution for bounded decaying data, or the corresponding solution in an appropriate Fourier class. Such a growth condition matters if vertical decay is interpreted only pointwise: the nonzero harmonic function vanishes on the real axis and tends to zero for fixed as , but grows rapidly in and has no ordinary spatial Fourier transform. It can be excluded by requiring boundedness; the stated pointwise limits alone would not establish uniqueness.
For the interval data, direct integration gives the Poisson extension of interval boundary data
As it approaches for , zero for , and at . At those jump points the prescribed isolated values cannot be attained by a continuous extension; they do not affect the integral. The solution decays vertically, with for fixed and large .
Put and . The denominator of the complex rational function becomes
The quadratic formula gives its two zeros, hence the two poles:
Their product is , so . To locate them one also needs to exclude the possibility of both lying on the unit circle. Here their moduli are explicit:
Both are simple poles: takes the nonzero values and at them. In particular their residues are and .
For the real integral, use the change of variables . As runs from to , this traverses the unit circle once counterclockwise, and
Thus . Only is enclosed. The residue theorem, or Cauchy integral formula after subtracting its simple-pole part, gives
The real denominator is positive because . As an independent check, write ; a period shift reduces the answer to the existing reciprocal affine sine integral.
For a positively oriented simple closed contour , with no pole on and with holomorphic inside except at finitely many poles, the residue theorem states
For a more general closed contour, each residue is multiplied by its winding number about the pole.
The powers must be defined using the same branch of the complex logarithm as the numerator. A branch suitable for both requested calculations is
The branch cut is a ray just below the positive real axis, and . Since , the displayed choice of is possible. It includes the required upper half-plane and the sector used below. The origin remains an excluded branch point.
In , all zeros of are
Each is a simple pole, since . Its residue is
The strict inequality matters if a root lies on the negative real axis, which is outside the specified region.
To evaluate the two improper integrals, write them as for the logarithmic numerator and for numerator one, and set , . Use a counterclockwise annular sector with and . It encloses precisely . The outward positive-axis segment contributes in the limit. On the inward segment , the logarithm is and , so that segment contributes .
The small arc is , and the large arc is ; both vanish. These estimates follow from the arc lengths and . The real integrals also converge absolutely at both endpoints for . The residue theorem now gives
After division by , the real and imaginary parts are
Since , . Hence the logarithmic beta integral from a sector contour yields
For the sector angle exceeds . This is why choosing the principal complex logarithm on the whole sector would be invalid; the displaced cut above handles that range as well as .
For , use . The interval traverses once counterclockwise, , and . Thus
Put . The two simple poles are
Their moduli are and , so exactly is enclosed, for either sign of . Its residue is
The residue theorem yields
This also follows from the reciprocal affine sine integral after an angular shift. At , the original integral is directly , agreeing with the boxed formula. The displayed two-pole formulas require : at zero the contour integrand reduces to with a single pole. Thus the source's claim of two simple poles has this removable special-case exception.
The integrand has simple poles at and . Only the first is inside the upper contour, and its residue is
The residue theorem therefore gives, for every ,
On the upper semicircle, and . The estimation lemma bounds the arc contribution by . Hence the real-axis integral has the same limit, and taking its real part gives
The imaginary part vanishes independently because is odd. The real integral converges absolutely, since the denominator grows quadratically.
The only possible singularity of inside the contour is at , with residue . It is at most a simple pole; when , it is removable. Thus the residue theorem gives the Cauchy integral formula,
for a counterclockwise simple contour containing once, with analytic on a neighbourhood of the contour and its interior. More generally the answer is , where the winding number accounts for multiple turns or reversed orientation. A clockwise simple contour has the opposite sign.
Use the principal branch of the complex logarithm for . Its branch cut is the ray , , lying below the real axis. Thus it is analytic in the upper half-plane, where the only pole of the integrand is .
Close the real interval by a large upper semicircle. The estimation lemma bounds the arc integral by , so it vanishes. The simple-pole residue is
The residue theorem then gives
For real , . Taking real parts and then using evenness of the real integrand yields
Both endpoints converge: the integrand is near zero and at infinity. This also agrees with the logarithmic parameter integral with Cauchy weight at parameter one.
Put . The two roots are
Since , their moduli are and . Thus exactly one root is inside the unit circle, and neither lies on it.
For the real integral use , so and . The change of variables gives
The contour is counterclockwise. At its single interior simple pole, the residue is
By the residue theorem, the reciprocal affine sine integral is therefore
The condition also makes the real denominator strictly positive, consistent with the positive answer and the absence of contour poles on the unit circle.
Close the interval with an upper semicircle, traversed counterclockwise. On its large arc,
so the estimation lemma bounds the arc integral by . The enclosed residues are those at and , whose sum is . The residue theorem therefore gives
The positive sign agrees with the nonnegative real integrand.
Let be meromorphic on and inside a positively oriented simple closed contour , with finitely many isolated poles inside and none on . The residue theorem states
The positive orientation is counterclockwise. A clockwise contour reverses the sign, and the residue is the coefficient of in the local Laurent series.
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.
Use the branch from part (i) and close the real-axis path with a large upper semicircle, indenting clockwise around and . On the segment between them, take the upper-bank value of the branch cut. This is an instance of square-root endpoint integrals by an upper-half-plane contour.
Figure 1.
Upper-half-plane contour, clockwise endpoint indentations, and the two enclosed poles; indentation sizes are exaggerated
. Details.
The contributions can be controlled separately. Since , the large arc contributes . Near either branch point, , so an arc of length contributes . On the upper bank of ,
which is odd in , so its integral is zero. On the exterior real intervals , while the rational numerator is odd. Hence and the two exterior contributions sum to .
The enclosed residues use and :
The residue theorem gives . Therefore
As an independent check, converts the integral to
which yields the same value. This check also confirms the branch signs and the factor of two in the contour argument.