Good afternoon. I have the following integral that I need help integrating;
$$ \mathrm{F}\left(x\right) = \int_{0}^{\infty}\mathrm{e}^{s\left(j - 1/x\right)}\, \left[\mathrm{T}_{N}\left(s\right)\right]^{k - j}\,\mathrm{d}s $$
where $\mathrm{T}_{N}\left(s\right)$ is the truncated exponential function $$ \mathrm{T}_{N}\left(s\right) = \sum_{n = 0}^{N}\frac{s^{n}}{n!} $$
and $j,k$ are whole numbers.
I figured that tackling this using integration by parts is the best choice, but naturally this could take a while given that my choice of $u_{1}=\mathrm{T}_{N}^{k - j}\left(s\right)$ yields a $\mathrm{d}u_{1}$ of $$ \mathrm{d}u_{1} = \left(k - j\right)\mathrm{T}_{N}^{k-j-1}\left(s\right) \mathrm{T}_{N - 1}\left(s\right)\,\mathrm{d}s $$ since $\mathrm{d}\mathrm{T}_{N}\left(s\right)/\mathrm{d}s = \mathrm{T}_{N - 1}\left(s\right)$. This does not seem to be simplifying the problem though as the next iteration would require me to then choose my $u_{2}$ to be $$ u_{2} = \frac{1}{k - j}\,\frac{\mathrm{d}u_{1}}{\mathrm{d}s} = \mathrm{T}_{N}^{k - j - 1}\left(s\right) \mathrm{T}_{N - 1}\left(s\right) $$
Are there any other approaches to this without this drawn out IBP method or without considering expanding the truncated exponential ?.
So long as $j < 1/x$ it is possible to write the function as a finite sum of terms (i.e., in closed form) by writing the power of the truncated exponential as a polynomial, and then turning the integral into a polynomial sum of gamma functions. If we apply the multinomial theorem we can write the power of the truncated exponential as a polynomial of degree $N(k-j)$ as follow:
$$\begin{equation} \begin{aligned} \left[ \sum_{n=0}^N \frac{s^n}{n!} \right]^{k-j} &= \sum_{r_0 + \cdots + r_N = k-j} {k-j \choose \mathbf{r}} \prod_{n=0}^N \Big( \frac{s^n}{n!} \Big)^{r_n} \\[6pt] &= \sum_{r_0 + \cdots + r_N = k-j} \frac{(k-j)!}{\prod_{n=0}^N (r_n!) (n!)^{r_n}} \prod_{n=0}^N s^{n \cdot r_n} \\[6pt] &= \sum_{r_0 + \cdots + r_N = k-j} \frac{(k-j)!}{\prod_{n=0}^N (r_n!) (n!)^{r_n}} s^{\sum_{n=0}^N n \cdot r_n} \\[6pt] &= \sum_{i=0}^{N(k-j)} a_i s^i, \\[6pt] \end{aligned} \end{equation}$$
where the coefficients $a_0,a_1,...,a_{N(k-j)}$ depend on $N$ and $k-j$, and are obtained from this multinomial summation. We then have:
$$\begin{equation} \begin{aligned} F(x) &= \int \limits_0^\infty e^{s (j-\frac{1}{x})} \left[ \sum_{n=0}^N \frac{s^n}{n!} \right]^{k-j} ds \\[6pt] &= \int \limits_0^\infty e^{s (j-\frac{1}{x})} \sum_{i=0}^{N(k-j)} a_i s^i \ ds \\[6pt] &= \sum_{i=0}^{N(k-j)} a_i \int \limits_0^\infty e^{s (j-\frac{1}{x})} s^i \ ds \\[6pt] \end{aligned} \end{equation}$$
Now, assume that $j < 1/x$ so that $(j-\tfrac{1}{x}) <0$. In this case we can use the change-of-variable $m = s |j-\frac{1}{x}|$ to get $dm = -j ds$ and we have:
$$\begin{equation} \begin{aligned} F(x) &= \sum_{i=0}^{N(k-j)} a_i \int \limits_0^\infty e^{-s |j-\frac{1}{x}|} s^i \ ds \\[6pt] &= \sum_{i=0}^{N(k-j)} a_i \cdot \frac{1}{(-j) |j - \frac{1}{x}|^i} \int \limits_0^\infty e^{-s |j-\frac{1}{x}|} (s |j-\tfrac{1}{x}|)^i \ (-j) \ ds \\[6pt] &= \sum_{i=0}^{N(k-j)} a_i \cdot \frac{1}{(-j) |j - \frac{1}{x}|^i} \int \limits_0^\infty e^{-m} m^i \ dm \\[6pt] &= \sum_{i=0}^{N(k-j)} a_i \cdot \frac{i!}{(-j) |j - \frac{1}{x}|^i}. \\[6pt] \end{aligned} \end{equation}$$
This form of the function is a finite sum, where the only serious difficulty (for large $N$ or $k-j$) is to calculate the polynomial coefficients $a_0,a_1,...,a_{N(k-j)}$. Calculation of these coefficients may be cumbersome for large degree, but once they are calculated the function is then amenable to calculation.