The energy of a given sample of an ideal gas depends only on its
As we know that kinetic energy of ideal gas is given by
Where K. E=kinetic energy of gas
kB = Boltzmann constant
T = temperature of gas
Since kB is a constant therefore, kinetic energy of gas is proportional to temperature of gas.