You may have a vacuum leak in the control valve system that disrupts the smooth operation of the fuel/air mixture. That is why the car shakes and RPM goes up and down.