Redirecting to Rayleigh-Ritz method