A 95 g bullet is fired from a rifle having a barrel 0.610 m long. Assuming the origin is placed where the bullet begins to move, the force (in newtons) exerted by the expanding gas on the bullet is 18000 + 7000x - 20000x2, where x is in meters.
Determine the work done by the gas on the bullet as the bullet travels the length of the barrel