combined DM RHS functions