Relativistic Doppler effect

If light with frequency $f'$ is emitted from a source at rest in frame $S'$, the frequency observed in $S$ is $$ f = \sqrt{\frac{c-v}{c+v}} f'. $$ (Derivation)