As the average kinetic energy of a substance increases, the internal energy , and so its thermal energy . as the thermal energy of a substance increases, the temperature .