The primary cause of the Doppler effect is the fact that, when the wave source moves in the direction of the observer, each successive wave crest that is generated by the source is emitted from a place that is closer to the observer.
Therefore, the waves will now travel farther from the observer or arrive at wave crests more frequently as the source becomes closer and closer. This leads to an even greater increase in frequency.
The Doppler Effect formula is presented in its generic form as follows:
represents the medium's wave propagation speed;
is the speed of the receiver in relation to the medium.
is the speed of the source in relation to the medium.