On the bending of a rod: a singular perturbation approach