Chemistry - Why do we use the external pressure to calculate the work done by gas
Solution 1:
If the piston is frictonless and massless, then, if you do a force balance on the piston, you must have that the force per unit area that the gas exerts on the inside face of the piston will always be equal to the external force per unit area that one imposes on the outside face of the piston. The sudden drop in pressure on the outside face of the piston causes the gas to undergo an irreversible expansion. During an irreversible expansion, the local pressure within the cylinder becomes non-uniform, so that the average pressure of the gas differs from the force per unit area at the piston face. As a result, the ideal gas law (or other equation of state) cannot be applied globally to the gas in the cylinder. In addition, during an irreversible expansion, there are viscous stresses present in the gas that allow the force per unit area at the piston face to drop to the new lower value while requiring that force to match the external force on the outer face. So the work done by the gas on the piston is equal to the external force per unit area times the change in volume: $$W = \int{P_{ext}dV}$$ This equation is always satisfied, irrespective of whether the expansion is reversible or irreversible.
Solution 2:
Consider a thought experiment; imagine playing your favourite sport competitively against someone. Imagine losing the game as time runs out (bleak scenario sorry). The work is what you actually put in to catch up. If they are good it becomes even harder to catch up. Winning is just how much better you were with your work ethic over theirs. Work is done against the external force. The external force is the resistance to which effort must be put in to overcome it. The external force is your opponents score that you must achieve. Achieving this is work. The resultant force or resultant pressure (internal minus external) merely causes an acceleration and tells you how much time it will take to achieve a particular distance change. If your internal pressure is much larger than your external pressure before equilibrium the faster it will take to reach your desired volume change due to a bigger acceleration. The resultant is just how much better you are over your opponent and this will show by the massive scoreline difference (acceleration) after the game. If the system is quasi-static the internal pressure is only infinitismally larger than the external pressure which means the resultant is infinitismally small which means the acceleration is really tiny, which means you were only slightly better than your opponent because the scoreline was almost tied. Your work, however, is still how much you had to put in to match your opponent therefore the work is based on the external pressure just as work against friction is based on the frictional force and work against an incline is based on the resisting forces of inclination because this is what you need to overcome. In free expansion a gas expands without an opposing external pressure. Even if the original internal gas pressure was 2 or 10 atm, the work is still zero because no opposing force is present. If your opponent doesn't show you cannot call it work. Work is a measure of how much hell someone gives you before you win. So you use their measure not yours. This is why we use external pressure. Resultant force doesn't indicate work, it indicates how easy or hard you overcame that work (or resistance) as measured by an acceleration. In ideal gas behaviour a piston is considered massless therefore resistance by inertia of the piston is Zero. The only resistance is therefore the external pressure and thus this is what you must work against.