I am trying to use the characteristic function of the uniform distribution defined on (0,1) to compute the mean. I have calculated the characteristic function (correctly) and used Euler's identity to convert it to the following form:
$$\phi_Y(t)=\frac{\sin(t)}{t} + i \frac{1-\cos(t)}{t}$$
I should be able to compute the mean (which should be 1/2) by taking the first derivative, multiplying by $\frac{1}{i}$, and evaluating at $t=0$. I've computed the first derivative as:
$$\frac{\partial}{\partial t}\phi_Y(t)=\frac{t\cos(t)-\sin(t)}{t^2} + i\frac{t \sin(t) + \cos(t) -1}{t^2}$$
And dividing by $i$, this expression simplifies to: $$E[X]=\Big(\frac{i\sin(t)-it\cos(t)+t(\sin(t)+\cos(t)-1}{t^2}\Big)\bigg\rvert_{t=0}$$
This expression is undefined, because of division by 0. Am I missing something here?
Use Maclaurin series: $$i\sin t-it\cos t+t\sin t+\cos t-1 =it-it+t^1+1-t^2/2-1)+O(t^3)=\frac{t^2}2+O(t^3)$$ and so $$\lim_{t\to0}\frac{i\sin t-it\cos t+t\sin t+\cos t-1 }{t^2}=\frac12.$$