Recently I had just met a solution on the integral using the power series of $\cosh x$. I wish to generalize it by the result the Gaussian Integral:
$$\int_{-\infty}^{\infty} e^{-a(x+b)^2} d x=\sqrt{\frac{\pi}{a}}$$
First of all, I, by definition, express the integrand in terms of $e^x$.
$$ \begin{aligned} \int_0^{\infty} e^{-a x^2} \cosh (b x) d x = & \frac{1}{4} \int_{-\infty}^{\infty}\left(e^{-a x^2+b x}+e^{-a x^2-b x}\right) d x \\ = & \frac{1}{4} \int_{-\infty}^{\infty}\left(e^{-a\left(x-\frac{b}{2 a}\right)^2+\frac{b^2}{4 a}}+e^{-a\left(x+\frac{b}{2 a}\right)^2+\frac{b^2}{4 a}}\right) d x \\ = & \left.\frac{e^{\frac{b^2}{4 a}}}{4} \int_{-\infty}^{\infty} e^{-a\left(x-\frac{b}{2 a}\right)^2} d x+\int_{-\infty}^{\infty} e^{-a\left(x+\frac{b}{2 a}\right)^2} d x\right] \\ = & \frac{e^{\frac{b^2}{4 a}}}{4}\left(\sqrt{\frac{\pi}{a}}+\sqrt{\frac{\pi}{a}}\right)\\=&\frac{e^{\frac{b^2}{4 a}}}{2} \sqrt{\frac{\pi}{a}} \end{aligned} $$ where $a>0$ and $b$ is real.
Am I correct? Is there any other method?
Your comments and alternative methods are highly appreciated.
Yet another (still harder) solution. For fixed $a>0$ let $$F(b)=\int\limits_0^\infty e^{-ax^2}\cosh (bx)\,dx$$ Then $${d \over db}F(b)=\int\limits_{0}^\infty xe^{-ax^2}\sinh (bx)\,dx\\ \overset{\rm by\ parts}{=} -{1\over 2a}e^{-ax^2}\sinh(bx)\bigg\vert_0^\infty +{b\over 2a}\int_0^\infty e^{-ax^2}\cosh(bx)\,dx\\ ={b\over 2a}F(b)$$ Thus $\displaystyle F(b)=F(0)\exp\left ({b^2\over 4a}\right).$ Next $$F(0)=\int\limits_0^\infty e^{-ax^2}\,dx={1\over \sqrt{a}} \int\limits_0^\infty e^{-x^2}\,dx={\sqrt{\pi}\over 2\sqrt{a}}$$