balance equation in rate form and boundary conditions