Applications of Galerkin's method to bifurcation and two-point boundary value problems☆