Galerkin Method and Its Residual Correction with Modified Legendre Polynomials May 10, 2022