Tangency, flow invariance for differential equations, and optimization problems - Motreanu, Dumitru (1999)