Explanation:
Energy makes molecules in the air move faster and expand, decreasing density. The opposite is true for cold air. Molecules are closer together, and absorb less energy.