Gaussian integralcomplete the squarecontour shiftFourier transformcomplex exponential
Answer: The Gaussian Meets Its Reflection
Key Idea / Intuition
The trick is to complete the square in the exponent. The integrand eโx2cos(2bx) is really the real part of eโx2+2ibx, and the exponent โx2+2ibx can be written as โ(xโib)2โb2. This shifts the Gaussian in the complex plane by an imaginary amount, but by contour integration (the rectangular contour closes without picking up extra residues), the integral over the shifted line equals the standard Gaussian integral. The eโb2 factor out front is the surprise: the answer is a Gaussian in b, reflecting the fact that the Fourier transform of a Gaussian is again a Gaussian.
Formal Proof / Solution
Step 1: Write as real part of a complex integral.
Since cos(2bx)=Re(e2ibx), we have
I=Reโซ0โโeโx2+2ibxdx.
But since the integrand is even in x (the real part is even, the imaginary part is odd), we can extend:
We need โซโโโโeโ(xโib)2dx. This is the integral of eโz2 along the horizontal line Im(z)=โb in the complex plane. Consider the rectangular contour with vertices ยฑR and ยฑRโib. Since eโz2 is entire, the contour integral vanishes. The two vertical sides contribute โ0 as Rโโ (because โฃeโz2โฃ=eโ(x2โy2) and xโยฑโ dominates). Therefore
which is real, so taking the real part is trivial. Thus
2I=ฯโeโb2โนI=2ฯโโeโb2โ.
Why this is beautiful: The Fourier transform of eโx2 is again a Gaussian โ one of the most elegant self-referential facts in analysis. The formula I=2ฯโโeโb2 encodes this: the "frequency content" of the Gaussian at frequency b decays exactly as another Gaussian in b.