An ideal gas is filled in an insulated cylinder fitted with a movable poston connected with an ideal spring (of force constant K) as shown in figure. Initially spring is relaxed