An acoustic experiment is set up to study how sound waves behave when they cross thermal boundaries in a gas.
A transmitter produces plane sound waves in a chamber. The wavefronts are shown in the figures below.

Explain why refraction (a change in direction of the wavefronts) occurs at the boundary in Figure 1 as the sound waves travel from the cold air into the warm air.
Explain why the wavefronts in Figure 2 do not refract (change direction) when they cross the boundary, even though their speed changes.