How to Solve Doppler Problems with a Moving Observer
Learn how a moving observer changes the frequency of sound and how to solve Doppler problems using the correct equation, velocity signs, and reference frames. Includes worked calculations, wind effects, and challenging HSC-style practice questions with solutions.
A loudspeaker stays fixed at the end of a straight track. A microphone mounted on a trolley rolls towards it. The speaker continues emitting the same number of sound waves each second, but the microphone records a higher frequency.
Predict what has changed. Has the wavelength of the sound become shorter?
No. The wavelength in the air remains unchanged because the source is stationary relative to the air. Instead, the moving microphone encounters the existing wavefronts more frequently.
This is the key to solving a Doppler problem with a moving observer: change the rate at which the observer encounters wavefronts, not the wavelength of the sound.
For a stationary source and a moving observer, use:
\[ \boxed{f_o=f_s\frac{v+u_o}{v}} \]
Here, \(u_o\) is positive when the observer moves towards the source and negative when moving away. Importantly, this velocity must be measured relative to the medium, not automatically relative to the ground.
If the source also moves, use the more general equation:
\[ \boxed{f_o=f_s\frac{v+u_o}{v-u_s}} \]
Let’s establish why these equations work, how an experiment can test the moving-observer model, and how to avoid the sign errors that cause problems in HSC Physics questions.
01Testing the moving-observer model
Before using an equation, it helps to understand what an experiment would actually measure.
Suppose we want to investigate whether an observer moving towards a sound source detects a higher frequency.
We need to isolate the observer’s motion. Otherwise, we might accidentally measure the Doppler effect caused by a moving source instead.
The experimental arrangement
A suitable experiment could use the following apparatus:
- A signal generator produces a steady electrical signal at a known frequency, such as \(600\ \text{Hz}\).
- The signal generator connects to a loudspeaker fixed at one end of a straight track.
- A microphone is mounted on a trolley that can move towards or away from the loudspeaker.
- The microphone connects to a portable data logger or frequency analyser mounted on the trolley.
- Light gates or a motion sensor measure the trolley’s velocity.
- An anemometer checks whether air is moving along the track.
The loudspeaker remains stationary throughout the experiment. Only the microphone moves.
What should the experiment show?
First, measure the frequency when the trolley is stationary.
The microphone should record the same frequency as the loudspeaker emits.
Now move the trolley towards the loudspeaker. It should encounter more wavefronts each second, so the measured frequency should increase.
Finally, move the trolley away. It should encounter fewer wavefronts each second, so the measured frequency should decrease.
Consider a source emitting \(600\ \text{Hz}\) in still air, where the speed of sound is \(340\ \text{m s}^{-1}\).
The wavelength is:
\[ \lambda=\frac{v}{f_s} \]
\[ \lambda=\frac{340}{600} =0.567\ \text{m} \]
The following table shows illustrative predicted frequencies for three experimental conditions. These are calculated values, not recorded experimental measurements.
| Experimental condition | Observer velocity | Predicted frequency |
|---|---|---|
| Trolley stationary | \(0\ \text{m s}^{-1}\) | \(600\ \text{Hz}\) |
| Moving towards source | \(+10\ \text{m s}^{-1}\) | \(617.6\ \text{Hz}\) |
| Moving away from source | \(-10\ \text{m s}^{-1}\) | \(582.4\ \text{Hz}\) |
The expected pattern is clear: approaching motion increases the measured frequency, while receding motion decreases it.
Why the experimental design matters
There is an important potential flaw in the original setup you might consider.
What if we put the loudspeaker on the trolley and leave the microphone stationary?
We would still observe a Doppler shift, but we would be investigating a moving source rather than a moving observer.
These experiments test different physical effects:
- Moving the source changes the spacing between successive wavefronts.
- Moving the observer changes how quickly the observer encounters those wavefronts.
To isolate observer motion, the loudspeaker must remain fixed while the microphone moves.
A portable recorder also avoids a trailing cable pulling on the trolley and affecting its velocity.
The experiment therefore gives us a controlled way to test the moving-observer model.
02Why does a moving observer change the frequency?
Imagine a stationary loudspeaker producing a steady sound.
Each wavefront travels through the air at the speed of sound, \(v\). The source produces successive wavefronts at regular time intervals.
Because the source is stationary relative to the air, the wavefronts remain evenly spaced.
Now imagine the observer moving towards the loudspeaker.
The sound wavefronts still travel through the air at the same speed. However, the observer is moving towards them as well.
Consequently, the wavefronts approach the observer at a greater relative speed.
If the observer moves towards the source at \(u_o\), the relative speed at which wavefronts are encountered is:
\[ v_{\text{relative}}=v+u_o \]
The frequency is the number of wavefronts encountered each second.
Therefore:
\[ f_o=\frac{\text{wavefront encounter speed}}{\text{wavelength}} \]
Substituting:
\[ f_o=\frac{v+u_o}{\lambda} \]
We know that:
\[ v=f_s\lambda \]
Rearranging gives:
\[ \lambda=\frac{v}{f_s} \]
Substitute this into the observed-frequency equation:
\[ f_o=\frac{v+u_o}{v/f_s} \]
Therefore:
\[ \boxed{f_o=f_s\frac{v+u_o}{v}} \]
This is the moving-observer Doppler equation when the source is stationary relative to the medium.
What if the observer moves away?
The same equation works.
We simply assign a negative value to the observer’s velocity.
If the observer moves away at speed \(u_o\), its signed velocity is negative, so:
\[ f_o=f_s\frac{v-u_o}{v} \]
Here, \(u_o\) represents the positive magnitude of the speed away from the source.
The relative encounter speed decreases, meaning fewer wavefronts reach the observer each second.
The observed frequency therefore falls below the emitted frequency.
An analogy to remember
Imagine walking towards a row of evenly spaced fence posts.
The posts do not move closer together just because you walk towards them. You simply pass more posts each second.
A moving observer does something similar with sound wavefronts.
The analogy is limited because sound wavefronts are moving disturbances in a medium, rather than stationary objects. However, it captures the important difference between wavefront spacing and encounter rate.
03What if the source moves too?
Although this article focuses on the moving observer, you need to understand the source’s contribution when both objects move.
The source changes the spacing between successive wavefronts.
Imagine a source moving towards an observer at speed \(u_s\).
During one period, \(T\):
- The first wavefront travels a distance \(vT\).
- The source moves towards the observer by \(u_sT\).
The distance between successive wavefronts in front of the source becomes:
\[ \lambda' =vT-u_sT \]
Since \(T=1/f_s\):
\[ \lambda'=\frac{v-u_s}{f_s} \]
A moving observer then encounters these wavefronts at the relative speed \(v+u_o\).
Therefore:
\[ f_o=\frac{v+u_o}{\lambda'} \]
Substituting the modified wavelength gives:
\[ \boxed{f_o=f_s\frac{v+u_o}{v-u_s}} \]
This is the general sound Doppler equation for straight-line motion along the line joining the source and observer.
Notice that the source and observer appear in different parts of the equation.
The observer changes the encounter rate, while the source changes the wavelength.
04Getting the signs right
This is where many otherwise correct calculations go wrong.
Use one consistent sign convention throughout:
| Motion | Velocity sign | Effect |
|---|---|---|
| Observer towards source | \(u_o>0\) | Frequency increases |
| Observer away from source | \(u_o<0\) | Frequency decreases |
| Source towards observer | \(u_s>0\) | Frequency increases |
| Source away from observer | \(u_s<0\) | Frequency decreases |
The important detail is that these velocities are measured relative to the medium.
For ordinary HSC questions involving still air, the air is assumed stationary relative to the ground. In that situation, ground-frame velocities and air-frame velocities are the same.
If wind is present, this assumption no longer works.
A reliable decision process
Before substituting any numbers, follow these steps:
- Identify the wave. Is the question about sound travelling through air?
- Identify the medium. What is the speed of sound relative to the air?
- Identify the source and observer. Determine which object is moving.
- Check the reference frame. Are the given velocities relative to the air or the ground?
- Assign signs. Observer towards the source is positive. Source towards the observer is positive.
- Choose the equation. If the source is stationary relative to the air, set \(u_s=0\).
- Check your result. Approaching motion should generally produce a higher frequency; separating motion should produce a lower frequency.
A useful mental check is to predict whether the observed frequency should be above or below the emitted frequency before calculating.
If your final result contradicts that prediction, check the signs first.
05Worked example: A moving microphone approaches a fixed signal
A stationary pedestrian crossing signal emits a sound of frequency \(720\ \text{Hz}\). A microphone mounted on a skateboard moves directly towards the signal at \(8.0\ \text{m s}^{-1}\).
The speed of sound in the still air is \(340\ \text{m s}^{-1}\).
Calculate the frequency recorded by the microphone.
Step 1
The pedestrian crossing signal is stationary, so:
\[ u_s=0 \]
The microphone moves towards the source, so:
\[ u_o=+8.0\ \text{m s}^{-1} \]
Step 2
Because the source is stationary relative to the air:
\[ f_o=f_s\frac{v+u_o}{v} \]
Step 3
\[ f_o=720\left(\frac{340+8.0}{340}\right) \]
\[ f_o=720\left(\frac{348}{340}\right) \]
\[ f_o=736.94\ \text{Hz} \]
Step 4
The microphone records approximately:
\[ \boxed{f_o=737\ \text{Hz}} \]
The observed frequency is higher than the emitted frequency because the microphone moves towards the incoming wavefronts and encounters more of them each second.
Notice that the microphone’s motion has not changed the wavelength already travelling through the air.
06What changes when there is wind?
This is an important complication.
The speed of sound is measured relative to the medium, not necessarily relative to the ground.
If wind is present, the source and observer may have different velocities relative to the air than their velocities relative to the ground.
You must account for this before using the Doppler equation.
Suppose the wind travels from the source towards the observer.
Choose the positive horizontal direction to be from the source towards the observer.
Let:
- \(W\) be the signed wind velocity relative to the ground.
- \(V_s\) be the source velocity relative to the ground.
- \(V_o\) be the observer velocity relative to the ground.
The velocities relative to the air are found by subtracting the wind velocity:
\[ V_{\text{relative air}}=V_{\text{ground}}-W \]
After this conversion, assign the Doppler signs using the towards-and-away convention.
Specifically:
\[ u_s=V_s-W \]
\[ u_o=-(V_o-W) \]
The negative sign in the observer equation appears because positive \(u_o\) is defined towards the source, opposite to our chosen positive horizontal direction.
An important point: You cannot simply add the wind speed to the observer’s velocity. The wind also changes the source’s velocity relative to the air.
For a uniform wind, if both the source and observer are stationary relative to the ground, the wind alone does not produce a Doppler frequency shift. Their velocities relative to the air produce equal corrections in the numerator and denominator, which cancel.
Worked example: A cyclist approaches a speaker in a following wind
A stationary speaker emits a frequency of \(600\ \text{Hz}\).
A cyclist moves towards the speaker at \(10\ \text{m s}^{-1}\) relative to the ground.
A uniform wind blows from the speaker towards the cyclist at \(5.0\ \text{m s}^{-1}\).
Take the speed of sound relative to the air as \(340\ \text{m s}^{-1}\).
Calculate the frequency heard by the cyclist.
Step 1
Take the direction from the speaker towards the cyclist as positive.
The wind velocity is:
\[ W=+5.0\ \text{m s}^{-1} \]
The speaker is stationary relative to the ground:
\[ V_s=0 \]
The cyclist moves towards the speaker:
\[ V_o=-10\ \text{m s}^{-1} \]
Step 2
For the source:
\[ u_s=V_s-W \]
\[ u_s=0-5.0=-5.0\ \text{m s}^{-1} \]
The source is effectively moving away from the observer relative to the air.
For the observer:
\[ u_o=-(V_o-W) \]
\[ u_o=-(-10-5.0) \]
\[ u_o=+15.0\ \text{m s}^{-1} \]
The cyclist moves towards the source at \(15.0\ \text{m s}^{-1}\) relative to the air.
Step 3
\[ f_o=f_s\frac{v+u_o}{v-u_s} \]
Substitute:
\[ f_o=600\left(\frac{340+15}{340-(-5)}\right) \]
\[ f_o=600\left(\frac{355}{345}\right) \]
\[ f_o=617.39\ \text{Hz} \]
Step 4
The cyclist hears approximately:
\[ \boxed{617.4\ \text{Hz}} \]
The observed frequency is higher than the emitted frequency.
Although the wind makes the source move away relative to the air, the cyclist’s motion towards the source increases the wavefront encounter rate. The observer effect is greater than the source effect in this example.
This is why converting both velocities into the medium’s reference frame is essential.
07Do not confuse sound Doppler with light Doppler
The equations above describe sound, which is a mechanical wave.
Sound needs a material medium, such as air, to travel through. Its Doppler equation therefore depends on the velocities of the source and observer relative to that medium.
Light is different.
Light does not require a material medium, so there is no equivalent air reference frame.
For ordinary radial motion between a light source and observer, the relativistic Doppler model applies.
For relatively small speeds compared with the speed of light, the wavelength shift can be approximated by:
\[ \frac{\Delta\lambda}{\lambda_0} \approx\frac{v_r}{c} \]
Where:
- \(\Delta\lambda\) is the change in wavelength.
- \(\lambda_0\) is the original wavelength.
- \(v_r\) is the radial velocity, taken as positive when receding.
- \(c\) is the speed of light in a vacuum.
The exact relativistic relationship for purely radial motion is:
\[ \frac{\lambda_{\text{obs}}}{\lambda_0} = \sqrt{\frac{1+\beta}{1-\beta}} \]
where:
\[ \beta=\frac{v_r}{c} \]
| Feature | Sound Doppler | Light Doppler |
|---|---|---|
| Wave type | Mechanical | Electromagnetic |
| Requires a medium? | Yes | No |
| Relevant reference | Medium’s rest frame | Relative radial motion |
| Main equation | \(f_o=f_s\frac{v+u_o}{v-u_s}\) | Relativistic wavelength or frequency relationship |
Cosmological redshift is a further distinction. It describes the stretching of light wavelengths as the universe expands, rather than ordinary sound propagation through a moving medium.
If a question involves stellar spectral lines, do not substitute the speed of light into the sound Doppler equation.
08Questions and solutions
Question 1
A stationary warning alarm emits a sound frequency of \(540\ \text{Hz}\). A student rides a bicycle directly towards the alarm at \(15\ \text{m s}^{-1}\).
The speed of sound in still air is \(345\ \text{m s}^{-1}\).
Calculate the frequency heard by the student.
Solution 1
The student hears approximately \(563\ \text{Hz}\).
The source is stationary relative to the air, so:
\[ u_s=0 \]
The observer moves towards the source, giving:
\[ u_o=+15\ \text{m s}^{-1} \]
Use the moving-observer equation:
\[ f_o=f_s\frac{v+u_o}{v} \]
Substitute:
\[ f_o=540\left(\frac{345+15}{345}\right) \]
\[ f_o=540\left(\frac{360}{345}\right) \]
\[ f_o=563.48\ \text{Hz} \]
Therefore:
\[ f_o\approx563\ \text{Hz} \]
The result is higher than the emitted frequency because the student moves towards the incoming wavefronts.
Question 2
A stationary sound source emits a frequency of \(840\ \text{Hz}\).
An observer moving directly away from the source measures a frequency of \(800\ \text{Hz}\).
The speed of sound in the surrounding still air is \(340\ \text{m s}^{-1}\).
Determine the observer’s velocity, including its direction.
Solution 2
The observer moves away from the source at approximately \(16.2\ \text{m s}^{-1}\).
Since the source is stationary relative to the air:
\[ u_s=0 \]
The Doppler equation becomes:
\[ f_o=f_s\frac{v+u_o}{v} \]
Rearrange to make \(u_o\) the subject:
\[ \frac{f_o}{f_s}=\frac{v+u_o}{v} \]
\[ u_o=v\left(\frac{f_o}{f_s}-1\right) \]
Substitute:
\[ u_o=340\left(\frac{800}{840}-1\right) \]
\[ u_o=340(-0.04762) \]
\[ u_o=-16.19\ \text{m s}^{-1} \]
Therefore:
\[ u_o\approx-16.2\ \text{m s}^{-1} \]
The negative sign indicates motion away from the source.
This makes physical sense because the observer hears a lower frequency than the source emits. They are moving away from the wavefronts and encountering fewer each second.
Question 3
A loudspeaker is positioned at the centre of a circular running track. It emits a constant frequency of \(500\ \text{Hz}\).
A runner moves around the track at a constant speed of \(9.0\ \text{m s}^{-1}\). The radius of the track is \(30\ \text{m}\).
Assume the air is stationary and the speed of sound is \(340\ \text{m s}^{-1}\).
Determine the frequency heard by the runner.
Explain why the runner’s relatively high speed does not necessarily produce a Doppler shift.
Solution 3
The runner hears an unchanged frequency of \(500\ \text{Hz}\).
The important detail is the direction of the runner’s velocity.
The sound travels radially outwards from the loudspeaker. However, the runner travels tangentially around the circular track.
These two directions are perpendicular.
Only the component of an observer’s velocity along the direction towards or away from the source contributes to the Doppler shift.
Therefore, the radial component of the runner’s velocity is:
\[ u_o=0\ \text{m s}^{-1} \]
The source is stationary:
\[ u_s=0 \]
Apply the Doppler equation:
\[ f_o=f_s\frac{v+u_o}{v-u_s} \]
\[ f_o=500\left(\frac{340+0}{340-0}\right) \]
\[ f_o=500\ \text{Hz} \]
The runner’s tangential speed does not change the distance between the runner and the loudspeaker.
A tempting mistake is to substitute the full \(9.0\ \text{m s}^{-1}\) into the observer term. That would incorrectly assume the runner is moving directly towards or away from the speaker.
This question demonstrates why direction matters just as much as speed.
Question 4
A stationary loudspeaker emits a frequency of \(500\ \text{Hz}\).
A uniform wind blows from the loudspeaker towards an observer at \(6.0\ \text{m s}^{-1}\).
The observer walks directly away from the loudspeaker at \(4.0\ \text{m s}^{-1}\) relative to the ground.
The speed of sound relative to the air is \(340\ \text{m s}^{-1}\).
Calculate the frequency heard by the observer.
Explain why using the observer’s ground velocity directly in the Doppler equation would be incorrect.
Solution 4
The observer hears approximately \(494\ \text{Hz}\).
The important step is converting both velocities into the reference frame of the air.
Choose the direction from the loudspeaker towards the observer as positive.
The wind velocity is:
\[ W=+6.0\ \text{m s}^{-1} \]
The source is stationary relative to the ground:
\[ V_s=0 \]
The observer moves away from the source:
\[ V_o=+4.0\ \text{m s}^{-1} \]
First, calculate the source velocity relative to the air:
\[ u_s=V_s-W \]
\[ u_s=0-6.0=-6.0\ \text{m s}^{-1} \]
Next, calculate the observer velocity relative to the air, using the observer’s towards-the-source sign convention:
\[ u_o=-(V_o-W) \]
\[ u_o=-(4.0-6.0) \]
\[ u_o=+2.0\ \text{m s}^{-1} \]
Notice something interesting.
Although the observer moves away from the loudspeaker relative to the ground, they move towards it relative to the air.
Now apply the general Doppler equation:
\[ f_o=f_s\frac{v+u_o}{v-u_s} \]
Substitute:
\[ f_o=500\left(\frac{340+2}{340-(-6)}\right) \]
\[ f_o=500\left(\frac{342}{346}\right) \]
\[ f_o=494.22\ \text{Hz} \]
Therefore:
\[ f_o\approx494\ \text{Hz} \]
The observed frequency is lower than the emitted frequency.
Why? The source is moving away from the observer relative to the air, which increases the wavelength. This effect outweighs the observer’s movement towards the source relative to the air.
The tempting approach is to substitute \(u_o=-4.0\ \text{m s}^{-1}\) because the observer walks away on the ground. However, that ignores the wind and gives the wrong reference frame.
Always establish velocities relative to the medium before assigning Doppler signs.
Question 5
A stationary loudspeaker emits a constant frequency of \(500\ \text{Hz}\) in still air.
A student begins \(100\ \text{m}\) from the loudspeaker and completes the following journey along a straight path:
- The student runs towards the loudspeaker at \(17\ \text{m s}^{-1}\) for \(4.0\ \text{s}\).
- The student immediately turns around and runs away from the loudspeaker at \(8.5\ \text{m s}^{-1}\) for \(8.0\ \text{s}\).
The speed of sound is \(340\ \text{m s}^{-1}\).
Answer the following:
(a) Calculate the frequency heard during each stage of the journey.
(b) Calculate the total number of sound-wave cycles received by the student during the complete \(12.0\ \text{s}\) journey.
(c) Determine the average observed frequency over the entire journey.
(d) A student argues that the average frequency must be the ordinary arithmetic mean of the two observed frequencies. Explain why this reasoning is incorrect, and determine whether returning to the original position is relevant to the result.
Solution 5
The student hears \(525\ \text{Hz}\) during the approach and \(487.5\ \text{Hz}\) during the return journey. The total number of cycles received is \(6000\), giving an average observed frequency of \(500\ \text{Hz}\).
The important part is that the two stages have different durations. We must account for the time spent at each frequency rather than simply averaging the two values.
Part (a): Calculate the frequency during each stage.
During the first stage, the student moves towards the source.
Therefore:
\[ u_o=+17\ \text{m s}^{-1} \]
The source is stationary:
\[ u_s=0 \]
Apply the Doppler equation:
\[ f_1=500\left(\frac{340+17}{340}\right) \]
\[ f_1=500\left(\frac{357}{340}\right) \]
\[ f_1=525\ \text{Hz} \]
During the second stage, the student moves away from the source.
Therefore:
\[ u_o=-8.5\ \text{m s}^{-1} \]
Substitute:
\[ f_2=500\left(\frac{340-8.5}{340}\right) \]
\[ f_2=500\left(\frac{331.5}{340}\right) \]
\[ f_2=487.5\ \text{Hz} \]
The observed frequency is higher during the approach and lower during the return.
Part (b): Calculate the total number of cycles received.
Frequency represents the number of cycles received each second.
Therefore:
\[ N=f\Delta t \]
During the approach:
\[ N_1=525\times4.0 \]
\[ N_1=2100\ \text{cycles} \]
During the return:
\[ N_2=487.5\times8.0 \]
\[ N_2=3900\ \text{cycles} \]
The total number of cycles received is:
\[ N_{\text{total}}=N_1+N_2 \]
\[ N_{\text{total}}=2100+3900 \]
\[ N_{\text{total}}=6000\ \text{cycles} \]
Part (c): Calculate the average observed frequency.
The total journey takes:
\[ \Delta t=4.0+8.0=12.0\ \text{s} \]
Average frequency is the total number of cycles received divided by the total time:
\[ f_{\text{average}}= \frac{N_{\text{total}}}{\Delta t} \]
\[ f_{\text{average}}=\frac{6000}{12.0} \]
\[ f_{\text{average}}=500\ \text{Hz} \]
The average observed frequency is therefore equal to the emitted frequency.
Part (d): Explain the incorrect averaging method.
The ordinary arithmetic mean would give:
\[ f_{\text{mean}}=\frac{525+487.5}{2} \]
\[ f_{\text{mean}}=506.25\ \text{Hz} \]
This is incorrect because the student does not spend equal amounts of time travelling towards and away from the source.
The first frequency lasts for \(4.0\ \text{s}\), while the second lasts for \(8.0\ \text{s}\).
We must use a time-weighted average:
\[ f_{\text{average}} = \frac{f_1t_1+f_2t_2}{t_1+t_2} \]
Substituting:
\[ f_{\text{average}} = \frac{525(4.0)+487.5(8.0)}{12.0} \]
\[ f_{\text{average}}=500\ \text{Hz} \]
There is another important physical reason for this result.
The student travels:
\[ d_{\text{towards}}=17\times4.0=68\ \text{m} \]
and then:
\[ d_{\text{away}}=8.5\times8.0=68\ \text{m} \]
The student returns to exactly the same position relative to the stationary loudspeaker.
During the approach, the student encounters additional wavefronts. During the return, the student encounters fewer wavefronts than a stationary observer would.
Because the student finishes at the original position, the net change in the number of wavefronts encountered over the complete journey is zero.
The speaker emits:
\[ N_{\text{emitted}}=500\times12.0 \]
\[ N_{\text{emitted}}=6000\ \text{cycles} \]
This matches the \(6000\) cycles received.
This is the deeper result: for a stationary source in still air, an observer who returns to their starting position receives the same total number of cycles as the source emits during the journey, even though the instantaneous observed frequency changes along the way.
If the observer finished closer to the source, the total received cycle count would be greater. If they finished further away, it would be smaller.
The next useful step is combining the moving-observer effect with a moving source. Keep the two mechanisms separate: the observer changes the wavefront encounter rate, while the source changes the wavelength.
For a broader treatment of both effects, see The Doppler Effect: Frequency Changes in HSC Physics.
If the question instead involves light from a star, switch to the appropriate spectral-shift model. The method is explained in How to Calculate a Star’s Radial Velocity from Spectral Shifts.