An exponential transform’s domain

For XX exponential with rate 3, derive MX(t)M_X(t), give its domain, then calculate E(X)E(X), Var(X)\mathrm{Var}(X) and MX(2)M_X(2). Why is substituting t=4 into the rational expression invalid as an MGF calculation?

Integrating 3e−(3−t)x3e^{-(3-t)x} over x≥0x\ge 0 gives MX(t)=3/(3−t)M_X(t)=3/(3-t) for t<3t<3. Thus E(X)=1/3E(X)=1/3, Var(X)=1/9\mathrm{Var}(X)=1/9, and MX(2)=3M_X(2)=3. At t=4 the defining integral diverges; the algebraic value -3 is not an expectation.