A thermally insulated chamber or volume 2V0 is divided by a frictionless piston of area S into tan goal parts A and B . Part A has an ideal gas at pressure P0 and temperature V0 and in part B vacuum. A massless spring of force constant k is connected with piston and the wall of the container as shown. Initially spring is unstretched. Gas in chamber A is allowed to expand. Let in equilibrium spring is compressed by x0 . Then:
In this case work done by the gas is equal to potential energy stored in the spring.
W=12kx02