We diagonalize the self-adjoint operator as A = ∫λdE(λ) where E is not a scalar measure, but is rather a map E : ℬ(σ(A)) → P(H) where ℬ(σ(A)) is the Borel sigma algebra on the spectrum, and P(H) is the space of orthogonal projections on H.