Let X $\backsim \mathcal{N}(0,\sigma^2)$ and $t>0$. I want to find $E(e^{-t x})$
$$E(e^{-t x})=\int_{-\infty}^{\infty} e^{-tx} \dfrac{1}{\sqrt{2\pi \sigma^2}}e^{\frac{-x^2}{2\sigma^2}}dx = \int_{-\infty}^{\infty}\dfrac{1}{\sqrt{2\pi \sigma^2}} e^{-tx\frac{-x^2}{2\sigma^2}}dx = \int_{-\infty}^{\infty}\dfrac{1}{\sqrt{2\pi \sigma^2}} e^{\frac{-2\sigma^2tx-x^2}{2\sigma^2}}dx=\int_{-\infty}^{\infty}\dfrac{1}{\sqrt{2\pi \sigma^2}} e^{\frac{-(x+\sigma^2t)^2+\sigma^4t^2}{2\sigma^2}}dx=e^{\frac{\sigma^4t^2}{2\sigma^2}}\int_{-\infty}^{\infty}\dfrac{1}{\sqrt{2\pi \sigma^2}} e^{\frac{-(x+\sigma^2t)^2}{2\sigma^2}}dx=e^{\frac{\sigma^2t^2}{2}}$$
Is that ok or did I missed something? For $\int_{-\infty}^{\infty}\dfrac{1}{\sqrt{2\pi \sigma^2}} e^{\frac{-(x-\sigma^2t)^2}{2\sigma^2}}dx$ I just assumed that this is $1$ intuitively. Is that correct?
What you have done is right. For the part where you have a doubt just make the substitution $y=x-\sigma^{2}t$ and use the fact that normal density function integrates to $1$.