Assume a gas in a container with one end closed and other end has a piston of mass m fixed with a spring.The gas is then heated ,assume that the container is non-conducting.(Assume vessel to be kept in vertical position and the spring is on top).
I have doubt that since the the piston is connected to the spring the pressure inside the gas varies and temperature also varies because the vessel is non-conducting and volume is also not fixed. Then we can calculate the work done by the gas if during the piston has moved 'd' distance. I can't understand how to begin?