Constrained Differential Equations