The random variable X has an exponential distribution with rate parameter λ=2. The moment generating function for an exponential distribution with rate parameter λ is MX(t) = 1/(1-t/λ). The mean for an exponential distribution is 1/λ, which is 0.5. The variance for an exponential distribution is 1/λ2, which is 0.25.