Calculating $\lim \limits_{n \to \infty} \int_ {-\infty}^\infty e^{-x^2}\cos(nx)\, dx$

calculusfourier seriesfourier transformimproper-integralslimits

I am trying to calculate

$$\lim \limits_{n \to \infty} \int_ {-\infty}^\infty e^{-x^2}\cos(nx)\, dx$$

Using Fourier transform, but got stuck because of the cosine and the limit involved in the integral. any help will be much appreciated, I will also appreciate if someone could give me some guidelines for calculating limits using Fourier transforms in general…

Best Answer

I thought it might be instructuve and of interest to present an approach to evaluating the integral $\int_{-\infty}^\infty e^{-x^2}\cos(nx)\,dx$ that does not rely on direct integration. To that end we proceed.


Let $f(y)$ be represented by

$$f(y)=\int_{-\infty}^\infty e^{-x^2}\cos(xy)\,dx \tag1$$

Differentiating $(1)$ under the integral reveals

$$f'(y)=-\int_{-\infty}^\infty xe^{-x^2}\sin(xy)\,dx\tag2$$

Integrating by parts the integral in $(2)$ with $u=-\sin(xy)$ and $v=-\frac12e^{-x^2}$, we obtain

$$\begin{align} f'(y)&=-\frac12y\int_{-\infty}^\infty e^{-x^2}\cos(xy)\,dx\\\\\ &=-\frac12yf(y)\tag3 \end{align}$$

From $(3)$, we see that $f(y)$ satisfies the ODE $f'(y)+\frac12yf(y)=0$, subject to $f(0)=\sqrt\pi$. The solution to this ODE is trivial and is given by

$$f(y)=\sqrt\pi e^{-y^2/4}\tag4$$

Setting $y=n$ in $(4)$ yields

$$\int_{-\infty}^\infty e^{-x^2}\cos(nx)\,dx=\sqrt\pi e^{-n^2/4}$$

Letting $n\to \infty$, we find the coveted limit is $0$.

Related Question