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

A12 · Lesson 17 · The residue theorem and real integrals

Hard real integrals, done by going around the poles

Many real integrals that resist every trick of calculus fall in a few lines once they're seen as pieces of a contour integral. Close the real axis with a large semicircle, show that the semicircle's contribution vanishes as it grows, and the real integral equals 2πj times the sum of the residues inside. Integrals over a full period of sines and cosines become integrals around the unit circle. Engineers use the results constantly: the noise bandwidth of a filter, the response of a resonant system, the inverse Fourier transform of a rational spectrum, are all integrals of exactly this kind.

  • The contour runs along the real axis from −R to R and back over a semicircle, enclosing the pole at ja of f=1/(z2+a2) (the pole at −ja is outside).
  • The residue at ja is 1/(2ja), so the whole contour integral is 2πj⋅12ja=π/a for every R larger than a.
  • The readouts bound the semicircle's share with the ML inequality: it shrinks like 1/R. Make R large and the real-axis integral alone carries the whole π/a.

Predict

What's ∫−∞∞dx1+x2?

Name it

The residue theorem

If f is analytic on and inside a closed path C except at isolated singularities ak inside it:

∮Cfdz=2πj∑kRes(f,ak)

Rational functions on the real line

If f=P/Q with deg⁡Q≥deg⁡P+2 and no poles on the real axis, the semicircle's part vanishes (ML: |f| falls like 1/R2 on an arc of length πR), so

∫−∞∞f(x)dx=2πj∑upper half-planeRes(f,ak)

Integrals over a period

For ∫02πF(cos⁡θ,sin⁡θ)dθ, set z=ejθ: cos⁡θ=z+1/z2, sin⁡θ=z−1/z2j, dθ=dzjz, and integrate around the unit circle.

Fourier-type integrals

For ∫f(x)ejkxdx with k > 0, close in the upper half-plane, where ejkz decays; Jordan's lemma shows the arc vanishes when f merely falls off like 1/R. Real parts give the cosine integrals.

Worked example

Evaluate ∫02πdθa+bcos⁡θ for a>|b|.

Show the solution
  1. Substitute z=ejθ. The integral becomes ∮2dzj(bz2+2az+b)
  2. Find the pole inside. The quadratic's roots multiply to 1; the one inside the unit circle is z1=−a+a2−b2b
  3. Its residue. Res=2jb(z1−z2)=2j⋅2a2−b2
  4. Multiply by 2πj. I=2πa2−b2

Answer 2πa2−b2.

Worked example

Evaluate ∫−∞∞cos⁡kxx2+a2dx for k, a > 0.

Show the solution
  1. Use the exponential. Take ∫ejkxx2+a2dx and close above.
  2. Residue at ja. Res=e−ka2ja
  3. The integral. ∫ejkxx2+a2dx=2πj⋅e−ka2ja=πae−ka already real.
  4. Take the real part. So the cosine integral is πae−ka (and the sine integral is 0, by symmetry).

Answer πae−ka.

Worked example

Evaluate ∫−∞∞dxx4+1.

Show the solution
  1. Close the contour. Use a large semicircle in the upper half-plane; on it |f|≈1/R4, so the arc contributes nothing as R grows.
  2. Poles inside. The poles are the fourth roots of −1, and two are inside: z1=ejπ/4 and z2=e3jπ/4.
  3. Residues. At a root of z4+1, the residue is 14zk3, and since zk4=−1 this equals −zk4. The sum is −ejπ/4+e3jπ/44=−j24
  4. The integral. I=2πj(−j24)=π22=π2=2.221

Answer π2=2.221.

Check

What's ∫−∞∞dxx2+22?

Check

What's ∫02πdθ3+1cos⁡θ?

Check

What's ∫−∞∞cos⁡(1x)x2+12dx?

Check

What's ∫−∞∞dx(x2+12)2? (The pole at ja is double.)

Check

On the semicircle of radius 5, |1/(z2+1)|≤1/(R2−1). What bound does ML give on the arc's integral?

Check

For ∫−∞∞e3jxx2+4dx, which half-plane should the contour close in?

Check

Two Lorentzians, with 0<1<3.

(a)

What is ∫−∞∞dx(x2+12)(x2+32)?

(b)

What is ∫−∞∞x2dx(x2+12)(x2+32)?

Check

Evaluate ∫−∞∞xsin⁡kxx2+a2dx through zejkzz2+a2, closing in the upper half-plane.

Step 1

What is the residue at z=ja?

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 the integral over the large semicircle vanish for ∫P/Q when Q's degree exceeds P's by at least 2?

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.