Ideal gas is assumed to be compressed and expanded isentropically inside a cylinder. I want to drive a differential equation which relate the piston position to its pressure , i,e some ode in the form of
dp/dt = f (p,gamma,x,t)
where: Gamma is the specific heat ratio.