We defined the thermal energy of a system to be , where is the microscopic kinetic energy of the moving molecules and is the potential energy of the stretched and compressed molecular bonds. A microscopic look at thermal energy will allow us to predict the molar specific heat, a macroscopic state variable.