Rayleigh-Ritz Variational Principle