Invariant manifolds for a singular ordinary differential equation