Exemplify the least squares, Galerkin, and collocation methods in a simple 1D problem with global basis functions.