I want to evaluate the integral $\int_0^T e^{-ax}e^{-bx^2} \, dx$. I found a direct solution:
$$\int_{0}^{\infty} e^{-ax}e^{-bx^2} \, dx = \sqrt\frac{\pi}{b} \exp\left(\frac{a^2}{4b}\right) Q\left(\frac{a}{\sqrt{ 2b}}\right)$$
But I don`t know how to evaluate when the integration is taken in $[0,T]$.
Outline: We assume that $b$ is positive. There is no closed form for the integral from $0$ to $T$ in terms of elementary functions.
One can get a closed form in terms of the Error Function., or equivalently in terms of the cumulative distribution function of the standard normal.
To start, rewrite $bx^2+ax$ as $b\left(x^2+\frac{a}{b}x\right)$. Complete the square, obtaining $$bx^2+ax=b\left(x+\frac{a}{2b}\right)^2-\frac{a^2}{4b},$$ and make the substitution $u=\sqrt{b}\left(x+\frac{a}{2b}\right)$.