Finite element, Rayleigh-Ritz, and Galerkin methods Basic and computational methods mathematics