I know from Discussing the Integral of $\exp(-x^n)$ that $$\int_{0}^{\infty} e^{-x^{n}}\mathrm{d}x=\Gamma(1+1/n),\quad n>0.$$
But how to evaluate $$\int_{0}^{\infty}e^{-(x^{n}-x)}\,\mathrm{d}x,\quad n>0?$$
The only substitution i found is $$\text{Let}\quad x=\ln u, \quad \text{then}\quad e^{x}=u, \quad \text{and} \quad \mathrm{d}x=\frac{1}{u}\mathrm{d}u.$$ Then $$\int_{0}^{\infty}e^{-(x^{n}-x)}\,\mathrm{d}x=\int_{1}^{\infty}e^{-(\ln u)^{n}}\,\mathrm{d}u$$ But after this, I am stuck.
Thank you!
Wolfy gives increasingly complicated expressions for increasing values of $n$. The complexity is the same whether the exponent has $x$ or $-x$.
For $n=2$:
$\int_0^∞ e^{-(x^2 - x)} dx = (1/2) e^{1/4} \sqrt{π} (erf(1/2) + 1)≈1.73023 $
For $n=3$:
$\int_0^∞ e^{-(x^3 - x)} dx = (1/18) (3 _1 F_2(1;4/3, 5/3;1/27) + 4 3^{2/3} π Bi(1/3^{1/3}))≈1.57661 $
($Bi$ is the Airy $Bi$ function)
For $n=5$:
$\int_0^∞ e^{-(x^5 - x)} dx = (1/120) (_1 F_4(1;6/5, 7/5, 8/5, 9/5;1/3125) + 4 (30 Γ(6/5) _0 F_3(;2/5, 3/5, 4/5;1/3125) + 6 Γ(2/5) _0 F_3(;3/5, 4/5, 6/5;1/3125) + 5 Γ(8/5) _0 F_3(;4/5, 6/5, 7/5;1/3125) + Γ(4/5) _0 F_3(;6/5, 7/5, 8/5;1/3125)))≈1.55968 $