I'm trying to find a closed formula for the integral in $(eq. 1)$, but i wasn't able to do anything. On the other hand, while searching on the web i found a closed formula for the cases $(n=1, \, n=2)$ (https://en.wikipedia.org/wiki/List_of_integrals_of_exponential_functions).. but there isn't any demonstration. Moreover, i found that these integrals could correspond to '$n$-th moment' of a normal distribuition, but then again i hadn't found anything else.
$$\int_{-\infty}^{+\infty} x^n e^{-ax^2+bx} \, dx \longrightarrow a \in \mathbb{R^+}, \, b\in \mathbb{C} \qquad (1)$$
After completing the square $$ I_n=\int_{-\infty}^\infty x^ne^{-a x^2+bx}\,\mathrm dx=\sqrt{\frac{\pi}{a}}e^{b^2/4a}\int_{-\infty}^\infty x^n \phi(x;b/2a,1/2a)\,\mathrm dx, $$ where $\phi(x;\mu,\sigma^2)$ is the normal probability density. Thus $$ I_n=\sqrt{\frac{\pi}{a}}e^{b^2/4a}\mathsf EX^n $$ with $X\sim\mathcal N(b/2a,1/2a)$. Using equation 18 here (you can probably find this elsewhere) the integer moments of the normal variable can be expressed in terms of Hermite polynomials giving $$ I_n=\sqrt{\frac{\pi}{a}}e^{b^2/4a}\left(\frac{i}{2\sqrt a}\right)^nH_n\left(-i\frac{b}{2\sqrt a}\right), $$ where $i$ is the imaginary unit (this will yield a real solution for all nonnegative integers $n$). Here is a table of the first few values $$ \left( \begin{array}{cc} n & I_n\\ 0 & \sqrt{\pi } \sqrt{\frac{1}{a}} e^{\frac{b^2}{4 a}} \\ 1 & \frac{1}{2} \sqrt{\pi } \left(\frac{1}{a}\right)^{3/2} b e^{\frac{b^2}{4 a}} \\ 2 & \frac{1}{4} \sqrt{\pi } \left(\frac{1}{a}\right)^{5/2} \left(2 a+b^2\right) e^{\frac{b^2}{4 a}} \\ 3 & \frac{1}{8} \sqrt{\pi } \left(\frac{1}{a}\right)^{7/2} b \left(6 a+b^2\right) e^{\frac{b^2}{4 a}} \\ 4 & \frac{1}{16} \sqrt{\pi } \left(\frac{1}{a}\right)^{9/2} \left(12 a^2+12 a b^2+b^4\right) e^{\frac{b^2}{4 a}} \\ \end{array} \right) $$
In fact, you can extend this integral to negative integer $n$ using a regularization technique found here.
If you're interested in the case for $b=0$ we may use the well-known explicit expression for $H_n(0)$ giving $$ I_n\big|_{b=0}=\sqrt{\frac{\pi}{a}}\left(\frac{i}{2\sqrt a}\right)^nH_n(0)% = \begin{cases} 0, &n\ \text{ odd}\\ \sqrt{\frac{\pi}{a}}\frac{(n-1)!!}{(2 a)^{n/2}}, &n\ \text{ even}. \end{cases} $$
Edit:
OP has asked for clarification. Once we have $I_n$ in terms of moments of the normal distribution, all we need is an explicit expression for those moments. One quick way to do this is to compare the moment generating function $$ M_X(t)=e^{bt/2a+t^2/4a}=\sum_{n=0}^\infty(\mathsf EX^n)\frac{t^n}{n!} $$ to the generating function for the Hermite polynomials $$ e^{2xt-t^{2}}=\sum _{n=0}^{\infty }H_{n}(x){\frac {t^{n}}{n!}}. $$