Let $\{X(t),-\infty<t<\infty\}$ be weakly stationary with covariance function $R(s)=$ $\operatorname{Cov}(X(t), X(t+s))$ and let $\widetilde{R}(w)$ denote the power spectral density of the process.
(i) Show that $\widetilde{R}(w)=\widetilde{R}(-w)$. It can be shown that
$$
R(s)=\frac{1}{2 \pi} \int_{-\infty}^{\infty} \widetilde{R}(w) e^{i w s} d w
$$
(ii) Use the preceding to show that
$$
\int_{-\infty}^{\infty} \widetilde{R}(w) d w=2 \pi E\left[X^{2}(t)\right]
$$