An ideal gas in a closed container is slowly heated. As its temperature increases