A1218 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A12 · Lesson 18 · Branch cuts and principal values

Integrals that need a keyhole, a wedge or a detour around a pole

The semicircle trick of lesson 17 needs an integrand that is analytic on the real axis and single-valued. Many useful integrals break one rule or the other. ∫0∞dxx(1+x) involves x, which has a branch cut. ∫−∞∞sin⁡xxdx, the area under the sinc function, comes from ejx/x, which has a pole right on the path. Three contour shapes deal with these cases: a keyhole wrapped around a branch cut, a wedge that uses a function's symmetry, and a small indentation around a pole on the axis, which defines a principal value.

  • The contour wraps around the positive real axis, where za−1 has its branch cut. It runs out along the top edge, around the big circle, back along the bottom edge, and around the small circle.
  • The dot at −1 is the pole of za−11+z, the only singularity inside.
  • Across the cut, za−1 is multiplied by e2πj(a−1), so the two edges don't cancel. Move a and watch the readouts: the edges together give (1−e2πja)I, and the residue fixes I.

Predict

What is ∫−∞∞sin⁡xxdx?

Name it

The keyhole contour

For ∫0∞xa−1R(x)dx with 0<a<1 and R rational, take the branch of za−1 with 0≤arg⁡z<2π, cut along the positive real axis. On the top edge it equals xa−1. On the bottom edge, after one full turn, it equals xa−1e2πj(a−1)=xa−1e2πja, and the path runs back toward 0. If the big and small circles contribute nothing in the limit,

(1−e2πja)∫0∞xa−1R(x)dx=2πj∑Res(za−1R(z)).

With R=11+x this gives ∫0∞xa−11+xdx=πsin⁡πa.

Logarithms

The same keyhole with ln⁡z in place of za−1 evaluates ∫0∞R(x)dx: the bottom edge's extra 2πj leaves ∫0∞R(x)dx=−∑Res(R(z)ln⁡z). Integrals with ln⁡x itself in them follow by the same idea with (ln⁡z)2.

The wedge

If R(z) is unchanged by a rotation, such as 11+zn under z→ze2πj/n, close the path along the ray at angle 2π/n. That ray gives −e2πj/n times the real-axis integral, and only one pole sits inside the wedge.

Principal values

If f has a simple pole at a real point a, the integral through it doesn't exist in the ordinary sense, but the symmetric limit does:

PV∫−∞∞fdx=limε→0⁡(∫−∞a−ε+∫a+ε∞)fdx.

Detouring around the pole on a small half circle above it picks up −πjRes(f,a), so closing in the upper half-plane gives

PV∫−∞∞fdx=2πj∑upperRes+πj∑on the axisRes.

A pole on the path counts half.

Worked example

Evaluate ∫0∞dxx(1+x).

Show the solution
  1. Set up the keyhole. This is the keyhole integral with a=12.
  2. The residue. The only pole is at z=−1=ejπ, where z−1/2=e−jπ/2=−j, so the residue is −j.
  3. The edges. They give (1−ejπ)I=2I, so 2I=2πj(−j)=2π and I=π.
  4. The circles vanish. Near 0 the integrand is about ε−1/2 on a path of length 2πε, and far out it's about R−3/2 on a length 2πR.
  5. Check. The substitution x=t2 turns the integral into ∫0∞2dt1+t2=π

Answer π.

Worked example

Evaluate ∫−∞∞sin⁡kxxdx for k > 0.

Show the solution
  1. Use the exponential. Take ejkxx, whose imaginary part is the integrand, and close in the upper half-plane, where ejkz decays.
  2. The poles. There are none above the axis, and the one at 0 sits on it, with residue 1. So PV∫ejkxxdx=πj⋅1
  3. Take the imaginary part. ∫−∞∞sin⁡kxxdx=π for every k > 0 (and −π for k < 0).
  4. In signal terms. The area under sin⁡ωtπt, an ideal low-pass filter's impulse response, is 1: the filter passes DC unchanged.

Answer π, for every k > 0.

Worked example

Evaluate ∫0∞dx1+x3 with a wedge.

Show the solution
  1. Choose the wedge. The integrand is unchanged by z→ze2πj/3, so close the path along the ray at 120°.
  2. The return ray. On it z=re2πj/3, z3=r3 and dz=e2πj/3dr, so walking it inward gives −e2πj/3I.
  3. The pole inside. Inside the wedge is one pole, z0=ejπ/3, with residue 13z02=e−2πj/33
  4. Residue theorem. (1−e2πj/3)I=2πj3e−2πj/3
  5. Solve for I. Since 1−e2πj/3=32−32j=3e−jπ/6, I=2π33⋅je−jπ/2=2π33=1.209
  6. In general. ∫0∞dx1+xn=π/nsin⁡(π/n)

Answer 2π33=1.209.

Check

What is ∫0∞x0.25−11+xdx?

Check

What is ∫0∞dx1+x4?

Check

What is ∫0∞ln⁡xx2+32dx? (With b = 1 it's 0.)

Check

What is ∫−∞∞sin⁡1xx(x2+12)dx?

Check

What is PV∫−∞∞dx(x−2)(x2+1)?

Check

Keyhole integrals with a = 0.25.

(a)

What is ∫0∞xa−1x+2dx?

(b)

What is ∫0∞xa−1(1+x)2dx? (The pole at −1 is double.)

Check

Why don't the integrals along the top and bottom edges of a keyhole cancel?

Check

Work out ∫0∞xa−11+xdx on the branch 0≤arg⁡z<2π.

Step 1

The residue at z=−1=ejπ is ejπ(a−1). What is its real part?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does a pole on the path count half in a principal value?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.