speed of sound in air is c and as the air is also moving the velocity of sound is c+va where va is the speed of airThe train sounds the whistle when it is at distance x from the hill. Sound moving with velocity v with respect to ground, takes time t to reach the hill
t=xv=xc+va
after the reflection from the sound waves travels towards the train hence now the velocity of sound is c−va
let the distance travel by reflected wave be x′ therefore time taken by it t′=x′c−va
the total time between echoing the whistle and its reflection t+t′ meanwhile the train travels the distance x−x′ with constant speed vs
x−x′=(t+t′)vs
x−x′=vsc+vax+vsc−vax′
xc+va−vsc+vA=x′c−va+vsc−va
x′=x(c−va)×(c+va−vs)(c+va)×(c−va+vs)
x′=(1200−40)×(1200+40−40)(1200+40)×(1200+40−40)=.935Km
Thus, the. echo is heard when train is 935 m from the hill.
Now, for the observer moving along with train,echo is a sound produced by a stationary source, i.e.,the hill. Hence as observed from ground, source is stationary and observer is moving towards source with speed 40 km/hr.
On the other hand, reflected sound travels opposite to wind velocity. That is, velocity of echo with respect to ground is v. Further, the source (hill) emitting sound of frequency f which is the frequency observed by the hill.
Thus, frequency of echo as heard by observer on train, is given by
f′′=f′v′+vov′=1160−(−40)1160×620=641Hz