BREAKING NEWS

## Summary In mathematics, there are several integrals known as the Dirichlet integral, after the German mathematician Peter Gustav Lejeune Dirichlet, one of which is the improper integral of the sinc function over the positive real line:

$\int _{0}^{\infty }{\frac {\sin x}{x}}\,dx={\frac {\pi }{2}}.$ This integral is not absolutely convergent, meaning ${\Biggl |}{\frac {\sin x}{x}}{\Biggl |}$ is not Lebesgue-integrable, and so the Dirichlet integral is undefined in the sense of Lebesgue integration. It is, however, defined in the sense of the improper Riemann integral or the generalized Riemann or Henstock–Kurzweil integral. This can be seen by using Dirichlet's test for improper integrals. The value of the integral (in the Riemann or Henstock sense) can be derived using various ways, including the Laplace transform, double integration, differentiating under the integral sign, contour integration, and the Dirichlet kernel.

## Evaluation

### Laplace transform

Let $f(t)$ be a function defined whenever $t\geq 0$ . Then its Laplace transform is given by

${\mathcal {L}}\{f(t)\}=F(s)=\int _{0}^{\infty }e^{-st}f(t)\,dt,$ if the integral exists.

A property of the Laplace transform useful for evaluating improper integrals is

${\mathcal {L}}{\Biggl [}{\frac {f(t)}{t}}{\Biggl ]}=\int _{s}^{\infty }F(u)\,du,$ provided $\lim _{t\rightarrow 0}{\frac {f(t)}{t}}$ exists.

In what follows, one needs the result ${\mathcal {L}}\{\sin t\}={\frac {1}{s^{2}+1}}$ , which is the Laplace transform of the function $\sin t$ (see the section 'Differentiating under the integral sign' for a derivation) as well as a version of Abel's theorem (a consequence of the final value theorem for the Laplace transform).

Therefore,

{\begin{aligned}\int _{0}^{\infty }{\frac {\sin t}{t}}\,dt&=\lim _{s\rightarrow 0}\int _{0}^{\infty }e^{-st}{\frac {\sin t}{t}}\,dt=\lim _{s\rightarrow 0}{\mathcal {L}}{\Biggl [}{\frac {\sin t}{t}}{\Biggl ]}\\[6pt]&=\lim _{s\rightarrow 0}\int _{s}^{\infty }{\frac {du}{u^{2}+1}}=\lim _{s\rightarrow 0}\arctan u{\Biggl |}_{s}^{\infty }\\[6pt]&=\lim _{s\rightarrow 0}{\Biggl [}{\frac {\pi }{2}}-\arctan(s){\Biggl ]}={\frac {\pi }{2}}.\end{aligned}} ### Double integration

Evaluating the Dirichlet integral using the Laplace transform is equivalent to calculating the same double definite integral by changing the order of integration, namely,

$\left(I_{1}=\int _{0}^{\infty }\int _{0}^{\infty }e^{-st}\sin t\,dt\,ds\right)=\left(I_{2}=\int _{0}^{\infty }\int _{0}^{\infty }e^{-st}\sin t\,ds\,dt\right),$ $\left(I_{1}=\int _{0}^{\infty }{\frac {1}{s^{2}+1}}\,ds={\frac {\pi }{2}}\right)=\left(I_{2}=\int _{0}^{\infty }{\frac {\sin t}{t}}\,dt\right),{\text{ provided }}s>0.$ ### Differentiation under the integral sign (Feynman's trick)

First rewrite the integral as a function of the additional variable $s$ , namely, the Laplace transform of ${\frac {\sin t}{t}}$ . So let

$f(s)=\int _{0}^{\infty }e^{-st}{\frac {\sin t}{t}}\,dt.$ In order to evaluate the Dirichlet integral, we need to determine $f(0)$ . The continuity $f$ can be justified by applying the dominated convergence theorem after integration by parts. Differentiate with respect to $s>0$ and apply the Leibniz rule for differentiating under the integral sign to obtain

{\begin{aligned}{\frac {df}{ds}}&={\frac {d}{ds}}\int _{0}^{\infty }e^{-st}{\frac {\sin t}{t}}\,dt=\int _{0}^{\infty }{\frac {\partial }{\partial s}}e^{-st}{\frac {\sin t}{t}}\,dt\\[6pt]&=-\int _{0}^{\infty }e^{-st}\sin t\,dt.\end{aligned}} Now, using Euler's formula $e^{it}=\cos t+i\sin t,$ one can express the sine function in terms of complex exponentials:

$\sin t={\frac {1}{2i}}\left(e^{it}-e^{-it}\right).$ Therefore,

