Chain Rule and Differential Equations