Singularities and differential equations