There are two waves. The top one shows two cycles of a sine wave. The other one shows many cycles of a wave but the period, length of each cycle, is not constant. Where the top wave goes positive the cycles are compressed making the period shorter and the frequency higher. Where the top wave goes negative the cycles are stretched out making the period longer and the frequency lower.