We assume that the pressure and temperature of the gas are the same at every point inside the cylinder, so the gas is in equilibrium.
The force due to gas pressure on the piston is
F=P⋅A
where A is the area of the piston cross-section. If the force due to gas pressure is different from the outside force, the piston will move.
If the piston is moved a small distance dy, the change in volume of the gas is
dV=Ady
and the work done is
dW=F⋅dy=(P⋅A)dy=P⋅(Ady)=PdV
If the state of the gas changes slowly, so the gas is at equilibrium at each state in between, the work done by the gas is the sum of the components
dW=PdV.
If the volume is initially at
V1 and ends at
V2, the total work can be expressed by the integral:
W=∫V1V2PdV
The work done depends not only on the initial and ending states, but also on the states in between.
An ideal gas satisfies
TPV=constant.
T is the absolute temperature in Kelvin.
so the state of an ideal gas can be found from its pressure and volume.
The work done can be expressed as the area under the curve.
adiabatic is when the gas changes state without exchanging heat with its surroundings.
So, in this process, the volume and pressure are related by
PVc=k
where c and k are constants.
So, we use
PV1.4=k
Here is an example with expansion.
Say that air in a diesel engine expands from
1.2 in3 to
12 in3.
The initial pressure is
600 in2lb.
Find the work done.
(** take a look at your problem. It has
50 in3lb.
I think that should be
50 in2lb.)
k=600(1.2)1.4=774.47
Then, we have
P=774.47V−1.4
and the work done is
W=∫1.212774.47V−1.4dV=1083.41 in−lb
See what to do now?. Your compressing instead of expanding.
Just for fun, the final pressure for your gas would be
Pf=Pi(VfVi)1.4
=50(32243)1.4=854.3 in2lb
One would expect the pressure to rise since it is being compressed. Temperature would also increase, but that is not part of the problem.