Hybrid systems of ordinary differential equations General theory mathematics