Existence of second derivative of characteristic function of r.v. X at 0 implies that the second moment of X is finite.
There is a proof of that statement in Chung's "A Course in Probability Theory" (2001 edition, Theorem 6.4.1 - even more general, but it involves doing that for k = 2) which has one transition I can't wrap my mind around. It goes as follows:
$$ \begin{split} \varphi^{(2)}_X(0) &= \lim_{h \to 0} \frac{\varphi(h)-2\varphi(0)+\varphi(-h)}{h^2} \\ &= \lim_{h \to 0} \int_{-\infty}^{\infty} \frac{e^{ihx}-2+e^{-ihx}}{h^2}\mu_X(\mathrm{d}x) = -2 \lim_{h \to \infty} \int_{-\infty}^{\infty}\frac{1 - \cos(hx)}{h^2}\mu_X(\mathrm{d}x) \end{split} $$
On the other hand, by Fatou's Lemma:
$$ \begin{split} \mathbb{E}[X^2] = \int_{-\infty}^{\infty} x^2\mu_X(\mathrm{d}x) &= 2 \int_{-\infty}^{\infty} \lim_{h \to 0} \frac{1 - \cos(hx)}{h^2}\mu_X(\mathrm{d}x) \\ &\leq 2 \liminf_{h \to 0} \int_{-\infty}^{\infty} \frac{1 - \cos(hx)}{h^2}\mu_X(\mathrm{d}x) = -\varphi^{(2)}_X(0) < \infty \end{split} $$ QED.
Now, I want to know why the following part in second line is true:
$$ \int_{-\infty}^{\infty} x^2\mu_X(\mathrm{d}x) = 2 \int_{-\infty}^{\infty} \lim_{h \to 0} \frac{1 - \cos(hx)}{h^2}\mu_X(\mathrm{d}x) $$ ?
This follows from the fact that $$\lim_{h \to 0} \frac{1 - \cos(hx)}{h^2}=\frac{x^2}2$$ which can be seen by Taylor's expansion.