Find mean and variance using characteristic function Consider a random variable with characteristic function
$$
\phi(t)=\frac{3\sin(t)}{t^3}-\frac{3\cos(t)}{t^2}, \ \text{when} \ t \neq0
$$
How can I compute the $E(X)$ and $Var(X)$ by using this characteristic function? I'm stuck because if I differentiate I got $\phi'(t)=\frac{3t^2\sin(t)+9t\cos(t)-9\sin(t)}{t^4}$ which is undefined at $t=0$.
Do I need to use Taylor expansion to approximate sin and cos ?

By using the theory of Fourier Transforms we can easily determine what the corresponding density is.  But here is an elementary calculation relying only on definitions.
The complex exponential is defined by the power series
$$\cos(t) + i\sin(t) = \exp(it) = 1 + \frac{it}{1!} + \frac{(it)^2}{2!} + \cdots + \frac{(it)^n}{n!} + \cdots.$$
Separating the real and imaginary parts, using the defining fact that $i^2=-1,$ and dividing by the powers of $t$ appearing in the question give
$$\frac{\sin(t)}{t^3} = \frac{t}{1!}\left(t^{-3}\right)  - \frac{t^3}{3!}\left(t^{-3}\right) + \frac{t^5}{5!}\left(t^{-3}\right)  + \cdots$$
and
$$\frac{\cos(t)}{t^2} = 1\left(t^{-2}\right) - \frac{t^2}{2!}\left(t^{-2}\right)  + \frac{t^4}{4!}\left(t^{-2}\right)  - \cdots.$$
Taking the requisite linear combination term by term (which is justified because the exponential power series converges absolutely for all complex numbers $t$) yields
$$\begin{aligned}
\frac{3\sin(t)}{t^3} - \frac{3\cos(t)}{t^2} &= 3\left[\left(\frac{t^{-2}}{1!} - t^{-2}\right) - \left(\frac{t^{0}}{3!} - \frac{t^0}{2!}\right)  + \left(\frac{t^{2}}{5!} - \frac{t^2}{4!}\right) - \cdots \right]\\
&=1 + 2!\left(-\frac{3}{5!} + \frac{3}{4!}\right)\left(\frac{-t^2}{2!}\right) \color{gray}{+ 4!\left(-\frac{3}{6!} + \frac{3}{5!}\right)\left(\frac{t^4}{4!}\right) }- \cdots,
\end{aligned}$$
from which you may read off all the moments directly in the usual fashion.  (I did too much work here -- you only need the terms through $t^2$ -- in order to show the pattern.)
The key point is that the singularities cancel in the initial term $t^{-2}/1! - t^{-2} = 0,$ leaving a function without any poles.

This clearly is a legitimate characteristic function because it is bounded in absolute value by $1,$ equals $1$ at the origin, and is analytic (which is more than needed to demonstrate something is a c.f.).  Moreover, because it is real and even (it involves only powers of $t^2$), it must be the c.f. of a symmetric distribution around zero.  In particular, the moments appearing in this power series will be the central moments: the expectation is necessarily zero and the coefficient of $-t^2/2!$ will be the variance.
