Finite modeling of parabolic equations using Galerkin methods and inverse matrix approximations