What’s the connection between these integrals and complex analysis? We signed up for the square root of −1 and that’s what we have fun with.
Suppose f is even and “nice” on R and we want to evaluate ∫−∞∞f(x)dx.
Suppose f is analytic in and on C=Γ1+Γ2, possibly except for isolated singularities in IntC. We know that ∫Cf=∫Γ1f+∫Γ2f. Hopefully, we can evaluate the left-hand side with the residue theorem (sum of residues at singularities). Then, if we let R→∞, the integral over Γ2 is what we want: PV∫−∞∞f=∫−∞∞f because we assumed f is even.
It remains to deal with limR→∞∫Γ1f. Hopefully, we can estimate this to show this goes to zero, for example via M-ℓ.
Example: Evaluate I=∫0∞x2/(x6+1)dx. Note that f(z)=x2/(x6+1) is even and continuous. As x→±∞, f∼1/x4 so I converges by the p-test since p>1. Moreover, the complex function f(z)=z2/(z6+1) is analytic on C except for 6 zeros of z6+1, i.e. (−1)1/6.
f is analytic in and on C=Γ1+Γ2 except for the 3 zeros in the upper half-plane. These singularities are z1=eπi/6, z2=i, and z3=e5πi/6. The residue theorem implies that ∫Cf(z)dz=2πij=1∑3Resz=zjf. We can see that f has the form p/q and at each zj, p(zj)=0, q(zj)=0, and q′(zj)=0. Thus, each singularity is a simple pole. From the theorem last lecture of Resz0p/q=p(z0)/q′(z0), we have ∫Cf(z)dz=2πij=1∑3(z6+1)′z2∣∣∣∣∣z=zj=2πij=1∑36zj5zj2=2πi(6i1−6i1+6i1)=3π. Remember that we’re looking for ∫Cf=∫Γ1f+∫Γ2f. We’ve got the left-hand side now. As the radius R→∞, ∫Γ2f→2I because we’re looking for the integral from 0 to ∞. Now, we want to show that ∫Γ1f→0 as R→∞. We claim that ∣∫Γ1f∣≤MRℓR where ℓR is the length of Γ1, which is πR. Also, MR=z∈Γ1max∣f(z)∣≤∣z∣=Rmax∣∣∣∣∣z6+1z2∣∣∣∣∣≤∣z∣=Rmax∣z∣6−∣1∣∣z∣2≤R6−1R2 where the denominator comes from the inverse triangle inequality. Therefore, R→∞limMRℓR=R→∞limR6−1πR⋅R2=0. Finally, ∫Cf=∫Γ1f+∫Γ2f⟹3π=2I+0⟹I=6π.Example:I=∫0∞sinx/xdx. Firstly, notice that this is an improper integral because the integrand is undefined at 0 and the bound is infinity. Near 0, the integrand approaches 1. Approaching ∞ is an absolute pain to estimate (via real analysis).
The good news is sinx/x is even. If I exists, then I=21∫−∞∞xsinxdx=21PV∫−∞∞xsinxdx. We need to be careful because our theorems don’t work across singularities, despite 0 being a removable singularity. This gives is a 4-part contour.
A standard trick when working with trig functions is take an exponential and use the real or imaginary part as needed. Take f(z)=eiz/z which is analytic on C∗. Cauchy tells us that the integral across the whole contour is 0. Thus, 0=∫γ1+Cρ+γ2+CRf=∫γ1f+∫Cρf+∫γ2f+∫CRf=I1+I2+I3+I4. Let the integrals of the right-hand side be I1,…,I4 respectively. Looking at I1 and I3, I1=∫−R−ρxeixdx=−∫ρR−1e−iw(−w)dwandI3=∫ρRxeixdx. Combining these, I1+I3=∫ρRxeix−e−ixdx=2i∫ρRxsinxdx⟶2i∫0∞xsinxdx after taking the limits ρ→0 and R→∞. Therefore, ∫0∞xsinxdx=−2i1(ρ↓0limI2+R→∞limI4) assuming these limits exist. Looking at I2, we substitute z=ρeiθ and θ:π→0 (direction) with appropriate change of variables formula. I2=∫Cρzeizdz=∫π0ρeiθeiρeiθiρeiθdθ=−i∫0πeiρeiθdθ. Since ∣ρeiθ∣=ρ, the expression eiρeiθ→1 as ρ→0uniformly for θ∈[0,π]. From real analysis, this means that the convergence radius δ is independent of θ, depending on ϵ. This means we can write ρ↓0limI2=−i∫0πρ↓0lim(eiρeiθ)dθ=−i∫0πdθ=−iπ.
Finally, I4→0 as R→∞ by Jordan’s lemma (next lecture) because we cannot use M-ℓ in the usual way. Therefore, ∫0∞xsinxdx=−2i1(ρ↓0limI2+R→∞limI4)=−2i1[−iπ+0]=2π.