Suppose that the random variable X has moment generating function M(t)= $$e^{at} \over 1-bt^2$$ for -1< t <1. It is found that the mean and variance of X are 3 and 2 respectively. Find a+b.
We have E[X]=3 and Var[X]=2. I know that M'(0)=E[X]. I solved the equation and found that a=3, but I got stuck here. I know that M''(0) should be E[$X^2$] and then I should use Var[X]=E[$X^2$]-$(E[X])^2$ somehow, but I found that M''(0)=0, which didn't make any sense. Where did I go wrong?
Edit:According to the textbook, the answer is 4, if that helps.