|
| 1 | +--- |
| 2 | +layout: proof |
| 3 | +mathjax: true |
| 4 | + |
| 5 | +author: "Joram Soch" |
| 6 | +affiliation: "BCCN Berlin" |
| 7 | +e_mail: "joram.soch@bccn-berlin.de" |
| 8 | +date: 2020-11-25 04:47:00 |
| 9 | + |
| 10 | +title: "Gaussian integral" |
| 11 | +chapter: "Probability Distributions" |
| 12 | +section: "Univariate continuous distributions" |
| 13 | +topic: "Normal distribution" |
| 14 | +theorem: "Gaussian integral" |
| 15 | + |
| 16 | +sources: |
| 17 | + - authors: "ProofWiki" |
| 18 | + year: 2020 |
| 19 | + title: "Gaussian Integral" |
| 20 | + in: "ProofWiki" |
| 21 | + pages: "retrieved on 2020-11-25" |
| 22 | + url: "https://proofwiki.org/wiki/Gaussian_Integral" |
| 23 | + - authors: "ProofWiki" |
| 24 | + year: 2020 |
| 25 | + title: "Integral to Infinity of Exponential of -t^2" |
| 26 | + in: "ProofWiki" |
| 27 | + pages: "retrieved on 2020-11-25" |
| 28 | + url: "https://proofwiki.org/wiki/Integral_to_Infinity_of_Exponential_of_-t%5E2" |
| 29 | + |
| 30 | +proof_id: "P196" |
| 31 | +shortcut: "norm-gi" |
| 32 | +username: "JoramSoch" |
| 33 | +--- |
| 34 | + |
| 35 | + |
| 36 | +**Theorem:** The definite integral of $\mathrm{exp}\left[ -x^2 \right]$ from $-\infty$ to $+\infty$ is equal to the square root of $\pi$: |
| 37 | + |
| 38 | +$$ \label{eq:norm-gi} |
| 39 | +\int_{-\infty}^{+\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x = \sqrt{\pi} \; . |
| 40 | +$$ |
| 41 | + |
| 42 | + |
| 43 | +**Proof:** Let |
| 44 | + |
| 45 | +$$ \label{eq:I} |
| 46 | +I = \int_{0}^{\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x |
| 47 | +$$ |
| 48 | + |
| 49 | +and |
| 50 | + |
| 51 | +$$ \label{eq:IP} |
| 52 | +I_P = \int_{0}^{P} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x = \int_{0}^{P} \mathrm{exp}\left[ -y^2 \right] \, \mathrm{d}y \; . |
| 53 | +$$ |
| 54 | + |
| 55 | +Then, we have |
| 56 | + |
| 57 | +$$ \label{eq:IP-I} |
| 58 | +\lim\limits_{P \rightarrow \infty} I_P = I |
| 59 | +$$ |
| 60 | + |
| 61 | +and |
| 62 | + |
| 63 | +$$ \label{eq:IP2-I2} |
| 64 | +\lim\limits_{P \rightarrow \infty} I_P^2 = I^2 \; . |
| 65 | +$$ |
| 66 | + |
| 67 | +Moreover, we can write |
| 68 | + |
| 69 | +$$ \label{eq:IP2} |
| 70 | +\begin{split} |
| 71 | +I_P^2 &\overset{\eqref{eq:IP}}{=} \left( \int_{0}^{P} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x \right) \left( \int_{0}^{P} \mathrm{exp}\left[ -y^2 \right] \, \mathrm{d}y \right) \\ |
| 72 | +&= \int_{0}^{P} \int_{0}^{P} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y \\ |
| 73 | +&= \iint_{S_P} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y |
| 74 | +\end{split} |
| 75 | +$$ |
| 76 | + |
| 77 | +where $S_P$ is the square with corners $(0,0)$, $(0,P)$, $(P,P)$ and $(P,0)$. For this integral, we can write down the following inequality |
| 78 | + |
| 79 | +$$ \label{eq:IP2-ineq} |
| 80 | +\iint_{C_1} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y \leq I_P^2 \leq \iint_{C_2} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y |
| 81 | +$$ |
| 82 | + |
| 83 | +where $C_1$ and $C_2$ are the regions in the first quadrant bounded by circles with center at $(0,0)$ and going through the points $(0,P)$ and $(P,P)$, respectively. The radii of these two circles are $r_1 = \sqrt{P^2} = P$ and $r_2 = \sqrt{2 P^2} = P \sqrt{2}$, such that we can rewrite equation \eqref{eq:IP2-ineq} using polar coordinates as |
| 84 | + |
| 85 | +$$ \label{eq:IP2-ineq-PC} |
| 86 | +\int_{0}^{\frac{\pi}{2}} \int_{0}^{r_1} \mathrm{exp}\left[ -r^2 \right] \, r \, \mathrm{d}r \, \mathrm{d}\theta \leq I_P^2 \leq \int_{0}^{\frac{\pi}{2}} \int_{0}^{r_2} \mathrm{exp}\left[ -r^2 \right] \, r \, \mathrm{d}r \, \mathrm{d}\theta \; . |
| 87 | +$$ |
| 88 | + |
| 89 | +Solving the definite integrals yields: |
| 90 | + |
| 91 | +$$ \label{eq:IP2-ineq-PC-int} |
| 92 | +\begin{split} |
| 93 | +\int_{0}^{\frac{\pi}{2}} \int_{0}^{r_1} \mathrm{exp}\left[ -r^2 \right] r \, \mathrm{d}r \, \mathrm{d}\theta &\leq I_P^2 \leq \int_{0}^{\frac{\pi}{2}} \int_{0}^{r_2} \mathrm{exp}\left[ -r^2 \right] r \, \mathrm{d}r \, \mathrm{d}\theta \\ |
| 94 | +\int_{0}^{\frac{\pi}{2}} \left[ -\frac{1}{2} \mathrm{exp}\left[ -r^2 \right] \right]_{0}^{r_1} \, \mathrm{d}\theta &\leq I_P^2 \leq \int_{0}^{\frac{\pi}{2}} \left[ -\frac{1}{2} \mathrm{exp}\left[ -r^2 \right] \right]_{0}^{r_2} \, \mathrm{d}\theta \\ |
| 95 | +-\frac{1}{2} \int_{0}^{\frac{\pi}{2}} \left( \mathrm{exp}\left[ -r_1^2 \right] - 1 \right) \, \mathrm{d}\theta &\leq I_P^2 \leq -\frac{1}{2} \int_{0}^{\frac{\pi}{2}} \left( \mathrm{exp}\left[ -r_2^2 \right] - 1 \right) \, \mathrm{d}\theta \\ |
| 96 | +-\frac{1}{2} \left[ \left( \mathrm{exp}\left[ -r_1^2 \right] - 1 \right) \theta \right]_{0}^{\frac{\pi}{2}} &\leq I_P^2 \leq -\frac{1}{2} \left[ \left( \mathrm{exp}\left[ -r_2^2 \right] - 1 \right) \theta \right]_{0}^{\frac{\pi}{2}} \\ |
| 97 | +\frac{1}{2} \left( 1 - \mathrm{exp}\left[ -r_1^2 \right] \right) \frac{\pi}{2} &\leq I_P^2 \leq \frac{1}{2} \left( 1 - \mathrm{exp}\left[ -r_2^2 \right] \right) \frac{\pi}{2} \\ |
| 98 | +\frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -P^2 \right] \right) &\leq I_P^2 \leq \frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -2 P^2 \right] \right) |
| 99 | +\end{split} |
| 100 | +$$ |
| 101 | + |
| 102 | +Calculating the limit for $P \rightarrow \infty$, we obtain |
| 103 | + |
| 104 | +$$ \label{eq:IP2-ineq-PC-int-lim} |
| 105 | +\begin{split} |
| 106 | +\lim\limits_{P \rightarrow \infty} \frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -P^2 \right] \right) \leq \lim\limits_{P \rightarrow \infty} I_P^2 &\leq \lim\limits_{P \rightarrow \infty} \frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -2 P^2 \right] \right) \\ |
| 107 | +\frac{\pi}{4} \leq I^2 &\leq \frac{\pi}{4} \; , |
| 108 | +\end{split} |
| 109 | +$$ |
| 110 | + |
| 111 | +such that we have a preliminary result for $I$: |
| 112 | + |
| 113 | +$$ \label{eq:I-qed} |
| 114 | +I^2 = \frac{\pi}{4} \quad \Rightarrow \quad I = \frac{\sqrt{\pi}}{2} \; . |
| 115 | +$$ |
| 116 | + |
| 117 | +Because the integrand in \eqref{eq:norm-gi} is an even function, we can calculate the final result as follows: |
| 118 | + |
| 119 | +$$ \label{eq:norm-gi-qed} |
| 120 | +\begin{split} |
| 121 | +\int_{-\infty}^{+\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x &= 2 \int_{0}^{\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x \\ |
| 122 | +&\overset{\eqref{eq:I-qed}}{=} 2 \, \frac{\sqrt{\pi}}{2} \\ |
| 123 | +&= \sqrt{\pi} \; . |
| 124 | +\end{split} |
| 125 | +$$ |
0 commit comments