Moment generating function of a piecewise function

3k Views Asked by At

I am struggling like crazy with question b.

question

Here is what I have come up with:

ans2

But if I then test $M_X'(0)$, I don't get the expected value I calculated in part a:

part a

Where have I gone wrong?