{\begin{aligned}{\frac {df}{ds}}&=-\int _{0}^{\infty }e^{-st}\sin t\,dt=-\int _{0}^{\infty }e^{-st}{\frac {e^{it}-e^{-it}}{2i}}dt\\[6pt]&=-{\frac {1}{2i}}\int _{0}^{\infty }\left[e^{-t(s-i)}-e^{-t(s+i)}\right]dt\\[6pt]&=-{\frac {1}{2i}}\left[{\frac {-1}{s-i}}e^{-t(s-i)}-{\frac {-1}{s+i}}e^{-t(s+i)}\right]{\Biggl |}_{0}^{\infty }\\[6pt]&=-{\frac {1}{2i}}\left[0-\left({\frac {-1}{s-i}}+{\frac {1}{s+i}}\right)\right]=-{\frac {1}{2i}}\left({\frac {1}{s-i}}-{\frac {1}{s+i}}\right)\\[6pt]&=-{\frac {1}{2i}}\left({\frac {s+i-(s-i)}{s^{2}+1}}\right)=-{\frac {1}{s^{2}+1}}.\end{aligned}} Integrating with respect to $s$ gives

$f(s)=\int {\frac {-ds}{s^{2}+1}}=A-\arctan s,$ where $A$ is a constant of integration to be determined. Since $\lim _{s\to \infty }f(s)=0,$ $A=\lim _{s\to \infty }\arctan s={\frac {\pi }{2}},$ using the principal value. This means that for $s>0$ $f(s)={\frac {\pi }{2}}-\arctan s.$ Finally, by continuity at $s=0$ , we have $f(0)={\frac {\pi }{2}}-\arctan(0)={\frac {\pi }{2}}$ , as before.

### Complex integration

The same result can be obtained by complex integration. Consider

$f(z)={\frac {e^{iz}}{z}}.$ As a function of the complex variable $z$ , it has a simple pole at the origin, which prevents the application of Jordan's lemma, whose other hypotheses are satisfied.

Define then a new function

$g(z)={\frac {e^{iz}}{z+i\varepsilon }}.$ The pole has been moved away from the real axis, so $g(z)$ can be integrated along the semicircle of radius $R$ centered at $z=0$ and closed on the real axis. One then takes the limit $\varepsilon \rightarrow 0$ .

The complex integral is zero by the residue theorem, as there are no poles inside the integration path

$0=\int _{\gamma }g(z)\,dz=\int _{-R}^{R}{\frac {e^{ix}}{x+i\varepsilon }}\,dx+\int _{0}^{\pi }{\frac {e^{i(Re^{i\theta }+\theta )}}{Re^{i\theta }+i\varepsilon }}iR\,d\theta .$ The second term vanishes as $R$ goes to infinity. As for the first integral, one can use one version of the Sokhotski–Plemelj theorem for integrals over the real line: for a complex-valued function f defined and continuously differentiable on the real line and real constants $a$ and $b$ with $a<0 one finds

$\lim _{\varepsilon \to 0^{+}}\int _{a}^{b}{\frac {f(x)}{x\pm i\varepsilon }}\,dx=\mp i\pi f(0)+{\mathcal {P}}\int _{a}^{b}{\frac {f(x)}{x}}\,dx,$ where ${\mathcal {P}}$ denotes the Cauchy principal value. Back to the above original calculation, one can write

$0={\mathcal {P}}\int {\frac {e^{ix}}{x}}\,dx-\pi i.$ By taking the imaginary part on both sides and noting that the function $\sin(x)/x$ is even, we get

$\int _{-\infty }^{+\infty }{\frac {\sin(x)}{x}}\,dx=2\int _{0}^{+\infty }{\frac {\sin(x)}{x}}\,dx.$ Finally,

$\lim _{\varepsilon \to 0}\int _{\varepsilon }^{\infty }{\frac {\sin(x)}{x}}\,dx=\int _{0}^{\infty }{\frac {\sin(x)}{x}}\,dx={\frac {\pi }{2}}.$ Alternatively, choose as the integration contour for $f$ the union of upper half-plane semicircles of radii $\varepsilon$ and $R$ together with two segments of the real line that connect them. On one hand the contour integral is zero, independently of $\varepsilon$ and $R$ ; on the other hand, as $\varepsilon \to 0$ and $R\to \infty$ the integral's imaginary part converges to $2I+\Im {\big (}\ln 0-\ln(\pi i){\big )}=2I-\pi$ (here $\ln z$ is any branch of logarithm on upper half-plane), leading to $I={\frac {\pi }{2}}$ .

