The Integral That Completes the Square in the Exponent
Evaluate:
where is a real parameter.
Answer: The Integral That Completes the Square in the Exponent
Key Idea / Intuition
The cosine can be "absorbed" into the Gaussian by completing the square in the exponent. Writing , the product becomes . The extra factor pops out, and the remaining integral over the shifted Gaussian still equals by contour integration (the integrand decays fast enough that we can shift the contour without picking up any residues).
Formal Proof / Solution
Step 1: Bring cosine into the exponential.
Since , we have
Step 2: Complete the square.
So
Step 3: Shift the contour.
Consider the contour integral of over the rectangle with vertices (where we take for concreteness; the case is symmetric). Since is entire, the integral over the closed rectangle is .
The contributions from the vertical sides and vanish as (since decays rapidly on the right vertical side, and the left vertical side is finite). Therefore
where we set and shift the real contour back.
More precisely: the horizontal contour at from to equals the horizontal contour at from to , because the closing vertical segments contribute zero.
Step 4: Read off the answer.
Since and are both real,
Why this is beautiful: The result says that the Gaussian is its own Fourier transform (up to constants). Completing the square turns a hard oscillatory integral into a pure Gaussian one โ the oscillation is "hidden" inside the shifted exponent, and the only trace left is the decay factor . This is the computation that underlies the entire theory of Fourier analysis on .