There is a popular question on this site which is similar to this but doesn't answer this question. How can it be proven that $\int e^{-x^2}dx$ does not exist in terms of elementary functions?
Context. The function $f(x) = e^{-x^2}$ is one of the most famous and important functions in Mathematics. It is commonly called the gaussian function, although by reading the wikipedia article on this function, the form $e^{-x^2}$ seems to be a particular case of a more general class of "gaussian functions".
As it's know, the gaussian function as it is shown here occurs everywhere in Probability Theory, and because Statistics is spoken in the language of probability, the gaussian function appears everywhere in Statistics as well, particularly in Mathematical Statistics (what we call Statistical Inference) and in Multivariate Statistical Analysis. In particular, in probability theory the gaussian function shows up in the PDF of the Normal and Multivariate Normal distributions.
If you care enough about investigating this function further, you will find out that it can be integrated $e^{-x^2}$ over $\mathbb{R}$ using polar coordinates, and that there exists a function, called the Error Function, which is denoted by $\operatorname{erf} x$ and defined as $\operatorname{erf}(z) = (2/\pi) \int_{0}^{z} e^{-t^2}dt $, where $z$ is a complex variable.
Issue. If you have ever taken a calculus-based probability class, you'll definitely and simply be told that
$$ \int e^{-x^2}dx $$ does not exist. Most people just accept this and don't further investigate it. In particular, what doesn't sit well with me is that this fact is never proved. Even at prestigious universities, such as Harvard, students are just told that the antiderivative does not exist. In the linked video, you have a class from Harvard professor Joe Blitzstein and he mentions in it that it has been proved that the antiderivative doesn't exist. My question is, how?
Edit. While there is no explicit answer (which is understandable), some comments were very helpful. The linked questions were
This question. This other question, and especially this paper.