A Simple Formula for the Generalized Spectrum of Second Order Self-Adjoint Differential Operators