There are many elementary functions such as $e^{-x^2}$ which don't have an elementary antiderivative, but a definite integral of the same integrand has a closed-form value, e.g. $$\int_{-\infty}^\infty e^{-x^2} \mathrm{d}x = \sqrt{\pi}$$ I'm curious whether it is decidable whether or not such a definite integral has a closed-form value. In other words:
Does there exist an algorithm that will determine in finitely many steps whether or not the value of a given definite integral (with an elementary integrand) can be expressed in a closed-form expression?
- By "elementary integrand," I mean an integrand that is an elementary function by Wikipedia's definition. Namely,
a function of a single variable that is defined as taking sums, products, and compositions of finitely many polynomial, rational, trigonometric, hyperbolic, and exponential functions, [including their inverse functions.]
- By "closed-form expression", I again mean Wikipedia's definition. Namely,
a mathematical expression expressed using a finite number of standard operations
where those "standard operations" are elementary functions, and the only allowed inputs are integers. (Note that rational numbers can be made using the function $f(x)=x^{-1}$ and certain well-known constants can be made such as $\pi = \arccos(-1)$ and $e = \exp(1)$)
I know that for indefinite integrals, the Risch algorithm does this, but I couldn't find anything about definite integrals.
Now for my follow-up question, define $S$ to be an arbitrary set of integrable functions and $R$ to be an arbitrary set of constants.
In general, is it decidable whether or not the value of a definite integral of a given function (not necessarily elementary) is expressible as a closed-form expression using the functions in $S$ and the constants in $R$ as inputs?
I would guess that the answer is no, but I couldn't find anything about it online.