I was drawing a free body diagram of the 3rd step of the Carnot cycle as shown below.
The forces with - sign are reaction forces to the forces without the sign, according to Newton's 3rd law of motion. In this diagram, the forces applied on the piston from the gas are -Fpg and Fpres. Fpres is the pressure force due to collisions of gas particles on the piston, while -Fpg is originated from the piston which is pushing the gas; since the piston pushes the gas, the gas also pushes the piston in opposite direction. Since -Fpg and Fpres comes from different origins, so I think they're different force entities. So in the calculation of the work done on the piston by the gas, these forces are all to be included.
However, the thermodynamic textbook seems only taking Fpres into account so that the infinitesimal work is just PdV. Why is -Fpg not included in work calculation?