On the use of singular perturbation methods in the solution of variational problems