output derivatives of total populations