By using integration by parts, one can obtain the following equation
$$2\int x^ne^{x^2}dx=x^{n-1}e^{x^2}-(n-1)\int x^{n-2}e^{x^2}dx .$$
A recursive formula for $\int x^ne^{x^2}dx$ that works if and only if $n$ is odd because:
$$2\int xe^{x^2}dx=e^{x^2}$$
Now, upon using this formula, I obtained the following polynomials:
$$2\int x^1e^{x^2}dx=(1)e^{x^2}$$
$$2\int x^3e^{x^2}dx=(x^2-1)e^{x^2}$$
$$2\int x^5e^{x^2}dx=(x^4-2x^2+2)e^{x^2}$$
$$2\int x^7e^{x^2}dx=(x^6-3x^4+6x^2-6)e^{x^2}$$
The solution is always in the form of a polynomial multiplied by $e^{x^2}$. I was wondering if this polynomial could have an easy solution in terms of the exponent on the left that may be easily found:
$$p_n(x)=x^{n-1}-(n-1)x^{n-3}+?x^{n-5}+\dots$$
Any easy pattern?
Then, I would like to see if this can be made into a continuous polynomial that works for even $n$ so that I may evaluate $\int e^{x^2}dx$ as a polynomial multiplied by $e^{x^2}$, which I can imagine this polynomial will have an infinite amount of terms, a power series.
$$\int x^0e^{x^2}dx=x^{-1}e^{x^2}+x^{-3}e^{x^2}+?x^{-5}e^{x^2}+\dots$$
I know the solution can not be shown in a finite amount of elementary functions, as shown on other related questions, but couldn't this work?
Is there an easy form of my power series? After that, apply this to try and evaluate $\int x^0e^{x^2}dx$. Determine if the formula works for the result.
Maple says $$ 2\,\int \!{{\rm e}^{{x}^{2}}}\,{\rm d}x= \big({x}^{-1}+\frac{1}{2}\,{x}^{-3}+\frac{3}{4}\,{x }^{-5} +{\frac {15}{8}}x^{-7}+\frac{105}{16}x^{-9}+O(x^{-11})\big)e^{x^2} $$ as $x \to \infty$.