# Doppler Effect Compensation

1. Jul 28, 2014

### bwinter

1. The problem statement, all variables and given/known data
Trying to find the formula to generate a sin wave that would compensate for the Doppler effect if played from a car moving 50 mph past a stationary observer 1 meter from the car's path.

2. Relevant equations
$ƒ_{observed} = \frac{v}{v+v_{s}}ƒ_{source}$

3. The attempt at a solution
Tried to work this out using variables first. Say d is the distance from observer to car's path.

First, we want to keep the observed frequency constant, so rewrite Doppler formula for source:
$ƒ_{source} = \frac{v+v_{s}}{v}ƒ_{observed}$

Then, taking the component of the car's velocity towards the observer
$V_{o} = V_{s}cosθ$

Where θ is the angle between the car's path, and the direct line of sight to the observer.

But we want this in terms of d, time t and Vs, so we can rewrite θ thusly

$θ=tan^{-1}(\frac{d}{V_{s}t})$

And then plugging back into Vo, we get
$V_{o}=\frac{V_{s}}{\sqrt{(\frac{d}{V_{s}t})^{2}+1}}$

So plug this back into our Doppler equation.

$ƒ_{s}=\frac{v+\frac{V_{s}}{\sqrt{(\frac{d}{V_{s}t})^{2}+1}}}{v}ƒ_{o}$

I've tried graphing this using ƒobserved=440 Hz and Vs=22 m/s, and the graph is symmetrical about t = 0, when it obviously should not be. I'm not sure where I'm going wrong.

Last edited: Jul 28, 2014
2. Jul 28, 2014

### vela

Staff Emeritus
Check your expression for $\theta$ in terms of $d$, $V_s$, and $t$. Are you sure that's what you want?

3. Jul 28, 2014

### bwinter

Why wouldn't it be? Tan gives me opposite and adjacent components which are d and tVs. Are you saying it should be sin or cos?

4. Jul 28, 2014

### vela

Staff Emeritus
Consider the sign of your expression for $V_o$ as you pass $t=0$.

5. Jul 28, 2014

### bwinter

Am I approaching this the right way? I don't see what else theta can be written as.

would writing it in terms of cosine make sense? then $V_{o}=\frac{V_{s}^{2}t}{\sqrt{d^{2}+V_{s}^{2}t^{2}}}$

Last edited: Jul 28, 2014
6. Jul 28, 2014

### vela

Staff Emeritus
Your approach is fine, but you have to be a bit careful. Try plotting $V_o$ vs $t$. Is it what you expect?

7. Jul 28, 2014

### bwinter

Yes! this new Vo works. Thanks!