Rayleigh‐Ritz‐Galerkin methods for dirichlet's problem using subspaces without boundary conditions