PG,
What on earth are you doing here. There are so many mistakes in integration in what you wrote. ???
Whenever you do an integral, it's a good idea to check it by taking the derivative of the answer and making sure you get back to where you started. In this way, you will find errors quickly. The bottom line is that ∫exp(x^2)dx doesn't have a closed form integral formula. Whichever of the two ways you do the integration by parts, you end up with that integral. Hence, ... dead end.
The integral ∫exp(x^2)dx can be related to the error function (erf), which is based on the integral of a Gaussian type function exp(-x^2). Both, ∫exp(x^2)dx and ∫exp(-x^2)dx are similar and require numerical methods or tables to find the values. But, this is information that is useless in the problem you are solving.
Note, that you should memorize the fact that these integrals are unsolvable, but are often expressed as the erf function. These integrals show up very often.