Material Balance with Differential Equations