You now apply heat energy to the gas in the cylinder while immobilizing the piston.
When the gas is heated, it expands and pushes the piston upward, putting the piston through work. On the other hand, if the piston is pushed downward, the gas does negative work on the piston and the piston does positive work on the gas. The piston is unrestricted and the outside air pressure is constant. If energy is introduced into the system as heat, it can only enter the kinetic energy of the gas, which causes it to travel more quickly. The piston moves because the gas's more energetic particles exert a stronger force on it than the outside air.
to know more about heat energy please visit.
https://brainly.com/question/25384702
#SPJ4