Let $A\in\mathcal{L}(E)$ be a self-adjoint operator on a separable complex Hilbert space $E$. Then there exists a $\sigma$-finite measure space $(X,\mu)$, a bounded, measurable, real-valued function $\varphi$ on $X$, and a unitary map $U: E\rightarrow L^2(X, \mu)$ such that $$\left[UAU^*f\right](\lambda)=\varphi(\lambda)f(\lambda),\;\forall f\in L^2(X, \mu).$$
I want to know what happen if $E$ is not separable.
Thank you!