๐Ÿงฎ Brain Teaser

The Gaussian Meets Its Reflection

Evaluate the integral

I=โˆซ0โˆžeโˆ’x2cosโก(2bx)โ€‰dxI = \int_0^\infty e^{-x^2} \cos(2bx)\, dx

for bโˆˆRb \in \mathbb{R}.

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)e^{-x^2}\cos(2bx) is really the real part of eโˆ’x2+2ibxe^{-x^2 + 2ibx}, and the exponent โˆ’x2+2ibx-x^2 + 2ibx can be written as โˆ’(xโˆ’ib)2โˆ’b2-(x-ib)^2 - b^2. 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โˆ’b2e^{-b^2} factor out front is the surprise: the answer is a Gaussian in bb, 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)\cos(2bx) = \mathrm{Re}(e^{2ibx}), we have

I=Reโˆซ0โˆžeโˆ’x2+2ibxโ€‰dx.I = \mathrm{Re} \int_0^\infty e^{-x^2 + 2ibx}\, dx.

But since the integrand is even in xx (the real part is even, the imaginary part is odd), we can extend:

2I=Reโˆซโˆ’โˆžโˆžeโˆ’x2+2ibxโ€‰dx.2I = \mathrm{Re} \int_{-\infty}^\infty e^{-x^2 + 2ibx}\, dx.

Step 2: Complete the square.

โˆ’x2+2ibx=โˆ’(x2โˆ’2ibx)=โˆ’(xโˆ’ib)2โˆ’b2.-x^2 + 2ibx = -(x^2 - 2ibx) = -(x - ib)^2 - b^2.

So

โˆซโˆ’โˆžโˆžeโˆ’x2+2ibxโ€‰dx=eโˆ’b2โˆซโˆ’โˆžโˆžeโˆ’(xโˆ’ib)2โ€‰dx.\int_{-\infty}^\infty e^{-x^2 + 2ibx}\, dx = e^{-b^2} \int_{-\infty}^\infty e^{-(x-ib)^2}\, dx.

Step 3: Shift the contour.

We need โˆซโˆ’โˆžโˆžeโˆ’(xโˆ’ib)2โ€‰dx\int_{-\infty}^\infty e^{-(x-ib)^2}\, dx. This is the integral of eโˆ’z2e^{-z^2} along the horizontal line Im(z)=โˆ’b\mathrm{Im}(z) = -b in the complex plane. Consider the rectangular contour with vertices ยฑR\pm R and ยฑRโˆ’ib\pm R - ib. Since eโˆ’z2e^{-z^2} is entire, the contour integral vanishes. The two vertical sides contribute โ†’0\to 0 as Rโ†’โˆžR \to \infty (because โˆฃeโˆ’z2โˆฃ=eโˆ’(x2โˆ’y2)|e^{-z^2}| = e^{-(x^2 - y^2)} and xโ†’ยฑโˆžx \to \pm\infty dominates). Therefore

โˆซโˆ’โˆžโˆžeโˆ’(xโˆ’ib)2โ€‰dx=โˆซโˆ’โˆžโˆžeโˆ’x2โ€‰dx=ฯ€.\int_{-\infty}^\infty e^{-(x-ib)^2}\, dx = \int_{-\infty}^\infty e^{-x^2}\, dx = \sqrt{\pi}.

Step 4: Conclude.

โˆซโˆ’โˆžโˆžeโˆ’x2+2ibxโ€‰dx=ฯ€โ€‰eโˆ’b2,\int_{-\infty}^\infty e^{-x^2+2ibx}\, dx = \sqrt{\pi}\, e^{-b^2},

which is real, so taking the real part is trivial. Thus

2I=ฯ€โ€‰eโˆ’b2โ€…โ€ŠโŸนโ€…โ€ŠI=ฯ€2eโˆ’b2.2I = \sqrt{\pi}\, e^{-b^2} \implies \boxed{I = \frac{\sqrt{\pi}}{2} e^{-b^2}}.

Why this is beautiful: The Fourier transform of eโˆ’x2e^{-x^2} is again a Gaussian โ€” one of the most elegant self-referential facts in analysis. The formula I=ฯ€2eโˆ’b2I = \frac{\sqrt{\pi}}{2}e^{-b^2} encodes this: the "frequency content" of the Gaussian at frequency bb decays exactly as another Gaussian in bb.

Type: IntegrationEdit on GitHub โ†—