(b) Derive the moment generating function of \( X \). [A detailed derivation is required.]