Thermal energy is kinetic energy associated with the random motion of atoms and molecules. Temperature is a quantitative measure of “hot” or “cold.” When the atoms and molecules in an object are moving or vibrating quickly, they have a higher average kinetic energy (KE), and we say that the object is “hot.” When the atoms and molecules are moving slowly, they have lower KE, and we say that the object is “cold” (Figure ). Assuming that no chemical reaction or phase change (such as melting or vaporizing) occurs, increasing the amount of thermal energy in a sample of matter will cause its temperature to increase. And, assuming that no chemical reaction or phase change (such as condensation or freezing) occurs, decreasing the amount of thermal energy in a sample of matter will cause its temperature to decrease.

Heat (q) is the transfer of thermal energy between two bodies at different temperatures. Heat flow (a redundant term, but one commonly used) increases the thermal energy of one body and decreases the thermal energy of the other. Suppose we initially have a high temperature (and high thermal energy) substance (H) and a low temperature (and low thermal energy) substance (L). The atoms and molecules in H have a higher average KE than those in L. If we place substance H in contact with substance L, the thermal energy will flow spontaneously from substance H to substance L. The temperature of substance H will decrease, as will the average KE of its molecules; the temperature of substance L will increase, along with the average KE of its molecules. Heat flow will continue until the two substances are at the same temperature (Figure ).

Matter undergoing chemical reactions and physical changes can release or absorb heat. A change that releases heat is called an exothermic process. For example, the combustion reaction that occurs when using an oxyacetylene torch is an exothermic process—this process also releases energy in the form of light as evidenced by the torch’s flame (Figure ). A reaction or change that absorbs heat is an endothermic process. A cold pack used to treat muscle strains provides an example of an endothermic process. When the substances in the cold pack (water and a salt like ammonium nitrate) are brought together, the resulting process absorbs heat, leading to the sensation of cold.

Direction of Heat "Flow": Endothermic vs. Exothermic Processes
The reaction of powdered aluminum with iron(III) oxide, known as the thermite reaction, generates an enormous amount of heat—enough, in fact, to melt steel. The balanced chemical equation for the reaction is as follows:

We can also write this chemical equation as

to indicate that heat is one of the products. Chemical equations in which heat is shown as either a reactant or a product are called thermochemical equations. In this reaction, the system consists of aluminum, iron, and oxygen atoms; everything else, including the container, makes up the surroundings. During the reaction, so much heat is produced that the iron liquefies. Eventually, the system cools; the iron solidifies as heat is transferred to the surroundings. A process in which heat () is transferred from a system to its surroundings is described as exothermic. By convention, for an exothermic reaction.
When you hold an ice cube in your hand, heat from the surroundings (including your hand) is transferred to the system (the ice), causing the ice to melt and your hand to become cold. We can describe this process by the following thermochemical equation:

When heat is transferred to a system from its surroundings, the process is endothermic. By convention, for an endothermic reaction. It is poor form to have a term in the chemical reaction like in Equations. since heat is it not a true species in the reaction. However, this is a convenient approach to represent exothermic and endothermic behavior and is commonly used by chemists.
By convention, for an exothermic reaction and for an endothermic reaction.
Most substances expand as their temperature increases and contract as their temperature decreases. This property can be used to measure temperature changes, as shown in Figure. The operation of many thermometers depends on the expansion and contraction of substances in response to temperature changes.



