Let $A$ be a bounded or unbounded selfadjoint linear operator on a complex Hilbert space $H$ with spectral representation $A=\int_{\sigma}\lambda \, dE(\lambda)$ given by the Spectral Theorem for Selfadjoint Operators. Stone's Formula gives a way to constructively obtain the spectral measure $E[a,b]$ of a finite interval as a strong (vector) limit: $$ \frac{1}{2}\{E[a,b]+E(a,b)\}x=\lim_{\varepsilon\downarrow 0}\frac{1}{2\pi i}\int_a^b \{R(u+i\varepsilon)-R(u-i\varepsilon)\}x\,du,\;\;\; x \in H, $$ where $R$ is the resolvent operator $R(\lambda)=(A-\lambda I)^{-1}$.
Question: What is the easiest way to prove that Stone's Formula is valid?
Application: This may be viewed as a generalized residue of the resolvent function. If $A$ has isolated spectrum, then such an integral may be evaluated using residues of the resolvent.