For an exponential r.v $X$ with parameter $\lambda >0$, I try to find the expected value of $e^{X/2}$.
I think this is possible through the moment generating function but I want to do it following the definition so
$$\mathbb{E} \left(e^{X/2}\right) = \lambda \int_0^{\infty} e^{x/2}e^{-\lambda x} dx= \lambda \int_0^{\infty} e^{-\frac{x}{2}(2\lambda -1)} dx = \dots $$
Then how to continue and which constraints to consider?