### Dirichlet kernel

Let

$D_{n}(x)=1+2\sum _{k=1}^{n}\cos(2kx)={\frac {\sin[(2n+1)x]}{\sin(x)}}$ be the Dirichlet kernel.

It immediately follows that$\int _{0}^{\frac {\pi }{2}}D_{n}(x)dx={\frac {\pi }{2}}.$ Define

$f(x)={\begin{cases}{\frac {1}{x}}-{\frac {1}{\sin(x)}}&x\neq 0\\[6pt]0&x=0\end{cases}}$ Clearly, $f$ is continuous when $x\in (0,\pi /2]$ , to see its continuity at 0 apply L'Hopital's Rule:

$\lim _{x\to 0}{\frac {\sin(x)-x}{x\sin(x)}}=\lim _{x\to 0}{\frac {\cos(x)-1}{\sin(x)+x\cos(x)}}=\lim _{x\to 0}{\frac {-\sin(x)}{2\cos(x)-x\sin(x)}}=0.$ Hence, $f$ fulfills the requirements of the Riemann-Lebesgue Lemma. This means

$\lim _{\lambda \to \infty }\int _{0}^{\pi /2}f(x)\sin(\lambda x)dx=0\Rightarrow \lim _{\lambda \to \infty }\int _{0}^{\pi /2}{\frac {\sin(\lambda x)}{x}}dx=\lim _{\lambda \to \infty }\int _{0}^{\pi /2}{\frac {\sin(\lambda x)}{\sin(x)}}dx.$ (The form of the Riemann-Lebesgue Lemma used here is proven in the article cited.)

We would like to say that

{\begin{aligned}\int _{0}^{\infty }{\frac {\sin(t)}{t}}dt=&\lim _{\lambda \to \infty }\int _{0}^{\lambda {\frac {\pi }{2}}}{\frac {\sin(t)}{t}}dt\\[6pt]=&\lim _{\lambda \to \infty }\int _{0}^{\frac {\pi }{2}}{\frac {\sin(\lambda x)}{x}}dx\\[6pt]=&\lim _{\lambda \to \infty }\int _{0}^{\frac {\pi }{2}}{\frac {\sin(\lambda x)}{\sin(x)}}dx\\[6pt]=&\lim _{n\to \infty }\int _{0}^{\frac {\pi }{2}}{\frac {\sin((2n+1)x)}{\sin(x)}}dx\\[6pt]=&\lim _{n\to \infty }\int _{0}^{\frac {\pi }{2}}D_{n}(x)dx={\frac {\pi }{2}}\end{aligned}} In order to do so, however, we must justify switching the real limit in $\lambda$ to the integral limit in $n$ . This is in fact justified if we can show the limit does exist, which we do now.

Using integration by parts, we have:

$\int _{a}^{b}{\frac {\sin(x)}{x}}dx=\int _{a}^{b}{\frac {d(1-\cos(x))}{x}}dx=\left.{\frac {1-\cos(x)}{x}}\right|_{a}^{b}+\int _{a}^{b}{\frac {1-\cos(x)}{x^{2}}}dx$ Now, as $a\to 0$ and $b\to \infty$ the term on the left converges with no problem. See the list of limits of trigonometric functions. We now show that $\int _{-\infty }^{\infty }{\frac {1-\cos(x)}{x^{2}}}dx$ is absolutely integrable, which implies that the limit exists.

First, we seek to bound the integral near the origin. Using the Taylor-series expansion of the cosine about zero,

$1-\cos(x)=1-\sum _{k\geq 0}{\frac {x^{2k}}{2k!}}=-\sum _{k\geq 1}{\frac {x^{2k}}{2k!}}.$ Therefore,

$\left|{\frac {1-\cos(x)}{x^{2}}}\right|=\left|-\sum _{k\geq 0}{\frac {x^{2k}}{2(k+1)!}}\right|\leq \sum _{k\geq 0}{\frac {|x|^{k}}{k!}}=e^{|x|}.$ Splitting the integral into pieces, we have

$\int _{-\infty }^{\infty }\left|{\frac {1-\cos(x)}{x^{2}}}\right|dx\leq \int _{-\infty }^{-\varepsilon }{\frac {2}{x^{2}}}dx+\int _{-\varepsilon }^{\varepsilon }e^{|x|}dx+\int _{\varepsilon }^{\infty }{\frac {2}{x^{2}}}dx\leq K,$ for some constant $K>0$ . This shows that the integral is absolutely integrable, which implies the original integral exists, and switching from $\lambda$ to $n$ was in fact justified, and the proof is complete.