RM and derivative.expand