Solve the all parts of following question:
Question: A 100-g bullet is fired from a rifle having a barrel 0.600 m long. Assuming the origin is placed where the bullet begins to move, the force (in Newton's) exerted by the expanding gas on the bullet is 15 000 + 10 000x + 25 000x2, where x is in meters.
Part A: Determine the work done by the gas on the bullet as the bullet travels the length of the barrel.
Part B: If the barrel is 1.00 m long, how much work is done, and how does this value compare to the work calculated in (A).
I need help to find the work done by the gas on the bullet as the bullet travels the length of the barrel.