# Residue calculus: $\int_{-\infty}^\infty e^{-x^2} \mathrm{d}x$ [duplicate]

How to evaluate $\int_{-\infty}^\infty e^{-x^2} \mathrm{d}x$ using the residue theorem?