If $x \in M \subset B(H)$ where $M$ is a Von Neumann Algebra and \begin{equation} x = \int \lambda \, dE(\lambda) \end{equation}
Is selfadjoint, how can I show that the resolution of Identity \begin{equation} \{E(\lambda) | \lambda \in \mathbb{R}\} \end{equation} Belongs to $M$?
I know that $E(\lambda)$ are basically characteristic functions (projectors) but I guess the result is easy to deduce..
Let's tackle this from the very basics.