A differential equation for the classical collapse problem