An expansion method for singular perturbation problems