Smooth local cosine based Galerkin method for scattering problems