Let X by a uniformly distributed random variable on the interval [0,1]. Find $E[e^Y]$
I am trying to make use of the formula $$E[g(X)] = \int_{-\infty}^{\infty}g(x)xdx$$
so then $$E[e^X] = \int e^xxdx$$
What I am unsure of are the bounds of integration. Would they be from 0 to 1, which is the interval of Y, or would they be from $e^0$ to $e^1$?
Additionally, we are also given that Y is a uniformly distributed variable on the interval [0,1] as well. Find $E[e^{Y-X}]$. Since they are independent, would it be the correct approach to first find $E[e^Y]$, then $E[e^{-X}]$, and multiply the two together?
Furthermore, apparently there is a much easier way to solve this problem without needing to do any integration, but I am having difficulty conceptualizing this method. Thoughts?