derive an expression for work done on compressing a gas by keeping- 1) temp constant 2) pressure constant(need it for exam)
Answers
Work is equal to force times distance. This applies to everything, not just the behaviour of gases.
Suppose we have some gas in a container with volume VV and surface area AA. We apply some force normal to this area and we compress the gas by some tiny distance dxdx. We keep the distance dxdxsmall enough that we can make the approximation that the area AA doesn't change.
I've drawn the gas as a sphere but the argument applies whatever the shape. Because work is force times distance the work done in compressing the gas is simply:
W=F dxW=F dxTo get this into a more familiar form note that if we're applying a pressure PP over the whole surface of the sphere then the force is just the pressure times the area i.e.
W=P A dxW=P A dxNow note that the area AA times the distance moved dxdx is the change in volume i.e. Adx=dVAdx=dV so:
W=P dVW=P dVand this is the equation we use to calculate the amount of work done in compressing the gas. The calculation can be a bit involved because as we compress the gas the pressure will change i.e. the pressure is a function of volume P(V)P(V). Also unless we let the gas cool as we compress it, its temperature is going to go up and that will also increase the pressure. If we allow the gas to cool we get an isothermal compression and if we don't allow it to cool we get an adiabatic compression. If we take the isothermal expansion (because the maths is easier) the pressure is related to volume by:
P=nRTVP=nRTVwhere RR is the gas constant and nn is the number of moles of the gas. The work to compress from volume V1V1 to V2V2 is then simply:
W=∫V2V1P(V)dV=∫V2V1nRTVdVW=∫V1V2P(V)dV=∫V1V2nRTVdVand doing the integral gives:
W=nRTln(V2V1)W=nRTln(V2V1)The formula we've ended up with applies to expansion as well as compression. With a compression V2<V1V2<V1, and to calculate the work done by the gas when it expands we just put V2>V1V2>V1. The only difference is that in one case the work we calculate is the work we do on the gas, while in the other it's the work done by the gas.