[tex]\int_{-\infty}^\infty e^{-ax^2} dx={\sqrt{\frac{\pi}{a}}}}[/tex]Yegor said:[tex]\int_0^\infty e^{-ax^2+bx} dx[/tex], a and b may be complex.
Does exist any formula for this integral?
Or for [tex]\int_{-\infty}^\infty e^{-ax^2+bx} dx[/tex]???
It is true that the first will involve erf, while the second will have nicer form. Yet erf is a closed form. Also closed form verses numerical solution is kind of silly any way. log(2) is a closed form, but if you want a number you have to "do it numerically". The issue has more do do with how many function one want to define tabulate and use. The distinction between an answer erf(1) and one of sin(1) is mostly historical.mathman said:ax^{2}-bx=a(x-b/2a)^{2}+(b/2)^{2}/a
Your first integral then becomes an erf integral, which can only be done numerically. The second integral has a closed form solution - integral of Gaussian.