I'm trying to compute $\int_{-1}^u\text{exp}(\frac{1}{x^2-1})dx$ where $u\in[-1,1]$.
This is a crucial element of this paper and I need to be able to compute it quickly in Mathematica thousands of times over for a simulation.
I am aware that this post may give some clue as to the answer (i.e. Meijer's $G$-function or Whittaker's $W$ function may come into play) however, because $u$ is not fixed, I cannot use it directly.
If we could even compute $\int_{0}^u\text{exp}(\frac{1}{x^2-1})dx$ where $u\in[0,1]$, because of the symmetry of the bump function, we could figure all the rest out.
Any ideas as to where to start to begin expressing this in terms of another function? Or should I resign myself to numerical integration each time?
Since you need to reference lots of values of this, you want to be able to approximate the function efficiently which points to some form of interpolation. Broadly speaking:
Calculate the integral numerically for some fixed number of points (e.g. $u = -1, -0.9, \ldots, 0.9, 1$).
Use those points to fit a smooth curve through them, such as a polynomial.
Create a function that returns the value of the fitted curve for any given input.
In Mathematica, you should be able to use the
InterpolatingPolynomialfunction to achieve step 2. Because the function is so smooth, you probably don't need to use too many points to get a decent interpolation.