How I find this integral :
$$\int\limits_0^{\infty} x \tanh^{-1}(x)\ e^{-a x^2}\ dx$$ where $a>1$
I post same similar question but I don't know how I evaluate the above integral.
At first I use integral by part but I find divergent integral.
And also I use series same problems divergent series.
I think use for $x>1$ $\operatorname{arctanh}x=\ln\left(\frac{1+y}{y-1}\right)+ \pi i$
But problem in this ?
$$\int\limits_0^1 x \ln(1-x)e^{-ax^{2}}\ dx$$
As $\tanh^{-1}x=\frac{1}{2}\ln\frac{1+x}{1-x}$ for $|x|<1$, you must have $\tanh^{-1}x=\frac{1}{2}\ln\frac{x+1}{x-1}+(n-\color{red}{\frac{1}{2}})\pi i$ for some $n\in\mathbb{Z}$ when $x>1$. Making a definite choice $n\equiv 0$, we arrive at the result given by David G. Stork in his comment. Indeed, the given integral is (then) equal to $$\int_{0}^{\infty}\frac{x}{2}\ln\left|\frac{1+x}{1-x}\right|e^{-ax^2}\,dx-\frac{\pi i}{2}\int_{1}^{\infty}xe^{-ax^2}\,dx=\frac{e^{-a}}{4a}\big(I(a)-\pi i\big),$$ where \begin{align}I(a)&=\int_{0}^{\infty}\ln\left|\frac{1+x}{1-x}\right|\cdot 2axe^{a(1-x^2)}\,dx\\&=-\left.\ln\left|\frac{1+x}{1-x}\right|(e^{a(1-x^2)}\color{red}{-1})\right|_{0}^{\infty}+2\int_{0}^{\infty}\frac{e^{a(1-x^2)}-1}{1-x^2}\,dx\\&=2\int_{0}^{\infty}\frac{e^{a(1-x^2)}-1}{1-x^2}\,dx\end{align} and $I'(a)=2\int_{0}^{\infty}e^{a(1-x^2)}\,dx=e^a\sqrt{\pi/a}$. As $I(0)=0$, we get $$I(a)=\sqrt{\pi}\int_0^a\frac{e^x}{\sqrt{x}}\,dx=2\sqrt{\pi}\int_{0}^{\sqrt{a}}e^{y^2}\,dy=\pi\operatorname{erfi}\sqrt{a}.$$